        :root {
            --bg-deep: #020408;
            --panel-bg: #0b101a;
            --gold-primary: #c5a059;
            --gold-light: #e2c999;
            --text-main: #ffffff;
            --text-muted: #94a3b8;
            --border-gold: rgba(197, 160, 89, 0.3);
            --success: #22c55e;
        }

        * { box-sizing: border-box; transition: all 0.2s ease; }
        body {
            font-family: 'Inter', sans-serif;
            background: var(--bg-deep);
            color: var(--text-main);
            margin: 0; padding: 20px;
        }

        .container { width: 100%; max-width: 1300px; margin: 0 auto; }
        header { text-align: center; margin-bottom: 30px; padding: 20px; border-bottom: 1px solid var(--border-gold); }
        .logo-text { font-family: 'Cinzel', serif; font-size: 2.2rem; color: var(--gold-primary); letter-spacing: 8px; margin: 0; }
        .tagline { font-size: 11px; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 2px; }

        .main-grid { display: grid; grid-template-columns: 380px 1fr 320px; gap: 25px; }
        .card { background: var(--panel-bg); border: 1px solid var(--border-gold); padding: 25px; border-radius: 8px; height: fit-content; }
        
        .section-title { font-family: 'Cinzel', serif; font-size: 13px; color: var(--gold-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
        .section-title::after { content: ""; flex: 1; height: 1px; background: var(--border-gold); }

        .input-group { margin-bottom: 15px; }
        .input-group label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
        input {
            width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(197, 160, 89, 0.2);
            padding: 12px; border-radius: 4px; color: #fff; font-size: 14px; outline: none;
        }

        .selector-box { display: flex; gap: 5px; margin-top: 5px; background: rgba(0,0,0,0.2); padding: 4px; border-radius: 6px; }
        .sel-btn { 
            flex: 1; padding: 10px 2px; border: 1px solid transparent; background: transparent; 
            color: var(--text-muted); font-size: 10px; font-weight: 700; cursor: pointer; border-radius: 4px;
            text-transform: uppercase;
        }
        .sel-btn.active { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }

        .res-display { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
        .res-box { background: rgba(15, 23, 42, 0.8); padding: 20px; border-radius: 6px; border-left: 4px solid var(--gold-primary); }
        .res-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 8px; }
        .res-value { font-size: 22px; font-weight: 800; }
        .gold { color: var(--gold-primary); }
        .green { color: var(--success); }

        .btn-action {
            width: 100%; padding: 11px 16px; background: linear-gradient(135deg, #8e7037, var(--gold-primary));
            border: none; border-radius: 6px; color: #000; font-weight: 700; text-transform: uppercase; cursor: pointer;
            margin-top: 15px; letter-spacing: 1px; font-size: 11.5px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        }
        .btn-action:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 15px rgba(197, 160, 89, 0.25);
        }

        .badge-toggle {
            font-size: 9px;
            padding: 3px 6px;
            border-radius: 4px;
            background: transparent;
            border: 1px solid var(--border-gold);
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            text-transform: uppercase;
            font-weight: 800;
        }
        .badge-toggle.active {
            background: var(--gold-primary);
            color: #000;
            border-color: var(--gold-primary);
        }

        /* Gear Settings */
        .settings-area {
            margin-top: 25px;
            display: flex;
            justify-content: flex-start;
        }
        .gear-select-wrapper {
            position: relative;
            width: 24px;
            height: 24px;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.2s;
        }
        .gear-select-wrapper:hover { opacity: 1; }
        .gear-icon {
            width: 20px;
            height: 20px;
            stroke: var(--gold-primary);
            fill: none;
        }
        .gear-select-wrapper select { display: none; } /* removed */
        .settings-option {
            display: flex; justify-content: space-between; align-items: center;
            font-size: 11px; color: var(--gold-light); cursor: pointer; padding: 5px 0;
            text-transform: uppercase; font-weight: bold;
        }
        .settings-option:hover { color: #fff; }

        /* Sidebar Toggle Styles */
        .main-grid { 
            position: relative;
            transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
        }
        .main-grid.collapsed { grid-template-columns: 0px 1fr 320px; }
        
        .toggle-btn {
            position: absolute;
            left: -18px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--bg-deep);
            border: 2px solid var(--gold-primary);
            color: var(--gold-primary);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
        }
        .toggle-btn:hover {
            background: var(--gold-primary);
            color: #000;
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
        }
        .toggle-btn svg {
            width: 20px;
            height: 20px;
            transition: transform 0.4s ease;
        }
        .main-grid.collapsed .toggle-btn svg {
            transform: rotate(180deg);
        }

        .sidebar-wrapper { 
            overflow: hidden;
            height: 100%;
        }
        .sidebar-content {
            width: 380px; 
            height: 100%;
            transition: opacity 0.3s ease;
        }
        .main-grid.collapsed .sidebar-content {
            opacity: 0;
            pointer-events: none;
        }

        @media (max-width: 1100px) and (min-width: 769px) { 
            .main-grid { grid-template-columns: 380px 1fr; } 
            .main-grid.collapsed { grid-template-columns: 1fr; }
            .toggle-btn { display: none; }
            .sidebar-content { width: 100%; }
            #cardComparativo { grid-column: span 2; }
        }

        @media (max-width: 768px) { 
            .main-grid { grid-template-columns: 1fr; } 
            .main-grid.collapsed { grid-template-columns: 1fr; }
            .toggle-btn { display: none; }
            .sidebar-content { width: 100%; }
        }

        /* Footer */
        .app-footer {
            margin-top: 40px;
            padding-top: 25px;
            border-top: 1px solid rgba(197, 160, 89, 0.2);
            font-size: 11px;
            color: var(--text-muted);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .footer-logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .footer-logo-text {
            font-family: 'Cinzel', serif;
            color: var(--gold-primary);
            font-size: 16px;
            letter-spacing: 2px;
            margin-bottom: 2px;
        }
        .footer-company-info {
            text-align: right;
            line-height: 1.6;
        }
        @media (max-width: 768px) {
            .app-footer { flex-direction: column; gap: 20px; text-align: center; }
            .footer-company-info { text-align: center; }
        }

        /* Validation & Tooltip Styles */
        input.input-error {
            border-color: #ef4444 !important;
            box-shadow: 0 0 5px rgba(239, 68, 68, 0.4);
        }

        .error-tooltip {
            display: none;
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: #ef4444;
            color: #fff;
            font-size: 11px;
            padding: 6px 12px;
            border-radius: 4px;
            z-index: 100;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
            pointer-events: none;
            font-weight: 600;
        }

        .error-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border-width: 5px 5px 0;
            border-style: solid;
            border-color: #ef4444 transparent;
            display: block;
            width: 0;
        }

        input.input-error:hover + .error-tooltip,
        input.input-error:focus + .error-tooltip {
            display: block;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .spinner-loading {
            display: inline-block;
            width: 8px;
            height: 8px;
            border: 1.5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #ffffff;
            animation: spin 0.6s linear infinite;
            margin-right: 4px;
            vertical-align: middle;
        }

        /* Toast Notification Styles */
        .toast-notification {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: rgba(16, 185, 129, 0.95);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            z-index: 9999;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            gap: 10px;
            opacity: 0;
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
        }
        .toast-notification.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }

        /* Multi-Plan Comparison Modal Styles */
        .modal-multi-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100vw; height: 100vh;
            background: rgba(2, 4, 8, 0.95);
            backdrop-filter: blur(12px);
            z-index: 10000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .modal-multi-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }
        .modal-multi-content {
            width: 95%;
            max-width: 1200px;
            height: 90vh;
            background: var(--panel-bg);
            border: 1px solid var(--border-gold);
            border-radius: 12px;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transform: scale(0.95);
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .modal-multi-overlay.show .modal-multi-content {
            transform: scale(1);
        }
        .modal-multi-header {
            padding: 20px 30px;
            border-bottom: 1px solid var(--border-gold);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modal-multi-title {
            font-family: 'Cinzel', serif;
            color: var(--gold-primary);
            font-size: 18px;
            letter-spacing: 2px;
            margin: 0;
        }
        .modal-multi-close {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 20px;
            cursor: pointer;
            transition: color 0.2s;
        }
        .modal-multi-close:hover {
            color: #fff;
        }
        .modal-multi-body {
            flex: 1;
            padding: 24px;
            overflow-y: auto;
            display: flex;
            gap: 20px;
            align-items: stretch;
        }
        
        /* Column Card Layouts */
        .compare-col {
            flex: 1;
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(197, 160, 89, 0.15);
            border-radius: 8px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: border-color 0.2s, box-shadow 0.2s;
        }
        .compare-col:hover {
            border-color: var(--border-gold);
            box-shadow: 0 8px 25px rgba(197, 160, 89, 0.08);
        }
        
        .compare-col-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        .compare-col-title {
            font-family: 'Cinzel', serif;
            color: var(--gold-light);
            font-size: 13px;
            margin: 0;
        }
        .compare-col-remove {
            background: transparent;
            border: none;
            color: #ef4444;
            font-size: 13px;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        .compare-col-remove:hover {
            opacity: 1;
        }
        
        .compare-section {
            margin-bottom: 15px;
            padding: 12px;
            border-radius: 6px;
            background: rgba(0, 0, 0, 0.2);
        }
        .compare-section-title {
            font-size: 9px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        /* Grid data row */
        .compare-row {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            margin-bottom: 8px;
            color: var(--text-muted);
        }
        .compare-row:last-child {
            margin-bottom: 0;
        }
        .compare-row span:last-child {
            color: #fff;
            font-weight: 700;
        }
        
        /* Empty Slot Style */
        .compare-col-empty {
            flex: 1;
            border: 2px dashed rgba(197, 160, 89, 0.2);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            padding: 40px 20px;
            background: rgba(255,255,255,0.01);
            text-align: center;
        }
        .compare-col-empty:hover {
            border-color: var(--gold-primary);
            background: rgba(197, 160, 89, 0.03);
            color: #fff;
        }
        .compare-col-empty svg {
            stroke: var(--gold-primary);
            margin-bottom: 12px;
            transition: transform 0.2s;
        }
        .compare-col-empty:hover svg {
            transform: scale(1.1);
        }
        
        .modal-multi-footer {
            padding: 20px 30px;
            border-top: 1px solid var(--border-gold);
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
        }