/* ==========================================================================
   FaisaaMV — Maldives Monthly Budget & Market Planner
   Tropical Lagoon Dark Glassmorphism + Smartphone-First Ergonomics
   ========================================================================== */

:root {
  --bg-deep: #040d18;
  --bg-shell: #071526;
  --bg-card: rgba(13, 33, 56, 0.72);
  --bg-card-elevated: rgba(19, 45, 74, 0.85);
  --border-glass: rgba(125, 211, 252, 0.14);
  --border-highlight: rgba(45, 212, 191, 0.38);

  --text-primary: #f0f9ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-lagoon: #2dd4bf;
  --accent-sky: #38bdf8;
  --accent-coral: #fb923c;
  --accent-rose: #fb7185;
  --accent-violet: #a78bfa;
  --accent-mint: #34d399;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient Background Glows */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.35;
}

.orb-lagoon {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #0d9488, transparent 70%);
  top: -80px;
  left: -80px;
}

.orb-coral {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #0284c7, transparent 70%);
  bottom: 5%;
  right: -70px;
}

.orb-reef {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, #e11d48, transparent 75%);
  top: 42%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.16;
}

/* Desktop Top Preview Bar (Hidden on mobile devices) */
.desktop-preview-bar {
  position: relative;
  z-index: 10;
  max-width: 980px;
  margin: 14px auto 8px;
  padding: 10px 18px;
  background: rgba(10, 25, 43, 0.82);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.preview-brand strong {
  color: var(--text-primary);
}

.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-chip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-chip:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: var(--accent-lagoon);
}

.preview-chip.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(2, 132, 199, 0.35));
  border-color: var(--accent-lagoon);
  color: #5eead4;
}

/* Smartphone Shell Container */
.phone-shell {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 440px;
  height: calc(100vh - 76px);
  min-height: 680px;
  max-height: 900px;
  margin: 6px auto 16px;
  background: linear-gradient(180deg, #071728 0%, #05101d 100%);
  border: 8px solid #162942;
  border-radius: 44px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(125, 211, 252, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s ease, border-radius 0.3s ease;
}

/* Wide Mode when toggled on Desktop */
.phone-shell.wide-mode {
  max-width: 920px;
  height: calc(100vh - 80px);
  max-height: none;
  border-width: 2px;
  border-radius: 26px;
}

/* Smartphone Status Bar / Dynamic Island */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.dynamic-island {
  background: #02060d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: #cbd5e1;
}

.island-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lagoon);
  box-shadow: 0 0 8px var(--accent-lagoon);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.status-icons {
  display: flex;
  gap: 6px;
  font-size: 0.72rem;
}

/* Top App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 21, 38, 0.75);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

.brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-lagoon);
}

.live-badge {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.6rem;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.currency-pill {
  background: rgba(15, 38, 64, 0.9);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.currency-pill:active {
  transform: scale(0.95);
}

.curr-active {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #5eead4;
}

.curr-rate {
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
}

/* Main Scrollable Content Area */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 16px 96px;
  scroll-behavior: smooth;
}

.app-content::-webkit-scrollbar {
  width: 4px;
}

.app-content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 99px;
}

.tab-view {
  display: none;
  animation: fadeSlideUp 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Wallet Card */
.hero-wallet-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 20px 18px 18px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(45, 212, 191, 0.28) 0%, transparent 60%),
    linear-gradient(135deg, #0b2948 0%, #091c34 60%, #0f172a 100%);
  border: 1px solid rgba(94, 234, 212, 0.3);
  box-shadow: 0 18px 38px rgba(2, 8, 20, 0.55);
  overflow: hidden;
  margin-bottom: 14px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-label {
  display: block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #99f6e4;
  margin-bottom: 4px;
}

.hero-balance {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.edit-income-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}

.edit-income-chip strong {
  color: #5eead4;
  font-family: var(--font-mono);
}

.hero-meter-wrap {
  margin-bottom: 15px;
}

.hero-meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.hero-meter-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(2, 6, 23, 0.55);
  overflow: hidden;
  padding: 1px;
}

.hero-meter-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2dd4bf 0%, #38bdf8 60%, #fb923c 100%);
  transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-stat-box {
  background: rgba(4, 13, 24, 0.42);
  border-radius: 12px;
  padding: 8px 10px;
}

.stat-caption {
  display: block;
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #f8fafc;
}

.text-coral { color: #fda4af !important; }
.text-mint { color: #6ee7b7 !important; }

/* Quick Action Pills */
.quick-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.2s ease;
}

.quick-pill:hover {
  border-color: var(--accent-lagoon);
  transform: translateY(-1px);
}

.qp-icon {
  font-size: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qp-text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
}

.qp-text span {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 16px;
  backdrop-filter: blur(16px);
  margin-bottom: 14px;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pill-tag {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Donut Chart & Legend */
.donut-layout {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 14px;
}

.donut-chart-box {
  position: relative;
  width: 132px;
  height: 132px;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-segment {
  fill: none;
  stroke-width: 18;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-center-sub {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.donut-center-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.donut-center-curr {
  font-size: 0.62rem;
  color: var(--accent-lagoon);
  font-weight: 700;
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  color: #e2e8f0;
}

/* Section Headers */
.section-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 10px;
}

.section-title-bar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent-lagoon);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

/* 5 Category Progress Cards */
.category-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 13px 14px;
  transition: border-color 0.2s ease;
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cat-card-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.cat-card-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.cat-card-desc {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.cat-card-numbers {
  text-align: right;
}

.cat-spent {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  display: block;
}

.cat-limit {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-secondary);
}

.cat-bar-track {
  height: 6px;
  background: rgba(2, 6, 23, 0.6);
  border-radius: 99px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.35s ease;
}

/* Expense List Items */
.expense-list-compact,
.ledger-full-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expense-row {
  background: rgba(13, 33, 56, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.exp-cat-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.exp-details {
  min-width: 0;
}

.exp-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-meta {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.exp-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.exp-amount {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
}

.delete-exp-btn {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: #fda4af;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== TAB 2: GROCERY MARKET ==================== */
.market-banner {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.22), rgba(13, 148, 136, 0.25));
  border: 1px solid rgba(251, 146, 60, 0.35);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
}

.market-tag,
.fsm-badge {
  display: inline-block;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fed7aa;
  background: rgba(234, 88, 12, 0.28);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.market-banner h2,
.petrol-hero-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.market-banner p,
.petrol-hero-card p {
  font-size: 0.76rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.basket-summary-bar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.basket-label {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #99f6e4;
}

.basket-total-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.basket-meta {
  font-size: 0.68rem;
  color: #cbd5e1;
}

.btn-primary-glow {
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #ffffff;
  border: 1px solid rgba(94, 234, 212, 0.45);
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.btn-primary-glow:active {
  transform: scale(0.97);
}

.market-controls {
  margin-bottom: 12px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-secondary);
}

.search-input-wrap input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 12px 10px 36px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-lagoon);
}

.filter-chips-scroll {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-chips-scroll::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: rgba(15, 35, 58, 0.78);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(45, 212, 191, 0.18);
  border-color: var(--accent-lagoon);
  color: #5eead4;
}

.grocery-catalog-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.grocery-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.grocery-item-card.in-basket {
  border-color: rgba(45, 212, 191, 0.42);
  background: rgba(16, 44, 70, 0.82);
}

.gi-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.gi-emoji {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.gi-info {
  min-width: 0;
}

.gi-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.gi-sub {
  font-size: 0.68rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.store-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 600;
}

.gi-price-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fcd34d;
  font-size: 0.75rem;
}

.gi-stepper {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(4, 13, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.qty-btn:active {
  background: var(--accent-lagoon);
  color: #04131e;
}

.qty-val {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

/* ==================== TAB 3: MOTORCYCLE PETROL ==================== */
.petrol-hero-card {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(244, 63, 94, 0.25), transparent 65%),
    linear-gradient(135deg, #1e132a 0%, #0b1c32 100%);
  border: 1px solid rgba(251, 113, 133, 0.35);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
}

.petrol-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.fuel-price-live {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.16);
  padding: 3px 8px;
  border-radius: 99px;
}

.petrol-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.petrol-metric {
  background: rgba(4, 13, 24, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 9px;
}

.pm-label {
  display: block;
  font-size: 0.63rem;
  color: var(--text-secondary);
}

.pm-val {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  display: block;
  margin: 3px 0 2px;
}

.pm-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.petrol-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.bike-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.bike-card {
  background: rgba(8, 22, 38, 0.72);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.bike-card.active {
  border-color: var(--accent-rose);
  background: rgba(225, 29, 72, 0.16);
}

.bike-card strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 3px;
}

.bike-card span {
  display: block;
  font-size: 0.66rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Sliders & Presets */
.slider-group {
  margin-top: 8px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.mono-val {
  font-family: var(--font-mono);
  color: var(--accent-lagoon);
}

.ocean-slider {
  width: 100%;
  accent-color: var(--accent-lagoon);
  cursor: pointer;
}

.slider-presets,
.fuel-rate-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.mini-preset,
.rate-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}

.rate-chip.active {
  background: rgba(45, 212, 191, 0.18);
  border-color: var(--accent-lagoon);
  color: #5eead4;
}

/* ==================== TAB 4: RENT & UTILITIES ==================== */
.sub-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #93c5fd;
  margin: 10px 0 8px;
}

.preset-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-item {
  background: rgba(9, 25, 44, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.preset-item strong {
  display: block;
  font-size: 0.8rem;
}

.preset-item span {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.preset-add-btn {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  padding: 6px 10px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.utility-estimate-box {
  margin-top: 14px;
  padding: 12px;
  background: rgba(4, 13, 24, 0.55);
  border-radius: 14px;
  border: 1px solid var(--border-glass);
}

.ue-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 0;
}

.ue-item strong {
  font-family: var(--font-mono);
  color: #5eead4;
}

/* Forms & Helpers */
.divider-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 0;
}

.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mb-10 { margin-bottom: 10px; }
.w-full { width: 100%; }

.inline-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.inline-add-form input,
.sheet-form input {
  width: 100%;
  background: rgba(5, 15, 28, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.83rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-secondary-full {
  width: 100%;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  padding: 10px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-small-accent {
  background: var(--accent-lagoon);
  color: #042f2e;
  border: none;
  padding: 6px 12px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Floating Action Button & Bottom Nav */
.fab-add {
  position: absolute;
  right: 18px;
  bottom: 76px;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2dd4bf, #0284c7);
  color: #04131e;
  border: none;
  box-shadow: 0 12px 26px rgba(45, 212, 191, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: transform 0.18s ease;
}

.fab-add:hover {
  transform: scale(1.06);
}

.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(5, 16, 30, 0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 4px 6px 8px;
  z-index: 15;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-tab.active {
  color: var(--accent-lagoon);
  background: rgba(45, 212, 191, 0.08);
}

/* Bottom Sheet Modals */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  z-index: 40;
  display: none;
  align-items: flex-end;
}

.modal-backdrop.open {
  display: flex;
}

.bottom-sheet {
  width: 100%;
  background: #091b30;
  border-top: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 26px 26px 0 0;
  padding: 12px 18px 24px;
  max-height: 88%;
  overflow-y: auto;
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  margin: 0 auto 10px;
}

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

.sheet-header h3 {
  font-size: 1rem;
  font-weight: 800;
}

.close-sheet-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.form-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 10px 0 5px;
}

.category-radio-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-radio {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 7px 11px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.cat-radio input {
  display: none;
}

.cat-radio.active {
  background: rgba(45, 212, 191, 0.2);
  border-color: var(--accent-lagoon);
  color: #5eead4;
}

.budget-inputs-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.budget-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
}

.budget-input-row input {
  width: 125px;
  text-align: right;
  font-family: var(--font-mono);
}

/* Toast Notification */
.toast-banner {
  position: absolute;
  top: 66px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 60;
  white-space: nowrap;
}

.toast-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Native Smartphone Viewports (< 640px) */
@media (max-width: 640px) {
  .desktop-preview-bar {
    display: none;
  }
  .phone-status-bar {
    display: none;
  }
  .phone-shell {
    max-width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: none;
    border-radius: 0;
  }
}

/* ==================== AUTHENTICATION & ADMIN CONSOLE STYLES ==================== */
.sync-status-pill {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.auth-screen {
  position: absolute;
  inset: 34px 0 0 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.28), transparent 70%),
    linear-gradient(180deg, #061423 0%, #040d18 100%);
  z-index: 50;
  padding: 18px 16px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-screen.hidden {
  display: none;
}

.auth-card {
  background: rgba(12, 31, 52, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 24px;
  padding: 20px 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65);
}

.auth-brand {
  text-align: center;
  margin-bottom: 14px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.4);
}

.auth-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-lagoon);
}

.auth-brand h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 3px 0 4px;
}

.auth-brand p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.privacy-guarantee-pill {
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.7rem;
  color: #d1fae5;
  line-height: 1.35;
  margin-bottom: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(4, 13, 24, 0.65);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.auth-tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 9px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(2, 132, 199, 0.35));
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.auth-error-box {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fecdd3;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-form input {
  width: 100%;
  background: rgba(4, 13, 24, 0.82);
  border: 1px solid var(--border-glass);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.83rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent-lagoon);
}

.quick-demo-logins {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-caption {
  display: block;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-bottom: 7px;
  text-align: center;
}

.demo-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.demo-login-chip {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.73rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.demo-login-chip.admin-chip {
  background: rgba(167, 139, 250, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: #ddd6fe;
}

.logout-btn:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: #fb7185;
  color: #fda4af;
}

.bottom-nav.has-admin {
  grid-template-columns: repeat(6, 1fr);
}

.admin-hero-banner {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(167, 139, 250, 0.28), transparent 65%),
    linear-gradient(135deg, #1b1433 0%, #091b32 100%);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
}

.admin-hero-banner h2 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.admin-hero-banner p {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.admin-user-card {
  background: rgba(8, 22, 38, 0.78);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auc-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auc-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #2dd4bf);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auc-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.auc-handle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.role-pill {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-pill.admin {
  background: rgba(167, 139, 250, 0.22);
  color: #ddd6fe;
  border: 1px solid rgba(167, 139, 250, 0.45);
}

.role-pill.user {
  background: rgba(45, 212, 191, 0.14);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.3);
}

.auc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auc-actions {
  display: flex;
  gap: 6px;
}

.auc-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: #e2e8f0;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.auc-btn.danger {
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fda4af;
}

@media (max-width: 640px) {
  .auth-screen {
    inset: 0;
  }
}

/* ==================== CUSTOM RENT & PETROL REFILL INTERVAL STYLES ==================== */
.quick-actions-row.three-pills {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-actions-row.three-pills .quick-pill {
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  gap: 6px;
}

.quick-actions-row.three-pills .qp-icon {
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
}

.quick-actions-row.three-pills .qp-text strong {
  font-size: 0.75rem;
}

.quick-actions-row.three-pills .qp-text span {
  font-size: 0.63rem;
}

.refill-interval-box {
  background: rgba(4, 13, 24, 0.55);
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: 14px;
  padding: 12px;
}

.refill-days-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.refill-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.refill-stepper {
  background: rgba(15, 35, 58, 0.9);
  border-color: rgba(251, 113, 133, 0.4);
}

.refill-days-input {
  width: 48px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.refill-days-input:focus {
  outline: none;
}

.refill-unit {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fda4af;
}

.mini-preset.active-chip {
  background: rgba(244, 63, 94, 0.22);
  border-color: #fb7185;
  color: #fecdd3;
}

.custom-input-dark {
  width: 100%;
  background: rgba(5, 15, 28, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.83rem;
}

.rent-custom-card {
  border-color: rgba(56, 189, 248, 0.4);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(56, 189, 248, 0.18), transparent 65%),
    var(--bg-card);
}

/* ==================== FORGOT PASSWORD & EMAIL OTP STYLES ==================== */
.label-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 5px;
}

.label-row-between .form-label {
  margin: 0;
}

.forgot-link-btn {
  background: none;
  border: none;
  color: var(--accent-sky);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.forgot-link-btn:hover {
  color: var(--accent-lagoon);
}

.reset-header-box {
  background: rgba(14, 116, 144, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.reset-header-box strong {
  display: block;
  font-size: 0.82rem;
  color: #7dd3fc;
  margin-bottom: 3px;
}

.reset-header-box p {
  font-size: 0.71rem;
  color: #cbd5e1;
  line-height: 1.35;
}

.email-dispatch-banner {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.73rem;
  color: #d1fae5;
  line-height: 1.4;
  margin-bottom: 8px;
}

.email-dispatch-banner .otp-preview-pill {
  display: inline-block;
  margin-top: 6px;
  background: rgba(4, 13, 24, 0.75);
  border: 1px dashed #34d399;
  color: #6ee7b7;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 8px;
}

.otp-code-input {
  text-align: center;
  font-family: var(--font-mono) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.25em;
  color: #5eead4 !important;
}

.back-to-login-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 9px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
