﻿/* DividendYield CSS Design System */
:root {
  --bg: #05131f;
  --card-bg: #0b2236;
  --card-hover: #102e48;
  --border: #163e60;
  --border-focus: #10b981;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #34d399;
  --accent: #f59e0b;
  --accent-light: #fcd34d;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f0fdf4;
  --text-muted: #94a3b8;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  background: rgba(11, 34, 54, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.logo-icon { font-size: 22px; }
.logo strong { color: var(--primary-light); }

.nav-links-suite {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}
.nav-links-suite::-webkit-scrollbar { display: none; }

.nav-tool-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav-tool-link:hover, .nav-tool-link.active {
  color: #fff;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  flex: 1;
}

.hero-section { text-align: center; margin-bottom: 28px; }
.hero-section h1 { font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.hero-section p { color: #94a3b8; font-size: 14px; max-width: 680px; margin: 0 auto; }

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.card-header h2 { font-size: 16px; font-weight: 700; color: #fff; }
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 5px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix, .input-suffix {
  position: absolute;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}
.input-prefix { left: 10px; }
.input-suffix { right: 10px; }

.form-control {
  width: 100%;
  background: rgba(5, 19, 31, 0.7);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 9px 12px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.input-wrap .form-control { padding-left: 24px; padding-right: 28px; }
.form-control:focus { border-color: var(--border-focus); }

/* Range Slider Styling */
.range-slider {
  width: 100%;
  height: 5px;
  background: #163e60;
  border-radius: 4px;
  outline: none;
  margin-top: 6px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-light);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  border: 2px solid #fff;
}

.presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.preset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.preset-btn:hover, .preset-btn.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--primary);
  color: #fff;
}

.results-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 18px;
}
.hero-payout-label { font-size: 12px; font-weight: 700; color: var(--primary-light); text-transform: uppercase; letter-spacing: 0.5px; }
.hero-payout-value { font-size: 32px; font-weight: 800; color: #fff; margin: 4px 0; }
.hero-payout-sub { font-size: 12px; color: #cbd5e1; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.stat-box {
  background: rgba(5, 19, 31, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.stat-box-label { font-size: 11px; color: #94a3b8; margin-bottom: 2px; }
.stat-box-val { font-size: 16px; font-weight: 700; color: #fff; }

/* Interactive Chart Container */
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
  background: rgba(5, 19, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
}

/* Insight Callout */
.insight-callout {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}
.insight-callout strong { color: #fff; }

/* Milestones Strip */
.milestones-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  scrollbar-width: thin;
  margin-bottom: 14px;
}
.milestone-pill {
  background: rgba(5, 19, 31, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  white-space: nowrap;
  font-size: 11px;
}
.milestone-pill .m-title { color: #94a3b8; font-size: 10px; }
.milestone-pill .m-val { color: var(--accent-light); font-weight: 700; font-size: 12px; }

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 12px;
}
.breakdown-table th {
  background: rgba(5, 19, 31, 0.8);
  padding: 8px 6px;
  text-align: right;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.breakdown-table th:first-child { text-align: left; }
.breakdown-table td {
  padding: 7px 6px;
  text-align: right;
  border-bottom: 1px solid rgba(22, 62, 96, 0.4);
  color: #e2e8f0;
}
.breakdown-table td:first-child { text-align: left; font-weight: 600; color: var(--primary-light); }
.breakdown-table tr:hover { background: rgba(255, 255, 255, 0.02); }

.export-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.btn-export {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #e2e8f0;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-export:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--primary);
  color: #fff;
}

.faq-section {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.faq-section h2 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 16px; text-align: center; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.faq-question { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.faq-answer { font-size: 13px; color: #cbd5e1; line-height: 1.6; }

.footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 19, 31, 0.95);
  padding: 24px 20px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  margin-top: auto;
}
