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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.container {
  width: 100%;
  max-width: 640px;
}

/* ── Header ── */
header {
  text-align: center;
  margin-bottom: 16px;
}

h1 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.subtitle {
  color: #93c5fd;
  font-size: 14px;
  margin-top: 6px;
}

/* ── Main Nav ── */
.main-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.main-tab {
  flex: 1;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  font-weight: 700;
  color: #64748b;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
}

.main-tab:hover { color: #94a3b8; }

.main-tab.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.35);
  color: #fff;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.section { display: none; }
.section.active { display: block; }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 16px;
}

.tab {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
}

.tab:hover {
  color: #cbd5e1;
}

.tab.active {
  background: rgba(59, 130, 246, 0.25);
  color: #fff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

/* ── Sections ── */
.calc-section {
  display: none;
}

.calc-section.active {
  display: block;
}

/* ── Glass Card (input area) ── */
.calc-section > .input-group,
.calc-section > .input-row-half,
.calc-section > .divider {
  /* lives in default flow */
}

/* ── Inputs ── */
.input-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 6px;
}

input[type="number"],
select {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: all 0.2s;
  font-family: inherit;
  -moz-appearance: textfield;
}

input[type="number"]::placeholder {
  color: #64748b;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 0.5;
}

select option {
  background: #1e293b;
  color: #e2e8f0;
}

input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.input-row input[type="range"] {
  flex: 1;
}

.input-row input[type="number"] {
  width: 120px;
  flex-shrink: 0;
}

.input-row-half {
  display: flex;
  gap: 12px;
}

.input-row-half .input-group {
  flex: 1;
}

/* Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(59, 130, 246, 0.3);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.7);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  margin: 20px 0;
}

/* ── Result Card (Glass) ── */
.result-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.result-header {
  margin-bottom: 20px;
}

.result-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.result-label {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}

.result-value {
  font-size: 28px;
  font-weight: 800;
  color: #60a5fa;
  text-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
}

.result-sub {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.result-sub span:last-child {
  color: #93c5fd;
  font-weight: 600;
}

/* ── Salary Table ── */
.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.result-table th {
  text-align: left;
  padding: 8px 6px;
  color: #64748b;
  font-weight: 500;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 12px;
}

.result-table th:not(:first-child) {
  text-align: right;
}

.result-table td {
  padding: 10px 6px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  color: #cbd5e1;
}

.result-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.result-table tfoot td {
  font-weight: 700;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  border-bottom: none;
  padding-top: 14px;
  color: #f87171;
}

/* ── Chart Bar ── */
.chart-bar {
  margin-top: 20px;
  display: flex;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chart-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 6px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Compare (Rent) ── */
.compare-result {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-box {
  flex: 1;
  text-align: center;
  padding: 18px 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: all 0.35s;
}

.compare-box.winner {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.1);
}

.compare-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-value {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.compare-box.winner .compare-value {
  color: #4ade80;
}

.compare-detail {
  font-size: 12px;
  color: #64748b;
}

.compare-vs {
  font-size: 14px;
  font-weight: 900;
  color: #475569;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.verdict {
  text-align: center;
  margin-top: 16px;
  padding: 14px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
}

/* ── Loan Summary ── */
.loan-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.loan-summary > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.loan-summary > div > span:first-child {
  color: #64748b;
}

.loan-summary > div > span:last-child {
  font-weight: 700;
  color: #cbd5e1;
}

/* ── Schedule Toggle ── */
.schedule-toggle {
  margin-top: 20px;
}

.schedule-toggle summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #60a5fa;
  padding: 10px 0;
  transition: color 0.2s;
}

.schedule-toggle summary:hover {
  color: #93c5fd;
}

.schedule-scroll {
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
}

.schedule-scroll::-webkit-scrollbar {
  width: 6px;
}

.schedule-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 3px;
}

.schedule-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.2);
  border-radius: 3px;
}

/* ── Footer ── */
footer {
  text-align: center;
  margin-top: 36px;
  padding: 20px;
  font-size: 12px;
  color: #475569;
}

footer a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

footer a:hover {
  color: #93c5fd;
}

/* ── Stock Section ── */
.range-value {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  min-width: 64px;
  text-align: right;
  flex-shrink: 0;
}

.stock-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stock-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid;
}

.stock-card.origin  { background: rgba(100,116,139,0.12); border-color: rgba(100,116,139,0.25); }
.stock-card.blue    { background: rgba(59,130,246,0.1);  border-color: rgba(59,130,246,0.25); }
.stock-card.red     { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.25); }
.stock-card.purple  { background: rgba(168,85,247,0.1);  border-color: rgba(168,85,247,0.25); }
.stock-card.green   { background: rgba(34,197,94,0.1);   border-color: rgba(34,197,94,0.25); }
.stock-card.yellow  { background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.25); }
.stock-card.gold    { background: rgba(250,204,21,0.1);  border-color: rgba(250,204,21,0.25); }
.stock-card.teal    { background: rgba(16,185,129,0.1);  border-color: rgba(16,185,129,0.25); }
.stock-card.pink    { background: rgba(236,72,153,0.1);  border-color: rgba(236,72,153,0.25); }

.stock-card.origin:first-child { grid-column: 1 / -1; }

.stock-card-flag { font-size: 14px; }
.stock-card-name { font-size: 11px; font-weight: 600; }
.stock-card.origin .stock-card-name  { color: #94a3b8; }
.stock-card.blue .stock-card-name    { color: #93c5fd; }
.stock-card.red .stock-card-name     { color: #fca5a5; }
.stock-card.purple .stock-card-name  { color: #c4b5fd; }
.stock-card.green .stock-card-name   { color: #86efac; }
.stock-card.yellow .stock-card-name  { color: #fcd34d; }
.stock-card.gold .stock-card-name    { color: #fde68a; }
.stock-card.teal .stock-card-name    { color: #6ee7b7; }
.stock-card.pink .stock-card-name    { color: #f9a8d4; }

.stock-card-value {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}

.stock-card-pct {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
  opacity: 0.7;
}

.stock-card.best-index {
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.4);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.chart-wrap {
  position: relative;
  height: 280px;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.stat-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid;
}

.stat-card.blue   { background: rgba(59,130,246,0.08);  border-color: rgba(59,130,246,0.18); }
.stat-card.red    { background: rgba(239,68,68,0.08);   border-color: rgba(239,68,68,0.18); }
.stat-card.purple { background: rgba(168,85,247,0.08);  border-color: rgba(168,85,247,0.18); }
.stat-card.green  { background: rgba(34,197,94,0.08);   border-color: rgba(34,197,94,0.18); }
.stat-card.yellow { background: rgba(245,158,11,0.08);  border-color: rgba(245,158,11,0.18); }
.stat-card.gold   { background: rgba(250,204,21,0.08);  border-color: rgba(250,204,21,0.18); }
.stat-card.teal   { background: rgba(16,185,129,0.08);  border-color: rgba(16,185,129,0.18); }
.stat-card.pink   { background: rgba(236,72,153,0.08);  border-color: rgba(236,72,153,0.18); }

.stat-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-card.blue h4   { color: #93c5fd; }
.stat-card.red h4    { color: #fca5a5; }
.stat-card.purple h4 { color: #c4b5fd; }
.stat-card.green h4  { color: #86efac; }
.stat-card.yellow h4 { color: #fcd34d; }
.stat-card.gold h4   { color: #fde68a; }
.stat-card.teal h4   { color: #6ee7b7; }
.stat-card.pink h4   { color: #f9a8d4; }

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 3px 0;
}

.stat-row span:first-child { color: #94a3b8; }
.stat-row span:last-child  { color: #e2e8f0; font-weight: 600; }
.stat-row .up   { color: #4ade80; }
.stat-row .down { color: #f87171; }

.result-table td.up   { color: #4ade80; }
.result-table td.down { color: #f87171; }

/* Stock Table */
.stock-table th.tc, .stock-table td.tc { text-align: center; }
.stock-table th.blue   { color: #93c5fd; }
.stock-table th.red    { color: #fca5a5; }
.stock-table th.purple { color: #c4b5fd; }
.stock-table th.green  { color: #86efac; }
.stock-table td.good   { color: #4ade80; }
.stock-table td.warn   { color: #fbbf24; }
.stock-table td.bad    { color: #f87171; }

/* Notice Boxes */
.notice-box {
  border-radius: 14px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid;
}

.notice-box h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-box ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.8;
}

.notice-box li::before {
  content: "•";
  margin-right: 6px;
}

.warn-box {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.25);
}
.warn-box h4 { color: #fcd34d; }
.warn-box li { color: rgba(253,224,71,0.8); }

.tip-box {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
}
.tip-box h4 { color: #93c5fd; }
.tip-box li { color: rgba(147,197,253,0.8); }
.tip-box strong { color: #bfdbfe; }

/* ── AdSense ── */
.ad-container {
  margin: 12px 0;
  text-align: center;
  overflow: hidden;
  border-radius: 12px;
}

.ad-container ins {
  border-radius: 12px;
}

/* ── Site Navigation ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
}

.site-nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav-links a:hover {
  color: #e2e8f0;
}

/* ── Site Footer ── */
.site-footer {
  text-align: center;
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  font-size: 12px;
  color: #475569;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #60a5fa;
}

.copyright {
  margin-top: 8px;
  color: #334155;
}

/* ── Page Content (Articles/Guides) ── */
.page-content {
  margin-top: 8px;
}

.page-content h1 {
  font-size: 26px;
  margin-bottom: 8px;
}

.page-date {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.page-intro {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 14px;
}

/* ── Table of Contents ── */
.toc {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc h2 {
  font-size: 15px;
  color: #93c5fd;
  margin-bottom: 12px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  font-size: 14px;
  line-height: 2;
}

.toc a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover {
  color: #60a5fa;
}

/* ── Guide Sections ── */
.guide-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.guide-section:last-child {
  border-bottom: none;
}

.guide-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.guide-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #93c5fd;
  margin-top: 20px;
  margin-bottom: 10px;
}

.guide-section p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 12px;
}

.guide-section ul,
.guide-section ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.guide-section li {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 4px;
}

.guide-section a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.guide-section a:hover {
  color: #93c5fd;
}

/* ── Guide Note ── */
.guide-note {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(253, 224, 71, 0.9);
  line-height: 1.7;
  margin: 16px 0;
}

.guide-note strong {
  color: #fcd34d;
}

/* ── Formula Box ── */
.formula-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}

.formula-box p {
  font-size: 14px;
  color: #93c5fd;
  margin-bottom: 0;
}

/* ── Guide Table ── */
.table-responsive {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 12px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
}

.guide-table th {
  text-align: left;
  padding: 12px 14px;
  color: #93c5fd;
  font-weight: 700;
  font-size: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.guide-table td {
  padding: 10px 14px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  line-height: 1.6;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

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

/* ── Feature Cards ── */
.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #60a5fa;
  margin-top: 0;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── CTA Box ── */
.cta-box {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  margin: 32px 0;
}

.cta-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: #3b82f6;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  background: #2563eb;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* ── Guide Content in Main Page ── */
.guide-intro {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0;
}

.guide-intro h3 {
  font-size: 15px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 10px;
}

.guide-intro p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.8;
  margin-bottom: 8px;
}

.guide-intro p:last-child {
  margin-bottom: 0;
}

.guide-intro a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.guide-intro a:hover {
  color: #93c5fd;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  body {
    padding: 16px 8px;
  }

  h1 {
    font-size: 24px;
  }

  .tab {
    font-size: 12px;
    padding: 9px 4px;
  }

  .input-row-half {
    flex-direction: column;
    gap: 0;
  }

  .result-value {
    font-size: 24px;
  }

  .compare-value {
    font-size: 17px;
  }

  .result-card {
    padding: 18px;
  }

  .compare-result {
    gap: 8px;
  }

  .stock-cards,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stock-card.origin:first-child {
    grid-column: 1;
  }

  .stock-card-value {
    font-size: 15px;
  }

  .chart-wrap {
    height: 220px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .site-nav-links {
    gap: 12px;
  }

  .site-nav-links a {
    font-size: 12px;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 12px;
  }

  .page-content h1 {
    font-size: 22px;
  }

  .guide-section h2 {
    font-size: 18px;
  }

  .guide-table {
    font-size: 12px;
  }

  .guide-table th,
  .guide-table td {
    padding: 8px 10px;
  }

  .toc ol {
    font-size: 13px;
  }
}
