/* Shared standalone auth-page chrome (split layout, auth card, floating-label fields, buttons, theme) — used by merchant/customer/staff login & register pages. Extracted from templates/auth/merchant/merchant_login.html. */

        /* ══════════════════════════════════════
           TOKENS
        ══════════════════════════════════════ */
        :root {
            --g:          #00e676;
            --g-dark:     #00c853;
            --g-dim:      #00b248;
            --g-glow:     rgba(0,230,118,0.15);
            --g-glow-md:  rgba(0,230,118,0.25);
            --g-glow-lg:  rgba(0,230,118,0.40);
            --ink:        #030303;
            --ink-1:      #0b0b0b;
            --ink-2:      #111213;
            --ink-3:      #1a1b1c;
            --ink-4:      #242526;
            --border:     rgba(255,255,255,0.06);
            --border-m:   rgba(255,255,255,0.13);
            --border-g:   rgba(0,230,118,0.22);
            --text-1:     #f2f2f2;
            --text-2:     #9a9a9a;
            --text-3:     #555;
            --r-sm:       10px;
            --r-md:       16px;
            --r-lg:       24px;
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { height: 100%; scroll-behavior: smooth; }
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background: var(--ink);
            color: var(--text-1);
            min-height: 100%;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }
        ::-webkit-scrollbar { width: 4px; }
        ::-webkit-scrollbar-track { background: var(--ink); }
        ::-webkit-scrollbar-thumb { background: var(--g-dim); border-radius: 4px; }

        /* ══════════════════════════════════════
           PAGE LOADER
        ══════════════════════════════════════ */
        .page-loader {
            position: fixed; inset: 0;
            background: var(--ink);
            z-index: 9999;
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            gap: 22px;
            transition: opacity 0.55s ease, visibility 0.55s ease;
        }
        .page-loader.pl-out { opacity: 0; visibility: hidden; pointer-events: none; }
        .pl-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.25rem; font-weight: 700;
            letter-spacing: 6px; color: var(--g);
            animation: pl-breathe 1.8s ease-in-out infinite;
        }
        @keyframes pl-breathe {
            0%, 100% { opacity: 1;   filter: drop-shadow(0 0 16px rgba(0,230,118,0.45)); }
            50%       { opacity: 0.5; filter: drop-shadow(0 0 4px  rgba(0,230,118,0.1));  }
        }
        .pl-track {
            width: 180px; height: 2px;
            background: rgba(255,255,255,0.05);
            border-radius: 2px; overflow: hidden; position: relative;
        }
        .pl-fill {
            position: absolute; top: 0; bottom: 0; width: 40%;
            background: linear-gradient(90deg, transparent, var(--g), transparent);
            animation: pl-scan 1.3s ease-in-out infinite;
        }
        @keyframes pl-scan { 0% { left: -40%; } 100% { left: 100%; } }

        /* ══════════════════════════════════════
           TOAST
        ══════════════════════════════════════ */
        .toast-container {
            position: fixed; top: 20px; right: 16px;
            width: min(360px, calc(100vw - 32px));
            z-index: 2000;
            display: flex; flex-direction: column; gap: 10px;
            pointer-events: none;
        }
        .toast {
            pointer-events: auto;
            display: flex; align-items: flex-start; gap: 12px;
            padding: 13px 14px; border-radius: var(--r-md);
            border: 1px solid var(--border);
            background: rgba(17,18,19,0.97);
            box-shadow: 0 8px 32px rgba(0,0,0,0.55);
            transform: translateX(110%); opacity: 0;
            transition: transform 0.38s cubic-bezier(0.22,1,0.36,1), opacity 0.3s;
        }
        .toast.toast-in  { transform: translateX(0); opacity: 1; }
        .toast.toast-out { transform: translateX(110%); opacity: 0; }
        .toast-icon-wrap {
            width: 30px; height: 30px; border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 0.82rem; flex-shrink: 0;
        }
        .toast-body { flex: 1; }
        .toast-title { font-size: 0.83rem; font-weight: 700; color: var(--text-1); margin-bottom: 2px; }
        .toast-msg   { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }
        .toast-close { border: none; background: none; color: var(--text-3); cursor: pointer; padding: 4px; border-radius: 4px; transition: color 0.2s; }
        .toast-close:hover { color: var(--text-1); }
        .toast.is-success .toast-icon-wrap { background: rgba(0,230,118,0.12); color: var(--g); }
        .toast.is-success { border-color: rgba(0,230,118,0.2); }
        .toast.is-error   .toast-icon-wrap { background: rgba(239,68,68,0.12); color: #f87171; }
        .toast.is-error   { border-color: rgba(239,68,68,0.22); }
        .toast.is-warning .toast-icon-wrap { background: rgba(245,158,11,0.12); color: #fbbf24; }
        .toast.is-warning { border-color: rgba(245,158,11,0.22); }
        .toast.is-info    .toast-icon-wrap { background: rgba(96,165,250,0.12); color: #60a5fa; }
        .toast.is-info    { border-color: rgba(96,165,250,0.2); }
        .site-messages { display: none; }

        /* Django messages inline */
        .msgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
        .msg {
            display: flex; align-items: center; gap: 10px;
            padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid;
            font-size: 0.84rem; line-height: 1.5;
            animation: msg-in 0.28s ease;
        }
        @keyframes msg-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
        .msg > i:first-child { flex-shrink: 0; font-size: 0.82rem; }
        .msg > span { flex: 1; min-width: 0; }
        .msg > button {
            background: none; border: none; padding: 5px; cursor: pointer;
            flex-shrink: 0; opacity: 0.4; transition: opacity 0.15s;
            border-radius: 4px; line-height: 1; font-size: 0.78rem; color: inherit;
        }
        .msg > button:hover { opacity: 1; }
        .msg-success { background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.28); color: #d4fbea; }
        .msg-success > i:first-child { color: #00e676; }
        .msg-error   { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.28); color: #fecaca; }
        .msg-error   > i:first-child { color: #f87171; }
        .msg-warning { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.28); color: #fef3c7; }
        .msg-warning > i:first-child { color: #fbbf24; }
        .msg-info    { background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.28); color: #dbeafe; }
        .msg-info    > i:first-child { color: #60a5fa; }

        /* ══════════════════════════════════════
           SPLIT LAYOUT
        ══════════════════════════════════════ */
        .auth-split {
            display: flex;
            min-height: 100vh;
        }

        /* ══════════════════════════════════════
           LEFT BRANDING PANEL
        ══════════════════════════════════════ */
        .split-left {
            position: relative;
            width: 460px;
            flex-shrink: 0;
            background: var(--ink-1);
            display: flex;
            flex-direction: column;
            padding: 40px 52px;
            overflow: hidden;
        }

        .split-left .sl-bg-radial {
            position: absolute;
            top: -80px; left: -120px;
            width: 640px; height: 640px;
            background: radial-gradient(circle at 40% 40%,
                rgba(0,230,118,0.1) 0%, transparent 60%);
            pointer-events: none;
        }

        .split-left .sl-bg-radial-2 {
            position: absolute;
            bottom: -80px; right: -80px;
            width: 380px; height: 380px;
            background: radial-gradient(circle,
                rgba(0,230,118,0.06) 0%, transparent 70%);
            pointer-events: none;
        }

        .split-left .sl-dot-grid {
            position: absolute;
            inset: 0;
            background-image: radial-gradient(circle,
                rgba(0,230,118,0.3) 1px, transparent 1px);
            background-size: 28px 28px;
            opacity: 0.09;
            pointer-events: none;
        }

        .sl-inner {
            position: relative;
            z-index: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .sl-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.1rem; font-weight: 700;
            letter-spacing: 5px; color: var(--g);
            text-decoration: none;
            text-shadow: 0 0 24px var(--g-glow-md);
            flex-shrink: 0;
            display: inline-block;
        }

        .sl-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 52px 0 36px;
        }

        .sl-tag {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            font-size: 0.64rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--g);
            margin-bottom: 20px;
        }

        .sl-tag::before {
            content: '';
            display: block;
            width: 20px; height: 1px;
            background: var(--g);
            opacity: 0.55;
            flex-shrink: 0;
        }

        .sl-headline {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(1.7rem, 2.8vw, 2.2rem);
            font-weight: 700;
            color: var(--text-1);
            line-height: 1.12;
            margin-bottom: 14px;
            letter-spacing: -0.5px;
        }

        .sl-desc {
            font-size: 0.87rem;
            color: var(--text-2);
            line-height: 1.8;
            margin-bottom: 32px;
            max-width: 310px;
        }

        .sl-features {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-bottom: 32px;
        }

        .sl-feat {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            font-size: 0.84rem;
            color: var(--text-2);
            line-height: 1.5;
        }

        .sl-feat-icon {
            width: 22px; height: 22px;
            flex-shrink: 0;
            border-radius: 6px;
            background: var(--g-glow);
            border: 1px solid var(--border-g);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.58rem; color: var(--g);
            margin-top: 1px;
        }

        .sl-feat strong { color: var(--text-1); }

        /* Mini WhatsApp preview card */
        .sl-preview {
            background: rgba(26,27,28,0.85);
            border: 1px solid var(--border-g);
            border-radius: 14px;
            padding: 14px 16px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,230,118,0.06);
        }

        .sl-preview-top {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border);
        }

        .sl-preview-avatar {
            width: 28px; height: 28px;
            border-radius: 50%;
            background: rgba(37,211,102,0.15);
            border: 1px solid rgba(37,211,102,0.3);
            display: flex; align-items: center; justify-content: center;
            font-size: 0.75rem; color: #25d366;
            flex-shrink: 0;
        }

        .sl-preview-title {
            font-size: 0.78rem;
            font-weight: 700;
            color: var(--text-1);
        }

        .sl-preview-time {
            margin-left: auto;
            font-size: 0.65rem;
            color: var(--text-3);
        }

        .sl-preview-msg {
            font-size: 0.78rem;
            color: var(--text-2);
            line-height: 1.5;
        }

        .sl-preview-msg strong { color: var(--text-1); font-weight: 600; }

        /* Stats row */
        .sl-footer {
            position: relative;
            padding-top: 24px;
            border-top: 1px solid var(--border);
        }

        .sl-stats {
            display: flex;
            align-items: center;
            gap: 0;
        }

        .sl-stat {
            flex: 1;
            text-align: center;
        }

        .sl-stat:not(:last-child) {
            border-right: 1px solid var(--border);
        }

        .sl-stat-num {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--g);
            line-height: 1;
            text-shadow: 0 0 18px var(--g-glow-md);
        }

        .sl-stat-num span {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-2);
        }

        .sl-stat-lbl {
            font-size: 0.72rem;
            color: var(--text-3);
            margin-top: 4px;
            line-height: 1.4;
        }

        @media (max-width: 991px) {
            .split-left { display: none; }
        }

        /* ══════════════════════════════════════
           RIGHT FORM PANEL
        ══════════════════════════════════════ */
        .split-right {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .bg-grid {
            position: fixed; inset: 0;
            pointer-events: none; z-index: 0;
            background-image:
                linear-gradient(rgba(0,230,118,0.025) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,230,118,0.025) 1px, transparent 1px);
            background-size: 52px 52px;
        }

        .bg-grid::after {
            content: '';
            position: absolute; inset: 0;
            background: radial-gradient(ellipse 70% 50% at 50% -5%,
                rgba(0,230,118,0.07) 0%, transparent 65%);
        }

        .auth-topbar {
            position: relative; z-index: 10;
            display: flex; align-items: center;
            justify-content: space-between;
            padding: 24px 36px;
        }

        /* Mobile: show logo in topbar */
        .topbar-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1rem; font-weight: 700;
            letter-spacing: 4px; color: var(--g);
            text-decoration: none;
            text-shadow: 0 0 20px var(--g-glow-md);
            display: none;
        }

        @media (max-width: 991px) { .topbar-logo { display: block; } }

        .topbar-link {
            font-size: 0.82rem;
            color: var(--text-2);
            text-decoration: none;
            transition: color 0.2s;
        }

        .topbar-link strong { color: var(--g); font-weight: 600; }
        .topbar-link:hover  { color: var(--text-1); }

        .auth-wrap {
            position: relative; z-index: 10;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px 20px 60px;
        }

        /* ══════════════════════════════════════
           AUTH CARD
        ══════════════════════════════════════ */
        .auth-card {
            width: 100%;
            max-width: 440px;
            background: var(--ink-2);
            border: 1px solid var(--border);
            border-radius: var(--r-lg);
            padding: 48px 44px 40px;
            box-shadow:
                0 0 0 1px rgba(0,230,118,0.035),
                0 32px 80px rgba(0,0,0,0.58),
                inset 0 1px 0 rgba(255,255,255,0.04);
            position: relative;
            overflow: hidden;
        }

        /* Top accent line */
        .auth-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg,
                transparent 5%, var(--g-dark) 50%, transparent 95%);
            opacity: 0.55;
        }

        /* Subtle inner glow */
        .auth-card::after {
            content: '';
            position: absolute;
            top: -80px; left: 50%;
            transform: translateX(-50%);
            width: 320px; height: 200px;
            background: radial-gradient(ellipse,
                rgba(0,230,118,0.06) 0%, transparent 70%);
            pointer-events: none;
        }

        .card-eyebrow {
            font-size: 0.64rem;
            font-weight: 700;
            letter-spacing: 3.5px;
            text-transform: uppercase;
            color: var(--g);
            margin-bottom: 10px;
            position: relative; z-index: 1;
        }

        .card-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.9rem;
            font-weight: 700;
            color: var(--text-1);
            line-height: 1.08;
            margin-bottom: 6px;
            letter-spacing: -0.5px;
            position: relative; z-index: 1;
        }

        .card-sub {
            font-size: 0.84rem;
            color: var(--text-2);
            line-height: 1.65;
            margin-bottom: 36px;
            position: relative; z-index: 1;
        }

        /* ══════════════════════════════════════
           ALERT
        ══════════════════════════════════════ */
        .alert {
            display: none;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
            border-radius: var(--r-sm);
            font-size: 0.82rem;
            line-height: 1.55;
            margin-bottom: 24px;
            position: relative; z-index: 1;
        }

        .alert.show    { display: flex; animation: msg-in 0.22s ease; }
        .alert.error   { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; }
        .alert.success { background: var(--g-glow); border: 1px solid var(--border-g); color: var(--g); }
        .alert i { flex-shrink: 0; margin-top: 1px; font-size: 0.8rem; }

        /* ══════════════════════════════════════
           FLOATING LABEL FIELDS
        ══════════════════════════════════════ */
        .fl-field {
            position: relative;
            margin-bottom: 36px;
            padding-top: 4px;
        }

        /* Left icon */
        .fl-icon {
            position: absolute;
            left: 0;
            bottom: 11px;
            color: var(--text-3);
            font-size: 0.9rem;
            pointer-events: none;
            line-height: 1;
            transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* The actual input — bottom border only */
        .fl-input {
            width: 100%;
            padding: 6px 0 12px 28px;
            background: transparent;
            border: none;
            border-bottom: 1.5px solid var(--border-m);
            border-radius: 0;
            color: var(--text-1);
            font-family: 'Inter', sans-serif;
            font-size: 0.95rem;
            outline: none;
            caret-color: var(--g);
            transition: border-color 0.3s;
            -webkit-appearance: none;
            appearance: none;
        }

        /* Placeholder is invisible — label serves as the visual placeholder */
        .fl-input::placeholder { color: transparent; user-select: none; }

        /* When focused, border fades to let the green bar take over */
        .fl-input:focus { border-bottom-color: rgba(255,255,255,0.04); }

        /* Autocomplete background override */
        .fl-input:-webkit-autofill,
        .fl-input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 100px var(--ink-3) inset;
            -webkit-text-fill-color: var(--text-1);
            caret-color: var(--g);
            border-bottom-color: var(--border-g);
            transition: background-color 9999s ease-in-out 0s;
        }

        /* Floating label */
        .fl-label {
            position: absolute;
            left: 28px;
            bottom: 13px;
            font-size: 0.92rem;
            font-weight: 500;
            color: var(--text-3);
            pointer-events: none;
            transform-origin: left 50%;
            transition:
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            user-select: none;
        }

        /* Floated state: focused OR field has content */
        .fl-field:focus-within .fl-label,
        .fl-input:not(:placeholder-shown) ~ .fl-label {
            transform: translateY(-30px) scale(0.74);
            color: var(--g);
        }

        /* Animated bottom bar — slides in from left on focus */
        .fl-bar {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--g-dim), var(--g));
            transform: scaleX(0);
            transform-origin: left center;
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 0 0 2px 2px;
        }

        .fl-field:focus-within .fl-bar { transform: scaleX(1); }

        /* Icon turns green on focus */
        .fl-field:focus-within .fl-icon { color: var(--g); }

        /* Invalid state */
        .fl-input.invalid { border-bottom-color: rgba(239,68,68,0.4); }
        .fl-input.invalid ~ .fl-label { color: #f87171 !important; }
        .fl-input.invalid ~ .fl-bar {
            background: #ef4444;
            transform: scaleX(1);
        }

        /* Password toggle button */
        .fl-pw-toggle {
            position: absolute;
            right: 0;
            bottom: 7px;
            background: none;
            border: none;
            color: var(--text-3);
            cursor: pointer;
            padding: 6px 4px;
            font-size: 0.8rem;
            line-height: 1;
            border-radius: 4px;
            transition: color 0.2s;
        }

        .fl-pw-toggle:hover { color: var(--text-2); }

        /* Password input: reserve space for toggle */
        .fl-input.with-toggle { padding-right: 30px; }

        /* ══════════════════════════════════════
           SUBMIT BUTTON
        ══════════════════════════════════════ */
        .btn-submit {
            width: 100%;
            padding: 14px;
            background: var(--g);
            border: none;
            border-radius: var(--r-md);
            color: #000;
            font-family: 'Inter', sans-serif;
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            margin-top: 8px;
            box-shadow: 0 0 24px var(--g-glow), 0 4px 14px rgba(0,0,0,0.3);
            transition: background 0.22s, box-shadow 0.22s, transform 0.15s;
            position: relative;
            overflow: hidden;
        }

        /* Shimmer sweep on hover */
        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0; left: -80%;
            width: 50%; height: 100%;
            background: linear-gradient(90deg,
                transparent, rgba(255,255,255,0.2), transparent);
            transform: skewX(-18deg);
            transition: left 0.65s ease;
        }

        .btn-submit:hover:not(:disabled) {
            background: #fff;
            box-shadow: 0 0 44px var(--g-glow-lg), 0 6px 18px rgba(0,0,0,0.3);
            transform: translateY(-2px);
        }

        .btn-submit:hover:not(:disabled)::before { left: 160%; }

        .btn-submit:active:not(:disabled) {
            transform: translateY(0px);
            box-shadow: 0 0 20px var(--g-glow), 0 2px 8px rgba(0,0,0,0.3);
        }

        .btn-submit:disabled {
            opacity: 0.48;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-arrow { font-size: 0.72rem; transition: transform 0.2s; }
        .btn-submit:hover:not(:disabled) .btn-arrow { transform: translateX(3px); }

        /* Spinner */
        .spinner {
            width: 16px; height: 16px;
            border: 2px solid rgba(0,0,0,0.18);
            border-top-color: #000;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            display: none;
            flex-shrink: 0;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        /* ══════════════════════════════════════
           DIVIDER + FOOTER
        ══════════════════════════════════════ */
        .divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin: 28px 0 20px;
        }
        .divider::before, .divider::after {
            content: ''; flex: 1; height: 1px; background: var(--border);
        }
        .divider span { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }

        .card-footer {
            text-align: center;
            font-size: 0.83rem;
            color: var(--text-2);
        }
        .card-footer a {
            color: var(--g);
            font-weight: 600;
            text-decoration: none;
            transition: opacity 0.2s;
        }
        .card-footer a:hover { opacity: 0.8; text-decoration: underline; }

        /* ══════════════════════════════════════
           RESPONSIVE
        ══════════════════════════════════════ */
        @media (max-width: 560px) {
            .auth-card {
                padding: 32px 20px 28px;
                border-radius: 0;
                border-left: none;
                border-right: none;
                max-width: 100%;
            }
            .auth-wrap { padding: 0 0 40px; align-items: flex-start; }
            .auth-topbar { padding: 18px 20px; }
            .topbar-link { font-size: 0.78rem; }
            .card-sub { margin-bottom: 28px; }
        }

        @media (max-width: 400px) {
            .card-title { font-size: 1.5rem; }
            .card-sub { font-size: 0.8rem; }
            .auth-topbar { padding: 14px 16px; flex-wrap: wrap; gap: 6px; }
            .topbar-link { font-size: 0.75rem; }
        }

        /* ══════════════════════════════════════
           THEME TOGGLE
        ══════════════════════════════════════ */
        .theme-toggle {
            position: fixed; bottom: 24px; right: 24px; z-index: 9999;
            width: 64px; height: 34px; padding: 0;
            border-radius: 100px;
            border: 1px solid rgba(255,255,255,0.08);
            background: rgba(22,24,28,0.92);
            backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            cursor: pointer;
            box-shadow: 0 4px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
            transition: box-shadow 0.25s, border-color 0.25s;
        }
        .theme-toggle:hover {
            box-shadow: 0 6px 32px rgba(0,0,0,0.55), 0 1px 6px rgba(0,0,0,0.35);
            border-color: rgba(255,255,255,0.14);
        }
        .tt-track { display: block; width: 100%; height: 100%; position: relative; }
        .tt-thumb {
            position: absolute; top: 4px; left: 4px;
            width: 24px; height: 24px; border-radius: 50%;
            background: rgba(255,255,255,0.12);
            display: flex; align-items: center; justify-content: center;
            transition: transform 0.35s cubic-bezier(.4,0,.2,1), background 0.25s;
            color: #c8ccd4;
        }
        .tt-moon, .tt-sun { width: 12px; height: 12px; position: absolute; transition: opacity 0.2s; }
        .tt-moon { opacity: 1; } .tt-sun { opacity: 0; }

        /* ══════════════════════════════════════
           LIGHT MODE OVERRIDES
        ══════════════════════════════════════ */
        html[data-theme="light"] {
            --ink:      #f4f5f7;
            --ink-1:    #ffffff;
            --ink-2:    #ffffff;
            --ink-3:    #f0f1f3;
            --ink-4:    #e3e5e8;
            --border:   rgba(0,0,0,0.09);
            --border-m: rgba(0,0,0,0.2);
            --border-g: rgba(0,170,85,0.32);
            --text-1:   #111111;
            --text-2:   #555555;
            --text-3:   #999999;
        }
        html[data-theme="light"] .theme-toggle {
            background: rgba(240,241,245,0.94) !important;
            border-color: rgba(0,0,0,0.10) !important;
            box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08) !important;
        }
        html[data-theme="light"] .tt-thumb { transform: translateX(32px); background: rgba(0,0,0,0.07) !important; color: #555 !important; }
        html[data-theme="light"] .tt-moon  { opacity: 0; }
        html[data-theme="light"] .tt-sun   { opacity: 1; }
        html[data-theme="light"] .toast    { background: rgba(255,255,255,0.98) !important; box-shadow: 0 8px 24px rgba(0,0,0,.10) !important; }
        html[data-theme="light"] .pl-track { background: rgba(0,0,0,0.08) !important; }
        html[data-theme="light"] .split-left { background: #f9fafb; border-right: 1px solid rgba(0,0,0,0.07); }
        html[data-theme="light"] .alert.error { color: #b91c1c !important; }
        html[data-theme="light"] .bg-grid {
            background-image:
                linear-gradient(rgba(0,160,80,0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0,160,80,0.04) 1px, transparent 1px);
        }
        html[data-theme="light"] .fl-input:-webkit-autofill,
        html[data-theme="light"] .fl-input:-webkit-autofill:focus {
            -webkit-box-shadow: 0 0 0 100px #f0f1f3 inset;
            -webkit-text-fill-color: #111;
        }
        /* Floating label — darker green for contrast on light backgrounds */
        html[data-theme="light"] .fl-field:focus-within .fl-label,
        html[data-theme="light"] .fl-input:not(:placeholder-shown) ~ .fl-label { color: var(--g-dim); }
        html[data-theme="light"] .fl-field:focus-within .fl-icon { color: var(--g-dim); }
        html[data-theme="light"] .fl-bar { background: linear-gradient(90deg, var(--g-dim), var(--g-dark)); }
        /* Card in light mode */
        html[data-theme="light"] .auth-card { box-shadow: 0 4px 32px rgba(0,0,0,0.09), 0 1px 4px rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.09); }
        /* WhatsApp preview in light mode */
        html[data-theme="light"] .sl-preview { background: rgba(245,246,248,0.9) !important; border-color: rgba(0,150,70,0.2) !important; }
        html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c0c3c8 !important; }

        /* Smooth theme switch transition */
        html.is-switching * {
            transition: background-color 0.32s ease, color 0.22s ease,
                        border-color 0.25s ease, box-shadow 0.25s ease !important;
        }
