/* =========================================================================
   UP Ration Card List — Android App (Material Design 3 / Material You)
   Mobile-first, Native Android Look & Feel, Adaptive Phone Shell
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Roboto:wght@400;500;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
  /* Material Design 3 Color Palette (UP Theme: Deep Royal Navy + Saffron + Emerald) */
  --md-sys-color-primary: #0F2D59;
  --md-sys-color-on-primary: #FFFFFF;
  --md-sys-color-primary-container: #D7E2FF;
  --md-sys-color-on-primary-container: #001B3F;

  --md-sys-color-secondary: #E86C00;
  --md-sys-color-on-secondary: #FFFFFF;
  --md-sys-color-secondary-container: #FFE0C2;
  --md-sys-color-on-secondary-container: #331400;

  --md-sys-color-tertiary: #138808;
  --md-sys-color-tertiary-container: #B9F6CA;
  --md-sys-color-on-tertiary-container: #002204;

  --md-sys-color-surface: #F8FAFC;
  --md-sys-color-surface-dim: #E2E8F0;
  --md-sys-color-surface-bright: #FFFFFF;
  --md-sys-color-surface-container-lowest: #FFFFFF;
  --md-sys-color-surface-container-low: #F1F5F9;
  --md-sys-color-surface-container: #FFFFFF;
  --md-sys-color-surface-container-high: #E2E8F0;
  --md-sys-color-surface-container-highest: #CBD5E1;

  --md-sys-color-on-surface: #0F172A;
  --md-sys-color-on-surface-variant: #475569;
  --md-sys-color-outline: #E2E8F0;
  --md-sys-color-outline-variant: #F1F5F9;

  /* Elevation Shadows (Material 3) */
  --md-sys-elevation-1: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.08);
  --md-sys-elevation-2: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --md-sys-elevation-3: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --md-sys-elevation-4: 0 20px 25px -5px rgba(15, 23, 42, 0.10), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

  /* Shape Tokens */
  --md-sys-shape-corner-extra-small: 4px;
  --md-sys-shape-corner-small: 8px;
  --md-sys-shape-corner-medium: 14px;
  --md-sys-shape-corner-large: 20px;
  --md-sys-shape-corner-extra-large: 28px;
  --md-sys-shape-corner-full: 9999px;

  /* Heights */
  --android-status-bar-height: 28px;
  --android-topbar-height: 56px;
  --android-bottomnav-height: 68px;
  --android-gesture-bar-height: 22px;

  /* Backward Compatibility Tokens */
  --color-primary: var(--md-sys-color-primary);
  --color-primary-dark: #00183B;
  --color-on-primary: #FFFFFF;
  --color-secondary: var(--md-sys-color-secondary);
  --color-on-secondary: #FFFFFF;
  --color-success: var(--md-sys-color-tertiary);
  --color-error: #DC2626;
  --color-surface: var(--md-sys-color-surface);
  --color-surface-container: #FFFFFF;
  --color-surface-container-low: #F8FAFC;
  --color-surface-container-high: #E2E8F0;
  --color-outline: var(--md-sys-color-outline);
  --color-text: var(--md-sys-color-on-surface);
  --color-text-variant: var(--md-sys-color-on-surface-variant);
  --radius-sm: var(--md-sys-shape-corner-small);
  --radius-md: var(--md-sys-shape-corner-medium);
  --radius-lg: var(--md-sys-shape-corner-large);
  --radius-xl: var(--md-sys-shape-corner-extra-large);
  --radius-full: var(--md-sys-shape-corner-full);
  --shadow-1: var(--md-sys-elevation-1);
  --shadow-2: var(--md-sys-elevation-2);
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-xl: 32px;
  --topbar-height: var(--android-topbar-height);
  --bottomnav-height: var(--android-bottomnav-height);
  --font-head: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
  --font-body: 'Roboto', 'Noto Sans Devanagari', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: #0B1325;
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden; /* handled inside phone frame */
}

/* =========================================================================
   Desktop Ambient & Android Phone Mockup Frame
   ========================================================================= */
.android-viewport-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0a0f1d 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle background glowing ambient blobs for a futuristic native tech presentation */
.android-viewport-wrapper::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 45, 89, 0.45) 0%, transparent 70%);
  top: -100px;
  left: 20%;
  pointer-events: none;
  filter: blur(50px);
}

.android-viewport-wrapper::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 108, 0, 0.25) 0%, transparent 70%);
  bottom: -50px;
  right: 25%;
  pointer-events: none;
  filter: blur(60px);
}

/* The Native Android Device Frame (Phone View) */
.android-device-frame {
  width: 100%;
  max-width: 430px;
  height: 94vh;
  max-height: 890px;
  min-height: 620px;
  background: var(--color-surface);
  border-radius: 46px;
  border: 10px solid #1c2436;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

/* On Real Mobile Screens */
/* On Real Mobile Screens & AppCreator24 WebView */
@media (max-width: 600px) {
  body {
    background: var(--color-surface);
    overflow: auto;
  }
  .android-viewport-wrapper {
    min-height: 100%;
    width: 100%;
    background: var(--color-surface);
  }
  .android-viewport-wrapper::before,
  .android-viewport-wrapper::after {
    display: none !important;
  }
  .android-device-frame {
    max-width: 100%;
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  /* On actual Android devices and WebView, hide the simulated status bar and gesture pill so it doesn't duplicate the phone's native UI */
  .android-status-bar {
    display: none !important;
  }
  .android-gesture-bar {
    display: none !important;
  }
  .app-topbar {
    padding-top: env(safe-area-inset-top, 0px);
  }
  .bottom-nav-container {
    padding-bottom: env(safe-area-inset-bottom, 4px);
  }
}

/* AppCreator24 / In-App WebView Class Hook */
body.is-webview .android-status-bar,
body.is-webview .android-gesture-bar {
  display: none !important;
}

/* Scrollable Inner Screen Content */
.android-screen-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.android-screen-scroll::-webkit-scrollbar {
  display: none;
}

/* =========================================================================
   Android Native Status Bar
   ========================================================================= */
.android-status-bar {
  height: var(--android-status-bar-height);
  background: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 11.5px;
  font-weight: 700;
  font-family: 'Roboto', system-ui, sans-serif;
  letter-spacing: 0.02em;
  user-select: none;
  z-index: 50;
  position: sticky;
  top: 0;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
}

@media (max-width: 600px) {
  .android-status-bar {
    border-radius: 0;
    padding: 0 16px;
  }
}

.android-status-bar__left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.android-status-bar__time {
  font-size: 12px;
  font-weight: 700;
}
.android-status-bar__notch {
  width: 12px;
  height: 12px;
  background: #000000;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.35);
}
.android-status-bar__right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.android-status-bar__icon {
  display: flex;
  align-items: center;
}
.android-status-bar__icon svg {
  fill: currentColor;
}
.android-status-bar__battery {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
}

/* =========================================================================
   Material Design 3 Top App Bar
   ========================================================================= */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--android-topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: var(--md-sys-elevation-2);
}

.app-topbar__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.android-topbar-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.android-topbar-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.android-topbar-action-btn:active {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(0.94);
}

.app-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
  text-decoration: none;
}
.app-topbar__logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF9933, #EA580C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.app-topbar__text {
  display: flex;
  flex-direction: column;
}
.app-topbar__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.app-topbar__sub {
  font-size: 10.5px;
  color: #BFDBFE;
  letter-spacing: 0.02em;
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Material 3 Language Switch Pill */
.app-topbar__lang-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-topbar__lang-chip:hover {
  background: rgba(255, 255, 255, 0.28);
}
.app-topbar__lang-chip:active {
  transform: scale(0.95);
}

/* Tricolor Government Convenience Ribbon */
.app-govt-ribbon {
  height: 3px;
  background: linear-gradient(90deg, #FF9933 33.3%, #FFFFFF 33.3%, #FFFFFF 66.6%, #138808 66.6%);
  width: 100%;
}

.app-govt-strip {
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 6px 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 1px solid #FDE68A;
}

/* =========================================================================
   App Content Area
   ========================================================================= */
.app-main {
  padding: 12px 14px calc(var(--android-bottomnav-height) + var(--android-gesture-bar-height) + 24px);
  width: 100%;
}

/* =========================================================================
   Hero Card — Android Smart Widget Style
   ========================================================================= */
.hero-card {
  margin: 4px 0 16px;
  background: linear-gradient(145deg, #0F2D59 0%, #081B38 100%);
  color: #FFFFFF;
  border-radius: 26px;
  padding: 20px 18px;
  box-shadow: 0 8px 24px rgba(15, 45, 89, 0.25);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.25) 0%, transparent 70%);
  top: -40px;
  right: -40px;
  pointer-events: none;
}

.hero-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FEF08A;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}
.hero-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.6; transform: scale(0.9); }
}

.hero-card h1 {
  color: #FFFFFF;
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.3;
}
.hero-card p {
  color: #CBD5E1;
  font-size: 12.5px;
  margin: 0 0 14px;
  line-height: 1.45;
}

.hero-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================================================================
   Buttons (Material 3 Touch Tactile Style)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  min-height: 42px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #FF9933 0%, #EA580C 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  font-weight: 700;
}
.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-solid-light {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-solid-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-outline {
  background: #FFFFFF;
  border: 1.5px solid var(--md-sys-color-outline);
  color: var(--md-sys-color-on-surface);
  box-shadow: var(--md-sys-elevation-1);
}
.btn-outline:active {
  background: var(--md-sys-color-surface-container-low);
}

.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 6px 12px;
  min-height: 32px;
  font-size: 12px;
}

/* =========================================================================
   Quick Action Grid (Android App Drawer Style)
   ========================================================================= */
.section {
  padding: 10px 0;
}
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.section__head h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0;
  color: var(--md-sys-color-on-surface);
  letter-spacing: -0.01em;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  padding: 2px 0;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--md-sys-color-on-surface);
  transition: transform 0.15s ease;
  user-select: none;
}
.quick-action:active {
  transform: scale(0.92);
}

.quick-action__icon {
  width: 52px;
  height: 52px;
  border-radius: 18px; /* Android Squircle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.2s ease;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Vibrant App Icon Gradients */
.quick-action:nth-child(1) .quick-action__icon { background: linear-gradient(135deg, #DBEAFE, #BFDBFE); color: #1D4ED8; }
.quick-action:nth-child(2) .quick-action__icon { background: linear-gradient(135deg, #F3E8FF, #E9D5FF); color: #7E22CE; }
.quick-action:nth-child(3) .quick-action__icon { background: linear-gradient(135deg, #CCFBF1, #99F6E4); color: #0F766E; }
.quick-action:nth-child(4) .quick-action__icon { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); color: #15803D; }
.quick-action:nth-child(5) .quick-action__icon { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #B45309; }
.quick-action:nth-child(6) .quick-action__icon { background: linear-gradient(135deg, #FFE4E6, #FECDD3); color: #BE123C; }
.quick-action:nth-child(7) .quick-action__icon { background: linear-gradient(135deg, #E0E7FF, #C7D2FE); color: #4338CA; }
.quick-action:nth-child(8) .quick-action__icon { background: linear-gradient(135deg, #E0F2FE, #BAE6FD); color: #0369A1; }

.quick-action span:not(.quick-action__icon) {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--md-sys-color-on-surface);
  line-height: 1.25;
  max-width: 68px;
}

/* =========================================================================
   Service Cards (Material Design 3 Surface Container)
   ========================================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: var(--md-sys-elevation-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  border: 1px solid var(--md-sys-color-outline);
  text-decoration: none;
  color: inherit;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: var(--md-sys-elevation-2);
  border-color: #CBD5E1;
}
.service-card:active {
  transform: scale(0.97);
  background: var(--md-sys-color-surface-container-low);
}

.service-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--md-sys-color-surface-container-low);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.service-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  color: var(--md-sys-color-on-surface);
  line-height: 1.3;
}
.service-card p {
  font-size: 11px;
  color: var(--md-sys-color-on-surface-variant);
  margin: 0;
  line-height: 1.35;
}

/* =========================================================================
   District List & Search (Material 3 Search Field)
   ========================================================================= */
.district-search-wrapper {
  position: relative;
  margin-bottom: 12px;
}
.district-search {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--md-sys-color-outline);
  background: #FFFFFF;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--md-sys-color-on-surface);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--md-sys-elevation-1);
}
.district-search:focus {
  border-color: var(--md-sys-color-primary);
  box-shadow: 0 0 0 3px rgba(15, 45, 89, 0.15);
}
.district-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.district-card {
  background: #FFFFFF;
  border: 1px solid var(--md-sys-color-outline);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.district-card:active {
  transform: scale(0.97);
  background: var(--md-sys-color-surface-container-low);
}
.district-card .go {
  color: var(--color-primary);
  font-weight: 800;
}

/* =========================================================================
   FAQ Accordions & Generic Cards
   ========================================================================= */
.card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--md-sys-elevation-1);
  margin-bottom: 12px;
  border: 1px solid var(--md-sys-color-outline);
}

.accordion-item {
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding: 10px 0;
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.accordion-item summary::-webkit-details-marker {
  display: none;
}
.accordion-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--md-sys-color-surface-container-low);
}
.accordion-item[open] summary::after {
  content: '–';
  background: var(--md-sys-color-primary-container);
  color: var(--md-sys-color-on-primary-container);
}
.accordion-item .accordion-body {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface-variant);
  padding: 8px 0 2px;
}

/* Official link button */
.official-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid var(--md-sys-color-outline);
  border-radius: 16px;
  padding: 12px 14px;
  min-height: 48px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--md-sys-elevation-1);
  transition: all 0.15s ease;
}
.official-link-btn:active {
  transform: scale(0.98);
  background: var(--md-sys-color-surface-container-low);
}
.official-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--md-sys-color-tertiary);
  background: var(--md-sys-color-tertiary-container);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.official-link-label {
  font-weight: 700;
  font-size: 13.5px;
  flex: 1;
  text-align: right;
  color: var(--md-sys-color-primary);
}

.disclaimer-box {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 12px;
  color: #92400E;
  margin-bottom: 14px;
  line-height: 1.4;
}

/* =========================================================================
   Material Design 3 Bottom Navigation Bar
   With Capsule Pill Indicator and Android Gesture Bar
   ========================================================================= */
.bottom-nav-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  user-select: none;
}

.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: var(--android-bottomnav-height);
  padding: 0 4px;
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748B;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 4px 0;
  position: relative;
}

/* Material You Capsule Pill on Active Item */
.bottom-nav__pill {
  width: 54px;
  height: 30px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.bottom-nav__item.is-active {
  color: var(--md-sys-color-primary);
  font-weight: 700;
}
.bottom-nav__item.is-active .bottom-nav__pill {
  background: #FFE0C2; /* Saffron tonal container */
  color: #C2410C;
  transform: scale(1.05);
}
.bottom-nav__item:active {
  transform: scale(0.92);
}

/* Native Android Gesture Bar (Bottom indicator) */
.android-gesture-bar {
  height: var(--android-gesture-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  padding-bottom: 2px;
}
.android-gesture-pill {
  width: 110px;
  height: 4.5px;
  background: #94A3B8;
  border-radius: 9999px;
  transition: background 0.2s ease;
}
.android-gesture-bar:hover .android-gesture-pill {
  background: #64748B;
}

/* =========================================================================
   Floating Action Button (Material 3 FAB)
   ========================================================================= */
.android-fab {
  position: fixed;
  bottom: calc(var(--android-bottomnav-height) + var(--android-gesture-bar-height) + 16px);
  right: 20px;
  z-index: 45;
  background: linear-gradient(135deg, #FF9933 0%, #EA580C 100%);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.android-fab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.android-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.45);
}
.android-fab:active {
  transform: scale(0.95);
}

/* If inside frame on desktop, keep it positioned relative to frame */
.android-device-frame .android-fab {
  position: absolute;
}

/* =========================================================================
   Material 3 Bottom Sheet / Dialogs
   ========================================================================= */
.overlay-dialog {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.overlay-dialog[hidden] {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay-dialog__card {
  background: #FFFFFF;
  width: 100%;
  border-radius: 28px 28px 0 0;
  padding: 18px 20px 24px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.25s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Bottom Sheet Drag Handle Bar */
.overlay-dialog__handle {
  width: 38px;
  height: 4.5px;
  border-radius: 999px;
  background: #CBD5E1;
  margin: 0 auto 14px;
}
.overlay-dialog__icon {
  font-size: 32px;
  margin: 0 0 6px;
}
.overlay-dialog__url {
  font-size: 12px;
  word-break: break-all;
  color: var(--color-primary);
  background: var(--md-sys-color-surface-container-low);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--md-sys-color-outline);
}
.overlay-dialog__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.overlay-dialog__actions .btn {
  flex: 1;
}

/* Footer (In-App Style) */
.app-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 24px 16px;
  border-radius: 24px;
  margin: 20px 0 10px;
}
.app-footer__inner {
  width: 100%;
}
.app-footer h3 {
  color: #FFFFFF;
  font-size: 14.5px;
  margin: 0 0 4px;
}
.app-footer__tag {
  color: #CBD5E1;
  font-size: 12px;
  margin: 0 0 12px;
}
.app-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 12px 0;
  font-size: 12px;
}
.app-footer__links a {
  color: #93C5FD;
  text-decoration: none;
}
.app-footer__verify {
  font-size: 11px;
  color: #FDE68A;
  margin: 8px 0;
}
.app-footer__copy {
  font-size: 10.5px;
  color: #64748B;
  margin: 10px 0 0;
}

/* Material Touch Ripple Class */
.m3-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: m3-ripple-anim 0.5s linear;
  background-color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
@keyframes m3-ripple-anim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-md { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.container { padding: 0; }

/* =========================================================================
   More Page (Android Profile & Settings Material 3 Style)
   ========================================================================= */
.more-profile-card {
  background: linear-gradient(135deg, #0F2D59 0%, #00183B 100%);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(15, 45, 89, 0.25);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.more-profile-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.3) 0%, transparent 70%);
  top: -30px;
  right: -30px;
  pointer-events: none;
}
.more-profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF9933 0%, #EA580C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
  flex-shrink: 0;
}
.more-profile-avatar svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.more-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.more-profile-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.25;
}
.more-profile-tag {
  font-size: 11.5px;
  color: #CBD5E1;
  margin: 0;
}
.more-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.more-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.more-badge-ver {
  background: rgba(255, 255, 255, 0.15);
  color: #FEF08A;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.more-badge-status {
  background: rgba(19, 136, 8, 0.3);
  color: #A7F3D0;
  border: 1px solid rgba(19, 136, 8, 0.4);
}

.more-group-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin: 16px 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.android-list-group {
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--md-sys-color-outline);
  box-shadow: var(--md-sys-elevation-1);
  overflow: hidden;
  margin-bottom: 14px;
}

.android-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.android-list-item:last-child {
  border-bottom: none;
}
.android-list-item:active {
  background: var(--md-sys-color-surface-container-low);
  transform: scale(0.99);
}

.android-list-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: #F8FAFC;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.android-list-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.android-list-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--md-sys-color-on-surface);
  line-height: 1.3;
}
.android-list-sub {
  font-size: 11px;
  color: var(--md-sys-color-on-surface-variant);
  line-height: 1.35;
  margin-top: 2px;
}
.android-list-arrow {
  color: #94A3B8;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.helpline-box {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid #A7F3D0;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}
.helpline-box h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: #065F46;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.helpline-box p {
  font-size: 11.5px;
  color: #047857;
  margin: 0 0 12px;
}
.helpline-actions {
  display: flex;
  gap: 8px;
}
.helpline-btn {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid #10B981;
  color: #065F46;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
  transition: all 0.15s ease;
}
.helpline-btn:active {
  transform: scale(0.97);
  background: #A7F3D0;
}

