
        :root {
            --gold-primary: #d4af37;
            --gold-light: #f7d460;
            --gold-dark: #aa8c2c;
            --bg-dark: #0a0a0a;
            --bg-card: rgba(22, 22, 22, 0.75);
            --bg-card-hover: rgba(32, 32, 32, 0.85);
            --border-glass: rgba(212, 175, 55, 0.25);
            --border-subtle: rgba(255, 255, 255, 0.08);
            --text-main: #ffffff;
            --text-muted: #a0a0a0;
            --text-inverse: #000000;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            --radius-lg: 20px;
            --radius-md: 12px;
            --radius-sm: 8px;
            --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.6);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Light Mode Overrides */
        [data-theme="light"] {
            --bg-dark: #f4f5f7;
            --bg-card: rgba(255, 255, 255, 0.85);
            --bg-card-hover: rgba(255, 255, 255, 0.95);
            --border-glass: rgba(212, 175, 55, 0.4);
            --border-subtle: rgba(0, 0, 0, 0.08);
            --text-main: #111827;
            --text-muted: #6b7280;
            --text-inverse: #ffffff;
            --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.08);
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: var(--font-family);
            min-height: 100vh;
            line-height: 1.5;
            background-image: 
                radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(212, 175, 55, 0.05) 0%, transparent 40%);
            background-attachment: fixed;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .app-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .glass-card {
            background: var(--bg-card);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--border-glass);
            border-radius: var(--radius-lg);
            padding: 24px;
            box-shadow: var(--shadow-main);
            transition: var(--transition);
        }

        .glass-card:hover {
            border-color: rgba(212, 175, 55, 0.4);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
        }

        .card-header h2, .card-header h3 {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            background-color: var(--gold-primary);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--gold-primary);
        }

        .app-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 24px;
            margin-bottom: 24px;
            background: var(--bg-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-glass);
            box-shadow: var(--shadow-main);
        }

        .brand-container {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .brand-logo {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        }

        .brand-title {
            font-size: 1.5rem;
            font-weight: 900;
            letter-spacing: -0.03em;
            background: linear-gradient(90deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .brand-subtitle {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.1em;
        }

        .header-actions {
            display: flex;
            gap: 12px;
        }

        .main-grid {
            display: grid;
            grid-template-columns: 380px 1fr;
            gap: 24px;
        }

        @media (max-width: 1024px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
        }

        .console-panel {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .form-grid {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .form-group label {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-muted);
            letter-spacing: 0.05em;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-prefix, .input-suffix {
            position: absolute;
            font-weight: 700;
            color: var(--gold-primary);
            font-size: 0.9rem;
            pointer-events: none;
        }

        .input-prefix { left: 14px; }
        .input-suffix { right: 14px; }

        input[type="number"], .custom-select {
            width: 100%;
            padding: 12px 14px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            color: var(--text-main);
            font-size: 1rem;
            font-weight: 700;
            font-family: var(--font-family);
            transition: var(--transition);
        }

        [data-theme="light"] input[type="number"], 
        [data-theme="light"] .custom-select {
            background: rgba(255, 255, 255, 0.9);
        }

        .input-wrapper input[type="number"] {
            padding-left: 32px;
        }

        input[type="number"]:focus, .custom-select:focus {
            outline: none;
            border-color: var(--gold-primary);
            box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
        }

        .input-hint {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-style: italic;
        }

        .button-stack {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 10px;
        }

        .btn {
            padding: 12px 20px;
            border-radius: var(--radius-md);
            font-size: 0.9rem;
            font-weight: 800;
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: var(--transition);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .btn-lg { padding: 16px; font-size: 1rem; }
        .btn-block { width: 100%; }

        .btn-gold {
            background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
            color: #000000;
            box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
        }

        .btn-gold:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(212, 175, 55, 0.45);
        }

        .btn-glass {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            border: 1px solid var(--border-subtle);
        }

        .btn-glass:hover {
            background: rgba(212, 175, 55, 0.15);
            border-color: var(--gold-primary);
        }

        .btn-icon {
            width: 42px;
            height: 42px;
            padding: 0;
            border-radius: 50%;
        }

        .btn-text-danger {
            background: transparent;
            color: var(--danger);
            border: none;
            font-size: 0.8rem;
            cursor: pointer;
            font-weight: 700;
        }

        .dashboard-panel {
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
        }

        .stat-card {
            background: var(--bg-card);
            border-radius: var(--radius-md);
            padding: 20px;
            border: 1px solid var(--border-subtle);
            box-shadow: var(--shadow-main);
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .stat-card.gold-border {
            border-color: var(--gold-primary);
            background: linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent);
        }

        .stat-label {
            font-size: 0.7rem;
            font-weight: 800;
            color: var(--text-muted);
            letter-spacing: 0.08em;
        }

        .stat-value {
            font-size: 1.75rem;
            font-weight: 900;
            letter-spacing: -0.02em;
        }

        .gold-text {
            background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .stat-subtext {
            font-size: 0.7rem;
            color: var(--text-muted);
        }

        .charts-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
        }

        @media (max-width: 768px) {
            .charts-grid { grid-template-columns: 1fr; }
        }

        .canvas-container {
            position: relative;
            width: 100%;
            height: 240px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gauge-container {
            flex-direction: column;
        }

        .gauge-center-text {
            position: absolute;
            top: 55%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .gauge-score {
            font-size: 2.2rem;
            font-weight: 900;
        }

        .gauge-footer-text {
            text-align: center;
            font-size: 0.75rem;
            color: var(--text-muted);
            margin-top: 10px;
        }

        .chart-legend {
            display: flex;
            justify-content: center;
            gap: 16px;
            margin-top: 12px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .legend-color {
            width: 12px;
            height: 12px;
            border-radius: 3px;
        }

        .badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .badge-gold { background: rgba(212, 175, 55, 0.2); color: var(--gold-primary); }
        .badge-success { background: rgba(16, 185, 129, 0.2); color: var(--success); }
        .badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
        .badge-danger { background: rgba(239, 68, 68, 0.2); color: var(--danger); }

        .table-wrapper {
            overflow-x: auto;
        }

        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            text-align: left;
            font-size: 0.9rem;
        }

        .comparison-table th, .comparison-table td {
            padding: 14px;
            border-bottom: 1px solid var(--border-subtle);
        }

        .comparison-table th {
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--text-muted);
        }

        .comparison-table tr:hover {
            background: rgba(255, 255, 255, 0.03);
        }

        .comparison-table tr.highlight-row {
            background: rgba(212, 175, 55, 0.08);
        }

        .quotes-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 12px;
            margin-top: 12px;
        }

        .quote-card {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border-subtle);
            border-radius: var(--radius-md);
            padding: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .empty-state {
            color: var(--text-muted);
            font-size: 0.85rem;
            font-style: italic;
        }

        .smart-advice-card {
            border-left: 4px solid var(--gold-primary);
        }

        .advice-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 10px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .advice-list li {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            line-height: 1.4;
        }

        .advice-list li::before {
            content: "•";
            color: var(--gold-primary);
            font-weight: bold;
        }

        .hidden { display: none !important; }
        .flex-between { display: flex; justify-content: space-between; align-items: center; }

        .printable-summary { display: none; }

        @media print {
            body {
                background: #ffffff !important;
                color: #000000 !important;
            }
            .app-container > *:not(#printableArea) {
                display: none !important;
            }
            .printable-summary {
                display: block !important;
                padding: 40px;
                font-family: var(--font-family);
            }
            .print-header h2 { font-size: 20pt; color: #000; }
            .print-divider { margin: 20px 0; border: none; border-top: 2px solid #000; }
            .print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: 11pt; }
            .print-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; }
            .print-box { border: 1px solid #000; padding: 15px; text-align: center; }
            .print-box span { font-size: 8pt; font-weight: bold; }
            .print-box h3 { font-size: 16pt; margin-top: 5px; }
            .print-footer { margin-top: 40px; font-size: 8pt; color: #666; text-align: center; }
        }
    