 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: all 0.2s ease;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #f5f7fc 0%, #eef2f7 100%);
            color: #1e293b;
            line-height: 1.5;
            min-height: 100vh;
        }

        /* Base container & cards */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1.5rem;
        }

        .card {
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(0px);
            border-radius: 32px;
            box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.02);
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.5);
        }

        /* Header */
        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 50;
        }

        .header-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0.8rem 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo a {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
            color: #0f172a;
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: linear-gradient(135deg, #08859B, #06b6d4);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: white;
            box-shadow: 0 6px 12px -6px rgba(8, 133, 155, 0.3);
        }

        .logo-text {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.3px;
        }

        .logo-text span {
            background: linear-gradient(135deg, #08859B, #F8BE2E);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .nav-buttons {
            display: flex;
            gap: 0.75rem;
        }

        .btn-icon {
            background: #f1f5f9;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 40px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #1e293b;
            transition: 0.2s;
        }

        .btn-icon:hover {
            background: #e2e8f0;
            transform: scale(0.97);
        }

        /* Card header */
        .card-header {
            background: linear-gradient(135deg, #0f2c31, #0a3b44);
            padding: 2rem 1.8rem;
            color: white;
        }

        .card-header h1 {
            font-size: 1.9rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .card-header p {
            opacity: 0.85;
            font-size: 0.95rem;
        }

        /* Input group */
        .input-group {
            padding: 1.2rem 1.8rem;
        }

        .input-group label {
            font-weight: 600;
            margin-bottom: 8px;
            display: block;
            font-size: 0.9rem;
            letter-spacing: -0.2px;
        }

        textarea, input {
            width: 100%;
            padding: 0.85rem 1rem;
            border: 1.5px solid #e2e8f0;
            border-radius: 20px;
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 0.95rem;
            background: #ffffff;
            transition: 0.2s;
            outline: none;
        }

        textarea:focus, input:focus {
            border-color: #08859B;
            box-shadow: 0 0 0 3px rgba(8, 133, 155, 0.2);
        }

        textarea {
            min-height: 120px;
            resize: vertical;
        }

        /* control rows */
        .control-row {
            display: flex;
            gap: 1.2rem;
            padding: 0.2rem 1.8rem 1rem 1.8rem;
            flex-wrap: wrap;
        }

        .control-row > div {
            flex: 1;
            min-width: 160px;
        }

        /* options panel */
        .options-panel {
            background: #f8fafc;
            margin: 0 1.8rem 1rem 1.8rem;
            padding: 1.2rem;
            border-radius: 28px;
            display: flex;
            flex-wrap: wrap;
            gap: 1.2rem;
            align-items: center;
            border: 1px solid #eef2ff;
        }

        .option {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            cursor: pointer;
            background: white;
            padding: 0.4rem 1rem;
            border-radius: 40px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.05);
        }

        .option input {
            width: 18px;
            height: 18px;
            accent-color: #08859B;
        }

        /* stats grid */
        .stats-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            padding: 0.2rem 1.8rem 1rem 1.8rem;
        }

        .stat-card {
            background: #ffffff;
            border-radius: 24px;
            padding: 1rem 1.2rem;
            flex: 1;
            min-width: 110px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
            border: 1px solid #eef2f8;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 800;
            background: linear-gradient(135deg, #0f2c31, #08859B);
            background-clip: text;
            -webkit-background-clip: text;
            color: transparent;
        }

        .stat-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #475569;
        }

        /* action buttons */
        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            padding: 1rem 1.8rem 2rem 1.8rem;
            border-top: 1px solid #eef2f8;
            margin-top: 0.2rem;
        }

        .btn {
            padding: 0.7rem 1.2rem;
            border-radius: 40px;
            border: none;
            font-weight: 600;
            font-size: 0.85rem;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.2s;
            background: #f1f5f9;
            color: #1e293b;
        }

        .btn-primary {
            background: #08859B;
            color: white;
            box-shadow: 0 5px 12px rgba(8, 133, 155, 0.3);
        }

        .btn-primary:hover {
            background: #066d7e;
            transform: translateY(-2px);
        }

        .btn-accent {
            background: #F8BE2E;
            color: #0f172a;
        }

        .btn-accent:hover {
            background: #e0a800;
            transform: translateY(-2px);
        }

        .btn-outline {
            background: transparent;
            border: 1.5px solid #cbd5e1;
        }

        .btn-danger {
            background: #ef4444;
            color: white;
        }

        .btn-danger:hover {
            background: #dc2626;
        }

        .btn:hover {
            transform: translateY(-2px);
            filter: brightness(0.97);
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%) scale(0.9);
            background: #1e293b;
            color: white;
            padding: 0.8rem 1.5rem;
            border-radius: 60px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            opacity: 0;
            visibility: hidden;
            transition: 0.2s;
            z-index: 1000;
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
            backdrop-filter: blur(8px);
        }

        .toast.show {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) scale(1);
        }

        /* DARK THEME FIXES + VARIABLES */
        body.dark-theme {
            background: linear-gradient(135deg, #0a0f1a 0%, #0f172a 100%);
            color: #e2e8f0;
        }

        body.dark-theme .card {
            background: #1e293b;
            border-color: #334155;
        }

        body.dark-theme .card-header {
            background: linear-gradient(135deg, #06555e, #08859B);
        }

        body.dark-theme textarea,
        body.dark-theme input {
            background: #0f172a;
            color: #f1f5f9;
            border-color: #334155;
        }

        body.dark-theme .options-panel {
            background: #0f172a;
            border-color: #2d3a4e;
        }

        body.dark-theme .option {
            background: #1e293b;
            color: #e2e8f0;
        }

        body.dark-theme .stat-card {
            background: #0f172a;
            border-color: #2d3a4e;
        }

        body.dark-theme .btn-icon {
            background: #334155;
            color: #e2e8f0;
        }

        body.dark-theme .btn-outline {
            border-color: #475569;
            color: #cbd5e1;
        }

        body.dark-theme .stat-label {
            color: #94a3b8;
        }

        header {
            backdrop-filter: blur(12px);
        }

        body.dark-theme header {
            background: rgba(15, 23, 42, 0.9);
            border-bottom-color: #334155;
        }

        /* responsive refinements */
        @media (max-width: 768px) {
            .container {
                padding: 1rem;
            }
            .card-header h1 {
                font-size: 1.4rem;
            }
            .control-row {
                flex-direction: column;
                gap: 0.8rem;
            }
            .options-panel {
                flex-direction: column;
                align-items: stretch;
            }
            .option {
                justify-content: space-between;
            }
            .action-buttons {
                justify-content: center;
            }
            .btn {
                flex: 1;
                justify-content: center;
            }
            .stat-value {
                font-size: 1.3rem;
            }
        }

        @media (max-width: 480px) {
            .logo-text {
                font-size: 1.1rem;
            }
            .logo-icon {
                width: 34px;
                height: 34px;
                font-size: 1rem;
            }
        }