/* ==================================================
       DESIGN SYSTEM: "Aurora" — Deep Space + Violet Neon
       ================================================== */
        :root {
            --accent: #A78BFA;
            --accent-bright: #C4B5FD;
            --accent-dim: #7C3AED;
            --accent-glow: rgba(167, 139, 250, 0.35);
            --green: #34D399;
            --red: #F87171;
            --orange: #FBBF24;
            --bg-0: #09090B;
            --bg-1: #111113;
            --bg-2: #18181B;
            --bg-3: #27272A;
            --bg-surface: rgba(255, 255, 255, 0.02);
            --border: rgba(255, 255, 255, 0.06);
            --border-accent: rgba(167, 139, 250, 0.25);
            --text-0: #FAFAFA;
            --text-1: #D4D4D8;
            --text-2: #71717A;
            --radius-sm: 10px;
            --radius-md: 16px;
            --radius-lg: 24px;
            --radius-xl: 28px;
            --radius-full: 9999px;
            --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
            --shadow-glow: 0 0 40px rgba(167, 139, 250, 0.08);
            --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 32px rgba(167, 139, 250, 0.06);
            --gradient-text-start: #ffffff;
            --gradient-text-end: var(--text-2);
            --feature-badge-bg: rgba(255, 255, 255, 0.02);
            --feature-badge-border: rgba(255, 255, 255, 0.08);
            --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
            --layout-max: 1140px;
            --layout-gutter: 24px;
            --font-sans: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-heading: 'Sora', 'Manrope', 'Inter', sans-serif;
            --font-brand-script: 'Great Vibes', cursive;
        }

        *,
        *::before,
        *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            overflow-x: clip !important;
            width: 100%;
            max-width: 100vw;
            position: relative;
        }

        ::selection {
            background: rgba(167, 139, 250, 0.3);
            color: #fff;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--bg-3);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-dim);
        }

        /* BG EFFECTS */
        body::before {
            content: '';
            position: fixed;
            top: -40%;
            left: -20%;
            width: 80vw;
            height: 80vw;
            background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: '';
            position: fixed;
            bottom: -30%;
            right: -15%;
            width: 60vw;
            height: 60vw;
            background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, transparent 55%);
            pointer-events: none;
            z-index: 0;
        }

        /* â”€â”€â”€ NAVBAR â”€â”€â”€ */
        .nav {
            position: sticky;
            top: 0;
            z-index: 200;
            min-height: 84px;
            background: rgba(9, 9, 11, 0.75);
            backdrop-filter: blur(24px) saturate(1.6);
            -webkit-backdrop-filter: blur(24px) saturate(1.6);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav.nav-scrolled {
            min-height: 64px;
            background: rgba(9, 9, 11, 0.85);
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .nav-inner {
            width: 100%;
            max-width: 1520px;
            padding: 0 var(--layout-gutter);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 14px;
            text-decoration: none;
            color: var(--text-0);
            flex: 0 0 auto;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--accent-dim), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav.nav-scrolled .logo-icon {
            width: 26px;
            height: 26px;
            border-radius: 8px;
        }

        .logo-icon svg {
            width: 18px;
            height: 18px;
            fill: #fff;
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav.nav-scrolled .logo-icon svg {
            width: 14px;
            height: 14px;
        }

        .logo-text {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            font-family: var(--font-brand-script);
            white-space: nowrap;
            line-height: 1;
            font-kerning: normal;
            font-feature-settings: "liga" 1, "calt" 1;
        }

        .logo-text .brand-main {
            font-size: 22.5px;
            font-weight: 400;
            letter-spacing: 0;
            color: #e2a4bf;
            text-shadow: 0 0.8px 0 rgba(255, 255, 255, 0.14), 0 2px 5px rgba(228, 154, 184, 0.22);
            transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .nav.nav-scrolled .logo-text .brand-main {
            font-size: 19.5px;
        }

        .logo-text .brand-sub {
            color: #d79ab5;
            font-size: 20px;
            font-weight: 400;
            letter-spacing: 0;
            margin-left: 2px;
            opacity: 1;
            text-shadow: 0 0.8px 0 rgba(255, 255, 255, 0.12), 0 2px 4px rgba(228, 154, 184, 0.2);
        }

        .nav-menu {
            display: flex;
            flex: 1;
            gap: 10px;
            justify-content: space-evenly;
            align-items: center;
            min-width: 0;
        }

        .nav-link {
            padding: 10px 18px;
            border-radius: var(--radius-full);
            font-size: 15px;
            font-family: var(--font-heading);
            font-weight: 600;
            letter-spacing: -0.2px;
            color: var(--text-2);
            text-decoration: none;
            position: relative;
            isolation: isolate;
            border: 1px solid transparent;
            transform: translateY(0);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            white-space: nowrap;
            text-align: center;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(135deg, rgba(167, 139, 250, 0.18), rgba(52, 211, 153, 0.08));
            opacity: 0;
            transition: opacity 0.24s ease;
            z-index: -1;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: -1px;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            border-radius: 999px;
            background: var(--accent-bright);
            box-shadow: 0 0 10px var(--accent-glow);
            transition: width 0.24s ease;
        }

        .nav-link:hover {
            color: var(--text-0);
            background: rgba(255, 255, 255, 0.04);
            border-color: rgba(255, 255, 255, 0.08);
            transform: translateY(-1px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .nav-link:hover::before {
            opacity: 1;
        }

        .nav-link:hover::after {
            width: 62%;
        }

        .nav-link:focus-visible {
            outline: none;
            color: var(--text-0);
            border-color: rgba(167, 139, 250, 0.45);
            box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18);
        }

        .nav-link.on {
            color: var(--accent-bright);
            background: transparent;
            border-color: transparent;
            box-shadow: none;
        }

        .nav-link.on::before {
            opacity: 0;
        }

        .nav-link.on::after {
            width: 0;
            background: transparent;
            box-shadow: none;
        }

        .nav-link.on:hover {
            color: var(--accent-bright);
            background: transparent;
            border-color: transparent;
            transform: none;
            box-shadow: none;
        }

        .nav-right {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
            flex: 0 0 auto;
        }

        @media (max-width: 1360px) {
            .nav-inner {
                max-width: 1320px;
            }

            .logo-text .brand-main {
                font-size: 20.5px;
            }

            .logo-text .brand-sub {
                font-size: 18px;
            }

            .nav-menu {
                gap: 6px;
            }

            .nav-link {
                padding: 9px 14px;
                font-size: 15px;
            }
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px;
            border-radius: var(--radius-full);
            font-size: 12px;
            font-weight: 700;
            border: 1px solid var(--border-accent);
            color: var(--accent-bright);
            background: rgba(167, 139, 250, 0.06);
        }

        .chip-neutral {
            border-color: var(--border);
            color: var(--text-2);
            background: rgba(255, 255, 255, 0.03);
        }

        .btn-nav {
            padding: 7px 18px;
            border-radius: var(--radius-full);
            font-size: 13px;
            font-weight: 600;
            font-family: var(--font-heading);
            text-decoration: none;
            border: 1px solid var(--border);
            color: var(--text-1);
            background: transparent;
            transition: 0.2s;
            cursor: pointer;
        }

        .btn-nav:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            transform: translateY(-2px);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .burger {
            display: none;
            background: none;
            border: none;
            color: var(--text-0);
            cursor: pointer;
            padding: 6px;
        }

        .burger svg {
            width: 24px;
            height: 24px;
        }

        /* â”€â”€â”€ MOBILE MENU â”€â”€â”€ */
        #mmenu {
            display: none;
            position: fixed;
            top: 64px;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(9, 9, 11, 0.96);
            backdrop-filter: blur(20px);
            z-index: 199;
            flex-direction: column;
            padding: 20px;
            gap: 6px;
            overflow-y: auto;
        }

        #mmenu a {
            display: block;
            padding: 14px 18px;
            border-radius: var(--radius-md);
            font-size: 15px;
            font-weight: 600;
            color: var(--text-1);
            text-decoration: none;
            background: var(--bg-2);
            transition: 0.2s;
        }

        #mmenu a:hover {
            background: var(--bg-3);
            color: #fff;
        }

        /* â”€â”€â”€ MAIN â”€â”€â”€ */
        .wrap {
            flex: 1;
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            padding: 25px var(--layout-gutter) 40px;
        }

        .page-shell {
            width: 100%;
            max-width: var(--layout-max);
            margin: 0 auto;
        }

        .wrap.center-y {
            justify-content: center;
        }

        /* â”€â”€â”€ CARD â”€â”€â”€ */
        .card {
            background: var(--bg-1);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 40px;
            width: 100%;
            max-width: 520px;
            box-shadow: var(--shadow-soft);
            position: relative;
            overflow: hidden;
            animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
            transition: var(--transition-smooth);
        }

        .card:hover {
            border-color: rgba(167, 139, 250, 0.25);
            box-shadow: var(--shadow-card-hover);
            transform: translateY(-6px) scale(1.02);
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
        }

        .card-wide {
            max-width: var(--layout-max);
        }

        @keyframes cardIn {
            from {
                opacity: 0;
                transform: translateY(24px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* â”€â”€â”€ ANIMATIONS â”€â”€â”€ */
        @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-4px);
            }
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }

            100% {
                background-position: 0% 50%;
            }
        }

        /* â”€â”€â”€ TYPOGRAPHY â”€â”€â”€ */
        .hero-badge {
            display: inline-flex;
            padding: 6px 16px;
            border-radius: var(--radius-full);
            border: 1px solid var(--border-accent);
            color: var(--accent-bright);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            background: rgba(167, 139, 250, 0.05);
            margin-bottom: 28px;
            animation: float 4s ease-in-out infinite;
        }

        .hero-title {
            font-size: 56px;
            font-weight: 900;
            letter-spacing: -2px;
            line-height: 1.08;
            margin-bottom: 22px;
            color: var(--text-0);
        }

        .hero-title .gradient {
            background: linear-gradient(135deg, var(--accent), var(--green), var(--accent-bright), var(--accent));
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 6s ease infinite;
        }

        .hero-sub {
            font-size: 17px;
            color: var(--text-2);
            line-height: 1.7;
            max-width: 560px;
            margin: 0 auto 44px;
            text-align: justify;
        }

        .heading {
            font-size: 28px;
            font-weight: 800;
            letter-spacing: -0.5px;
            margin-bottom: 8px;
        }

        .heading-sm {
            font-size: 22px;
            font-weight: 700;
        }

        .page-title {
            font-size: 32px;
            font-weight: 800;
            text-align: center;
            margin-bottom: 8px;
            background: linear-gradient(90deg, #A78BFA, #34D399);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
        }

        .page-title.light {
            background: linear-gradient(90deg, var(--gradient-text-start), var(--gradient-text-end));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .desc {
            color: var(--text-2);
            font-size: 15px;
            line-height: 1.6;
            text-align: justify;
        }

        /* â”€â”€â”€ FORM â”€â”€â”€ */
        .field {
            margin-bottom: 16px;
        }

        .field label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-2);
            margin-bottom: 6px;
        }

        .input {
            width: 100%;
            padding: 16px 20px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: var(--bg-0);
            color: var(--text-0);
            font-size: 16px;
            font-weight: 500;
            outline: none;
            transition: 0.2s;
            font-family: inherit;
        }

        .input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-glow);
        }

        .input::placeholder {
            color: var(--text-2);
        }

        .input-mono {
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
            font-size: 14px;
            letter-spacing: 0.3px;
        }

        /* â”€â”€â”€ BUTTONS â”€â”€â”€ */
        .btn {
            width: 100%;
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            border: none;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: var(--transition-smooth);
            text-align: center;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: inherit;
            position: relative;
            overflow: hidden;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-dim), var(--accent));
            color: #fff;
            box-shadow: 0 4px 16px var(--accent-glow);
        }

        .btn-primary:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 12px 32px rgba(167, 139, 250, 0.45);
            filter: brightness(1.15);
        }

        .btn-primary:active {
            transform: translateY(0) scale(0.96);
        }

        .btn-disabled-theme,
        .btn[disabled].btn-disabled-theme {
            background: linear-gradient(135deg, var(--bg-2), var(--bg-3)) !important;
            color: var(--text-1) !important;
            border: 1px solid var(--border) !important;
            box-shadow: none !important;
            opacity: 1 !important;
            cursor: not-allowed !important;
            filter: none !important;
        }

        .btn[disabled].btn-disabled-theme:hover,
        .btn[disabled].btn-disabled-theme:active {
            transform: none !important;
            box-shadow: none !important;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-0);
        }

        .btn-outline:hover {
            background: rgba(167, 139, 250, 0.08);
            border-color: rgba(167, 139, 250, 0.3);
            transform: translateY(-2px) scale(1.01);
            box-shadow: 0 8px 24px rgba(167, 139, 250, 0.1);
        }

        .btn-sm {
            padding: 8px 16px !important;
            font-size: 13px !important;
            width: auto;
            border-radius: 8px;
        }

        /* â”€â”€â”€ TABS â”€â”€â”€ */
        .tabs {
            display: flex;
            background: var(--bg-0);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 3px;
            margin-bottom: 20px;
        }

        .tab {
            flex: 1;
            padding: 9px 12px;
            border-radius: 8px;
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            color: var(--text-2);
            cursor: pointer;
            transition: 0.2s;
            border: none;
            background: none;
            font-family: inherit;
        }

        .tab.on {
            background: var(--bg-3);
            color: var(--text-0);
        }

        /* â”€â”€â”€ ALERT â”€â”€â”€ */
        .alert {
            padding: 14px 18px;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
        }

        .alert-error {
            background: rgba(248, 113, 113, 0.08);
            color: var(--red);
            border: 1px solid rgba(248, 113, 113, 0.15);
        }

        .alert-success {
            background: rgba(52, 211, 153, 0.08);
            color: var(--green);
            border: 1px solid rgba(52, 211, 153, 0.15);
        }

        .alert-info {
            background: rgba(167, 139, 250, 0.08);
            color: var(--accent-bright);
            border: 1px solid rgba(167, 139, 250, 0.15);
        }

        .state-lock-input {
            background: var(--bg-2) !important;
            color: var(--text-1) !important;
            border: 1px dashed rgba(248, 113, 113, 0.45) !important;
            cursor: not-allowed;
            font-weight: 700;
        }

        .state-lock-note {
            color: var(--red);
            font-size: 13px;
            margin-top: 8px;
            line-height: 1.5;
        }

        /* â”€â”€â”€ TOAST â”€â”€â”€ */
        .toast-stack {
            position: fixed;
            top: 82px;
            right: 18px;
            width: min(380px, calc(100vw - 28px));
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 100050;
            pointer-events: none;
        }

        .toast-item {
            pointer-events: auto;
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 14px 12px;
            border-radius: 14px;
            border: 1px solid var(--border);
            background: color-mix(in srgb, var(--bg-1) 88%, transparent);
            backdrop-filter: blur(14px) saturate(1.2);
            -webkit-backdrop-filter: blur(14px) saturate(1.2);
            box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
            opacity: 0;
            transform: translateY(-8px) scale(0.98);
            animation: toastIn 0.24s ease forwards;
            overflow: hidden;
        }

        .toast-item::after {
            content: none !important;
            display: none !important;
            height: 0 !important;
            background: transparent !important;
        }

        .toast-item.is-leaving {
            animation: toastOut 0.2s ease forwards;
        }

        .toast-icon {
            width: 24px;
            height: 24px;
            border-radius: 8px;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-top: 1px;
        }

        .toast-content {
            flex: 1;
            min-width: 0;
        }

        .toast-title {
            font-size: 13px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 4px;
            line-height: 1.2;
            background: transparent !important;
        }

        .toast-message {
            font-size: 14px;
            font-weight: 600;
            line-height: 1.45;
            color: var(--text-0);
            word-break: break-word;
        }

        .toast-close {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            border: 1px solid transparent;
            background: transparent;
            color: var(--text-2);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .toast-close:hover {
            color: var(--text-0);
            border-color: var(--border);
            background: rgba(255, 255, 255, 0.05);
        }

        .toast-item.success {
            border-color: rgba(52, 211, 153, 0.3);
        }

        .toast-item.success .toast-icon {
            background: rgba(52, 211, 153, 0.16);
            color: var(--green);
        }

        .toast-item.success .toast-title {
            color: var(--text-0) !important;
            background: transparent !important;
        }
        .toast-item.success::after {
            display: none !important;
            background: transparent !important;
        }

        .toast-item.error {
            border-color: rgba(248, 113, 113, 0.3);
        }

        .toast-item.error .toast-icon {
            background: rgba(248, 113, 113, 0.14);
            color: var(--red);
        }

        .toast-item.error .toast-title {
            color: var(--text-0) !important;
            background: transparent !important;
        }
        .toast-item.error::after {
            display: none !important;
            background: transparent !important;
        }

        .toast-item.warning {
            border-color: rgba(251, 191, 36, 0.35);
        }

        .toast-item.warning .toast-icon {
            background: rgba(251, 191, 36, 0.14);
            color: var(--orange);
        }

        .toast-item.warning .toast-title {
            color: var(--text-0) !important;
            background: transparent !important;
        }
        .toast-item.warning::after {
            display: none !important;
            background: transparent !important;
        }

        .toast-item.info {
            border-color: rgba(167, 139, 250, 0.3);
        }

        .toast-item.info .toast-icon {
            background: rgba(167, 139, 250, 0.14);
            color: var(--accent-bright);
        }

        .toast-item.info .toast-title {
            color: var(--text-0) !important;
            background: transparent !important;
        }
        .toast-item.info::after {
            display: none !important;
            background: transparent !important;
        }

        @keyframes toastIn {
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes toastOut {
            to {
                opacity: 0;
                transform: translateY(-8px) scale(0.97);
            }
        }

        @keyframes toastProgress {
            from {
                transform: scaleX(1);
            }

            to {
                transform: scaleX(0);
            }
        }

        /* â”€â”€â”€ STATUS BAR â”€â”€â”€ */
        .stat-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 18px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: var(--bg-0);
            margin-bottom: 24px;
        }

        .stat-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-2);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-value {
            font-size: 14px;
            font-weight: 700;
            color: var(--accent-bright);
        }

        /* â”€â”€â”€ PRICING â”€â”€â”€ */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            width: 100%;
        }

        .price-card {
            background: var(--bg-1);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 32px 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: var(--transition-smooth);
            position: relative;
        }

        .price-card:hover {
            border-color: rgba(167, 139, 250, 0.3);
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), 0 0 40px rgba(167, 139, 250, 0.15);
            z-index: 2;
        }

        .price-card.featured {
            border-color: var(--accent);
            box-shadow: 0 0 40px var(--accent-glow), var(--shadow-soft);
        }

        .price-card.featured::before {
            content: 'PHỔ BIẾN NHẤT';
            position: absolute;
            top: -11px;
            left: 50%;
            transform: translateX(-50%);
            padding: 4px 14px;
            border-radius: var(--radius-full);
            font-size: 10px;
            font-weight: 800;
            background: var(--accent);
            color: #fff;
            letter-spacing: 1px;
            white-space: nowrap;
        }

        .price-name {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-2);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
        }

        .price-amount {
            font-size: 48px;
            font-weight: 900;
            color: var(--text-0);
            letter-spacing: -2px;
            margin-bottom: 4px;
        }

        .price-period {
            font-size: 13px;
            color: var(--text-2);
            margin-bottom: 20px;
        }

        .price-desc {
            font-size: 14px;
            color: var(--text-2);
            line-height: 1.6;
            margin-bottom: 28px;
            flex: 1;
        }

        .agency-card {
            grid-column: 1 / -1;
            background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
            border: 1px solid var(--border-accent);
            border-radius: var(--radius-lg);
            padding: 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
            box-shadow: 0 0 60px rgba(167, 139, 250, 0.05);
        }

        .agency-info {
            flex: 1;
        }

        .agency-price-box {
            text-align: center;
            padding: 28px 32px;
            background: rgba(167, 139, 250, 0.04);
            border: 1px solid var(--border-accent);
            border-radius: var(--radius-lg);
            min-width: 260px;
        }

        /* â”€â”€â”€ TABLE â”€â”€â”€ */
        .tbl {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
        }

        .tbl th:first-child {
            border-top-left-radius: calc(var(--radius-md) - 1px);
        }

        .tbl th:last-child {
            border-top-right-radius: calc(var(--radius-md) - 1px);
        }

        .tbl tr:last-child td:first-child {
            border-bottom-left-radius: calc(var(--radius-md) - 1px);
        }

        .tbl tr:last-child td:last-child {
            border-bottom-right-radius: calc(var(--radius-md) - 1px);
        }

        .tbl th {
            background: var(--bg-0);
            padding: 14px 18px;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-2);
            text-align: left;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 1px solid var(--border);
        }

        .tbl td {
            padding: 14px 18px;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
            font-weight: 500;
            vertical-align: middle;
        }

        .tbl tr:last-child td {
            border-bottom: none;
        }

        .tag {
            display: inline-flex;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tag-purple {
            background: rgba(167, 139, 250, 0.1);
            color: var(--accent-bright);
            border: 1px solid rgba(167, 139, 250, 0.2);
        }

        .tag-green {
            background: rgba(52, 211, 153, 0.1);
            color: var(--green);
            border: 1px solid rgba(52, 211, 153, 0.2);
        }

        .tag-red {
            background: rgba(248, 113, 113, 0.1);
            color: var(--red);
            border: 1px solid rgba(248, 113, 113, 0.2);
        }

        .tag-gray {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-2);
            border: 1px solid var(--border);
        }

        .tag-orange {
            background: rgba(251, 191, 36, 0.1);
            color: var(--orange);
            border: 1px solid rgba(251, 191, 36, 0.2);
        }

        .tag-blue {
            background: rgba(56, 189, 248, 0.1);
            color: #38bdf8;
            border: 1px solid rgba(56, 189, 248, 0.2);
        }

        select.sel {
            padding: 8px 12px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--bg-0);
            color: var(--text-0);
            font-size: 13px;
            font-weight: 600;
            font-family: inherit;
            outline: none;
            cursor: pointer;
        }

        select.sel:focus {
            border-color: var(--accent);
        }

        /* â”€â”€â”€ PROCESSING â”€â”€â”€ */
        .proc {
            display: none;
            text-align: center;
        }

        .proc.show {
            display: block;
        }

        .spinner {
            width: 48px;
            height: 48px;
            border: 3px solid var(--bg-3);
            border-top-color: var(--accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 24px;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .proc-step {
            font-size: 14px;
            color: var(--text-2);
            font-weight: 500;
            margin-bottom: 6px;
            opacity: 0;
            transform: translateY(8px);
            transition: all 0.4s ease;
        }

        .proc-step.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* â”€â”€â”€ STEPS â”€â”€â”€ */
        .step {
            display: flex;
            gap: 20px;
            margin-bottom: 28px;
        }

        .step:last-child {
            margin-bottom: 0;
        }

        .step-num {
            flex-shrink: 0;
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            background: var(--bg-0);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 800;
            color: var(--text-0);
        }

        .step-num.accent {
            background: rgba(167, 139, 250, 0.1);
            border-color: var(--border-accent);
            color: var(--accent-bright);
        }

        .step-body h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--text-0);
        }

        .step-body p {
            font-size: 14px;
            color: var(--text-2);
            line-height: 1.6;
        }

        /* â”€â”€â”€ FOOTER â”€â”€â”€ */
        .footer {
            text-align: center;
            padding: 32px 20px;
            font-size: 13px;
            color: var(--text-2);
            border-top: 1px solid var(--border);
            position: relative;
            z-index: 1;
            background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 10%;
            right: 10%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
        }

        .footer a {
            color: var(--accent-bright);
            text-decoration: none;
            transition: 0.2s;
        }

        .footer a:hover {
            color: var(--accent);
            text-decoration: underline;
        }

        /* â”€â”€â”€ LINK â”€â”€â”€ */
        .link {
            color: var(--accent-bright);
            text-decoration: none;
            font-weight: 600;
        }

        .link:hover {
            text-decoration: underline;
        }

        .divider {
            height: 1px;
            background: var(--border);
            margin: 24px 0;
        }

        .admin-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            z-index: 10010;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .admin-modal.show {
            display: flex;
            animation: fadeIn 0.2s ease forwards;
        }

        .modal-box {
            background: var(--bg-1);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 440px;
            padding: 30px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .text-center {
            text-align: center;
        }

        .mt-sm {
            margin-top: 12px;
        }

        .mt-md {
            margin-top: 20px;
        }

        .mt-lg {
            margin-top: 32px;
        }

        .mb-sm {
            margin-bottom: 12px;
        }

        .mb-md {
            margin-bottom: 20px;
        }

        .mb-lg {
            margin-bottom: 32px;
        }

        .gap-md {
            gap: 16px;
        }

        .gap-lg {
            gap: 20px;
        }

        .flex {
            display: flex;
        }

        .flex-col {
            flex-direction: column;
        }

        .items-center {
            align-items: center;
        }

        .justify-center {
            justify-content: center;
        }

        /* â”€â”€â”€ RESPONSIVE TABLET â”€â”€â”€ */
        @media (max-width: 1024px) {
            .pricing-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .agency-card {
                flex-direction: column;
                text-align: center;
            }
            .agency-price-box {
                min-width: unset;
                width: 100%;
            }
        }

        /* ─── RESPONSIVE MOBILE ─── */
        @media (max-width: 768px) {
            :root {
                --layout-gutter: 16px;
            }

            .nav-inner {
                padding: 0 16px;
            }

            .logo-text {
                gap: 6px;
            }

            .logo-text .brand-main {
                font-size: 15px;
            }

            .logo-text .brand-sub {
                font-size: 13px;
            }

            .chip {
                padding: 4px 10px;
                font-size: 11px;
            }

            .nav-menu {
                display: none;
            }

            .hide-m {
                display: none !important;
            }

            .nav-right {
                gap: 6px;
            }

            .hero-title {
                font-size: 32px;
                letter-spacing: -1px;
            }

            .hero-sub {
                font-size: 15px;
            }

            .page-title {
                font-size: 24px;
            }

            .heading {
                font-size: 22px;
            }

            .heading-sm {
                font-size: 18px;
            }

            .btn {
                padding: 16px 20px;
                font-size: 15px;
            }

            .card {
                padding: 24px 16px;
                border-radius: var(--radius-md);
            }

            .card:hover {
                transform: none;
            }

            .feature-card {
                padding: 20px;
            }

            .feature-card:hover {
                transform: none;
            }

            .faq-item:hover {
                transform: none;
            }

            .price-card:hover {
                transform: none;
            }

            .faq-item {
                padding: 16px;
            }

            .faq-item h4 {
                font-size: 14px;
            }

            .faq-item p {
                font-size: 13px;
            }

            .pricing-grid {
                grid-template-columns: 1fr;
            }

            .price-card {
                padding: 28px 20px;
            }

            .price-amount {
                font-size: 40px;
            }

            .agency-card {
                flex-direction: column;
                text-align: center;
                padding: 28px 20px;
            }

            .agency-price-box {
                min-width: unset;
                width: 100%;
            }

            .stat-bar {
                flex-direction: row;
                text-align: left;
                gap: 12px;
            }

            .step {
                gap: 14px;
            }

            .step-num {
                width: 38px;
                height: 38px;
                font-size: 14px;
            }

            .wrap {
                padding: 14px 16px 32px !important;
            }

            .footer {
                padding: 24px 16px 120px;
            }

            .bottom-nav {
                display: flex !important;
            }

            /* Table to Card Layout */
            .tbl,
            .tbl thead,
            .tbl tbody,
            .tbl tr,
            .tbl th,
            .tbl td {
                display: block;
                width: 100%;
                white-space: normal !important;
            }

            .tbl thead tr {
                display: none;
            }

            .tbl {
                border: none;
                background: transparent;
                border-radius: 0;
            }

            .tbl tr {
                margin-bottom: 16px;
                background: var(--bg-1);
                border-radius: var(--radius-lg);
                border: 1px solid var(--border);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
                padding: 12px 16px;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box;
            }

            .tbl td {
                border: none !important;
                padding: 10px 0 10px 45% !important;
                display: block !important;
                width: 100% !important;
                box-sizing: border-box !important;
                border-bottom: 1px dashed rgba(255, 255, 255, 0.1) !important;
                text-align: right;
                position: relative;
                min-height: 42px;
            }

            .tbl td::before {
                position: absolute;
                left: 0;
                top: 12px;
                width: 40%;
                content: attr(data-label);
                text-align: left;
                color: var(--text-2);
                font-size: 13px;
                font-weight: 700;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .tbl td:first-child::before {
                color: var(--text-2);
            }

            .tbl td.td-actions {
                border-bottom: none !important;
                padding: 10px 0 4px 0 !important;
                margin-top: 12px;
                display: flex !important;
                justify-content: flex-end;
                gap: 10px;
            }

            .tbl td.td-actions::before {
                display: none;
            }

            /* Admin table card refinements */
            .admin-panel .tbl td {
                min-height: 42px;
            }

            .admin-panel .tbl td::before {
                font-size: 12px;
                letter-spacing: 0.6px;
            }

            .admin-panel .tbl td[data-label="Tài khoản"] {
                font-size: 17px;
                font-weight: 800;
                line-height: 1.2;
            }

            .admin-panel .tbl td[data-label="ID"] {
                font-size: 20px;
                font-weight: 900;
                letter-spacing: -0.2px;
            }

            .admin-panel .tbl td[data-label="SĐT Zalo"],
            .admin-panel .tbl td[data-label="IP Đăng ký"],
            .admin-panel .tbl td[data-label="Phân quyền"] {
                font-size: 15px;
                line-height: 1.3;
            }

            .admin-panel .tbl td[data-label="Phân quyền"] .tag {
                font-size: 13px;
                padding: 6px 12px;
                border-radius: 10px;
            }

            .admin-panel .tbl td.td-actions {
                margin-top: 16px;
                min-height: 52px;
                align-items: center;
                justify-content: center;
                gap: 14px;
            }

            .admin-panel .tbl td.td-actions .action-btn {
                width: 44px;
                height: 44px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                border-radius: 10px;
                border: 1px solid var(--border);
                background: rgba(255, 255, 255, 0.02);
                padding: 0;
            }

            .admin-panel .tbl td.td-actions .action-btn svg {
                width: 20px;
                height: 20px;
            }

            .admin-panel .tbl td.td-actions form {
                display: inline-flex;
            }

            /* Comparison table mobile */
            .comparison-table {
                box-shadow: none !important;
                border: none !important;
            }

            .comparison-table th,
            .comparison-table td {
                white-space: normal !important;
                padding: 10px 6px !important;
                font-size: 12px;
                word-wrap: break-word;
            }

            .comparison-table th {
                font-size: 11.5px;
                padding: 10px 4px !important;
            }

            /* Modal, desc, toast */
            .modal-box {
                padding: 24px 20px;
                max-width: 95vw;
            }

            .desc {
                font-size: 14px;
            }

            .toast-stack {
                top: 76px;
                right: 10px;
                left: 10px;
                width: auto;
            }

            /* Admin Layout Column */
            .admin-wrap {
                width: 100% !important;
                max-width: 100% !important;
                padding: 0 !important;
                margin: 0 auto !important;
                box-sizing: border-box;
                align-items: stretch !important;
                flex-direction: column !important;
            }

            .admin-content {
                width: 100% !important;
                min-width: 0 !important;
                padding: 16px 12px !important;
                height: auto !important;
                overflow-y: visible !important;
            }

            .admin-sidebar {
                width: 100% !important;
                box-sizing: border-box;
                padding: 10px 12px !important;
                flex-direction: row !important;
                overflow-x: auto !important;
                gap: 6px !important;
                border-right: none !important;
                border-bottom: 1px solid var(--border) !important;
                scroll-snap-type: x mandatory;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .admin-sidebar::-webkit-scrollbar {
                display: none;
            }

            .admin-sidebar .admin-sidebar-title {
                display: none !important;
            }

            .admin-sidebar .admin-menu-link {
                margin-bottom: 0 !important;
                padding: 10px 14px !important;
                scroll-snap-align: start;
                white-space: nowrap;
                flex: 0 0 auto;
                font-size: 13px !important;
            }

            .admin-panel {
                width: 100% !important;
                max-width: 100% !important;
                padding: 16px 12px !important;
                box-sizing: border-box;
                border-radius: var(--radius-md) !important;
            }

            .admin-header {
                flex-direction: column;
                align-items: stretch;
            }

            .admin-header .heading {
                font-size: 18px !important;
                text-align: left;
            }

            .admin-stat-grid {
                grid-template-columns: 1fr 1fr !important;
                gap: 10px !important;
            }

            .admin-stat {
                padding: 14px !important;
            }

            .admin-stat-val {
                font-size: 22px !important;
            }

            /* Admin form grid 1 col */
            .admin-panel [style*="grid-template-columns:1fr 1fr"],
            .admin-panel [style*="grid-template-columns: 1fr 1fr"] {
                grid-template-columns: 1fr !important;
            }

            .admin-panel .field label {
                font-size: 13px;
            }

            .admin-panel .field .input {
                font-size: 14px;
            }

            .wrap {
                width: 100% !important;
                max-width: 100vw !important;
                overflow-x: hidden !important;
            }



            /* Tool page grid → 1 cột */
            #tool-grid {
                grid-template-columns: 1fr !important;
            }

            /* Guide layout 1 cột */
            .guide-layout {
                grid-template-columns: 1fr !important;
            }
        }
        /* â”€â”€â”€ ULTRA SMALL SCREENS â”€â”€â”€ */
        @media (max-width: 380px) {
            .hero-title {
                font-size: 28px;
            }

            .page-title {
                font-size: 22px;
            }

            .card {
                padding: 20px 14px;
            }

            .wrap {
                padding: 10px 12px 24px !important;
            }

            .btn {
                padding: 14px 16px;
                font-size: 14px;
            }

            .price-amount {
                font-size: 36px;
            }

            .premium-feature-grid {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 10px !important;
            }

            .admin-stat-grid {
                grid-template-columns: 1fr !important;
            }

            .admin-content {
                padding: 12px 8px !important;
            }
        }

        @media (min-width: 769px) {
            .bottom-nav {
                display: none !important;
            }
        }

        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(17, 17, 19, 0.92);
            backdrop-filter: blur(20px) saturate(1.5);
            -webkit-backdrop-filter: blur(20px) saturate(1.5);
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            display: none;
            padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
            z-index: 9999;
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
        }

        .bottom-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            color: var(--text-2);
            text-decoration: none;
            font-size: 9px;
            font-weight: 600;
            transition: var(--transition-smooth);
            padding: 8px 2px;
            border-radius: 12px;
            position: relative;
        }

        .bottom-nav-item svg {
            width: 22px;
            height: 22px;
            transition: var(--transition-smooth);
        }

        .bottom-nav-item.active {
            color: var(--accent-bright);
            background: rgba(167, 139, 250, 0.08);
        }

        .bottom-nav-item.active svg {
            transform: scale(1.1);
            filter: drop-shadow(0 0 6px var(--accent-glow));
        }

        .bottom-nav-item.active::after {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            border-radius: 0 0 4px 4px;
            background: var(--accent-bright);
        }

        /* â•â•â•â•â•â• THEMES â•â•â•â•â•â• */
        .theme-vip {
            --accent: #FBBF24;
            --accent-bright: #FDE68A;
            --accent-dim: #D97706;
            --accent-glow: rgba(251, 191, 36, 0.35);
            --border-accent: rgba(251, 191, 36, 0.25);
        }

        body.theme-vip::before {
            background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 60%);
        }

        .theme-agency {
            --accent: #3B82F6;
            --accent-bright: #93C5FD;
            --accent-dim: #2563EB;
            --accent-glow: rgba(59, 130, 246, 0.35);
            --border-accent: rgba(59, 130, 246, 0.25);
        }

        body.theme-agency::before {
            background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
        }

        .theme-admin {
            --accent: #EF4444;
            --accent-bright: #FCA5A5;
            --accent-dim: #DC2626;
            --accent-glow: rgba(239, 68, 68, 0.35);
            --border-accent: rgba(239, 68, 68, 0.25);
        }

        body.theme-admin::before {
            background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 60%);
        }

        body[data-mode="light"] {
            --bg-0: #f4f4f5 !important;
            --bg-1: #ffffff !important;
            --bg-2: #e4e4e7 !important;
            --bg-3: #d4d4d8 !important;
            --border: rgba(0, 0, 0, 0.1) !important;
            --border-accent: rgba(167, 139, 250, 0.4) !important;
            --text-0: #09090b !important;
            --text-1: #3f3f46 !important;
            --text-2: #71717a !important;
            --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
            --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
            --gradient-text-start: #09090b !important;
            --gradient-text-end: #3f3f46 !important;
            --feature-badge-bg: rgba(0, 0, 0, 0.03) !important;
            --feature-badge-border: rgba(0, 0, 0, 0.08) !important;
            --bg-surface: rgba(0, 0, 0, 0.02) !important;
        }

        body[data-mode="light"].theme-vip {
            --accent: #b45309 !important;
            --accent-bright: #92400e !important;
            --accent-dim: #78350f !important;
            --accent-glow: rgba(180, 83, 9, 0.26) !important;
            --border-accent: rgba(180, 83, 9, 0.34) !important;
        }
        body[data-mode="light"] {
            --accent: #7C3AED;
            --accent-bright: #8B5CF6;
            --accent-dim: #6D28D9;
            --accent-glow: rgba(124, 58, 237, 0.25);
            --green: #10B981;
            --red: #EF4444;
            --orange: #F59E0B;
            --bg-0: #F8FAFC;
            --bg-1: #FFFFFF;
            --bg-2: #F1F5F9;
            --bg-3: #E2E8F0;
            --bg-surface: rgba(0, 0, 0, 0.02);
            --border: rgba(0, 0, 0, 0.08);
            --border-accent: rgba(124, 58, 237, 0.2);
            --text-0: #0F172A;
            --text-1: #334155;
            --text-2: #64748B;
            --gradient-text-start: #4F46E5;
            --gradient-text-end: #7C3AED;
            --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
            --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.08);
            --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(124, 58, 237, 0.04);
            --feature-badge-bg: rgba(124, 58, 237, 0.05);
            --feature-badge-border: rgba(124, 58, 237, 0.15);
        }

        body[data-mode="light"].theme-agency {
            --accent: #2563eb !important;
            --accent-bright: #1d4ed8 !important;
            --accent-dim: #1e40af !important;
            --accent-glow: rgba(37, 99, 235, 0.24) !important;
            --border-accent: rgba(37, 99, 235, 0.32) !important;
        }

        body[data-mode="light"].theme-admin {
            --accent: #dc2626 !important;
            --accent-bright: #b91c1c !important;
            --accent-dim: #991b1b !important;
            --accent-glow: rgba(220, 38, 38, 0.24) !important;
            --border-accent: rgba(220, 38, 38, 0.3) !important;
        }

        body[data-mode="light"]::before,
        body[data-mode="light"]::after {
            opacity: 0.5;
        }

        body[data-mode="light"] .nav {
            background: rgba(255, 255, 255, 0.75);
        }

        body[data-mode="light"] #mmenu {
            background: rgba(255, 255, 255, 0.96);
        }

        body[data-mode="light"] .input {
            background: #ffffff;
        }

        body[data-mode="light"] .bottom-nav {
            background: rgba(255, 255, 255, 0.92);
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
        }

        body[data-mode="light"] .feature-card {
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
        }

        body[data-mode="light"] .feature-card:hover {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        }

        body[data-mode="light"] .footer {
            background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.02));
        }

        body[data-mode="light"] .bottom-nav-item.active {
            background: rgba(167, 139, 250, 0.06);
        }

        body[data-mode="light"] .logo-text .brand-main {
            color: #a95f7f;
            text-shadow: none;
        }

        body[data-mode="light"] .logo-text .brand-sub {
            color: #9f5f7c;
            text-shadow: none;
        }

        /* --- GLOBAL MOBILE PERFECTION --- */
        @media (max-width: 768px) {
            .input, .input-mono {
                font-size: 16px !important; /* Ngan chan loi Auto-Zoom Input tu dong am anh tren iPhone (iOS) */
                padding: 16px !important; /* De bam hon (Touch Target) */
            }
            .tbl th, .tbl td {
                white-space: nowrap !important; /* Ep bang khong bi bep dum cot, cho phep luot ngang an toan */
            }
        }

        body {
            font-family: var(--font-sans);
            background: var(--bg-0);
            color: var(--text-0);
            min-height: 100vh;
            overflow-x: clip !important;
            width: 100%;
            max-width: 100vw;
            position: relative;
            display: flex;
            flex-direction: column;
            text-rendering: optimizeLegibility;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* â”€â”€â”€ MOBILE SIDEBAR â”€â”€â”€ */
        .hamburger-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            margin-left: 8px;
            color: var(--text-1);
            align-items: center;
            justify-content: center;
        }

        .mobile-sidebar-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        
        .mobile-sidebar-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-sidebar {
            position: fixed;
            top: 0;
            right: 0;
            bottom: 0;
            width: 280px;
            background: var(--bg-1);
            z-index: 9999;
            transform: translateX(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            box-shadow: -8px 0 24px rgba(0, 0, 0, 0.1);
        }

        .mobile-sidebar.active {
            transform: translateX(0);
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 20px;
            border-bottom: 1px solid var(--glass-border);
        }

        .btn-close-sidebar {
            background: none;
            border: none;
            color: var(--text-2);
            cursor: pointer;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            transition: background 0.2s, color 0.2s;
        }
        
        .btn-close-sidebar:hover {
            background: var(--glass-bg);
            color: var(--text-1);
        }

        .sidebar-content {
            padding: 20px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .sidebar-link {
            display: block;
            padding: 12px 16px;
            border-radius: 10px;
            color: var(--text-2);
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            transition: var(--transition-bounce);
        }

        .sidebar-link:hover, .sidebar-link.active {
            color: var(--accent-bright);
            background: rgba(167, 139, 250, 0.1);
            transform: translateX(4px);
        }

        @media (max-width: 768px) {
            .hamburger-btn {
                display: flex;
            }
        }
