
        /* CSS Variables */
        :root[data-theme="light"] {
            --bg-color: #f8fafc;
            --surface-color: #ffffff;
            --surface-hover: #f1f5f9;
            --text-primary: #0f172a;
            --text-secondary: #64748b;
            --border-color: #e2e8f0;
            --border-light: #f1f5f9;
            --accent-bg: #0f172a;
            --accent-text: #ffffff;
            --accent-hover: #1e293b;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --danger-bg: #fee2e2;
            --danger-text: #ef4444;
            --danger-hover: #fca5a5;
            --success-bg: #dcfce7;
            --success-text: #166534;
            --modal-overlay: rgba(0, 0, 0, 0.5);
            --glass-bg: rgba(255, 255, 255, 0.7);
            --glass-border: rgba(255, 255, 255, 0.3);
        }

        :root[data-theme="dark"] {
            --bg-color: #050505;
            --surface-color: #111111;
            --surface-hover: #1a1a1a;
            --text-primary: #ffffff;
            --text-secondary: #a0a0a0;
            --border-color: rgba(255, 255, 255, 0.1);
            --border-light: rgba(255, 255, 255, 0.05);
            --accent-bg: #ffffff;
            --accent-text: #000000;
            --accent-hover: #e5e5e5;
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
            --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.5);
            --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
            --danger-bg: rgba(239, 68, 68, 0.1);
            --danger-text: #ef4444;
            --danger-hover: rgba(239, 68, 68, 0.2);
            --success-bg: rgba(34, 197, 94, 0.1);
            --success-text: #4ade80;
            --modal-overlay: rgba(0, 0, 0, 0.8);
            --glass-bg: rgba(17, 17, 17, 0.7);
            --glass-border: rgba(255, 255, 255, 0.1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-primary);
            font-family: 'Manrope', sans-serif;
            transition: background-color 0.3s ease, color 0.3s ease;
            -webkit-font-smoothing: antialiased;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button {
            font-family: inherit;
            cursor: pointer;
            border: none;
            background: none;
        }

        /* Navigation */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border-color);
        }

        .nav-brand img {
            height: 32px;
            width: auto;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .nav-link {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-secondary);
            transition: color 0.2s;
        }

        .nav-link:hover {
            color: var(--text-primary);
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .theme-toggle {
            padding: 0.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            transition: background 0.2s;
        }

        .theme-toggle:hover {
            background: var(--surface-hover);
        }

        .btn-primary {
            background: var(--accent-bg);
            color: var(--accent-text);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            background: var(--accent-hover);
        }

        .btn-secondary {
            background: var(--surface-color);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s;
        }

        .btn-secondary:hover {
            background: var(--surface-hover);
        }

        .btn-danger {
            background: var(--danger-bg);
            color: var(--danger-text);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.2s;
        }

        .btn-danger:hover {
            background: var(--danger-hover);
        }

        /* User Menu */
        .user-menu {
            position: relative;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--accent-bg);
            color: var(--accent-text);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            cursor: pointer;
            user-select: none;
        }

        .user-dropdown {
            position: absolute;
            top: 120%;
            right: 0;
            background: var(--surface-color);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: var(--shadow-lg);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s;
            overflow: hidden;
            z-index: 100;
        }

        .user-menu:hover .user-dropdown, .user-menu:focus-within .user-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .user-email-display {
            padding: 1rem;
            border-bottom: 1px solid var(--border-color);
            font-size: 0.9rem;
            color: var(--text-secondary);
            word-break: break-all;
        }

        .dropdown-item {
            display: block;
            padding: 0.75rem 1rem;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.95rem;
            transition: background 0.2s;
        }

        .dropdown-item:hover {
            background: var(--surface-hover);
        }
        
        .dropdown-item.danger {
            color: var(--danger-text);
        }

        /* Main Content */
        .main-content {
            flex: 1;
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .hero {
            text-align: center;
            margin-bottom: 4rem;
            animation: fadeUp 0.6s ease forwards;
        }

        .hero-title {
            font-size: clamp(2.5rem, 4vw, 3.5rem);
            font-weight: 800;
            letter-spacing: -0.03em;
            margin-bottom: 1rem;
            margin-top: 3rem;
        }

        .hero-subtitle {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
        }

        /* Section Headings */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 2rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 1rem;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
        }

        /* Cards Grid */
        .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .purchase-card {
            background: var(--surface-color);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 2rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .purchase-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .card-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: var(--surface-hover);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
        }

        .card-title {
            font-size: 1.2rem;
            font-weight: 700;
        }

        .card-meta {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .badge.active {
            background: var(--success-bg);
            color: var(--success-text);
        }
        
        .card-actions {
            margin-top: auto;
            padding-top: 1.5rem;
            display: flex;
            gap: 1rem;
            flex-direction: column;
        }
        
        .card-actions .btn-primary, .card-actions .btn-danger {
            width: 100%;
            text-align: center;
        }

        /* Modals */
        /* Modal Redesign - Premium SaaS Split Layout */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.4s ease, visibility 0.4s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

                .dialog {
            display: flex;
            width: 100%;
            max-width: 820px;
            height: 690px;
            background: #e9e9e9;
            border-radius: 22px;
            padding: 20px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            position: relative;
            transform: translateY(20px) scale(0.98);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .modal-overlay.active .dialog {
            transform: translateY(0) scale(1);
        }

        .visual {
            position: relative;
            flex: 0 0 42%;
            border-radius: 18px;
            overflow: hidden;
            background:
                radial-gradient(ellipse 120% 60% at 50% 0%, #6b6b6b 0%, #3a3a3a 45%, #1a1a1a 100%),
                linear-gradient(180deg, #2b2b2b 0%, #060606 100%);
            background-blend-mode: overlay;
            color: #fff;
            
        
        }

        .visual::before {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 90% 40% at 20% 55%, rgba(180,180,180,0.35), transparent 60%),
                radial-gradient(ellipse 100% 35% at 75% 68%, rgba(150,150,150,0.25), transparent 60%),
                radial-gradient(ellipse 120% 30% at 50% 85%, rgba(90,90,90,0.5), transparent 65%),
                linear-gradient(180deg, transparent 0%, #050505 100%);
        }

        .visual-content {
            position: relative;
            z-index: 2;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 20px 22px;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 13px;
        }

        .brand-icon {
            width: 22px;
            height: 22px;
            background: rgba(255,255,255,0.12);
            border-radius: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }

        .visual-copy h1 {
            font-size: 22px;
            font-weight: 700;
            line-height: 1.25;
            margin-bottom: 10px;
        }

        .visual-copy p {
            font-size: 12.5px;
            color: rgba(255,255,255,0.65);
            line-height: 1.5;
            max-width: 220px;
        }

        .form-panel {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #ffffff;
            border-radius: 18px;
            position: relative;
        }

        .form-inner {
            width: 100%;
            max-width: 320px;
        }

        .form-inner h2 {
            font-size: 26px;
            font-weight: 700;
            color: #111;
            margin-bottom: 6px;
        }

        .form-inner > p {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 28px;
        }

        .field {
            margin-bottom: 18px;
        }

        .field-label-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 6px;
        }

        .field-label-row label {
            font-size: 13px;
            font-weight: 600;
            color: #111;
        }

        .forgot {
            font-size: 12.5px;
            color: #6b7280;
            text-decoration: none;
            cursor: pointer;
        }
        .forgot:hover { color: #111; }

        .dialog input[type="email"],
        .dialog input[type="text"],
        .dialog input[type="password"] {
            width: 100%;
            padding: 11px 14px;
            font-size: 14px;
            border: 1px solid #d9dbe0;
            border-radius: 9px;
            outline: none;
            color: #111;
            background: #fff;
            transition: border-color .15s ease, box-shadow .15s ease;
        }

        .dialog input::placeholder { color: #a0a3ab; }

        .dialog input:focus {
            border-color: #111;
            box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
        }

        .checkbox-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 22px;
        }

        .checkbox-row input {
            width: 15px;
            height: 15px;
            accent-color: #111;
            cursor: pointer;
        }

        .checkbox-row label {
            font-size: 13px;
            font-weight: 400;
            color: #374151;
            cursor: pointer;
        }

        .dialog .btn-primary {
            width: 100%;
            padding: 12px;
            background: #14161f;
            color: #fff;
            border: none;
            border-radius: 9px;
            font-size: 14.5px;
            font-weight: 600;
            cursor: pointer;
            transition: background .15s ease;
        }

        .dialog .btn-primary:hover { background: #23252f; }

        .divider {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 18px 0;
        }
        .divider::before,
        .divider::after {
            content: "";
            flex: 1;
            height: 1px;
            background: #e5e7eb;
        }
        .divider span {
            font-size: 11.5px;
            color: #9ca3af;
            font-weight: 500;
        }

        .oauth-row {
            display: flex;
            gap: 12px;
            margin-bottom: 22px;
            width: 100%;
        }

        .btn-oauth {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px;
            background: #fff;
            border: 1px solid #d9dbe0;
            border-radius: 9px;
            font-size: 13.5px;
            font-weight: 500;
            color: #111;
            cursor: pointer;
            transition: background .15s ease, border-color .15s ease;
        }

        .btn-oauth:hover { background: #f9fafb; border-color: #c3c6cd; }

        .btn-oauth svg { width: 16px; height: 16px; }

        .footer-text {
            font-size: 13px;
            color: #6b7280;
            text-align: left;
            margin-top: 18px;
        }

        .footer-text span {
            color: #4f46e5;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
        }
        .footer-text span:hover { text-decoration: underline; }

        .modal-close {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: #f3f4f6;
            color: #6b7280;
            border: none;
            cursor: pointer;
            transition: all 0.2s ease;
            z-index: 10;
        }

        .modal-close:hover {
            color: #111;
            background: #e5e7eb;
        }

        @media (max-width: 800px) {
            .dialog { flex-direction: column; height: auto; max-height: 110vh; overflow-y:auto; background-color:transparent; }
            .visual { flex: none; height: 110px; }
            .form-panel { padding: 20px 20px; }
            .brand{display:none}
        }

        .modal-notice {
            margin-top: 1.5rem;
            /* padding: 1rem 1.25rem; */
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.6;
            display: flex;
            gap: 0.75rem;
            align-items: flex-start;
        }
        
        .modal-notice::before {
            /* content: 'â„¹'; */
            font-size: 1.1rem;
            color: var(--text-primary);
            opacity: 0.7;
        }

        .error-message {
            color: #ef4444;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.2);
            padding: 0.75rem;
            border-radius: 8px;
            font-size: 0.85rem;
            text-align: center;
            margin-top: 1.5rem;
        }
        
        @media (max-width: 480px) {
            .modal-form-side {
                padding: 2.5rem 1.5rem;
            }
            .modal-card {
                border-radius: 20px;
                min-height: auto;
            }
        }

        /* Footer */
        footer {
            --bg: #0A0A0A;
            --fg: #FAFAFA;
            --muted: #171717;
            --muted-fg: #A3A3A3;
            --accent: #FAFAFA;
            --accent-fg: #0A0A0A;
            --border: #262626;
            background-color: var(--bg);
            color: var(--fg);
            border-top: 1px solid var(--border);
            margin-top: auto;
        }

        .footer-inner {
            max-width: 95vw;
            margin: 0 auto;
            padding: 4rem 2rem 3rem;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 3rem;
        }

        @media (max-width: 768px) {
            .footer-inner {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
        }

        .footer-brand {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.03em;
            text-transform: uppercase;
            color: var(--fg);
            margin-bottom: 1rem;
        }

        .footer-brand img {
            height: 39px;
            width: auto;
            object-fit: contain;
        }

        .footer-tagline {
            font-size: 0.875rem;
            color: var(--muted-fg);
            line-height: 1.6;
        }

        .footer-col-title {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--fg);
            margin-bottom: 1rem;
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            padding: 0;
            margin: 0;
        }

        .footer-links a {
            font-size: 0.875rem;
            color: var(--muted-fg);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--fg);
        }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding: 1.5rem 2rem;
            max-width: 95vw;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .footer-copy {
            font-size: 0.8125rem;
            color: var(--muted-fg);
        }

        .footer-badge {
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            background: var(--muted);
            color: var(--fg);
            padding: 0.35rem 0.85rem;
        }

        .social-icons {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 0.5rem;
        }

        .social-icon {
            color: rgba(255, 255, 255, 0.8);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .social-icon:hover {
            color: #fff;
            background: rgba(255, 255, 255, 0.15);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-4px) scale(1.05);
            filter: brightness(1.2) drop-shadow(0 8px 12px rgba(255, 255, 255, 0.15));
        }

        .brand-signature {
            border-top: 1px solid var(--border);
            padding: 6rem 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            user-select: none;
        }

        .brand-sig-wrap {
            position: relative;
            display: inline-block;
            cursor: none;
        }

        .brand-sig-base {
            font-family: 'Manrope', sans-serif;
            font-size: clamp(5rem, 14vw, 14rem);
            font-weight: 800;
            letter-spacing: -0.06em;
            text-transform: uppercase;
            color: #F0F0F0;
            line-height: 0.9;
            display: block;
            white-space: nowrap;
            color: rgba(255, 255, 255, 0.1);
        }

        .brand-sig-colored {
            font-family: 'Manrope', sans-serif;
            font-size: clamp(5rem, 14vw, 14rem);
            font-weight: 800;
            letter-spacing: -0.06em;
            text-transform: uppercase;
            background: #000000;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 0.9;
            white-space: nowrap;
            position: absolute;
            inset: 0;
            -webkit-mask-image: radial-gradient(circle 245px at var(--mx, -9999px) var(--my, -9999px), black 40%, transparent 80%);
            mask-image: radial-gradient(circle 245px at var(--mx, -9999px) var(--my, -9999px), black 40%, transparent 80%);
            will-change: -webkit-mask-image, mask-image;
            transition: -webkit-mask-image 0.05s, mask-image 0.05s;
        }

        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }

        
        .empty-state {
            background: var(--surface-color);
            border: 1px dashed var(--border-color);
            border-radius: 24px;
            padding: 4rem 2rem;
            text-align: center;
            margin-bottom: 4rem;
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
            }
            .hero-title {
                font-size: 2rem;
            }
            .cards-grid {
                grid-template-columns: 1fr;
            }
            .main-content {
                padding: 2rem 1.5rem;
            }
            
            .hamburger {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: 24px;
                height: 18px;
                cursor: pointer;
            }
            
            .hamburger span {
                display: block;
                height: 2px;
                width: 100%;
                background: var(--text-primary);
                border-radius: 2px;
                transition: all 0.3s ease;
            }
            
            .mobile-menu {
                position: fixed;
                top: 0;
                right: -100%;
                width: 280px;
                height: 100vh;
                background: var(--surface-color);
                box-shadow: var(--shadow-lg);
                padding: 5rem 2rem 2rem;
                transition: right 0.3s ease;
                z-index: 90;
                display: flex;
                flex-direction: column;
                gap: 2rem;
            }
            
            .mobile-menu.active {
                right: 0;
            }
            
            .mobile-menu .nav-link {
                font-size: 1.2rem;
            }
        }
        
        .jinja-hidden { display: none; }
        
        @media (min-width: 769px) {
            .hamburger { display: none; }
            .mobile-menu { display: none; }
        }