/* ==========================================================================
   CalculateCGPA.in - Native App-like Modern Design System
   Vibrant, Glassmorphic, Ultra-Fast, Responsive & Mobile Native App UI/UX
   ========================================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
  --primary: #0f172a;          /* Deep Royal Slate */
  --primary-brand: #2563eb;    /* Vibrant Royal Blue */
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --primary-hover: #1d4ed8;    /* Brighter Indigo Blue */
  --primary-light: #eff6ff;    /* Soft blue tint */
  --accent: #059669;           /* Vibrant Emerald Teal */
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
  --accent-hover: #047857;
  --accent-light: #d1fae5;
  --dark: #0f172a;             /* High contrast text */
  --muted: #64748b;            /* Slate 500 */
  --light-bg: #f8fafc;         /* Crisp off-white */
  --card-bg: #ffffff;          /* Pure white cards */
  --border: #e2e8f0;           /* Soft border */
  --border-focus: #3b82f6;
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;

  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 40px -10px rgba(37, 99, 235, 0.15), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.25);
  --max-width: 1200px;
}

/* 2. Global Resets & Body Styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--light-bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%),
    radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-brand);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--primary-hover);
}

/* Touch active scale effect for buttons and cards */
button:active, .btn:active, .card:active, .mobile-app-tab:active {
  transform: scale(0.97);
}

/* 3. Containers & Layout Grid */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-main {
  flex: 1;
  padding: 2rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* 4. Header & Native App Bar */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.logo-icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--primary-gradient);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  margin-right: 4px;
}

.logo span {
  color: var(--primary-brand);
}

.logo small {
  font-size: 0.7rem;
  background: var(--accent-light);
  color: var(--accent-hover);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-left: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-brand);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-brand);
  border-radius: var(--radius-pill);
}

.mobile-toggle {
  display: none;
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid var(--border);
  font-size: 1.35rem;
  color: var(--dark);
  cursor: pointer;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    animation: slideDownNav 0.25s ease forwards;
  }
  .nav-menu.open { display: flex; }
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 5. Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-accent {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: #ffffff;
}

.btn-outline {
  background-color: #ffffff;
  border-color: var(--border);
  color: #334155;
}

.btn-outline:hover {
  background-color: var(--light-bg);
  border-color: #cbd5e1;
  color: var(--dark);
}

.btn-danger {
  background-color: var(--danger-bg);
  color: var(--danger);
  border-color: #fca5a5;
}

.btn-danger:hover {
  background-color: #fee2e2;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background-color: var(--primary-light);
  color: var(--primary-brand);
  border: 1px solid #bfdbfe;
}

.badge-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
  border-color: #a7f3d0;
}

/* 6. Card Components */
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--dark);
  line-height: 1.35;
}

.card-text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* 7. Hero Section with Glassmorphism & App Banner */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2.25rem auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.15rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .hero { padding: 2.5rem 1rem; border-radius: var(--radius-md); }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 0.98rem; }
}

/* 8. Calculator App UI Box & Native Controls */
.calc-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  color: var(--dark);
  position: relative;
}

.calc-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}

.calc-header h2 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Form Controls & Floating Focus States */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 16px; /* 16px prevents iOS auto-zoom on input tap */
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--dark);
  transition: all 0.2s ease;
  min-height: 48px; /* Touch-friendly tap target */
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

/* Desktop Table View */
.calc-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.calc-table th {
  background-color: #f8fafc;
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

.calc-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background-color: #ffffff;
}

.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Mobile Subject Card Layout Transformation (max-width: 768px) */
@media (max-width: 768px) {
  .calc-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
  }

  .calc-table-wrapper {
    border: none;
    background: transparent;
    overflow: visible;
    margin-bottom: 1rem;
  }

  .calc-table, .calc-table tbody, .calc-table tr, .calc-table td {
    display: block;
    width: 100%;
  }

  .calc-table thead {
    display: none; /* Hide standard header row on phone screens */
  }

  .calc-table tr.subject-row, .calc-table tr.semester-row {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .calc-table tr.subject-row:focus-within {
    border-color: var(--primary-brand);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
  }

  .calc-table td {
    padding: 0.45rem 0;
    border-bottom: none;
  }

  /* Render Mobile Input Field Labels using data-label attribute */
  .calc-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
    letter-spacing: 0.04em;
  }

  .calc-table td:last-child {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: auto;
    padding: 0;
  }

  .calc-table td:last-child::before {
    display: none !important;
  }

  .calc-table .btn-danger {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: none;
  }

  .calc-actions {
    flex-direction: column;
    gap: 0.85rem;
  }

  .calc-actions > div {
    display: flex;
    width: 100%;
    gap: 0.5rem;
  }

  .calc-actions > div .btn {
    flex: 1;
  }

  .calc-actions .btn-primary {
    width: 100%;
  }
}

/* 9. Native App Bottom Sheet Result Card */
.calc-result-box {
  display: none;
  background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
  border: 2px solid #6ee7b7;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.calc-result-box.active {
  display: block;
  animation: slideUpSheet 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpSheet {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.calc-result-highlight {
  font-size: 3.2rem;
  font-weight: 800;
  color: #047857;
  margin: 0.4rem 0;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.calc-result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #6ee7b7;
}

.calc-result-item {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid rgba(167, 243, 208, 0.6);
  box-shadow: var(--shadow-sm);
}

.calc-result-item span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.calc-result-item strong {
  font-size: 1.35rem;
  color: var(--dark);
  font-weight: 800;
}

/* 10. University Search Box & Listing */
.search-box-wrapper {
  position: relative;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.4rem;
  font-size: 1.05rem;
  border: 2px solid var(--primary-brand);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.univ-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 5px solid var(--primary-brand);
}

/* 11. FAQ Accordions */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item.open {
  border-color: var(--primary-brand);
}

.faq-question {
  width: 100%;
  padding: 1.15rem 1.35rem;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::after {
  content: "＋";
  font-size: 1.3rem;
  color: var(--primary-brand);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: "－";
}

.faq-answer {
  padding: 0 1.35rem 1.35rem 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  display: none;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* 12. Article Reader */
.article-content {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.article-content h2 {
  font-size: 1.65rem;
  color: var(--primary);
  margin: 2rem 0 0.85rem 0;
  font-weight: 800;
}

.article-content h3 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem 0;
}

.article-content p {
  margin-bottom: 1.35rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.35rem;
  padding-left: 1.75rem;
}

.article-content code {
  background-color: var(--light-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-brand);
  border: 1px solid var(--border);
}

/* 13. AdSense Container & Responsive Placeholders */
.adsense-container {
  margin: 2rem 0;
  padding: 1.25rem;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.adsense-container.adsense-compact {
  margin: 1.25rem 0;
  padding: 0.75rem;
}

.adsense-label, .adsense-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.adsense-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px dashed #94a3b8;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.adsense-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.adsense-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-brand);
}

.adsense-meta {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* 14. Footer */
.site-footer {
  background-color: var(--dark);
  color: #94a3b8;
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.88rem;
}

/* 15. Print Stylesheet */
@media print {
  .site-header, .site-footer, .nav-menu, .btn, .adsense-container, .faq-accordion, .mobile-app-bottom-nav {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding-bottom: 0 !important;
  }
  .card, .calc-box {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .calc-result-box {
    display: block !important;
    background: #ffffff !important;
    border: 2px solid #000000 !important;
  }
}

/* 16. Mobile Native App Fixed Bottom Tab Navigation Bar */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); /* Safe area padding for mobile gesture bar */
  }

  .mobile-app-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  }

  .mobile-app-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    gap: 3px;
    position: relative;
  }

  .mobile-app-tab.active {
    color: var(--primary-brand);
  }

  .mobile-app-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--primary-brand);
    border-radius: var(--radius-pill);
  }

  .mobile-app-tab .tab-icon {
    font-size: 1.3rem;
    line-height: 1;
  }

  .btn {
    min-height: 48px;
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .mobile-app-bottom-nav {
    display: none !important;
  }
}
