        :root {
            --bg-main: #0b0f19;
            --bg-card: #111827;
            --bg-input: #1f2937;
            --accent: #3b82f6;
            --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
            --text-main: #f9fafb;
            --text-muted: #9ca3af;
            --text-success: #10b981;
            --border: #374151;
            --winner-bg: rgba(16, 185, 129, 0.1);
            --winner-border: rgba(16, 185, 129, 0.3);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }

        body {
            background-color: var(--bg-main);
            color: var(--text-main);
            line-height: 1.6;
            padding: 0;
        }

        header {
            border-bottom: 1px solid var(--border);
            background: rgba(17, 24, 39, 0.85);
            backdrop-filter: blur(12px);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo {
            font-weight: 800;
            font-size: 1.25rem;
            letter-spacing: -0.05em;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .nav-links {
            display: flex;
            gap: 1.5rem;
            font-size: 0.875rem;
            color: var(--text-muted);
        }

        .hero {
            max-width: 800px;
            margin: 2.5rem auto 1.5rem auto;
            text-align: center;
            padding: 0 1rem;
        }
        .hero h1 {
            font-size: 2.5rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            margin-bottom: 0.5rem;
            line-height: 1.2;
        }
        .hero p {
            color: var(--text-muted);
            font-size: 1.125rem;
        }

        /* Responsive Layout Application */
        .workspace-split {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem 3rem 2rem;
            display: grid;
            grid-template-columns: 350px 1fr; /* Persistent Desktop Sidebar */
            gap: 2.5rem;
            align-items: start;
        }

        /* Persistent Control Panel Sidebar */
        .control-panel-sidebar {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 1.75rem;
            position: sticky;
            top: 90px;
        }
        .sidebar-section {
            margin-bottom: 1.5rem;
        }

        .fx-status {
            font-size: 12px;
            opacity: 0.65;
            margin-top: 4px;
        }

        /* Share Link Components */
        .btn-share {
            width: 100%;
            background: #2563eb;
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: background 0.2s;
            margin-top: 1rem;
        }
        .btn-share:hover { background: #1d4ed8; }
        .toast {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: var(--text-success);
            color: var(--bg-main);
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 700;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1000;
            pointer-events: none;
        }
        .toast.show { opacity: 1; }

        /* Optional/Collapsible Custom Joint Feature */
        .custom-creator-accordion {
            border-top: 1px dashed var(--border);
            margin-top: 1.5rem;
            padding-top: 1.5rem;
        }
        .accordion-trigger {
            background: none;
            border: none;
            color: var(--accent);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            letter-spacing: 0.05em;
        }
        .accordion-content {
            margin-top: 1rem;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        .accordion-content.collapsed {
            display: none;
        }
        .accordion-input-row {
            margin-top: 0.75rem;
        }
        .btn-submit-custom {
            background: var(--accent-gradient);
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            margin-top: 0.5rem;
            transition: opacity 0.2s;
        }
        .btn-submit-custom:hover { opacity: 0.9; }

        label {
            display: block;
            font-size: 0.75rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .input-group { position: relative; }
        .input-group .currency-indicator, .input-group .percent-indicator {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-muted);
            font-weight: 600;
        }
        .input-group .percent-indicator { left: auto; right: 1rem; }
        input, select {
            width: 100%;
            background: var(--bg-input);
            border: 1px solid var(--border);
            color: var(--text-main);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 1rem;
            outline: none;
        }
        input.has-prefix { padding-left: 3rem; }
        input.has-suffix { padding-right: 2.5rem; }
        input:focus, select:focus { border-color: var(--accent); }

        /* Board Workspace Output Column */
        .output-column {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Winner Summary Deck Component */
        .winner-summary-deck {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
            background: rgba(17, 24, 39, 0.6);
            border: 1px dashed var(--border);
            padding: 1.25rem;
            border-radius: 16px;
        }
        .winner-block-card {
            padding-left: 0.75rem;
        }
        .card-retained { border-left: 3px solid #10b981; }
        .card-burden { border-left: 3px solid #3b82f6; }
        .card-compliance { border-left: 3px solid #f59e0b; }

        .winner-block-card span {
            display: block;
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-muted);
            font-weight: 700;
        }
        .winner-block-card p {
            font-size: 1.15rem;
            font-weight: 800;
            margin-top: 0.1rem;
        }

        /* Virality Insights Summary Banner */
        .insights-conclusion-banner {
            background: var(--winner-bg);
            border: 1px solid var(--winner-border);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            font-size: 0.95rem;
            color: #d1fae5;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-weight: 500;
        }
        .insights-conclusion-banner.hidden { display: none; }
        .banner-icon { font-size: 1.25rem; }

        .comparison-board {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.75rem;
        }

        .country-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 2rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        .country-card.rank-winner {
            border-color: rgba(16, 185, 129, 0.4);
            box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.1);
        }
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }
        .card-header-title {
            display: flex;
            gap: 0.5rem;
            align-items: center;
        }
        .card-header-subtitle {
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        .remove-btn {
            background: none;
            border: none;
            color: #ef4444;
            cursor: pointer;
            font-size: 0.875rem;
        }

        .matrix-row {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            font-size: 0.95rem;
        }
        .matrix-row .converted-val {
            display: block;
            font-size: 0.75rem;
            color: var(--text-muted);
            text-align: right;
        }
        .matrix-row.highlight {
            font-weight: 700;
            color: var(--text-success);
            font-size: 1.25rem;
            border-top: 1px dashed var(--border);
            border-bottom: none;
            margin-top: 1rem;
            padding-top: 1.25rem;
        }
        .highlight-meta {
            display: flex;
            flex-direction: column;
        }
        .max-yield-badge {
            font-size: 0.65rem;
            text-transform: uppercase;
            color: var(--text-success);
            letter-spacing: 0.05em;
        }
        .net-takehome-muted {
            color: var(--text-muted);
            font-weight: 400;
        }
        
        .context-insights {
            margin-top: 1.5rem;
            padding: 1rem;
            background: rgba(255,255,255,0.02);
            border-radius: 8px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .meta-dashboard-strip {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 1rem;
        }
        .meta-indicator-card {
            background: rgba(255,255,255,0.02);
            border: 1px solid var(--border);
            padding: 1rem;
            border-radius: 10px;
        }
        .meta-indicator-card span {
            display: block;
            font-size: 0.75rem;
            color: var(--text-muted);
            font-weight: 700;
            text-transform: uppercase;
        }
        .meta-indicator-card p {
            font-size: 1rem;
            font-weight: 600;
            margin-top: 0.25rem;
        }
        .status-live { color: var(--text-success); }

        /* Responsive Mobile Mechanics Override */
        @media(max-width: 968px) {
            .workspace-split {
                grid-template-columns: 1fr;
                padding: 0 1rem 3rem 1rem;
                gap: 2rem;
            }
            .control-panel-sidebar {
                order: 2;
                position: static;
            }
            .output-column {
                order: 1;
            }
        }

        /* SEO / Content Section Styling */
        .seo-authority-block {
            max-width: 900px;
            margin: 0 auto;
            padding: 4rem 1rem 2rem 1rem;
            border-top: 1px solid var(--border);
        }
        .seo-section { margin-bottom: 3rem; }
        .seo-section h2 {
            font-size: 1.75rem;
            font-weight: 800;
            margin-bottom: 1.25rem;
            color: var(--text-main);
        }
        .seo-section p {
            color: var(--text-muted);
            margin-bottom: 1rem;
        }
        .faq-item {
            margin-bottom: 1.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            padding: 1.5rem;
            border-radius: 12px;
        }
        .faq-item h3 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
            color: var(--text-main);
        }
        .disclaimer-stamp {
            font-size: 0.8rem;
            color: var(--text-muted);
            background: rgba(255,255,255,0.03);
            padding: 1rem;
            border-radius: 8px;
            border-left: 3px solid var(--accent);
        }

        footer {
            background: #070a12;
            border-top: 1px solid var(--border);
            padding: 4rem 2rem;
            margin-top: 2rem;
        }
        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2.5rem;
        }
        .footer-col h4 {
            font-size: 0.875rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 1.25rem;
            color: var(--text-main);
        }
        .footer-col ul { list-style: none; }
        .footer-col ul li { margin-bottom: 0.75rem; }
        .footer-col ul li a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        .footer-col ul li a:hover { color: var(--accent); }
        .footer-bottom {
            max-width: 1400px;
            margin: 3rem auto 0 auto;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.05);
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-muted);
        }