:root {
  --cream: #f5f0ea;
  --warm-white: #faf8f5;
  --blush: #e8c4b0;
  --dusty-rose: #d4a090;
  --sky: #b8cfe0;
  --muted-blue: #8aaec8;
  --sand: #c9b89a;
  --tan: #b89d7e;
  --soft-green: #a8c4a2;
  --warm-gray: #9e948a;
  --dark: #3d3530;
  --medium: #6b5e56;
  --light-text: #a89a92;
  --card-bg: rgba(255,255,255,0.72);
  --card-border: rgba(255,255,255,0.9);
  --glass-bg: rgba(255,255,255,0.46);
  --glass-bg-strong: rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.55);
  --glass-shadow: 0 1px 1px rgba(255,255,255,0.7) inset, 0 -1px 12px rgba(255,255,255,0.35) inset, 0 20px 40px -12px rgba(100,80,60,0.18), 0 4px 12px rgba(100,80,60,0.08);
  --glass-shadow-hover: 0 1px 1px rgba(255,255,255,0.8) inset, 0 -1px 14px rgba(255,255,255,0.4) inset, 0 28px 56px -14px rgba(100,80,60,0.24), 0 6px 16px rgba(100,80,60,0.1);
  --shadow-soft: 0 8px 32px rgba(100,80,60,0.10), 0 2px 8px rgba(100,80,60,0.06);
  --shadow-card: 0 16px 48px rgba(100,80,60,0.12), 0 4px 16px rgba(100,80,60,0.07);
  --radius: 20px; --radius-sm: 12px; --radius-xs: 8px; --radius-lg: 26px;
  --font-sans: 'Nunito', -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
button { touch-action: manipulation; user-select: none; -webkit-user-select: none; }
body {
  font-family: var(--font-sans);
  overscroll-behavior: none;
  background: var(--cream);
  min-height: 100vh;
  color: var(--dark);
  overflow-x: hidden;
  overflow-y: auto;
}
body::before {
  content: ''; position: fixed; top: -20%; left: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(184,207,224,0.35) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: ''; position: fixed; bottom: -10%; right: -5%;
  width: 55%; height: 55%;
  background: radial-gradient(ellipse, rgba(232,196,176,0.3) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── LAYOUT ── */
.app { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
header {
  padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,248,245,0.75);
  backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.8);
  position: sticky; top: 0; z-index: 100;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--muted-blue) 0%, var(--dusty-rose) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: white;
}
.logo-icon, .login-logo-icon { background: none !important; overflow: visible; }
.logo-icon img, .login-logo-icon img { width: 100%; height: 100%; display: block; border-radius: 22%; }
.logo-text { font-family: var(--font-serif); font-size: 20px; color: var(--dark); }
.logo-text span { color: var(--dusty-rose); font-style: italic; }
.header-right { display: flex; align-items: center; gap: 10px; }
.user-chip {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 50px; padding: 6px 14px;
  font-size: 13px; color: var(--medium); font-weight: 700;
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: 6px;
}
.logout-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(200,185,175,0.3);
  background: rgba(255,255,255,0.6); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center; color: var(--medium);
  transition: all 0.2s;
}
.logout-btn:hover { background: white; color: var(--dusty-rose); }
.header-support-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(200,185,175,0.3);
  background: rgba(255,255,255,0.6); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center; color: var(--medium);
  transition: all 0.2s;
}
.header-support-btn:hover { background: white; color: var(--dusty-rose); }
main { flex: 1; padding: 32px 28px; max-width: 900px; margin: 0 auto; width: 100%; }

/* ── SCREENS ── */
.screen { display: none; animation: fadeSlide 0.35s ease; min-width: 0; max-width: 100%; }
.screen.active { display: block; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── LOGIN OVERLAY ── */
.login-overlay {
  overflow-y: auto;
  position: fixed; inset: 0; z-index: 500;
  background: var(--cream);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 32px 24px;
}
.login-overlay.hidden { display: none; }
.login-box {
  margin: auto; /* centres it, and lets the whole page scroll when the form is tall */
  width: 100%; max-width: 420px;
  background: var(--card-bg); border: 1.5px solid var(--card-border);
  border-radius: var(--radius); padding: 40px 36px;
  backdrop-filter: blur(20px); box-shadow: var(--shadow-card);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-icon {
  width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--muted-blue), var(--dusty-rose));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: white; box-shadow: 0 8px 24px rgba(140,110,100,0.25);
}
.login-title { font-family: var(--font-serif); font-size: 28px; color: var(--dark); }
.login-sub { font-size: 14px; color: var(--light-text); font-weight: 500; margin-top: 4px; }
.login-tabs {
  display: flex; background: rgba(200,185,175,0.15);
  border-radius: 50px; padding: 4px; margin-bottom: 28px;
}
.login-tab {
  flex: 1; padding: 9px; border: none; border-radius: 50px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.25s; background: transparent; color: var(--light-text);
}
.login-tab.active { background: white; color: var(--dark); box-shadow: 0 2px 10px rgba(100,80,60,0.12); }
.login-form { display: none; }
.login-form.active { display: block; }

/* ── FORM ── */
label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; color: var(--medium); margin-bottom: 7px; }
input[type="date"], input[type="month"], input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid rgba(200,185,175,0.35);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.65);
  font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: var(--dark); transition: all 0.2s; outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--muted-blue);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 0 4px rgba(138,174,200,0.15);
}
.form-group { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── BUTTONS ── */
.btn {
  padding: 13px 26px; border: none; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex; align-items: center; gap: 8px; touch-action: manipulation;
}
.btn-primary {
  background: linear-gradient(135deg, var(--muted-blue) 0%, var(--dusty-rose) 100%);
  color: white; box-shadow: 0 4px 18px rgba(140,110,100,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(140,110,100,0.35); }
.btn-primary:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }
.btn-secondary {
  background: rgba(255,255,255,0.7); color: var(--medium);
  border: 1.5px solid rgba(200,185,175,0.4);
}
.btn-secondary:hover { background: white; transform: translateY(-1px); }
.btn-danger { background: rgba(212,100,80,0.1); color: #c04030; border: 1.5px solid rgba(212,100,80,0.25); }
.btn-danger:hover { background: rgba(212,100,80,0.2); }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-block { width: 100%; justify-content: center; }

/* ── CARDS / PANELS ── */
.panel {
  background: var(--card-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 28px;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow); margin-bottom: 20px;
}
.panel-title { font-family: var(--font-serif); font-size: 22px; color: var(--dark); margin-bottom: 4px; }
.panel-sub { font-size: 13px; color: var(--light-text); font-weight: 500; margin-bottom: 20px; }

/* ── LANDING CARDS ── */
.hero-section { text-align: center; padding: 40px 0 32px; }
.hero-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--light-text); font-weight: 700; margin-bottom: 10px; }
.hero-title { font-family: var(--font-serif); font-size: clamp(30px, 5vw, 48px); color: var(--dark); line-height: 1.15; margin-bottom: 10px; }
.hero-title em { color: var(--dusty-rose); font-style: italic; }
.hero-subtitle { font-size: 15px; color: var(--light-text); font-weight: 500; margin-bottom: 36px; }
.landing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 580px; margin: 0 auto; }
.landing-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  cursor: pointer; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
  backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--glass-shadow);
  position: relative; overflow: hidden; text-align: left; isolation: isolate;
}
.landing-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 100px; height: 100px; border-radius: 50%; opacity: 0.18; transition: transform 0.3s;
}
.landing-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 22%, rgba(255,255,255,0) 45%);
  mix-blend-mode: overlay;
}
.landing-card.blue::before { background: var(--muted-blue); }
.landing-card.rose::before { background: var(--dusty-rose); }
.landing-card.green::before { background: var(--soft-green); }
.landing-card.gold::before { background: #c9a84c; }
.landing-card:hover { transform: translateY(-6px) scale(1.015); background: var(--glass-bg-strong); box-shadow: var(--glass-shadow-hover); border-color: rgba(255,255,255,0.8); }
.landing-card:hover::before { transform: scale(1.4); }
.landing-card:active { transform: translateY(-1px) scale(0.97); box-shadow: 0 2px 10px rgba(100,80,60,0.15); transition: transform 0.12s ease, box-shadow 0.12s ease; }
.card-icon {
  width: 48px; height: 48px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 6px 14px rgba(100,80,60,0.16);
}
.blue .card-icon { background: linear-gradient(135deg, var(--sky), var(--muted-blue)); }
.rose .card-icon { background: linear-gradient(135deg, var(--blush), var(--dusty-rose)); }
.green .card-icon { background: linear-gradient(135deg, var(--soft-green), #7fb87a); }
.gold .card-icon { background: linear-gradient(135deg, #e8c96a, #b8860b); }
.card-title { font-family: var(--font-serif); font-size: 19px; color: var(--dark); margin-bottom: 5px; }
.card-desc { font-size: 13px; color: var(--light-text); font-weight: 500; line-height: 1.5; }
.card-live-metric { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 5px 11px; border-radius: 20px; background: rgba(255,255,255,0.55); font-size: 11.5px; font-weight: 700; color: var(--dark); }

/* ── HOME SECTION LABELS (serif, ties typography into one system) ── */
.hc-section-label { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--medium); margin: 28px 4px 12px; letter-spacing: 0.2px; }
.hc-section-label:first-child { margin-top: 0; }

/* ── SECONDARY CARD GRID (compact, consistent, used for less-frequent sections) ── */
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 580px; margin: 0 auto; }
.hc-grid + .hc-grid { margin-top: 18px; }
#homeExtraCards { margin-top: 20px; }
.hc-sec-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 18px;
  padding: 16px 14px; cursor: pointer; text-align: left;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--glass-shadow);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s ease, background 0.25s ease;
}
.hc-sec-card:active { transform: scale(0.96); box-shadow: 0 2px 8px rgba(100,80,60,0.14); transition: transform 0.1s ease; }
.hc-sec-icon { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 4px 10px rgba(100,80,60,0.14); }
.hc-sec-icon svg { width: 19px; height: 19px; color: #fff; }
.hc-sec-title { font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.hc-sec-desc { font-size: 10.5px; color: var(--light-text); line-height: 1.4; font-weight: 500; }
/* Semantic color coding: warm = money-related, cool = operational */
.hc-warm .hc-sec-icon { background: linear-gradient(135deg, var(--blush), var(--dusty-rose)); }
.hc-cool .hc-sec-icon { background: linear-gradient(135deg, var(--sky), var(--muted-blue)); }

/* ── PERSISTENT BOTTOM TAB BAR ── */
.bottom-tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 300; background: rgba(250,247,243,0.94); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border-top: 1px solid var(--glass-border); display: flex; justify-content: space-around; padding: 8px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -6px 24px rgba(100,80,60,0.08); }
.bt-item { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; flex: 1; padding: 5px 0; color: var(--light-text); transition: color 0.2s, transform 0.12s; background: none; border: none; }
.bt-item.active { color: var(--dusty-rose); }
.bt-item:active { transform: scale(0.9); }
.bt-item svg { width: 21px; height: 21px; }
.bt-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2px; }
body.has-tabbar .app { padding-bottom: 74px; }

/* ── STEP HEADER ── */
.step-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card-bg); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: var(--medium);
  backdrop-filter: blur(8px); flex-shrink: 0; transition: all 0.2s;
}
.back-btn:hover { background: white; }
.step-progress { flex: 1; display: flex; gap: 5px; }
.step-dot { flex: 1; height: 4px; border-radius: 4px; background: rgba(200,185,175,0.3); transition: background 0.3s; }
.step-dot.done { background: var(--muted-blue); }
.step-dot.active { background: linear-gradient(90deg, var(--muted-blue), var(--dusty-rose)); }
.step-label { font-size: 11px; color: var(--light-text); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }

/* ── MACHINE SELECT ── */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.machine-option {
  padding: 13px 10px; border: 2px solid rgba(200,185,175,0.3);
  border-radius: var(--radius-sm); background: rgba(255,255,255,0.5);
  text-align: center; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 700; color: var(--medium);
  transition: all 0.15s; user-select: none;
}
.machine-option.selected { background: linear-gradient(135deg, rgba(184,207,224,0.35), rgba(212,160,144,0.2)); border-color: var(--muted-blue); color: var(--dark); }
.machine-option:hover { background: rgba(255,255,255,0.8); border-color: var(--muted-blue); }

/* ── NOZZLE CARDS ── */
.nozzle-card {
  background: rgba(255,255,255,0.5); border: 1.5px solid rgba(200,185,175,0.3);
  border-radius: var(--radius-sm); padding: 20px; margin-bottom: 14px;
}
.nozzle-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nozzle-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
}
.n1{background:linear-gradient(135deg,var(--muted-blue),var(--sky))}
.n2{background:linear-gradient(135deg,var(--dusty-rose),var(--blush))}
.n3{background:linear-gradient(135deg,var(--soft-green),#7fb87a)}
.n4{background:linear-gradient(135deg,var(--sand),var(--tan))}
.n5{background:linear-gradient(135deg,#b89d7e,#8a6a4e)}
.n6{background:linear-gradient(135deg,#9e948a,#6b5e56)}
.nozzle-name { font-weight: 800; font-size: 15px; color: var(--dark); }
.fuel-type-label { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.fuel-petrol { background: rgba(168,196,162,0.25); color: #5a8a54; }
.fuel-diesel { background: rgba(138,174,200,0.25); color: #4a7a9e; }
.nozzle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nozzle-calc {
  background: rgba(184,207,224,0.12); border: 1px solid rgba(184,207,224,0.3);
  border-radius: var(--radius-xs); padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.nozzle-calc-label { font-size: 11px; font-weight: 700; color: var(--light-text); text-transform: uppercase; }
.nozzle-calc-value { font-size: 16px; font-weight: 800; color: var(--dark); }

/* ── PAYMENT GRID ── */
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.payment-cat {
  background: rgba(255,255,255,0.5); border: 2px solid rgba(200,185,175,0.25);
  border-radius: var(--radius-sm); padding: 18px; cursor: pointer; transition: all 0.2s;
}
.payment-cat:hover { background: rgba(255,255,255,0.85); border-color: rgba(184,207,224,0.5); transform: translateY(-2px); }
.payment-cat.has-amount { border-color: var(--soft-green); }
.cat-icon-wrap { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 10px; }
.cat-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--medium); margin-bottom: 3px; }
.cat-total { font-family: var(--font-serif); font-size: 20px; color: var(--dark); }
.cat-total.zero { color: var(--light-text); font-family: var(--font-sans); font-size: 14px; }

/* ── TOTALS ── */
.total-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(200,185,175,0.2);
}
.total-row:last-child { border-bottom: none; }
.total-label { font-size: 14px; font-weight: 600; color: var(--medium); display: flex; align-items: center; gap: 8px; }
.total-value { font-family: var(--font-serif); font-size: 20px; color: var(--dark); }
.grand-total .total-value { color: var(--dusty-rose); font-size: 26px; }

/* ── MATCH BANNER ── */
.match-banner {
  border-radius: var(--radius-sm); padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 14px; margin-bottom: 18px;
}
.match-banner.matched { background: rgba(168,196,162,0.25); color: #3a7434; border: 1.5px solid rgba(168,196,162,0.5); }
.match-banner.mismatch { background: rgba(212,160,144,0.2); color: #8a3a2a; border: 1.5px solid rgba(212,160,144,0.5); }

/* ── BOTTOM SHEET ── */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(61,53,48,0.35); backdrop-filter: blur(6px);
  display: none; align-items: flex-end;
}
.overlay.open { display: flex; }
.sheet {
  width: 100%; max-width: 900px; margin: 0 auto;
  background: var(--warm-white); border-radius: 24px 24px 0 0;
  padding: 28px; max-height: 85vh; overflow-y: auto;
  animation: sheetUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: rgba(200,185,175,0.5); margin: 0 auto 20px; }
.sheet-title { font-family: var(--font-serif); font-size: 22px; color: var(--dark); margin-bottom: 20px; }
.sheet-footer { display: flex; gap: 10px; margin-top: 20px; }

/* ── DETAIL ROWS ── */
.detail-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.remove-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: rgba(212,160,144,0.2); color: var(--dusty-rose);
  cursor: pointer; font-size: 17px; display: flex; align-items: center; justify-content: center;
}
.add-row-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1.5px dashed rgba(200,185,175,0.5);
  border-radius: var(--radius-xs); padding: 11px 14px;
  width: 100%; cursor: pointer; font-family: var(--font-sans);
  font-size: 14px; font-weight: 600; color: var(--light-text); transition: all 0.2s;
}
.add-row-btn:hover { border-color: var(--muted-blue); color: var(--muted-blue); }

/* ── CASH DENOMINATION ── */
.cash-denom { display: grid; grid-template-columns: 70px 1fr 1fr 90px; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(200,185,175,0.15); font-size: 14px; }
.denom-label { font-weight: 800; color: var(--dark); font-size: 15px; }
.denom-amount { font-weight: 700; color: var(--medium); font-family: var(--font-serif); font-size: 17px; text-align: right; }

/* ── CREDIT CARDS ── */
.credit-hub-card {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.55); border: 2px solid rgba(255,255,255,0.85);
  border-radius: var(--radius-sm); padding: 18px;
  cursor: pointer; transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-soft); margin-bottom: 12px;
}
.credit-hub-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,1); box-shadow: var(--shadow-card); }
.chc-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.chc-body { flex: 1; }
.chc-title { font-family: var(--font-serif); font-size: 18px; color: var(--dark); margin-bottom: 3px; }
.chc-desc { font-size: 12px; color: var(--light-text); font-weight: 500; }
.chc-arrow { font-size: 18px; color: var(--light-text); }

/* ── CREDITOR LIST ROWS ── */
.creditor-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(200,185,175,0.18);
  cursor: pointer;
}
.creditor-row:last-child { border-bottom: none; }
.creditor-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--muted-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white; flex-shrink: 0; margin-right: 14px;
}
.creditor-name { font-weight: 700; color: var(--dark); font-size: 15px; }
.creditor-meta { font-size: 12px; color: var(--light-text); margin-top: 2px; }
.amount-pill {
  padding: 4px 12px; border-radius: 50px;
  font-size: 13px; font-weight: 800;
}
.amount-pill.owing { background: rgba(212,160,144,0.2); color: #8a3a2a; }
.amount-pill.clear { background: rgba(168,196,162,0.2); color: #3a7434; }

/* ── LEDGER ROWS ── */
.ledger-entry {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(200,185,175,0.15);
}
.ledger-entry:last-child { border-bottom: none; }
.ledger-entry-type { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; margin-right: 10px; margin-top: 2px; }
.ledger-debit-icon { background: rgba(212,160,144,0.2); color: #8a3a2a; }
.ledger-credit-icon { background: rgba(168,196,162,0.2); color: #3a7434; }
.ledger-desc { font-size: 14px; font-weight: 600; color: var(--dark); }
.ledger-date { font-size: 11px; color: var(--light-text); margin-top: 2px; }
.ledger-amt { font-family: var(--font-serif); font-size: 17px; text-align: right; }
.ledger-amt.debit { color: #8a3a2a; }
.ledger-amt.credit { color: #3a7434; }

/* ── SHIFT ENTRY CARDS ── */
.entry-card {
  background: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px;
  cursor: pointer; transition: all 0.2s;
}
.entry-card:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.entry-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.entry-card-date { font-family: var(--font-serif); font-size: 17px; color: var(--dark); }
.entry-card-shift { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: rgba(184,207,224,0.25); color: #4a7a9e; }
.entry-card-amount { font-family: var(--font-serif); font-size: 22px; color: var(--dusty-rose); }
.entry-card-meta { font-size: 12px; color: var(--light-text); margin-top: 4px; }
.entry-card-badge { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 20px; letter-spacing: 0.3px; white-space: nowrap; }
.entry-card-badge.matched { background: rgba(168,196,162,0.25); color: #3a7434; }
.entry-card-badge.mismatch { background: rgba(212,100,80,0.18); color: #b3391f; border: 1px solid rgba(212,100,80,0.4); }

/* ── Expense Manager ── */
.category-chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.category-chip {
  padding: 14px 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.6); border: 1.5px solid rgba(200,185,175,0.25);
  font-size: 14px; font-weight: 700; color: var(--dark);
  cursor: pointer; transition: all 0.15s; text-align: center;
}
.category-chip:hover, .category-chip:active { background: rgba(255,255,255,0.95); border-color: var(--muted-blue); }
.category-chip.builtin { background: rgba(201,184,154,0.12); border-color: rgba(201,184,154,0.35); }
.expense-row-display { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 12px; }
.tab-switch { display: flex; gap: 6px; background: rgba(200,185,175,0.12); border-radius: var(--radius-sm); padding: 5px; margin-bottom: 18px; }
.tab-btn {
  flex: 1; border: none; background: transparent; padding: 10px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 800; color: var(--medium); cursor: pointer;
  transition: all 0.15s; text-transform: uppercase; letter-spacing: 0.4px; font-family: 'Nunito', sans-serif;
}
.tab-btn.active { background: white; color: var(--dusty-rose); box-shadow: var(--shadow-soft); }
.ledger-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(200,185,175,0.15);
}
.ledger-row:last-child { border-bottom: none; }
.category-list-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(200,185,175,0.2); margin-bottom: 10px; cursor: pointer; transition: all 0.15s;
}
.category-list-row:hover { background: rgba(255,255,255,0.9); }
.category-list-row.inactive { opacity: 0.55; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--dark); color: white; padding: 12px 22px;
  border-radius: 50px; font-size: 14px; font-weight: 600;
  z-index: 999; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2); white-space: nowrap; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #3a7434; }
.toast.error { background: #8a3a2a; }

/* ── LOADING ── */
.loading-spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: white;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(245,240,234,0.8); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
.loading-overlay.show { display: flex; }
.loading-text { font-size: 14px; font-weight: 600; color: var(--medium); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 52px; margin-bottom: 14px; }
.empty-title { font-family: var(--font-serif); font-size: 24px; color: var(--dark); margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--light-text); font-weight: 500; }

/* ── BADGES ── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-blue { background: rgba(138,174,200,0.2); color: #4a7a9e; }
.badge-rose { background: rgba(212,160,144,0.2); color: #8a3a2a; }
.badge-green { background: rgba(168,196,162,0.2); color: #3a7434; }

/* ── ERROR MSG ── */
.error-msg { background: rgba(212,100,80,0.1); border: 1.5px solid rgba(212,100,80,0.25); border-radius: var(--radius-xs); padding: 12px 16px; font-size: 14px; font-weight: 600; color: #8a3a2a; margin-bottom: 16px; display: none; }
.error-msg.show { display: block; }

/* ── UTILITIES ── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.divider { height: 1px; background: rgba(200,185,175,0.2); margin: 20px 0; }

/* ── RATE UPDATE QUICK PANEL ── */
.rate-update-card {
  background: linear-gradient(135deg, rgba(232,196,176,0.2), rgba(184,207,224,0.15));
  border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-sm); padding: 16px 18px;
  margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
}
.rate-update-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.rate-nozzle-row {
  display: grid; grid-template-columns: 1fr 1fr auto;
  gap: 10px; align-items: center; padding: 10px 0;
  border-bottom: 1px solid rgba(200,185,175,0.15);
}
.rate-nozzle-row:last-child { border-bottom: none; }
.rate-nozzle-label { font-size: 13px; font-weight: 700; color: var(--dark); }
.rate-nozzle-fuel { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
/* Shift edit/delete */
.shift-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-edit { background: rgba(138,174,200,0.15); color: #4a7a9e; border: 1.5px solid rgba(138,174,200,0.3); }
.btn-edit:hover { background: rgba(138,174,200,0.3); }
.btn-delete { background: rgba(212,100,80,0.1); color: #c04030; border: 1.5px solid rgba(212,100,80,0.2); }
.btn-delete:hover { background: rgba(212,100,80,0.2); }
/* Confirm dialog */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(61,53,48,0.5); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.confirm-overlay.open { display: flex; }
.confirm-box {
  background: var(--warm-white); border-radius: var(--radius);
  padding: 32px 28px; max-width: 380px; width: 100%;
  box-shadow: var(--shadow-card); animation: fadeSlide 0.3s ease;
}
.confirm-title { font-family: var(--font-serif); font-size: 22px; color: var(--dark); margin-bottom: 8px; }
.confirm-msg { font-size: 14px; color: var(--medium); margin-bottom: 24px; line-height: 1.5; }
.confirm-btns { display: flex; gap: 10px; }

/* ── MONTHLY REPORT STYLES ── */
.report-summary-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 20px; }
.report-stat {
  background: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-sm); padding: 16px; text-align: center;
}
.report-stat-label { font-size: 10px; font-weight: 700; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.report-stat-val { font-family: var(--font-serif); font-size: 22px; color: var(--dark); }
.report-stat-sub { font-size: 11px; color: var(--light-text); margin-top: 3px; }
.report-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.report-table th {
  background: #2d2a26; color: #f7f2ec; padding: 10px 8px; text-align: right; font-size: 10.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
}
.report-table th:first-child { text-align: left; position: sticky; left: 0; z-index: 2; background: #2d2a26; }
.report-table td { padding: 10px 8px; border-bottom: 1px solid rgba(200,185,175,0.18); color: var(--dark); font-weight: 700; text-align: right; font-size: 13px; white-space: nowrap; }
.report-table td:first-child { text-align: left; font-size: 12.5px; white-space: nowrap; position: sticky; left: 0; z-index: 1; background: var(--warm-white); box-shadow: 2px 0 4px rgba(0,0,0,0.04); }
.report-table tr:nth-child(even) td:first-child { background: #faf7f3; }
.report-table tr:last-child td { border-bottom: none; }
.report-table tr:hover td { background: rgba(200,185,175,0.08); }
.report-table .report-total-row td { font-weight: 800; background: rgba(212,160,144,0.22) !important; border-top: 2px solid rgba(180,120,100,0.5); white-space: nowrap; }
.report-table .report-total-row td:first-child { background: rgba(212,160,144,0.32) !important; color: var(--dusty-rose); }
.report-table-scroll::-webkit-scrollbar { height: 6px; }
.report-table-scroll::-webkit-scrollbar-thumb { background: rgba(180,160,145,0.4); border-radius: 4px; }
.report-table-scroll { scrollbar-width: thin; }
.report-section-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--light-text); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.export-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.fuel-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fuel-split-card { border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.fuel-split-ms { background: rgba(168,196,162,0.15); border: 1.5px solid rgba(168,196,162,0.3); }
.fuel-split-hsd { background: rgba(138,174,200,0.15); border: 1.5px solid rgba(138,174,200,0.3); }
.fuel-split-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 6px; }
.fuel-split-ms .fuel-split-label { color: #5a8a54; }
.fuel-split-hsd .fuel-split-label { color: #4a7a9e; }
.fuel-split-val { font-family: var(--font-serif); font-size: 20px; color: var(--dark); }
.fuel-split-sub { font-size: 11px; color: var(--light-text); margin-top: 3px; }
/* Print styles for monthly report */
@media print {
  .no-print, header, .step-header, .export-bar { display: none !important; }
  .panel { box-shadow: none !important; border: 1px solid #ddd !important; }
}

/* ── CONTACT ACTION BUTTONS ── */
.contact-bar {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin: 14px 0;
}
.contact-action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.6);
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-sans); text-decoration: none;
  box-shadow: var(--shadow-soft);
}
.contact-action:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.contact-action:active { transform: scale(0.97); }
.contact-action-icon { font-size: 26px; }
.contact-action-label { font-size: 12px; font-weight: 700; color: var(--medium); }
.contact-action.call { border-color: rgba(168,196,162,0.4); background: rgba(168,196,162,0.1); }
.contact-action.call .contact-action-label { color: #3a7434; }
.contact-action.sms { border-color: rgba(138,174,200,0.4); background: rgba(138,174,200,0.1); }
.contact-action.sms .contact-action-label { color: #4a7a9e; }
.contact-action.wa { border-color: rgba(37,211,102,0.3); background: rgba(37,211,102,0.08); }
.contact-action.wa .contact-action-label { color: #1a8a40; }
.contact-info-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.9);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 4px;
}
.contact-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--sky), var(--muted-blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: white;
}
.contact-name { font-weight: 800; font-size: 16px; color: var(--dark); }
.contact-phone { font-size: 13px; color: var(--light-text); margin-top: 2px; }
.contact-balance { font-family: var(--font-serif); font-size: 18px; margin-top: 2px; }
.contact-balance.owing { color: #8a3a2a; }
.contact-balance.clear { color: #3a7434; }

/* ── STAFF MANAGEMENT ── */
.staff-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid rgba(200,185,175,0.18);
}
.staff-row:last-child { border-bottom: none; }
.staff-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white; flex-shrink: 0; margin-right: 12px;
}
.role-owner { background: linear-gradient(135deg, var(--dusty-rose), var(--blush)); }
.role-co-owner { background: linear-gradient(135deg, #c9a04c, #e8c96a); }
.role-manager { background: linear-gradient(135deg, var(--muted-blue), var(--sky)); }
.role-staff { background: linear-gradient(135deg, var(--soft-green), #7fb87a); }
.role-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.role-badge.owner { background: rgba(212,160,144,0.2); color: #8a3a2a; }
.role-badge.co-owner { background: rgba(201,160,76,0.2); color: #8a6a1a; }
.role-badge.manager { background: rgba(138,174,200,0.2); color: #4a7a9e; }
.role-badge.staff { background: rgba(168,196,162,0.2); color: #3a7434; }

/* ── DSR STYLES ── */
.dsr-report { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); margin-bottom: 24px; }
.dsr-header { background: linear-gradient(135deg, #3d3530 0%, #6b5e56 100%); padding: 24px; color: white; }
.dsr-station-name { font-family: var(--font-serif); font-size: 20px; margin-bottom: 4px; }
.dsr-station-meta { font-size: 11px; opacity: 0.7; margin-bottom: 14px; line-height: 1.6; }
.dsr-title-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 12px; }
.dsr-title { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; }
.dsr-date-badge { background: rgba(255,255,255,0.15); border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.dsr-section { padding: 18px 20px; border-bottom: 1px solid rgba(200,185,175,0.2); }
.dsr-section:last-child { border-bottom: none; }
.dsr-section-title { font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--light-text); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.dsr-machine-header { display: flex; align-items: center; justify-content: space-between; background: rgba(200,185,175,0.1); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.dsr-machine-name { font-weight: 800; color: var(--dark); font-size: 14px; }
.dsr-machine-incharge { font-size: 11px; color: var(--light-text); margin-top: 2px; }
.dsr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dsr-table th { background: rgba(200,185,175,0.15); padding: 7px 8px; text-align: center; font-size: 9px; font-weight: 800; color: var(--medium); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid rgba(200,185,175,0.2); }
.dsr-table th:first-child { text-align: left; }
.dsr-table td { padding: 9px 8px; text-align: center; border-bottom: 1px solid rgba(200,185,175,0.1); color: var(--dark); font-weight: 600; }
.dsr-table td:first-child { text-align: left; font-weight: 700; }
.dsr-table tr:last-child td { border-bottom: none; }
.dsr-fuel-tag { display: inline-block; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 8px; }
.dsr-fuel-tag.petrol { background: rgba(168,196,162,0.25); color: #5a8a54; }
.dsr-fuel-tag.diesel { background: rgba(138,174,200,0.25); color: #4a7a9e; }
.dsr-machine-total { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, rgba(184,207,224,0.15), rgba(212,160,144,0.1)); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.dsr-machine-total-label { font-size: 12px; font-weight: 700; color: var(--medium); }
.dsr-machine-total-val { font-family: var(--font-serif); font-size: 20px; color: var(--dusty-rose); }
.dsr-pay-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(200,185,175,0.15); font-size: 14px; }
.dsr-pay-row:last-child { border-bottom: none; }
.dsr-pay-label { font-weight: 600; color: var(--medium); display: flex; align-items: center; gap: 8px; }
.dsr-pay-val { font-weight: 800; color: var(--dark); }
.dsr-grand { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; background: linear-gradient(135deg, #3d3530, #6b5e56); padding: 18px 20px; }
.dsr-grand-item-label { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 5px; }
.dsr-grand-item-val { font-family: var(--font-serif); font-size: 20px; color: white; }
.dsr-mismatch { background: rgba(212,100,80,0.1); border: 1.5px solid rgba(212,100,80,0.3); border-radius: var(--radius-sm); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; margin: 0 20px 16px; }
/* Official DSR table */
.dsr-official-table-wrap { overflow-x: auto; padding: 0 20px; }
.dsr-official-table { width: 100%; border-collapse: collapse; font-size: 11px; min-width: 700px; }
.dsr-official-table th { background: rgba(200,185,175,0.15); padding: 7px 8px; text-align: center; font-size: 9px; font-weight: 800; color: var(--medium); text-transform: uppercase; border: 1px solid rgba(200,185,175,0.2); }
.dsr-official-table td { padding: 10px 8px; text-align: center; border: 1px solid rgba(200,185,175,0.15); font-weight: 600; color: var(--dark); }
.dsr-official-table .date-col { font-weight: 800; color: var(--dark); text-align: left; }
.dsr-official-table .total-col { font-weight: 800; background: rgba(184,207,224,0.1); }
.dsr-official-table .closing-col { font-weight: 800; background: rgba(168,196,162,0.1); }
.dsr-official-table .var-pos { color: #8a3a2a; font-weight: 800; }
.dsr-official-table .var-neg { color: #3a7434; font-weight: 800; }
.dsr-official-table .col-num { font-size: 8px; color: var(--light-text); background: rgba(200,185,175,0.08); }
.dsr-fuel-divider { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px 6px; font-size: 12px; font-weight: 800; color: var(--dark); border-bottom: 1px solid rgba(200,185,175,0.15); margin-top: 4px; }
.dip-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dip-fuel-card { background: rgba(255,255,255,0.6); border: 1.5px solid rgba(255,255,255,0.9); border-radius: var(--radius-sm); padding: 16px; }
.dip-fuel-title { font-size: 13px; font-weight: 800; color: var(--dark); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.dip-result { background: rgba(184,207,224,0.15); border: 1px solid rgba(184,207,224,0.3); border-radius: var(--radius-xs); padding: 10px 12px; margin-top: 8px; }
.dip-result-label { font-size: 9px; font-weight: 700; color: var(--light-text); text-transform: uppercase; letter-spacing: 0.8px; }
.dip-result-val { font-family: var(--font-serif); font-size: 18px; color: var(--dark); margin-top: 2px; }
/* DSR Full Screen Overlay */
.dsr-overlay { position: fixed; inset: 0; z-index: 400; background: var(--cream); overflow-y: auto; display: none; }
.dsr-overlay.open { display: block; }
.dsr-overlay-inner { max-width: 900px; margin: 0 auto; padding: 16px 16px 40px; }
.dsr-overlay-topbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: rgba(245,240,234,0.95); backdrop-filter: blur(8px); padding: 12px 0; z-index: 10; margin-bottom: 14px; }
@media print {
  .dsr-overlay-topbar, .back-btn, header, .no-print { display: none !important; }
  .dsr-overlay { position: static; overflow: visible; }
  .dsr-report { box-shadow: none; border-radius: 0; }
}


/* ── DESKTOP / WIDE SCREENS (phones and tablets are unchanged) ── */
@media (min-width: 900px) {
  /* Header lines up with the page content instead of the window edges */
  header { padding-left: max(28px, calc((100vw - 1040px) / 2 + 32px)); padding-right: max(28px, calc((100vw - 1040px) / 2 + 32px)); }
  main { max-width: 1040px; padding: 36px 32px 120px; }

  /* Bottom bar becomes a centred floating bar instead of stretching across the whole window */
  .bottom-tabbar {
    left: 50%; right: auto; width: min(680px, calc(100% - 48px)); transform: translateX(-50%);
    bottom: 14px; border: 1px solid var(--glass-border); border-radius: 22px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  }

  /* Home: same width as every other screen, cards use the space */
  .landing-cards { max-width: none; gap: 24px; }
  /* All the smaller home cards flow into ONE even grid (no ragged rows) */
  #homeExtraCards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  #homeExtraCards .hc-grid { display: contents; }
  #homeExtraCards .hc-section-label, #homeExtraCards > div[style*="max-width"] { grid-column: 1 / -1; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .hc-sec-card { padding: 20px 18px; }
  .hc-sec-title { font-size: 14.5px; }
  .hc-sec-desc { font-size: 11.5px; }

  /* Menu-style screens (lists of option cards) become a tidy 2-column grid */
  .screen.active:has(> .credit-hub-card),
  .screen.active:has(> div > .credit-hub-card) { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; align-content: start; }
  .screen.active:has(> .credit-hub-card) > *,
  .screen.active:has(> div > .credit-hub-card) > * { margin-bottom: 0; }
  .screen.active:has(> .credit-hub-card) > :not(.credit-hub-card),
  .screen.active:has(> div > .credit-hub-card) > :not(.credit-hub-card):not(div:has(> .credit-hub-card)) { grid-column: 1 / -1; }
  .screen.active > div:has(> .credit-hub-card):not([style*="none"]) { display: contents !important; }

  /* Forms and forms-in-panels use the extra width */
  .panel { padding: 32px; }
  .machine-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  #homeExtraCards { grid-template-columns: repeat(4, 1fr); }
}

/* Registration form gets a wider card on bigger screens so fields are not cramped */
@media (min-width: 600px) {
  .login-box:has(#registerForm.active) { max-width: 580px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  main { padding: 20px 16px; }
  header { padding: 14px 16px; }
  .landing-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nozzle-grid { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .machine-grid { grid-template-columns: repeat(2, 1fr); }
  .cash-denom { grid-template-columns: 60px 1fr 80px; }
  .login-box { padding: 28px 22px; }
}


/* ── Continue with Google ── */
.g-block { margin-bottom: 14px; }
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.g-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; font-size: 12px; color: var(--light-text); }
.g-or::before, .g-or::after { content: ""; flex: 1; height: 1px; background: rgba(120,100,80,0.18); }
.g-chip { display: flex; align-items: center; gap: 10px; background: rgba(122,166,122,0.12); border: 1.5px solid rgba(122,166,122,0.35); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; color: #2f6b2f; }
.g-chip-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #5f9a5f; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.g-chip-text { flex: 1; min-width: 0; font-weight: 600; }
.g-chip-text b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-chip-change { flex: none; background: none; border: 0; color: var(--dusty-rose); font-weight: 800; font-size: 12px; cursor: pointer; padding: 6px; }
