/* Swarna Finance – light "glass" design (inspired by iPadOS). Light theme only. */
:root {
  --bg: #f6f1ea;
  --label: #1d1d1f;
  --label-2: #5f5f66;
  --label-3: #8a8a91;
  --sep: rgba(60, 60, 67, .10);
  /* Glass surfaces */
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-blur: saturate(180%) blur(28px);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 0 0 .5px rgba(0, 0, 0, .04), 0 10px 40px rgba(120, 90, 40, .10);
  --fill: rgba(118, 118, 128, .10);
  --fill-2: rgba(255, 255, 255, .55);
  --gold: #a2783a;
  --gold-2: #c9a063;
  --gold-tint: rgba(162, 120, 58, .12);
  --primary: #1d1d1f;
  --on-primary: #ffffff;
  --green: #1f8a3b;
  --green-tint: rgba(52, 199, 89, .14);
  --blue: #0a66c2;
  --blue-tint: rgba(0, 122, 255, .11);
  --orange: #c45500;
  --orange-tint: rgba(255, 149, 0, .14);
  --red: #d70015;
  --red-tint: rgba(255, 59, 48, .11);
  --shadow-lg: 0 30px 80px rgba(80, 60, 20, .18);
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); color: var(--label); line-height: 1.47; font-size: 15px; letter-spacing: -.01em; -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Soft warm wallpaper that shows through the glass */
  background:
    radial-gradient(900px 650px at 8% -8%, rgba(246, 214, 160, .75), transparent 62%),
    radial-gradient(800px 600px at 105% 8%, rgba(208, 222, 255, .70), transparent 60%),
    radial-gradient(900px 700px at 70% 110%, rgba(250, 214, 226, .65), transparent 62%),
    radial-gradient(700px 500px at -10% 90%, rgba(214, 240, 228, .65), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
svg { flex-shrink: 0; }
button { font-family: inherit; }
::selection { background: var(--gold-tint); }

/* Shared glass surface */
.glass, .card, .site-header, .reg-header, .sidebar, .user, .modal-box, .toast, .perks div, .auth-card.card-like {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
}

/* ---------- Wordmark (text logo): one line, one font ---------- */
.wm { display: inline-flex; align-items: baseline; gap: .28em; font-family: var(--font); font-weight: 700; font-size: 1.12em; letter-spacing: -.03em; line-height: 1; white-space: nowrap; color: var(--gold); }
.wm em { font-style: normal; font-weight: 500; color: var(--label); }
.brand { display: inline-flex; align-items: center; font-size: 19px; }
.brand-stack { display: flex; justify-content: center; font-size: 26px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 22px; border-radius: 980px; font-size: 15px; font-weight: 500; cursor: pointer;
  background: var(--fill-2); color: var(--label); border: 1px solid var(--glass-edge); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 8px rgba(0, 0, 0, .04);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .15s var(--ease), opacity .2s, background .2s; white-space: nowrap; }
.btn:hover { background: rgba(255, 255, 255, .8); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 17px; height: 17px; }
.btn-forest, .btn-primary { background: rgba(29, 29, 31, .92); color: #fff; border-color: rgba(255, 255, 255, .2); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.btn-forest:hover, .btn-primary:hover { background: #1d1d1f; }
.btn-gold { background: linear-gradient(180deg, #d2ab6c, #a2783a); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: 0 8px 22px rgba(162, 120, 58, .30); }
.btn-gold:hover { background: linear-gradient(180deg, #d8b377, #a87e3f); }
.btn-outline { background: var(--fill-2); }
.btn-danger { background: var(--red-tint); color: var(--red); border-color: rgba(255, 59, 48, .15); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-block { width: 100%; padding: 14px 22px; font-size: 16px; }
.link, .auth-link { color: var(--gold); font-size: 14px; font-weight: 500; cursor: pointer; background: none; border: 0; }
.link:hover, .auth-link:hover { text-decoration: underline; }

/* ---------- Form controls ---------- */
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--r-sm);
  font: 16px var(--font); background: rgba(255, 255, 255, .62); color: var(--label);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03) inset; transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: var(--label-3); }
input:focus, select:focus, textarea:focus { outline: none; background: rgba(255, 255, 255, .9); border-color: var(--gold-2); box-shadow: 0 0 0 4px var(--gold-tint); }
input[readonly] { color: var(--label-2); }
.lbl { display: block; font-size: 13px; color: var(--label-2); margin: 0 0 6px 4px; }
.field { margin-bottom: 14px; }
.icon-input { position: relative; }
.icon-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--label-3); pointer-events: none; }
.icon-input > svg:has(+ textarea) { top: 22px; }
.icon-input > input, .icon-input > textarea { padding-left: 42px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-error { color: var(--red); font-size: 13px; min-height: 20px; margin: 4px 0 8px 4px; }
.form-ok { color: var(--green); }
.muted { color: var(--label-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; margin: -4px 0 14px; }

/* ---------- Cards, pills, tables ---------- */
.card { border-radius: var(--r-lg); padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3, .sec-title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.sec-title { margin: 6px 0 12px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-Completed, .pill-Approved { background: var(--green-tint); color: var(--green); }
.pill-Active { background: var(--blue-tint); color: var(--blue); }
.pill-Pending { background: var(--orange-tint); color: var(--orange); }
.pill-Rejected, .pill-Unsynced { background: var(--red-tint); color: var(--red); }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 12px; padding: 8px; color: var(--label-3); white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
td { padding: 13px 8px; border-top: 1px solid var(--sep); font-size: 14px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .45); }
.empty { text-align: center; color: var(--label-2); padding: 34px 10px; }
.icon-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, .6); display: inline-grid; place-items: center; cursor: pointer; color: var(--label); margin-right: 4px; transition: transform .15s; }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 15px; height: 15px; pointer-events: none; }
.icon-btn.del { color: var(--red); background: var(--red-tint); }
.icon-btn.ok { color: var(--green); background: var(--green-tint); }

/* Segmented control (used for all tabs) */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(118, 118, 128, .12); margin-bottom: 20px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { background: none; border: 0; padding: 7px 16px; font-size: 13px; font-weight: 500; color: var(--label); cursor: pointer; border-radius: 9px; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.tabs button.on { background: rgba(255, 255, 255, .95); box-shadow: 0 3px 8px rgba(0, 0, 0, .10), 0 1px 1px rgba(0, 0, 0, .04); font-weight: 600; }

/* ---------- Toast & sheet ---------- */
.toast { position: fixed; top: 18px; left: 50%; transform: translate(-50%, -20px); background: var(--glass-strong); color: var(--label); padding: 12px 20px; border-radius: 980px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; z-index: 60; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; background: rgba(60, 45, 20, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; animation: fade .2s; }
.modal-box { background: var(--glass-strong); border-radius: var(--r-xl); width: 100%; max-width: 720px; max-height: 92vh; overflow: auto; padding: 26px; box-shadow: var(--glass-shadow), var(--shadow-lg); animation: rise .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(24px) scale(.98); opacity: 0; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-head h3 { font-size: 24px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--sep); border-radius: var(--r); overflow: hidden; margin-bottom: 16px; border: 1px solid var(--glass-edge); }
.details div { font-size: 15px; padding: 11px 14px; background: rgba(255, 255, 255, .7); }
.details b { display: block; font-size: 12px; color: var(--label-3); font-weight: 500; margin-bottom: 2px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery figure { border-radius: var(--r); overflow: hidden; background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-edge); }
.gallery img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { font-size: 12px; padding: 8px 12px; color: var(--label-2); }
.camera video { width: 100%; border-radius: var(--r); background: #000; display: block; }
.note-box { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: rgba(255, 248, 235, .75); border: 1px solid rgba(201, 160, 99, .25); font-size: 14px; margin-bottom: 18px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.note-box svg { width: 20px; height: 20px; color: var(--gold); margin-top: 1px; }
.note-box.warn { background: rgba(255, 240, 238, .8); border-color: rgba(255, 59, 48, .18); }
.note-box.warn svg { color: var(--red); }
.note-box.ok svg { color: var(--green); }

/* Photo of the day: pages set --photo from JavaScript */
[data-daily-photo] { background-color: #eadcc4; background-image: linear-gradient(135deg, #f3e7d2, #dcc39a); background-size: cover; background-position: center; transition: background-image .6s; }

/* ---------- Landing ---------- */
.site-header { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px auto 0; max-width: 1100px; width: calc(100% - 24px); padding: 10px 12px 10px 22px; border-radius: 980px; }
.site-header nav { display: flex; gap: 28px; font-size: 13px; color: var(--label-2); }
.site-header nav a:hover { color: var(--label); }
.hdr-actions { display: flex; gap: 8px; }
.hero { padding: 72px 22px 0; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .02em; padding: 6px 14px; border-radius: 980px; background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-edge); }
.hero h1 { font-size: clamp(44px, 8vw, 88px); letter-spacing: -.045em; line-height: 1.02; margin: 18px auto 18px; max-width: 900px; }
.hero h1 span { background: linear-gradient(120deg, #c9a063, #8a6328 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(18px, 2.2vw, 22px); color: var(--label-2); max-width: 600px; margin: 0 auto 30px; line-height: 1.4; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { padding: 13px 26px; font-size: 16px; }
.hero-img { max-width: 1100px; height: clamp(300px, 52vw, 580px); margin: 56px auto 0; border-radius: var(--r-xl); background-image: var(--photo, none);
  border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg); }
.perks { max-width: 1100px; margin: -48px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; position: relative; }
.perks div { border-radius: var(--r-lg); padding: 20px; display: flex; align-items: center; gap: 14px; text-align: left; font-weight: 600; background: var(--glass-strong); }
.perks svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--gold-tint); color: var(--gold); }
.perks small { display: block; font-weight: 400; color: var(--label-2); font-size: 13px; }
.section { padding: 110px 22px; }
.section h2, .band h2 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -.04em; margin: 16px 0 16px; }
.lead { max-width: 620px; margin: 0 auto; color: var(--label-2); font-size: 19px; line-height: 1.5; }
.steps { max-width: 1100px; margin: 50px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.steps .card { padding: 32px; border-radius: var(--r-xl); }
.steps .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #d2ab6c, #a2783a); color: #fff; font-weight: 600; font-size: 15px; }
.steps h3 { font-size: 24px; margin: 18px 0 10px; }
.steps p { color: var(--label-2); line-height: 1.55; }
.band { margin: 0 auto; padding: 90px 22px; text-align: center; border-radius: var(--r-xl); max-width: 1100px; width: calc(100% - 32px);
  background: linear-gradient(135deg, rgba(255, 246, 230, .8), rgba(255, 255, 255, .55)); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding: 40px max(22px, calc((100vw - 1100px) / 2)); color: var(--label-2); font-size: 12px; }
.site-footer .brand { font-size: 15px; }
.site-footer a:hover { color: var(--label); }

/* ---------- Auth (login / register / reset) ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding: 16px; gap: 16px; }
.auth-img { background-image: var(--photo, none); border-radius: var(--r-xl); position: relative; overflow: hidden; border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg); }
.auth-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.auth-img .caption { position: absolute; left: 22px; bottom: 22px; right: 22px; z-index: 1; padding: 18px 22px; border-radius: var(--r-lg);
  font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; color: #fff;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 30px 8px; }
.auth-card { width: 100%; max-width: 420px; background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow); border-radius: var(--r-xl); padding: 38px 32px; }
.auth-card .brand-stack { margin-bottom: 26px; }
.auth-card h1 { font-size: 32px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--label-2); margin: 8px 0 26px; font-size: 16px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--label-2); }
.auth-foot a { color: var(--gold); font-weight: 500; }

.reg-header { position: sticky; top: 12px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px auto 0; width: calc(100% - 24px); max-width: 1240px;
  padding: 10px 22px; border-radius: 980px; font-size: 13px; color: var(--label-2); }
.reg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; min-height: calc(100vh - 80px); }
.reg-img { border-radius: var(--r-xl); background-image: linear-gradient(0deg, rgba(0, 0, 0, .58) 0, rgba(0, 0, 0, .12) 50%, transparent 70%), var(--photo, none);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; color: #fff; border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lg); }
.reg-img h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.04em; margin-bottom: 12px; }
.reg-img p { max-width: 400px; color: rgba(255, 255, 255, .88); font-size: 17px; margin-bottom: 20px; }
.checks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 7px; padding: 7px 14px 7px 8px; border-radius: 980px; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; font-weight: 500; }
.checks svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #fff; color: var(--gold); }
.reg-form { display: flex; align-items: center; justify-content: center; padding: 30px 8px; }
.reg-form .auth-card { max-width: 480px; }
.reg-form h2 { font-size: 32px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.success-icon svg { width: 30px; height: 30px; }

/* ---------- App shell (dashboard / admin) ---------- */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
/* Floating glass sidebar, like iPadOS */
.sidebar { position: sticky; top: 12px; height: calc(100vh - 24px); margin: 12px 0 12px 12px; padding: 22px 12px; border-radius: var(--r-xl);
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar .brand { padding: 4px 12px 24px; font-size: 18px; }
.nav-btn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: none; border: 1px solid transparent; color: var(--label); font-size: 15px; cursor: pointer; text-align: left; width: 100%; transition: background .15s; }
.nav-btn svg { width: 20px; height: 20px; color: var(--gold); }
.nav-btn:hover { background: rgba(255, 255, 255, .5); }
.nav-btn.on { background: rgba(255, 255, 255, .85); border-color: var(--glass-edge); box-shadow: 0 4px 14px rgba(120, 90, 40, .10); font-weight: 600; }
.nav-btn .short { display: none; }
.nav-spacer { flex: 1; }
#signOut svg { color: var(--label-3); }
.main { min-width: 0; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 40px 36px 8px; }
.topbar h2 { font-size: 34px; letter-spacing: -.03em; }
.topbar p { color: var(--label-2); font-size: 15px; margin-top: 4px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.top-right > svg { width: 22px; height: 22px; color: var(--label-2); }
.user { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 980px; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #d9b878, #a2783a); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; box-shadow: 0 2px 6px rgba(162, 120, 58, .3); }
.user b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; }
.user small { color: var(--label-2); font-size: 12px; }
.content { padding: 22px 36px 48px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 14px; }
.kpi .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-tint); color: var(--gold); display: grid; place-items: center; }
.kpi .ic svg { width: 20px; height: 20px; }
.kpi.green .ic { background: var(--green-tint); color: var(--green); }
.kpi.blue .ic { background: var(--blue-tint); color: var(--blue); }
.kpi.orange .ic { background: var(--orange-tint); color: var(--orange); }
.kpi b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; display: block; line-height: 1.1; }
.kpi small { color: var(--label-2); font-size: 13px; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.dash-grid > *, .nf-grid > *, .kpis > * { min-width: 0; }
.chart { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.chart .bar { flex: 1; background: rgba(162, 120, 58, .16); border-radius: 8px; min-height: 4px; transition: height .6s var(--ease); }
.chart .bar:last-child { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.chart-labels { display: flex; gap: 10px; font-size: 12px; color: var(--label-3); padding-top: 8px; }
.chart-labels span { flex: 1; text-align: center; }
.chart-total { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sep); }
.chart-total b { font-size: 30px; letter-spacing: -.03em; display: block; }
.chart-total span { font-size: 13px; }

.nf-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; }
.photo-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.slot { aspect-ratio: 1; border: 1.5px dashed rgba(162, 120, 58, .35); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: rgba(255, 255, 255, .45); font-size: 14px; font-weight: 500; position: relative; overflow: hidden; text-align: center; padding: 10px; transition: border-color .2s, transform .15s, background .2s; }
.slot:hover { border-color: var(--gold); background: rgba(255, 255, 255, .7); }
.slot:active { transform: scale(.98); }
.slot svg { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); }
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .clear { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; display: grid; place-items: center; }
.slot .clear svg { width: 14px; height: 14px; padding: 0; background: none; color: #fff; }
.slot .req { font-size: 12px; font-weight: 400; color: var(--label-3); }
.with-btn { position: relative; }
.with-btn input { padding-right: 44px; }
.with-btn button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--gold); padding: 4px; display: grid; }
.with-btn button svg { width: 18px; height: 18px; }
.estimate { background: linear-gradient(135deg, rgba(255, 244, 222, .9), rgba(255, 255, 255, .55)); border: 1px solid var(--glass-edge); border-radius: var(--r-lg); padding: 18px 20px; margin-top: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset; }
.estimate small { color: var(--label-2); font-size: 13px; }
.estimate b { display: block; font-size: 38px; letter-spacing: -.035em; line-height: 1.15; margin: 2px 0; }
.estimate span { font-size: 13px; color: var(--label-2); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar .tabs { margin-bottom: 0; }
.search { flex: 1; max-width: 380px; }
.sync-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--label-3); }
.sync-tag svg { width: 14px; height: 14px; }
.sync-tag.ok { color: var(--green); }

/* Google setup steps */
.gsetup { margin-top: 6px; border-top: 1px solid var(--sep); padding-top: 14px; }
.gsetup summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--gold); list-style: none; padding: 4px 0 10px; }
.gsetup summary::-webkit-details-marker { display: none; }
.gsetup summary::before { content: '▸'; display: inline-block; margin-right: 8px; transition: transform .2s; }
.gsetup[open] summary::before { transform: rotate(90deg); }
.gsteps { list-style: none; display: grid; gap: 12px; }
.gsteps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, .5); border: 1px solid var(--glass-edge); }
.gsteps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(180deg, #d2ab6c, #a2783a); }
.gsteps b { font-size: 15px; }
.gsteps p { color: var(--label-2); font-size: 14px; margin-top: 4px; line-height: 1.5; }
a.btn { text-decoration: none; }

/* "Who's working?" lock screen and PIN pad */
#lock { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(246, 241, 234, .55); -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); overflow-y: auto; }
.lock-card { position: relative; width: 100%; max-width: 520px; border-radius: var(--r-xl); padding: 34px 28px; text-align: center; background: var(--glass-strong); }
.lock-card > .pin-back { left: 22px; top: 22px; }
.lock-card .brand-stack { margin-bottom: 20px; }
.lock-card h1 { font-size: 30px; }
.lock-card .sub { color: var(--label-2); margin: 6px 0 22px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-lg); cursor: pointer; font: 500 14px var(--font); color: var(--label);
  background: rgba(255, 255, 255, .6); border: 1px solid var(--glass-edge); transition: transform .15s, background .2s; }
.person:hover { background: rgba(255, 255, 255, .9); }
.person:active { transform: scale(.96); }
.person .avatar { width: 54px; height: 54px; font-size: 22px; }
.person .avatar.owner { background: linear-gradient(145deg, #3a3a3c, #1d1d1f); }
.pin-pad { text-align: center; position: relative; }
.pin-pad h2 { font-size: 24px; margin-top: 6px; }
.pin-pad .muted { margin: 6px 0 18px; font-size: 14px; }
.pin-back { position: absolute; left: 0; top: -6px; display: inline-flex; align-items: center; gap: 4px; }
.pin-back svg { width: 16px; height: 16px; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 6px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--gold); transition: background .15s; }
.pin-dots i.on { background: var(--gold); }
.pin-dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-err { min-height: 20px; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px 22px; justify-content: center; margin-top: 8px; }
.pin-keys button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--glass-edge); background: rgba(255, 255, 255, .7); font: 500 28px var(--font); color: var(--label); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: background .12s, transform .1s; }
.pin-keys button:active { background: rgba(162, 120, 58, .18); transform: scale(.95); }
.pin-keys button[data-k="del"] { background: none; border: 0; box-shadow: none; font-size: 24px; }

/* Print area: only the receipt shows when printing */
#printArea { display: none; }
@media print {
  body.printing > *:not(#printArea) { display: none !important; }
  body.printing { background: #fff; }
  body.printing #printArea { display: block; }
}
.receipt { max-width: 640px; margin: 0 auto; font-size: 13px; color: #000; font-family: var(--font); }
.receipt .r-head { text-align: center; border-bottom: 1.5px solid #000; padding-bottom: 10px; margin-bottom: 12px; }
.receipt .r-head h2 { font-size: 22px; }
.receipt table td, .receipt table th { border: 1px solid #999; padding: 6px 8px; color: #000; text-transform: none; letter-spacing: 0; font-size: 12px; }
.receipt .r-photos { display: flex; gap: 10px; margin: 12px 0; }
.receipt .r-photos img { width: 150px; height: 150px; object-fit: cover; border: 1px solid #999; border-radius: 6px; }
.receipt .r-sign { display: flex; justify-content: space-between; margin-top: 50px; }
.receipt .r-sign div { border-top: 1px solid #000; padding-top: 4px; width: 40%; text-align: center; }
.receipt .r-terms { font-size: 11px; margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-grid, .nf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  /* Floating glass tab bar, like iPhone */
  .app { grid-template-columns: 1fr; padding-bottom: 96px; }
  .sidebar { position: fixed; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); left: 10px; right: 10px; height: auto; margin: 0; flex-direction: row; gap: 0;
    padding: 6px; border-radius: 28px; z-index: 30; overflow-x: auto; justify-content: space-around; background: var(--glass-strong); }
  .sidebar .brand, .nav-spacer, .sidebar #signOut { display: none; }
  .nav-btn { flex: 1; flex-direction: column; gap: 2px; font-size: 10px; padding: 6px 1px; min-width: 40px; align-items: center; text-align: center; border-radius: 22px; color: var(--label-3); white-space: nowrap; }
  .nav-btn svg { color: inherit; width: 23px; height: 23px; }
  .nav-btn.on { color: var(--gold); background: rgba(255, 255, 255, .85); box-shadow: none; }
  .nav-btn .full { display: none; }
  .nav-btn .short { display: inline; }
  .topbar { padding: 26px 16px 4px; align-items: center; }
  .topbar h2 { font-size: 28px; }
  .content { padding: 14px 16px 30px; }
  .top-right > svg, .user div { display: none; }
  .user { padding: 4px; }
  .site-header nav { display: none; }
  .site-header { padding-left: 18px; }
  .steps, .perks { grid-template-columns: 1fr; }
  .perks { margin-top: 16px; padding: 0; }
  .auth, .reg { grid-template-columns: 1fr; }
  .auth-img { min-height: 240px; }
  .reg-img { min-height: 380px; padding: 30px; }
  .section { padding: 80px 16px; }
  .band { padding: 70px 20px; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94vh; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
  .kpis { gap: 10px; }
  .kpi b { font-size: 22px; }
  .card { padding: 18px; border-radius: 20px; }
  .grid2, .details, .gallery { grid-template-columns: 1fr; }
  .hero { padding-top: 50px; }
  .hero-img { margin-top: 40px; border-radius: 24px; }
  .site-header .brand { font-size: 15px; }
  .hdr-actions .btn { padding: 8px 14px; font-size: 13px; }
  .auth-card { padding: 30px 22px; }
  .auth-card h1 { font-size: 30px; }
  .brand-stack { font-size: 22px; }
}
