/* ============================================================
   AALIYA BOOK PUBLICATION — Full Mobile Responsive & Compact CSS
   Theme: Ink Navy, Parchment Paper, Red Ink Accent, Brass Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink-navy: #1B2430;
  --ink-navy-light: #2A3648;
  --paper: #F3ECD8;
  --paper-white: #FBF8EF;
  --red-ink: #9B3A3E;
  --brass: #C9A24B;
  --brass-dark: #A9822F;
  --green-ok: #2f6b3a;
  --text-dark: #241F14;
  --text-muted: #6B6350;
  --line: rgba(36, 31, 20, 0.14);

  --font-hand: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'Poppins', sans-serif;

  --radius: 8px;
  --shadow: 0 4px 14px rgba(27, 36, 48, 0.08);
  --shadow-lg: 0 6px 24px rgba(27, 36, 48, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 0.95rem;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--ink-navy);
  color: var(--paper-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper-white);
  white-space: nowrap;
}

.brand-fallback {
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--brass);
}

.nav-cta {
  background: var(--brass) !important;
  color: var(--ink-navy) !important;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  opacity: 1 !important;
  font-size: 0.85rem !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav-cta:hover {
  background: var(--brass-dark) !important;
  color: #fff !important;
}

.admin-nav-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(201, 162, 75, 0.4);
  color: var(--brass) !important;
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 0.82rem !important;
}

.admin-nav-btn:hover {
  background: var(--brass) !important;
  color: var(--ink-navy) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper-white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 860px) {
  .brand {
    font-size: 1.1rem;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--ink-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px;
    gap: 14px;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav-toggle {
    display: block;
  }
}

/* ---------- Promo Banner ---------- */
.promo-banner {
  background: var(--brass);
  color: var(--ink-navy);
  text-align: center;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Hero ---------- */
.hero {
  background: repeating-linear-gradient(var(--paper) 0px, var(--paper) 29px, var(--line) 30px), var(--paper);
  position: relative;
  padding: 42px 0 32px;
  border-bottom: 3px solid var(--ink-navy);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background: var(--red-ink);
  opacity: 0.55;
}

.hero .container {
  position: relative;
  padding-left: 56px;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red-ink);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--font-hand);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 12px;
  color: var(--ink-navy);
}

.hero h1 .hl {
  color: var(--red-ink);
}

.hero p {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero {
    padding: 28px 0 24px;
  }
  .hero .container {
    padding-left: 24px;
    padding-right: 12px;
  }
  .hero::before {
    left: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  font-family: var(--font-body);
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink-navy);
  color: var(--paper-white);
}

.btn-primary:hover {
  background: var(--ink-navy-light);
}

.btn-brass {
  background: var(--brass);
  color: var(--ink-navy);
}

.btn-brass:hover {
  background: var(--brass-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--ink-navy);
  color: var(--ink-navy);
}

.btn-outline:hover {
  background: var(--ink-navy);
  color: var(--paper-white);
}

.btn-danger {
  background: var(--red-ink);
  color: #fff;
}

.btn-danger:hover {
  background: #7a2d30;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Trust Strip ---------- */
.trust-strip {
  background: var(--ink-navy);
  color: var(--paper-white);
  padding: 12px 16px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.82rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.trust-item strong {
  color: var(--brass);
}

/* ---------- Sections ---------- */
.section {
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  color: var(--ink-navy);
  margin-top: 0;
  margin-bottom: 6px;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 620px;
  font-size: 0.9rem;
}

.section-alt {
  background: var(--paper-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .section {
    padding: 28px 0;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .section-sub {
    margin-bottom: 18px;
    font-size: 0.85rem;
  }
}

/* ---------- Project Cards ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.plan-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red-ink);
}

.plan-badge {
  align-self: flex-start;
  background: rgba(201, 162, 75, 0.2);
  color: var(--brass-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.plan-card h3 {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-navy);
  margin: 0 0 6px;
}

.plan-card .desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 14px;
  line-height: 1.4;
}

.plan-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  background: rgba(36, 31, 20, 0.03);
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px dashed var(--line);
}

.plan-meta div span {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.plan-meta div strong {
  color: var(--text-dark);
  font-size: 0.88rem;
}

/* ---------- How It Works / Benefits ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
}

.step-num {
  font-family: var(--font-hand);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brass-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.step-card h4 {
  margin: 0 0 4px;
  color: var(--ink-navy);
  font-size: 0.95rem;
}

.step-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.benefit-card {
  padding: 16px;
  border-left: 3px solid var(--red-ink);
  background: var(--paper-white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.benefit-card h4 {
  margin: 0 0 4px;
  color: var(--ink-navy);
  font-family: var(--font-hand);
  font-size: 1.05rem;
}

.benefit-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---------- Testimonials & FAQ ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.testimonial-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink-navy);
  color: var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-navy);
}

.author-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.faq-item h4 {
  margin: 0 0 6px;
  color: var(--ink-navy);
  font-size: 0.95rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---------- Forms & Cards ---------- */
.form-wrap {
  max-width: 480px;
  margin: 28px auto;
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-lg);
}

.form-wrap.wide {
  max-width: 760px;
}

.form-wrap h2 {
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--ink-navy);
  margin-top: 0;
  margin-bottom: 4px;
}

.form-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-wrap {
    padding: 18px 14px;
    margin: 16px auto;
  }
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.2);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.form-msg {
  font-size: 0.82rem;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius);
  display: none;
}

.form-msg.error {
  display: block;
  background: rgba(155, 58, 62, 0.1);
  color: var(--red-ink);
  border: 1px solid var(--red-ink);
}

.form-msg.ok {
  display: block;
  background: rgba(47, 107, 58, 0.1);
  color: var(--green-ok);
  border: 1px solid var(--green-ok);
}

.form-alt {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-alt a {
  color: var(--red-ink);
  font-weight: 600;
}

/* ---------- Dashboard & Admin Layout ---------- */
.card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-navy);
  margin: 0 0 12px;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-header h1 {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--ink-navy);
  margin: 0 0 2px;
}

.dash-header p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.85rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brass);
}

.stat-card.red {
  border-top-color: var(--red-ink);
}

.stat-card.navy {
  border-top-color: var(--ink-navy);
}

.stat-card.green {
  border-top-color: var(--green-ok);
}

.stat-card .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-card .val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-navy);
}

/* Stepper / Tracker (Mobile Optimized) */
.tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tracker-step {
  flex: 1;
  min-width: 100px;
  background: rgba(36, 31, 20, 0.04);
  border: 1px solid var(--line);
  padding: 8px 6px;
  border-radius: var(--radius);
  text-align: center;
}

.tracker-step.active {
  background: var(--ink-navy);
  color: var(--paper-white);
  border-color: var(--ink-navy);
}

.tracker-step.completed {
  background: rgba(47, 107, 58, 0.12);
  border-color: var(--green-ok);
  color: var(--green-ok);
}

.tracker-step .step-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tracker-step .step-status {
  font-size: 0.68rem;
  line-height: 1.2;
}

@media (max-width: 500px) {
  .tracker-step {
    min-width: 45%;
  }
}

/* Tables (Mobile Horizontal Scrollable & Compact) */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.data-table th, .data-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.data-table th {
  background: rgba(27, 36, 48, 0.06);
  color: var(--ink-navy);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background: rgba(201, 162, 75, 0.05);
}

/* Status Badges */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-warning {
  background: rgba(201, 162, 75, 0.2);
  color: var(--brass-dark);
}

.badge-success {
  background: rgba(47, 107, 58, 0.18);
  color: var(--green-ok);
}

.badge-info {
  background: rgba(27, 36, 48, 0.15);
  color: var(--ink-navy);
}

.badge-danger {
  background: rgba(155, 58, 62, 0.18);
  color: var(--red-ink);
}

/* Tab Navigation (Scrollable on mobile) */
.tab-nav {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.tab-btn {
  padding: 8px 14px;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--ink-navy);
  border-bottom-color: var(--brass);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Modal (Responsive) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(27, 36, 48, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--paper-white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 500px;
  padding: 20px 16px;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.modal-header h3 {
  margin: 0;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--ink-navy);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink-navy);
  color: var(--paper-white);
  padding: 36px 0 20px;
  border-top: 3px solid var(--brass);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer-grid h4 {
  font-family: var(--font-hand);
  color: var(--brass);
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.footer-grid p {
  opacity: 0.85;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 6px;
}

.footer-grid a:hover {
  color: var(--brass);
}

.footer-bottom {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Floating WhatsApp Button */
.wa-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  background: #25D366;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 99;
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
}

.wa-float svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

/* ============================================================
   AALIYA BOOK PUBLICATION — Android App Native Dashboard Styling
   ============================================================ */

/* App Shell Container */
.app-shell {
  max-width: 500px;
  margin: 0 auto;
  background: #F4F5F7;
  min-height: 100vh;
  padding-bottom: 78px; /* Space for bottom nav */
  box-shadow: 0 0 30px rgba(0,0,0,0.12);
  position: relative;
  font-family: var(--font-body);
}

/* App Header / Top Bar */
.app-header {
  background: linear-gradient(135deg, var(--ink-navy) 0%, var(--ink-navy-light) 100%);
  color: #fff;
  padding: 22px 18px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 24px rgba(27, 36, 48, 0.25);
  position: relative;
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ink-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.app-user-info h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.app-user-info p {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: var(--brass);
  font-family: var(--font-mono);
  font-weight: 600;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.app-icon-btn:active {
  background: var(--brass);
  color: var(--ink-navy);
}

.app-badge-tag {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Android Cards */
.app-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  margin: 14px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0,0,0,0.03);
}

.app-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-navy);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Quick Action Grid (4 Hubs) */
.app-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 16px;
}

.app-action-item {
  background: #fff;
  border-radius: 16px;
  padding: 12px 6px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.app-action-item:active {
  transform: scale(0.95);
  background: rgba(201,162,75,0.08);
}

.app-action-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(27,36,48,0.06);
  color: var(--ink-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-size: 1.2rem;
}

.app-action-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-navy);
  display: block;
  line-height: 1.1;
}

/* Android Progress Stepper Bar */
.app-stepper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 8px;
  margin-top: 8px;
}

.app-stepper-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.app-stepper-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 12px;
  bottom: -14px;
  width: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.app-stepper-item:last-child::before {
  display: none;
}

.app-stepper-item.completed::before {
  background: var(--green-ok);
}

.app-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  flex-shrink: 0;
}

.app-stepper-item.completed .app-step-circle {
  background: var(--green-ok);
  color: #fff;
}

.app-stepper-item.active .app-step-circle {
  background: var(--brass);
  color: var(--ink-navy);
  box-shadow: 0 0 0 4px rgba(201,162,75,0.25);
}

.app-step-content {
  padding-top: 2px;
}

.app-step-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-navy);
  margin: 0;
}

.app-step-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* App Fixed Bottom Navigation Bar */
.app-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 150;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.06);
}

.app-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9CA3AF;
  font-size: 0.7rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: color 0.15s ease;
}

.app-nav-link.active {
  color: var(--ink-navy);
}

.app-nav-link.active .app-nav-icon {
  color: var(--brass-dark);
  transform: translateY(-2px);
}

.app-nav-icon {
  font-size: 1.25rem;
  transition: transform 0.15s ease;
}

/* App Tab Pages */
.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

/* ============================================================
   ADMIN SIDEBAR LAYOUT STYLING
   ============================================================ */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #F3F4F6;
}

.admin-sidebar {
  width: 260px;
  background: var(--ink-navy);
  color: var(--paper-white);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  z-index: 100;
}

.admin-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar-header .brand-fallback {
  background: var(--brass);
  color: var(--ink-navy);
  font-weight: 800;
}

.admin-sidebar-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-hand);
  color: var(--paper-white);
}

.admin-sidebar-header p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--brass);
}

.admin-menu {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-menu-item.active {
  background: var(--brass);
  color: var(--ink-navy);
  font-weight: 700;
}

.admin-menu-item.active .svg-icon {
  fill: var(--ink-navy);
}

.admin-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-main {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  max-width: 100%;
}

.admin-mobile-header {
  display: none;
  background: var(--ink-navy);
  color: #fff;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 120;
}

.admin-sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 250;
  display: none;
}

.admin-sidebar-backdrop.open {
  display: block;
}

@media (max-width: 860px) {
  .admin-mobile-header {
    display: flex;
  }
  .admin-wrapper {
    flex-direction: column;
  }
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 25px rgba(0,0,0,0.3);
    z-index: 300;
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-menu {
    flex-direction: column;
    overflow-y: auto;
    padding: 16px 12px;
  }
  .admin-menu-item {
    white-space: normal;
    padding: 12px 14px;
  }
  .admin-main {
    padding: 16px;
  }
}



