
.ivc{
  --amber: #f5b921;
  --amber-light: #ffd24d;
  --amber-dark: #b9860c;
  --amber-pale: #fff8e6;
  --emerald: #0a7d57;
  --emerald-light: #2fa57b;
  --rose: #c92a1f;
  --violet: #14406f;
  --sky: #2f6fb3;
  --dark: #05111f;
  --dark2: #0d1526;
  --stone: #5a6b87;
  --cream: #ffffff;
  --cream2: #f8f4ea;
  --cream3: #ded5c2;
  --text: #0d1526;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.14);
}

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

.ivc{ font-family: 'DM Sans',system-ui,sans-serif; background: var(--cream); color: var(--text); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.ivc ::selection{ background: rgba(245,185,33,0.25); }
.ivc button,.ivc .chip,.ivc .sel-card,.ivc .strat-card{ -webkit-tap-highlight-color: transparent; }
.ivc :where(button,.ivc .chip,.ivc .sel-card,.ivc input[type=range]):focus-visible{ outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce){ .ivc *,.ivc *::before,.ivc *::after{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

.ivc .hero{ background: linear-gradient(135deg, #05111f 0%, #0d1526 40%, #1b2745 100%); padding: 56px 0 0; position: relative; overflow: hidden; }
.ivc .hero-grid-bg{ position: absolute; inset: 0; background-image: linear-gradient(rgba(245,185,33,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(245,185,33,0.04) 1px, transparent 1px); background-size: 40px 40px; }
.ivc .hero-glow{ position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(245,185,33,0.12) 0%, transparent 70%); top: -200px; right: -100px; pointer-events: none; }
.ivc .hero-glow2{ position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(47,111,179,0.08) 0%, transparent 70%); bottom: -100px; left: 10%; pointer-events: none; }
.ivc .hero-inner{ max-width: 1200px; margin: 0 auto; padding: 0 40px; position: relative; z-index: 1; }

.ivc .badge-pro{ display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(245,185,33,0.2), rgba(245,185,33,0.05)); border: 1px solid rgba(245,185,33,0.35); color: var(--amber-light); font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; padding: 7px 18px; border-radius: 100px; margin-bottom: 28px; }
.ivc .badge-dot{ width: 7px; height: 7px; background: var(--amber); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse{ 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

.ivc h1{ font-family: 'Bebas Neue','DM Sans',sans-serif; font-size: clamp(40px, 5.5vw, 72px); font-weight: 900; color: #ffffff; line-height: 1.02; margin-bottom: 18px; letter-spacing: -1px; }
.ivc h1 .accent{ color: var(--amber); font-style: italic; }
.ivc h1 .accent2{ color: var(--emerald-light); }

.ivc .hero-sub{ font-size: 15px; color: rgba(250,250,249,0.5); max-width: 600px; line-height: 1.8; margin-bottom: 44px; }
.ivc .hero-pills{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.ivc .pill{ display: flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(250,250,249,0.65); font-size: 12px; padding: 6px 14px; border-radius: 100px; }
.ivc .pill-dot{ width: 5px; height: 5px; border-radius: 50%; }

.ivc .hero-stats{ display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.07); }
.ivc .hstat{ padding: 24px 32px 24px 0; flex: 1; }
.ivc .hstat-val{ font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: var(--amber-light); margin-bottom: 3px; transition: all 0.3s; }
.ivc .hstat-label{ font-size: 10px; color: rgba(250,250,249,0.35); text-transform: uppercase; letter-spacing: 1.5px; }

.ivc .tabs-bar{ background: rgba(15,15,12,0.95); border-top: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 200; }
.ivc .tabs-inner{ max-width: 1200px; margin: 0 auto; padding: 0 40px; display: flex; overflow-x: auto; scrollbar-width: none; }
.ivc .tabs-inner::-webkit-scrollbar{ display: none; }
.ivc .tab-btn{ padding: 16px 22px; font-family: 'DM Sans',system-ui,sans-serif; font-size: 12px; font-weight: 600; color: rgba(250,250,249,0.4); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; white-space: nowrap; letter-spacing: 0.3px; }
.ivc .tab-btn.active{ color: var(--amber-light); border-bottom-color: var(--amber); }
.ivc .tab-btn:hover:not(.active){ color: rgba(250,250,249,0.65); }

.ivc .main{ max-width: 1200px; margin: 0 auto; padding: 44px 40px; }
.ivc .grid-2col{ display: grid; grid-template-columns: 1fr 420px; gap: 28px; align-items: start; }

.ivc .panel{ background: white; border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow); animation: fadeUp 0.4s ease both; }
.ivc .panel:nth-child(2){animation-delay:.06s}
.ivc .panel:nth-child(3){animation-delay:.12s}
@keyframes fadeUp{ from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.ivc .panel-header{ padding: 20px 24px 16px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.ivc .panel-title{ font-family: 'Bebas Neue','DM Sans',sans-serif; font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.ivc .panel-icon{ width: 34px; height: 34px; background: linear-gradient(135deg, #fff8e6, #fdefc8); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; border: 1px solid rgba(245,185,33,0.2); }
.ivc .panel-icon.green{ background: linear-gradient(135deg, #e4f6ef, #cdeedf); border-color: rgba(10,125,87,0.2); }
.ivc .panel-icon.blue{ background: linear-gradient(135deg, #eef3fa, #e1eaf6); border-color: rgba(47,111,179,0.2); }
.ivc .panel-icon.rose{ background: linear-gradient(135deg, #fdeae7, #fbd9d4); border-color: rgba(201,42,31,0.2); }
.ivc .panel-icon.violet{ background: linear-gradient(135deg, #eef3fa, #e1eaf6); border-color: rgba(20,64,111,0.2); }
.ivc .panel-body{ padding: 22px 24px; }

.ivc .form-group{ margin-bottom: 22px; }
.ivc .form-group:last-child{ margin-bottom: 0; }
.ivc .form-label{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 10px; }
.ivc .label-text{ font-size: 13px; font-weight: 600; color: var(--text); }
.ivc .label-hint{ font-size: 11px; color: var(--stone); margin-top: 1px; font-weight: 400; }
.ivc .label-value{ font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; color: var(--amber-dark); background: var(--amber-pale); padding: 3px 12px; border-radius: 8px; border: 1px solid rgba(245,185,33,0.2); white-space: nowrap; }
.ivc .label-value.green{ color: #0a7d57; background: #e4f6ef; border-color: rgba(10,125,87,0.2); }
.ivc .label-value.blue{ color: #12294d; background: #eef3fa; border-color: rgba(47,111,179,0.2); }
.ivc .label-value.violet{ color: #14406f; background: #eef3fa; border-color: rgba(20,64,111,0.25); }

.ivc input[type=range]{ -webkit-appearance: none; width: 100%; height: 5px; border-radius: 3px; outline: none; cursor: pointer; --fill: 0%; background: linear-gradient(90deg, var(--amber) var(--fill), var(--cream3) var(--fill)); }
.ivc input[type=range].green{ background: linear-gradient(90deg, var(--emerald) var(--fill), var(--cream3) var(--fill)); }
.ivc input[type=range].blue{ background: linear-gradient(90deg, var(--sky) var(--fill), var(--cream3) var(--fill)); }
.ivc input[type=range].violet{ background: linear-gradient(90deg, var(--violet) var(--fill), var(--cream3) var(--fill)); }
.ivc input[type=range]::-webkit-slider-thumb{ -webkit-appearance: none; width: 20px; height: 20px; background: linear-gradient(135deg, var(--amber), var(--amber-dark)); border-radius: 50%; border: 3px solid white; box-shadow: 0 2px 8px rgba(245,185,33,0.5); transition: transform 0.15s; cursor: grab; }
.ivc input[type=range]::-webkit-slider-thumb:hover{ transform: scale(1.25); }
.ivc input[type=range].green::-webkit-slider-thumb{ background: linear-gradient(135deg, var(--emerald), #0a7d57); box-shadow: 0 2px 8px rgba(10,125,87,0.5); }
.ivc input[type=range].blue::-webkit-slider-thumb{ background: linear-gradient(135deg, var(--sky), #14406f); box-shadow: 0 2px 8px rgba(47,111,179,0.5); }
.ivc input[type=range].violet::-webkit-slider-thumb{ background: linear-gradient(135deg, var(--violet), #14406f); box-shadow: 0 2px 8px rgba(20,64,111,0.5); }
.ivc input[type=range]::-moz-range-thumb{ width: 20px; height: 20px; background: linear-gradient(135deg, var(--amber), var(--amber-dark)); border-radius: 50%; border: 3px solid white; cursor: grab; }
.ivc input[type=range].green::-moz-range-thumb{ background: linear-gradient(135deg, var(--emerald), #0a7d57); }
.ivc input[type=range].blue::-moz-range-thumb{ background: linear-gradient(135deg, var(--sky), #14406f); }
.ivc input[type=range].violet::-moz-range-thumb{ background: linear-gradient(135deg, var(--violet), #14406f); }
.ivc input[type=range]::-moz-range-track{ height: 5px; border-radius: 3px; background: transparent; }

.ivc .range-labels{ display: flex; justify-content: space-between; font-size: 10px; color: var(--stone); margin-top: 5px; font-family: 'JetBrains Mono', monospace; }

.ivc .chip-group{ display: flex; flex-wrap: wrap; gap: 8px; }
.ivc .chip{ padding: 7px 18px; border-radius: 100px; border: 1.5px solid var(--cream3); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: white; color: var(--stone); }
.ivc .chip.active{ background: var(--dark); border-color: var(--dark); color: var(--amber-light); }
.ivc .chip:hover:not(.active){ border-color: var(--amber); color: var(--text); background: var(--amber-pale); }

.ivc .strat-card{ border: 2px solid var(--cream3); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 12px; transition: all 0.25s; position: relative; }
.ivc .strat-card.winner{ border-color: var(--emerald); background: linear-gradient(135deg, #e4f6ef, #eef9f4); box-shadow: 0 0 0 4px rgba(10,125,87,0.08); }
.ivc .strat-rank{ position: absolute; top: 14px; right: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: var(--cream2); color: var(--stone); border: 1px solid var(--cream3); }
.ivc .strat-card.winner .strat-rank{ background: var(--emerald); color: white; border-color: var(--emerald); }
.ivc .strat-title{ font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; padding-right: 60px; }
.ivc .strat-desc{ font-size: 11px; color: var(--stone); line-height: 1.6; margin-bottom: 12px; padding-right: 40px; }
.ivc .strat-wealth{ font-family: 'Bebas Neue','DM Sans',sans-serif; font-size: 24px; font-weight: 900; color: var(--text); margin-bottom: 10px; }
.ivc .strat-card.winner .strat-wealth{ color: #0a7d57; }
.ivc .strat-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.ivc .strat-tag{ font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 7px; background: var(--cream2); border: 1px solid var(--cream3); color: var(--stone); }

.ivc .summary-panel{ position: sticky; top: 62px; }
.ivc .total-card{ background: linear-gradient(135deg, #05111f 0%, #0e2649 50%, #1b2745 100%); border-radius: var(--radius); padding: 30px 26px; margin-bottom: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.ivc .total-card::before{ content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(245,185,33,0.15) 0%, transparent 60%), radial-gradient(circle at 20% 80%, rgba(47,111,179,0.08) 0%, transparent 60%); pointer-events: none; }
.ivc .total-label{ font-size: 10px; color: rgba(250,250,249,0.35); text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 10px; font-weight: 600; }
.ivc .total-amount{ font-family: 'Bebas Neue','DM Sans',sans-serif; font-size: 36px; font-weight: 900; color: var(--amber-light); line-height: 1.1; margin-bottom: 5px; transition: all 0.3s; }
.ivc .total-range{ font-size: 11px; color: rgba(250,250,249,0.35); margin-bottom: 24px; line-height: 1.6; }
.ivc .mini-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ivc .mini-stat{ background: rgba(255,255,255,0.05); border-radius: 12px; padding: 14px; border: 1px solid rgba(255,255,255,0.06); }
.ivc .mini-stat-label{ font-size: 9px; color: rgba(250,250,249,0.3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 5px; font-weight: 600; }
.ivc .mini-stat-val{ font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: rgba(250,250,249,0.8); }

.ivc .insight-box{ background: linear-gradient(135deg, #eef3fa, #e1eaf6); border: 1px solid #c9d8ee; border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.ivc .insight-box.green{ background: linear-gradient(135deg, #e4f6ef, #cdeedf); border-color: #b5e3cf; }
.ivc .insight-box.amber{ background: linear-gradient(135deg, #fff8e6, #fdefc8); border-color: #f7dc8a; }
.ivc .insight-box.rose{ background: linear-gradient(135deg, #fdeae7, #fbd9d4); border-color: #f6c3bc; }
.ivc .insight-icon{ font-size: 22px; flex-shrink: 0; }
.ivc .insight-text{ font-size: 12px; color: #0C4A6E; line-height: 1.7; }
.ivc .insight-box.rose .insight-text{ color: #881337; }
.ivc .insight-text strong{ font-weight: 700; }

.ivc .action-btns{ display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ivc .btn{ flex: 1; padding: 13px 16px; border-radius: var(--radius-sm); font-family: 'DM Sans',system-ui,sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; border: 1.5px solid; transition: all 0.2s; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ivc .btn-primary{ background: linear-gradient(135deg, var(--amber), var(--amber-dark)); border-color: var(--amber-dark); color: #05111f; }
.ivc .btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,185,33,0.4); }
.ivc .btn-outline{ background: white; border-color: var(--cream3); color: var(--text); }
.ivc .btn-outline:hover{ border-color: var(--amber); background: var(--amber-pale); }
.ivc .btn-dark{ background: var(--dark); border-color: var(--dark); color: var(--amber-light); }
.ivc .btn-dark:hover{ background: var(--dark2); }

.ivc .metric-card{ background: var(--cream2); border-radius: var(--radius-sm); padding: 16px; border: 1px solid var(--cream3); }
.ivc .metric-label{ font-size: 10px; color: var(--stone); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 6px; }
.ivc .metric-value{ font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: var(--text); }

.ivc .comp-table{ width: 100%; border-collapse: collapse; font-size: 12px; }
.ivc .comp-table th{ background: var(--dark); color: var(--amber-light); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 11px 12px; text-align: right; position: sticky; top: 0; }
.ivc .comp-table th:first-child{ text-align: left; }
.ivc .comp-table td{ padding: 9px 12px; border-bottom: 1px solid var(--cream3); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; text-align: right; }
.ivc .comp-table td:first-child{ text-align: left; font-weight: 700; font-family: 'DM Sans',system-ui,sans-serif; }
.ivc .comp-table tr:hover td{ background: var(--amber-pale); }
.ivc .comp-table tr:last-child td{ border-bottom: none; }
.ivc .table-scroll{ max-height: 520px; overflow: auto; border: 1px solid var(--cream3); border-radius: 12px; }

.ivc .hbar-row{ display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ivc .hbar-label{ width: 150px; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.ivc .hbar-track{ flex: 1; height: 22px; background: var(--cream3); border-radius: 11px; overflow: hidden; }
.ivc .hbar-fill{ height: 100%; border-radius: 11px; display: flex; align-items: center; padding-left: 10px; font-size: 10px; font-weight: 700; color: white; transition: width 0.6s ease; white-space: nowrap; }
.ivc .hbar-val{ width: 84px; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; text-align: right; }

.ivc .section-title{ font-family: 'Bebas Neue','DM Sans',sans-serif; font-size: 13px; font-weight: 700; color: var(--stone); text-transform: uppercase; letter-spacing: 2px; margin: 24px 0 14px; display: flex; align-items: center; gap: 10px; }
.ivc .section-title::after{ content: ''; flex: 1; height: 1px; background: var(--cream3); }

.ivc .notif{ position: fixed; bottom: 24px; right: 24px; background: var(--dark); color: var(--amber-light); padding: 14px 20px; border-radius: 14px; font-size: 13px; font-weight: 600; border: 1px solid rgba(245,185,33,0.3); box-shadow: var(--shadow-lg); z-index: 999; transform: translateY(100px); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.ivc .notif.show{ transform: translateY(0); opacity: 1; }

.ivc .calc-foot{ background: var(--dark); color: rgba(250,250,249,0.35); text-align: center; padding: 32px 40px; font-size: 12px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.05); line-height: 2; }
.ivc .calc-foot strong{ color: var(--amber); }
.ivc .calc-foot a{ color: rgba(250,250,249,0.55); text-decoration: none; border-bottom: 1px dotted rgba(250,250,249,0.3); }
.ivc .calc-foot a:hover{ color: var(--amber-light); }

.ivc .tab-section{ display: none; }
.ivc .tab-section.active{ display: block; animation: fadeUp 0.35s ease both; }
.ivc .number-change{ animation: numPop 0.35s ease; }
@keyframes numPop{ 0%{transform:scale(1)} 50%{transform:scale(1.05)} 100%{transform:scale(1)} }

.ivc ::-webkit-scrollbar{ width: 6px; height: 6px; }
.ivc ::-webkit-scrollbar-track{ background: var(--cream2); }
.ivc ::-webkit-scrollbar-thumb{ background: var(--cream3); border-radius: 3px; }

.ivc @media(max-width:900px){
  .grid-2col { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .hero-stats { flex-wrap: wrap; }
  .hstat { min-width: 45%; }
  .main { padding: 28px 20px; }
  .hero-inner { padding: 0 20px; }
  .tabs-inner { padding: 0 20px; }
  .hbar-label { width: 110px; font-size: 11px; }
}
@media(max-width:600px){
  .ivc h1{ font-size: 34px; }
  .ivc .total-amount{ font-size: 28px; }
}

.ivc @media print{
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tabs-bar, .action-btns, .notif, .hero-pills { display: none !important; }
  body { background: white; }
  .panel { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .summary-panel { position: static; }
  .grid-2col { grid-template-columns: 1fr; }
  .table-scroll { max-height: none; overflow: visible; }
}
