/* ==========================================================================
   MY SARTHI - app UI
   Palette, type and component language follow site_ui/ (warm saffron + cream).
   Pure CSS, mobile-first. The app is a centred "phone column" on desktop.
   ========================================================================== */

:root {
    --primary: #E66A1F;
    --primary-hover: #D45A12;
    --primary-light: #FFF2EC;
    --gold: #D98829;
    --gold-light: #FFF8EE;

    --bg-desktop: #EFECE6;
    --bg-app: #FAF8F5;
    --card: #FFFFFF;

    --text: #2C221E;
    --text-subtle: #756862;
    --text-light: #9C9089;

    --peach: #FFF0E8;   --peach-icon: #E86529;
    --green: #ECF7F2;   --green-icon: #2C9E6B;
    --lavender: #F4EFFB; --lavender-icon: #7E57C2;
    --blue: #EAF3FD;    --blue-icon: #2F7CC4;

    --border: #ECE4DA;
    --border-light: #F4EEE7;
    --online: #22C55E;
    --star: #F59E0B;
    --danger: #DC3F3F;
    --danger-bg: #FDECEC;

    --r-xs: 6px; --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 9999px;

    --shadow-sm: 0 2px 6px rgba(44, 34, 30, .04);
    --shadow-md: 0 4px 14px rgba(44, 34, 30, .07);
    --shadow-lg: 0 10px 28px rgba(44, 34, 30, .14);
    --shadow-nav: 0 -3px 16px rgba(44, 34, 30, .07);

    --font-head: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --col: 480px;          /* app column width */
    --gutter: 18px;        /* single side spacing used by every screen */
    --nav-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-desktop);
    color: var(--text);
    line-height: 1.45;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
.hidden { display: none !important; }

/* ---------- page progress bar (SPA navigation) ---------- */
#navProgress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    transition: width .25s ease, opacity .3s ease; opacity: 0;
}

/* ==========================================================================
   APP SHELL
   ========================================================================== */
.app-shell {
    width: 100%; max-width: var(--col); min-height: 100vh; min-height: 100dvh;
    margin: 0 auto; background: var(--bg-app); position: relative;
    box-shadow: 0 0 0 1px rgba(44, 34, 30, .04), 0 20px 50px -20px rgba(44, 34, 30, .25);
}
.app-shell.wide { max-width: 1180px; box-shadow: none; background: transparent; --gutter: 24px; }
.app-shell.auth { background: var(--bg-app); }

#view { min-height: calc(100dvh - 120px); padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); animation: viewIn .28s ease-out; }
.app-shell.wide #view, .app-shell.auth #view { padding-bottom: 40px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
#view.leaving { opacity: .5; transition: opacity .12s; }

.app-shell.no-chrome .app-header, .app-shell.no-chrome .bottom-nav, .app-shell.no-chrome .topnav { display: none; }
.app-shell.no-chrome #view { padding-bottom: 0; min-height: 100dvh; }

/* Header */
.app-header {
    position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between;
    padding: 10px var(--gutter); background: rgba(250, 248, 245, .92); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}
.app-shell.wide .app-header { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand b { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; line-height: 1; display: block; }
.brand small { font-size: .65rem; color: var(--text-subtle); font-weight: 500; display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; position: relative;
    transition: all .2s ease;
}
.icon-btn:hover { background: var(--peach); border-color: var(--primary); color: var(--primary); }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; }
.wallet-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-full);
    background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: .8rem; box-shadow: var(--shadow-sm);
}
.wallet-chip svg { color: var(--primary); width: 16px; height: 16px; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold), var(--primary)); color: #fff; font-family: var(--font-head);
    font-weight: 700; font-size: .8rem; flex-shrink: 0; object-fit: cover;
}

/* Top navigation for wide (admin) shell */
.topnav { display: flex; gap: 4px; overflow-x: auto; padding: 8px var(--gutter); background: #fff; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-full); font-weight: 600; font-size: .85rem; color: var(--text-subtle); white-space: nowrap; }
.topnav a:hover { background: var(--bg-app); }
.topnav a.active { background: var(--primary-light); color: var(--primary); }
.topnav .badge-count { background: var(--primary); color: #fff; border-radius: var(--r-full); font-size: .65rem; padding: 1px 6px; }

/* Bottom navigation */
.bottom-nav {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--col); z-index: 95;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding: 0 8px env(safe-area-inset-bottom);
    background: #fff; border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg);
    box-shadow: var(--shadow-nav); border-top: 1px solid var(--border-light);
    display: flex; align-items: center; justify-content: space-around;
}
.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px; color: var(--text-light);
    border-radius: var(--r-sm); font-size: .66rem; font-weight: 600; min-width: 62px; transition: color .2s, transform .2s;
}
.nav-item svg { width: 21px; height: 21px; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.nav-item.active { color: var(--primary); font-weight: 700; }
.nav-item.active svg { transform: translateY(-2px) scale(1.12); }
.nav-item:active { transform: scale(.94); }
.nav-center { margin-top: -26px; position: relative; z-index: 2; }
.nav-center .inner {
    width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    /* clean white disc with a thin brand ring: the logo keeps its own colours instead of fighting an orange fill */
    background: #fff; border: 2px solid rgba(230, 106, 31, .55);
    box-shadow: 0 0 0 5px #fff, 0 8px 20px rgba(44, 34, 30, .16); transition: transform .2s, box-shadow .2s;
}
.nav-center:hover .inner { box-shadow: 0 0 0 5px #fff, 0 10px 24px rgba(230, 106, 31, .28); }
.nav-center:active .inner { transform: scale(.93); }
.nav-center img { width: 36px; height: 36px; object-fit: contain; }

/* ==========================================================================
   SPLASH / APP LOADING
   ========================================================================== */
.splash {
    position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--col);
    z-index: 5000; background: #120d0b; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
    transition: transform .6s cubic-bezier(.77, 0, .175, 1), opacity .6s ease;
}
.splash.dismissed { transform: translate(-50%, -100%); opacity: 0; pointer-events: none; }
.splash video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #3b2417, #120d0b 70%); }
.splash-fallback img { width: 110px; animation: pulseLogo 2s ease-in-out infinite; }
@keyframes pulseLogo { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(230, 106, 31, 0)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(230, 106, 31, .6)); } }
.splash-content {
    position: relative; z-index: 2; padding: 34px 24px calc(34px + env(safe-area-inset-bottom)); text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(15, 10, 8, .94)); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.splash-title { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; letter-spacing: .06em; }
.splash-tag { font-size: .85rem; color: rgba(255, 255, 255, .85); }
.splash-btn {
    border: none; cursor: pointer; padding: 11px 26px; border-radius: var(--r-full); color: #fff; font-weight: 700; font-size: .9rem;
    background: linear-gradient(135deg, var(--gold), var(--primary)); box-shadow: 0 4px 20px rgba(230, 106, 31, .5);
    display: inline-flex; align-items: center; gap: 8px; transition: transform .2s;
}
.splash-btn:hover { transform: scale(1.04); }
.splash-progress { width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.splash-progress i { display: block; height: 100%; width: 0; background: var(--primary); animation: splashBar 6s linear forwards; }
@keyframes splashBar { to { width: 100%; } }

/* ==========================================================================
   GENERIC BLOCKS
   ========================================================================== */
/* Every screen sits inside #pageBody, which owns the left/right gutter.
   Blocks inside it only manage vertical spacing, so nothing can touch the screen edge. */
#pageBody { padding: 0 var(--gutter); }
.app-shell.no-chrome #pageBody { padding: 0; }
.page { padding: 8px 0 16px; }
.app-shell.wide .page { padding: 20px 0 24px; }
.page-head { padding: 14px 0 6px; }
.app-shell.wide .page-head { padding: 24px 0 0; }
.page-head h2 { font-size: 1.35rem; font-weight: 800; }
.page-head p { color: var(--text-subtle); font-size: .82rem; margin-top: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--text-subtle); font-size: .8rem; font-weight: 600; padding: 10px 0 0; }
.section { padding: 14px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.section-head h3 { font-size: 1.05rem; font-weight: 800; }
.section-head p { font-size: .74rem; color: var(--text-subtle); margin-top: 1px; }
.link-more { color: var(--primary); font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.link-more svg { width: 14px; height: 14px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.card-pad { padding: 14px; }
.card + .card { margin-top: 10px; }
.muted { color: var(--text-subtle); }
.tiny { font-size: .72rem; }
.small { font-size: .82rem; }
.bold { font-weight: 700; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { color: var(--primary); font-weight: 800; font-family: var(--font-head); }
.divider { height: 1px; background: var(--border-light); margin: 12px 0; }

.empty { text-align: center; padding: 34px 20px; color: var(--text-subtle); }
.empty svg { width: 38px; height: 38px; color: var(--text-light); margin: 0 auto 8px; }
.empty p { font-size: .88rem; }

/* Buttons */
.btn {
    border: 1px solid transparent; cursor: pointer; border-radius: var(--r-full); padding: 11px 18px; font-weight: 700; font-size: .88rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all .2s ease; user-select: none; line-height: 1.1;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn.loading { opacity: .6; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(230, 106, 31, .3); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--primary-light); color: var(--primary); }
.btn-green { background: var(--green-icon); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-bg); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: .76rem; }
.btn-lg { padding: 14px 22px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--text-subtle); }
.btn svg { width: 17px; height: 17px; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.field { margin-bottom: 14px; }
.label { display: block; font-size: .78rem; font-weight: 700; color: var(--text-subtle); margin-bottom: 6px; }
.input, select.input, textarea.input {
    width: 100%; padding: 12px 14px; font-size: .92rem; font-family: inherit; color: var(--text); background: #fff;
    border: 1px solid var(--border); border-radius: var(--r-sm); outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230, 106, 31, .14); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.5; }
.help { font-size: .72rem; color: var(--text-light); margin-top: 4px; }
.phone-input { display: flex; align-items: center; border: 1px solid var(--border); background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.phone-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230, 106, 31, .14); }
.phone-input span { padding: 0 12px; font-weight: 700; color: var(--text-subtle); border-right: 1px solid var(--border); align-self: stretch; display: flex; align-items: center; background: var(--bg-app); }
.phone-input input { border: none; outline: none; padding: 13px 12px; font-size: 1rem; width: 100%; letter-spacing: .04em; background: transparent; }
.otp-boxes { display: flex; gap: 8px; justify-content: space-between; }
.otp-boxes input { width: 100%; max-width: 54px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 700; font-family: var(--font-head); border: 1.5px solid var(--border); border-radius: var(--r-sm); outline: none; background: #fff; }
.otp-boxes input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(230, 106, 31, .14); }
.range { width: 100%; accent-color: var(--primary); }

/* Chips & badges */
.chip {
    border: 1px solid var(--border); background: #fff; color: var(--text-subtle); padding: 7px 13px; border-radius: var(--r-full);
    font-size: .76rem; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; transition: all .2s;
}
.chip.active, .chip:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.scroll-x { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); scroll-padding-left: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-full); font-size: .68rem; font-weight: 700; background: var(--bg-app); color: var(--text-subtle); border: 1px solid var(--border-light); }
.badge.green { background: var(--green); color: var(--green-icon); border-color: transparent; }
.badge.orange { background: var(--peach); color: var(--peach-icon); border-color: transparent; }
.badge.red { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.badge.purple { background: var(--lavender); color: var(--lavender-icon); border-color: transparent; }
.badge.blue { background: var(--blue); color: var(--blue-icon); border-color: transparent; }
.badge svg { width: 12px; height: 12px; }

.segmented { display: flex; background: var(--bg-desktop); padding: 4px; border-radius: var(--r-full); gap: 2px; }
.segmented a, .segmented button { flex: 1; text-align: center; padding: 8px 10px; font-size: .78rem; font-weight: 700; color: var(--text-subtle); border-radius: var(--r-full); border: none; background: transparent; cursor: pointer; }
.segmented .active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-shell.wide .stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); }
.stat .k { font-size: .72rem; color: var(--text-subtle); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .k svg { width: 15px; height: 15px; color: var(--primary); }
.stat .v { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; margin-top: 4px; }
.stat.hl { background: linear-gradient(135deg, #FFF3E8, #FFE4D0); border-color: #FBD3B6; }

/* List rows */
.list { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border-light); transition: background .15s; }
.list-item:last-child { border-bottom: none; }
a.list-item:hover, .list-item.click:hover { background: var(--bg-app); cursor: pointer; }
.list-item .ico { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); flex-shrink: 0; }
.list-item .ico.green { background: var(--green); color: var(--green-icon); }
.list-item .ico.red { background: var(--danger-bg); color: var(--danger); }
.list-item .ico.purple { background: var(--lavender); color: var(--lavender-icon); }
.list-item .t { font-weight: 700; font-size: .88rem; }
.list-item .s { font-size: .74rem; color: var(--text-subtle); }
.amt-plus { color: var(--green-icon); font-weight: 800; }
.amt-minus { color: var(--danger); font-weight: 800; }

/* ==========================================================================
   AUTH
   ========================================================================== */
.auth-top { text-align: center; padding: 38px 0 18px; }
.auth-top img { width: 76px; margin: 0 auto 10px; }
.auth-top h1 { font-size: 1.7rem; font-weight: 800; }
.auth-top p { color: var(--text-subtle); font-size: .88rem; margin-top: 4px; }
.auth-card { margin: 0; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); }
.auth-links { text-align: center; margin: 20px 0 8px; font-size: .82rem; color: var(--text-subtle); display: flex; flex-direction: column; gap: 8px; }
.auth-links a { color: var(--primary); font-weight: 700; }
.wa-note { display: flex; gap: 8px; align-items: center; background: var(--green); color: var(--green-icon); padding: 9px 12px; border-radius: var(--r-sm); font-size: .76rem; font-weight: 600; margin-bottom: 14px; }
.dev-otp { background: var(--gold-light); border: 1px dashed var(--gold); color: var(--gold); padding: 8px 10px; border-radius: var(--r-sm); font-size: .8rem; font-weight: 700; margin-bottom: 12px; text-align: center; }

/* ==========================================================================
   HOME
   ========================================================================== */
.mood-card { background: linear-gradient(135deg, #fff, #FFFDF9); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); }
.mood-card .hi { font-size: .68rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.mood-card h3 { font-size: 1rem; font-weight: 800; margin-top: 2px; }
.mood-opts { display: flex; gap: 7px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.mood-opts::-webkit-scrollbar { display: none; }
.mood-chip { border: 1px solid var(--border); background: var(--bg-app); padding: 7px 12px; border-radius: var(--r-full); font-size: .78rem; font-weight: 600; color: var(--text-subtle); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; flex-shrink: 0; transition: all .2s; }
.mood-chip .e { font-size: 1rem; }
.mood-chip.active, .mood-chip:hover { background: var(--peach); border-color: var(--primary); color: var(--primary); font-weight: 700; transform: translateY(-1px); }
.mood-resp { margin-top: 10px; padding: 9px 11px; background: var(--green); color: var(--green-icon); border-radius: var(--r-sm); font-size: .78rem; font-weight: 600; display: flex; gap: 7px; align-items: flex-start; }
.streak { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--peach-icon); background: var(--peach); padding: 3px 9px; border-radius: var(--r-full); }

.cats { display: flex; gap: 10px; overflow-x: auto; padding: 4px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.cat .ic { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-subtle); box-shadow: var(--shadow-sm); transition: all .2s; }
.cat .ic svg { width: 20px; height: 20px; }
.cat span { font-size: .68rem; font-weight: 600; color: var(--text-subtle); text-align: center; line-height: 1.15; }
.cat:hover .ic, .cat.active .ic { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(230, 106, 31, .3); }

.hero { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; height: 190px; box-shadow: var(--shadow-md); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-pill { align-self: flex-start; font-size: .6rem; font-weight: 800; letter-spacing: .07em; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); padding: 3px 8px; border-radius: var(--r-xs); margin-bottom: 6px; color: var(--gold-light); }
.hero h2 { font-size: 1.3rem; font-weight: 800; }
.hero h2 em { font-style: normal; color: #FFC078; }
.hero p { font-size: .76rem; opacity: .92; margin: 3px 0 10px; }
.hero .btn { align-self: flex-start; padding: 8px 16px; font-size: .78rem; }
.dots { display: flex; justify-content: center; gap: 5px; margin-top: 9px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); transition: all .3s; cursor: pointer; }
.dots i.active { width: 16px; border-radius: var(--r-full); background: var(--primary); }

.guru-card { width: 138px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 10px; text-align: center; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: block; }
.guru-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.guru-card img.pic { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.pic-wrap { position: relative; display: inline-block; }
.pic-wrap .online-dot { position: absolute; right: 2px; bottom: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--online); border: 2px solid #fff; }
.pic-wrap .online-dot.off { background: var(--text-light); }
.guru-card .n { font-family: var(--font-head); font-weight: 700; font-size: .84rem; }
.guru-card .r { font-size: .68rem; color: var(--text-subtle); height: 27px; line-height: 1.25; overflow: hidden; margin-top: 2px; }
.guru-card .m { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border-light); font-size: .72rem; font-weight: 700; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: .76rem; }
.rating svg { width: 13px; height: 13px; fill: var(--star); color: var(--star); }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick { border-radius: var(--r-md); padding: 12px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; position: relative; border: 1px solid transparent; transition: transform .2s; }
.quick:hover { transform: translateY(-2px); }
.quick .ic { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.quick .ic svg { width: 17px; height: 17px; }
.quick b { font-family: var(--font-head); font-size: .8rem; display: block; line-height: 1.2; }
.quick small { font-size: .64rem; color: var(--text-subtle); }
.quick.peach { background: var(--peach); border-color: #FEE0D2; } .quick.peach .ic { color: var(--peach-icon); }
.quick.green { background: var(--green); border-color: #D3ECE0; } .quick.green .ic { color: var(--green-icon); }
.quick.lavender { background: var(--lavender); border-color: #E6DCF5; } .quick.lavender .ic { color: var(--lavender-icon); }
.quick.blue { background: var(--blue); border-color: #D2E5F8; } .quick.blue .ic { color: var(--blue-icon); }

.media-card { width: 160px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); display: block; transition: transform .2s; }
.media-card:hover { transform: translateY(-2px); }
.media-card .im { height: 92px; position: relative; }
.media-card .im img { width: 100%; height: 100%; object-fit: cover; }
.media-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.media-card .play svg { width: 15px; height: 15px; margin-left: 2px; }
.media-card .b { padding: 9px 11px; }
.media-card .b b { font-family: var(--font-head); font-size: .8rem; display: block; line-height: 1.25; }
.media-card .b small { font-size: .67rem; color: var(--text-subtle); display: flex; align-items: center; gap: 3px; margin-top: 3px; }
.media-card .b small svg { width: 11px; height: 11px; }
.media-card .tag { position: absolute; top: 7px; left: 7px; background: rgba(44, 34, 30, .75); color: #fff; font-size: .6rem; font-weight: 700; padding: 2px 7px; border-radius: var(--r-xs); backdrop-filter: blur(4px); }

.affirm { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm); }
.affirm .q { width: 34px; height: 34px; border-radius: 50%; background: var(--peach); color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.affirm small { font-size: .62rem; font-weight: 800; letter-spacing: .1em; color: var(--primary); }
.affirm blockquote { font-family: var(--font-head); font-size: 1rem; font-weight: 600; line-height: 1.4; margin: 6px 0 12px; }
.daily-step { background: linear-gradient(135deg, #3A2418, #5C3520); color: #fff; border-radius: var(--r-md); padding: 16px; position: relative; overflow: hidden; }
.daily-step::after { content: ''; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 106, 31, .5), transparent 70%); }
.daily-step .tagline { display: inline-flex; gap: 6px; align-items: center; font-size: .72rem; font-weight: 700; color: #FFC078; }
.daily-step h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.daily-step p { font-size: .78rem; opacity: .85; margin-bottom: 12px; position: relative; z-index: 1; }
.daily-step .btn { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.why { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px; }
.why .ic { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 7px; }
.why b { font-family: var(--font-head); font-size: .84rem; display: block; }
.why p { font-size: .7rem; color: var(--text-subtle); margin-top: 2px; }
.live-banner { display: flex; align-items: center; gap: 10px; background: var(--primary); color: #fff; border-radius: var(--r-md); padding: 12px 14px; margin: 8px 0 6px; box-shadow: 0 6px 18px rgba(230, 106, 31, .35); animation: bannerIn .4s ease; }
@keyframes bannerIn { from { transform: translateY(-8px); opacity: 0; } }
.live-banner .grow b { display: block; font-size: .86rem; }
.live-banner .grow small { opacity: .9; font-size: .72rem; }

/* ==========================================================================
   CONSULT / GURU PROFILE
   ========================================================================== */
.search { display: flex; align-items: center; gap: 8px; height: 44px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-full); padding: 0 14px; box-shadow: var(--shadow-sm); }
.search input { border: none; outline: none; width: 100%; font-size: .88rem; background: transparent; }
.search svg { color: var(--text-light); width: 17px; height: 17px; }
.guru-row { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.guru-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.guru-row img.pic { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.guru-row .nm { font-family: var(--font-head); font-weight: 700; font-size: .96rem; }
.guru-row .ti { font-size: .76rem; color: var(--text-subtle); }
.guru-row .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.guru-row .side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.profile-hero { text-align: center; padding: 8px 0 16px; }
.profile-hero img.big { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; margin: 6px auto 10px; border: 4px solid #fff; box-shadow: var(--shadow-md); }
.profile-hero h2 { font-size: 1.3rem; font-weight: 800; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.profile-stats div { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 6px; text-align: center; }
.profile-stats b { font-family: var(--font-head); font-size: 1.05rem; display: block; }
.profile-stats small { font-size: .66rem; color: var(--text-subtle); }
.action-bar { position: fixed; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: 100%; max-width: var(--col); z-index: 94; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); padding: 10px 14px; box-shadow: 0 -4px 14px rgba(44, 34, 30, .06); border-top: 1px solid var(--border-light); display: flex; gap: 8px; }
.action-bar .btn { flex: 1; }
.review { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.review:last-child { border-bottom: none; }
.reply { margin-top: 6px; background: var(--bg-app); border-left: 3px solid var(--primary); padding: 8px 10px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: .78rem; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 14px; height: 14px; fill: var(--star); color: var(--star); }
.stars svg.off { fill: none; color: var(--border); }
.star-input { display: flex; gap: 6px; justify-content: center; margin: 10px 0; }
.star-input button { background: none; border: none; cursor: pointer; padding: 2px; transition: transform .15s; }
.star-input button svg { width: 34px; height: 34px; color: var(--border); fill: none; transition: all .15s; }
.star-input button.on svg { color: var(--star); fill: var(--star); }
.star-input button:hover { transform: scale(1.15); }

/* ==========================================================================
   SELF-CARE
   ========================================================================== */
.breath-wrap { display: flex; flex-direction: column; align-items: center; padding: 20px 16px; }
.breath-stage { width: 260px; height: 260px; position: relative; display: flex; align-items: center; justify-content: center; margin: 14px 0; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(230, 106, 31, .35); animation: spin 24s linear infinite; }
.breath-circle {
    width: 130px; height: 130px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: radial-gradient(circle at 35% 30%, #FFE8D6, #FFC99A); border: 3px solid var(--primary);
    box-shadow: 0 0 40px rgba(230, 106, 31, .28), inset 0 0 20px rgba(255, 255, 255, .6);
    transition-property: transform; transition-timing-function: ease-in-out; transition-duration: 4s;
}
.breath-circle b { font-family: var(--font-head); font-size: 1.05rem; color: var(--primary-hover); }
.breath-circle small { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); color: var(--text); line-height: 1; }
.breath-meta { display: flex; gap: 28px; margin: 6px 0 16px; }
.breath-meta div { text-align: center; }
.breath-meta b { font-family: var(--font-head); font-size: 1.4rem; display: block; }
.breath-meta small { font-size: .7rem; color: var(--text-subtle); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); font-size: .88rem; transition: all .3s; }
.steps li::before { counter-increment: s; content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .78rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.steps li.current { border-color: var(--primary); background: var(--primary-light); transform: scale(1.015); }
.steps li.done { opacity: .55; }
.player { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.player .cover { width: 100%; height: 190px; object-fit: cover; border-radius: var(--r-md); }
.progress { height: 6px; background: var(--border-light); border-radius: 6px; overflow: hidden; margin: 14px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--primary)); border-radius: 6px; transition: width .5s linear; }
.q-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; }
.q-card p { font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.q-opts label { cursor: pointer; }
.q-opts input { display: none; }
.q-opts span { display: block; text-align: center; padding: 9px 6px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: .74rem; font-weight: 600; color: var(--text-subtle); transition: all .15s; }
.q-opts input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.result-ring { width: 150px; height: 150px; border-radius: 50%; margin: 10px auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 10px solid var(--green); background: #fff; }
.result-ring.mild { border-color: #FCE7B2; } .result-ring.moderate { border-color: #FBC9A0; } .result-ring.high { border-color: #F5B1B1; }
.result-ring b { font-family: var(--font-head); font-size: 2rem; line-height: 1; }

/* Mood bars */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; height: 130px; padding-top: 8px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.bars .col { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--border-light); min-height: 6px; transition: height .6s cubic-bezier(.16, 1, .3, 1); }
.bars .col.s1 { background: #F5B1B1; } .bars .col.s2 { background: #FBC9A0; } .bars .col.s3 { background: #FCE7B2; } .bars .col.s4 { background: #BFE6D1; } .bars .col.s5 { background: #7ED0A5; }
.bars small { font-size: .62rem; color: var(--text-light); font-weight: 600; }
.bars .em { font-size: .9rem; min-height: 1.2em; }
.journal-entry { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 13px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.journal-entry h4 { font-size: .94rem; }
.journal-entry p { font-size: .84rem; color: var(--text-subtle); margin-top: 6px; white-space: pre-wrap; word-break: break-word; }

/* Wallet */
.wallet-hero { background: linear-gradient(135deg, #3A2418, #6A3B1F); color: #fff; border-radius: var(--r-lg); padding: 20px; position: relative; overflow: hidden; }
.wallet-hero::after { content: ''; position: absolute; right: -40px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(230, 106, 31, .55), transparent 70%); }
.wallet-hero small { opacity: .8; font-size: .75rem; font-weight: 600; }
.wallet-hero .bal { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; margin: 2px 0; position: relative; z-index: 1; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pack { border: 1.5px solid var(--border); background: #fff; border-radius: var(--r-md); padding: 12px 6px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: all .2s; }
.pack small { display: block; font-size: .62rem; font-weight: 600; color: var(--green-icon); font-family: var(--font-body); }
.pack.active, .pack:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* Profile menu */
.profile-card { text-align: center; padding: 18px 0 8px; }
.profile-card .avatar { width: 78px; height: 78px; font-size: 1.6rem; margin: 0 auto 10px; box-shadow: var(--shadow-md); }
.menu .list-item .chev { color: var(--text-light); margin-left: auto; width: 17px; height: 17px; }

/* ==========================================================================
   LIVE ROOM (chat / audio / video)
   ========================================================================== */
.room .page { padding: 8px var(--gutter) 16px; }
.room { display: flex; flex-direction: column; height: 100vh; height: 100dvh; background: var(--bg-app); }
.room-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.room-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.room-head .nm { font-family: var(--font-head); font-weight: 700; font-size: .95rem; line-height: 1.1; }
.room-head small { font-size: .7rem; color: var(--text-subtle); }
.timer-pill { font-family: var(--font-head); font-weight: 700; font-size: .85rem; background: var(--green); color: var(--green-icon); padding: 5px 11px; border-radius: var(--r-full); display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.timer-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--online); animation: livePulse 1.4s infinite; }
.timer-pill.wait { background: var(--peach); color: var(--peach-icon); }
.timer-pill.wait::before { background: var(--primary); }
@keyframes livePulse { 50% { transform: scale(1.5); opacity: .5; } }
.bill-strip { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 600; padding: 6px 14px; background: var(--gold-light); color: var(--gold); border-bottom: 1px solid var(--border-light); }
.low-balance { background: var(--danger-bg); color: var(--danger); font-size: .78rem; font-weight: 700; padding: 8px 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pkg-warn { background: var(--gold-light); color: var(--gold); font-size: .78rem; font-weight: 700; padding: 8px 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.pkg-warn.urgent { background: var(--danger-bg); color: var(--danger); }
.pkg-warn .btn { flex-shrink: 0; }
.badge.free { background: var(--green); color: var(--green-icon); border-color: transparent; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 80%; display: flex; flex-direction: column; animation: msgIn .25s ease; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; }
.msg .bub { padding: 9px 13px; border-radius: 16px; font-size: .88rem; line-height: 1.4; word-break: break-word; white-space: pre-wrap; }
.msg.me .bub { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.them .bub { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg time { font-size: .62rem; color: var(--text-light); margin-top: 2px; }
.sys-msg { align-self: center; font-size: .72rem; color: var(--text-subtle); background: var(--bg-desktop); padding: 4px 12px; border-radius: var(--r-full); }
.composer { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); align-items: flex-end; }
.composer textarea { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: .9rem; resize: none; max-height: 110px; outline: none; background: var(--bg-app); }
.composer textarea:focus { border-color: var(--primary); }
.send-btn { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: transform .15s; }
.send-btn:active { transform: scale(.9); }
.waiting { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; gap: 10px; }
.waiting .pulse { position: relative; width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; }
.waiting .pulse img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; z-index: 2; border: 3px solid #fff; box-shadow: var(--shadow-md); }
.waiting .pulse::before, .waiting .pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--primary); animation: ring 2s ease-out infinite; opacity: 0; }
.waiting .pulse::after { animation-delay: 1s; }
@keyframes ring { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.call-stage { position: relative; background: #1b1411; flex: 1; min-height: 240px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.call-stage video#remoteVideo { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; background: #1b1411; }
.call-stage video#localVideo { position: absolute; right: 12px; bottom: 12px; width: 96px; height: 130px; object-fit: cover; border-radius: 12px; border: 2px solid #fff; background: #000; z-index: 3; transform: scaleX(-1); }
.call-stage .call-avatar { position: relative; z-index: 2; text-align: center; color: #fff; }
.call-stage .call-avatar img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .6); margin: 0 auto 10px; }
.call-state { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, .55); color: #fff; font-size: .72rem; padding: 4px 12px; border-radius: var(--r-full); z-index: 4; }
.call-controls { display: flex; gap: 14px; justify-content: center; padding: 12px; background: #fff; border-top: 1px solid var(--border); }
.call-btn { width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; background: var(--bg-desktop); color: var(--text); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.call-btn.off { background: var(--danger-bg); color: var(--danger); }
.call-btn.end { background: var(--danger); color: #fff; }
.chat-split { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-split .msgs { min-height: 0; }
.toggle { width: 54px; height: 30px; border-radius: 30px; border: none; background: var(--border); position: relative; cursor: pointer; transition: background .25s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.toggle.on { background: var(--online); }
.toggle.on::after { transform: translateX(24px); }
.req-card { border: 1.5px solid var(--primary); background: var(--primary-light); border-radius: var(--r-md); padding: 12px; animation: bannerIn .35s ease; }
.room.call-mode .msgs { flex: none; height: 150px; }
.notes-panel { border-top: 1px solid var(--border); background: #fff; padding: 10px 12px; }
.note-item { font-size: .8rem; background: var(--gold-light); border-radius: var(--r-sm); padding: 8px 10px; margin-top: 6px; }

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.backdrop { position: fixed; inset: 0; background: rgba(44, 34, 30, .5); backdrop-filter: blur(4px); z-index: 200; opacity: 0; visibility: hidden; transition: all .3s ease; }
.backdrop.show { opacity: 1; visibility: visible; }
.sheet {
    position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 105%); width: 100%; max-width: var(--col); z-index: 210; background: #fff;
    border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); max-height: 88vh; overflow-y: auto;
    transition: transform .38s cubic-bezier(.16, 1, .3, 1);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 12px; }
.sheet h3 { font-size: 1.1rem; margin-bottom: 4px; }
.notif-panel { position: fixed; top: 0; right: 0; width: min(380px, 100%); height: 100%; background: #fff; z-index: 220; transform: translateX(105%); transition: transform .35s cubic-bezier(.16, 1, .3, 1); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.notif-panel.show { transform: none; }
.notif-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-panel .body { overflow-y: auto; flex: 1; }
.notif { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border-light); }
.notif.unread { background: var(--primary-light); }
.notif b { font-size: .85rem; display: block; }
.notif p { font-size: .76rem; color: var(--text-subtle); }
.notif small { font-size: .66rem; color: var(--text-light); }
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 9000; display: flex; flex-direction: column; gap: 8px; width: min(92%, 420px); pointer-events: none; }
.toast { background: var(--text); color: #fff; padding: 11px 16px; border-radius: var(--r-md); font-size: .84rem; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 9px; align-items: center; animation: toastIn .35s cubic-bezier(.16, 1, .3, 1); }
.toast.success { background: #1F7A52; } .toast.error { background: #B83232; }
.toast.out { opacity: 0; transform: translateY(-10px); transition: all .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
.creds { background: var(--gold-light); border: 1px dashed var(--gold); border-radius: var(--r-sm); padding: 12px; font-size: .86rem; line-height: 1.8; word-break: break-all; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #f0ebe4 25%, #f8f4ee 50%, #f0ebe4 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ==========================================================================
   TABLES (admin)
   ========================================================================== */
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow-x: auto; box-shadow: var(--shadow-sm); }
table.t { width: 100%; border-collapse: collapse; font-size: .84rem; }
table.t th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-subtle); padding: 11px 14px; background: var(--bg-app); border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t tr:hover td { background: #FFFCF9; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.app-shell.wide .grid-2 { grid-template-columns: 1fr 1fr; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.bar-mini { display: flex; align-items: flex-end; gap: 3px; height: 60px; }
.bar-mini i { flex: 1; background: linear-gradient(180deg, var(--gold), var(--primary)); border-radius: 3px 3px 0 0; min-height: 3px; opacity: .85; }
.copy-box { display: flex; gap: 8px; background: var(--bg-app); border: 1px dashed var(--border); border-radius: var(--r-sm); padding: 8px 8px 8px 12px; align-items: center; }
.copy-box code { flex: 1; font-size: .78rem; word-break: break-all; font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 900px) {
    body { background: var(--bg-desktop); }
    .app-shell:not(.wide):not(.auth) { margin-top: 0; }
}
@media (max-width: 480px) {
    .app-shell { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
