/* ── Shared Calculator Styles ── */
/* Requires CSS variables: --bg, --bg2, --bg3, --gold, --gold-dim,
   --gold-bright, --text, --muted, --border                        */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.gradient-text {
  background: linear-gradient(135deg, var(--gold), oklch(65% 0.12 65deg));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Page layout */
.calc-page-header { padding: 120px 40px 56px; text-align: center; }
.calc-page-header-inner { max-width: 720px; margin: 0 auto; }
.calc-breadcrumb {
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px; justify-content: center;
}
.calc-breadcrumb a { color: var(--gold); text-decoration: none; }
.calc-breadcrumb a:hover { color: var(--gold-bright); }
.calc-breadcrumb-sep { color: var(--border); }
.calc-page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 16px;
}
.calc-page-header h1 em { font-style: normal; color: var(--gold); }
.calc-page-header p { font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.6; }

.calc-section { padding: 0 40px 100px; }
.calc-section-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.calc-section-inner.wide { max-width: 1040px; }

/* Card */
.calc-card {
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border-radius: 24px; border: 1px solid var(--border);
  padding: 32px; display: flex; flex-direction: column; gap: 24px;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.calc-card:hover {
  border-color: oklch(74% 0.13 82deg / 0.35);
  box-shadow: 0 25px 50px oklch(74% 0.13 82deg / 0.07);
}

/* Card header */
.calc-header { display: flex; align-items: center; gap: 16px; }
.calc-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), oklch(65% 0.12 65deg));
  display: flex; align-items: center; justify-content: center;
}
.calc-icon svg { width: 24px; height: 24px; stroke: #08080d; fill: none; }
.calc-header-text h3 { font-size: 22px; font-weight: 700; color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.2; }
.calc-subtitle { font-size: 12px; color: var(--muted); margin-top: 3px; }

.calc-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* Casino pills */
.calc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; font-weight: 500; background: none; cursor: pointer;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.calc-pill:hover { border-color: oklch(74% 0.13 82deg / 0.5); color: var(--gold); }
.calc-pill.active { border-color: var(--gold); color: var(--gold); background: oklch(74% 0.13 82deg / 0.08); }
.calc-pill-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 9px; color: white; flex-shrink: 0;
}
.calc-pill-badge { background: rgba(74,222,128,0.15); color: #4ade80; padding: 2px 6px; border-radius: 100px; font-weight: 600; }
.calc-pill-placeholder { padding: 6px 12px; border-radius: 100px; border: 1px solid var(--border); color: oklch(42% 0.01 80deg); font-size: 12px; }

/* Inputs */
.calc-inputs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-inputs-row { display: flex; gap: 16px; }
.calc-inputs-row .calc-field { flex: 1; }

.calc-field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.calc-input {
  width: 100%; background: rgba(8,8,13,0.6);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; color: var(--text); font-weight: 600;
  font-size: 18px; font-family: 'DM Sans', sans-serif;
  text-align: center; outline: none; transition: border-color 0.2s;
}
.calc-input:focus { border-color: var(--gold); }

/* Toggle (Yes/No) */
.calc-toggle-group { display: flex; gap: 8px; height: 50px; }
.calc-toggle-btn {
  flex: 1; border-radius: 12px; border: 1px solid var(--border);
  color: var(--muted); font-weight: 600; font-size: 14px;
  background: none; cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.calc-toggle-btn.active { border-color: var(--gold); background: oklch(74% 0.13 82deg / 0.1); color: var(--gold); }
.calc-toggle-btn:hover:not(.active) { border-color: oklch(74% 0.13 82deg / 0.3); }

/* Breakdown box */
.calc-breakdown { background: rgba(8,8,13,0.5); border-radius: 16px; padding: 16px; border: 1px solid oklch(18% 0.02 260deg); }
.calc-breakdown-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(42% 0.01 80deg); margin-bottom: 12px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 4px 0; }
.calc-row .lbl { color: var(--muted); }
.calc-row .val { color: var(--text); font-weight: 500; }
.calc-row .val-green { color: #4ade80; font-weight: 600; }
.calc-row.sep { border-top: 1px solid oklch(22% 0.02 82deg / 0.5); margin-top: 4px; padding-top: 8px; }

/* Big result */
.calc-result { position: relative; border-radius: 16px; overflow: hidden; }
.calc-result-bg { position: absolute; inset: 0; background: linear-gradient(to right, oklch(74% 0.13 82deg / 0.1), oklch(65% 0.12 65deg / 0.1)); }
.calc-result-inner { position: relative; border: 1px solid oklch(74% 0.13 82deg / 0.22); border-radius: 16px; padding: 24px; text-align: center; }
.calc-result-label { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.calc-result-value { font-size: 56px; font-weight: 700; margin-top: 8px; background: linear-gradient(135deg, var(--gold), oklch(65% 0.12 65deg)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Verdict */
.calc-verdict { border-radius: 12px; padding: 16px; text-align: center; font-size: 14px; font-weight: 600; }
.calc-verdict-good { background: rgba(74,222,128,0.1); border: 1px solid rgba(74,222,128,0.3); color: #4ade80; }
.calc-verdict-bad  { background: rgba(251,146,60,0.1);  border: 1px solid rgba(251,146,60,0.3);  color: #fb923c; }

/* Formula */
.calc-formula { font-size: 12px; color: var(--muted); line-height: 1.65; border-top: 1px solid oklch(22% 0.02 82deg / 0.5); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.calc-formula strong { color: var(--text); font-weight: 500; }

/* AIO three columns */
.aio-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.aio-col { border-radius: 16px; border: 1px solid var(--border); overflow: hidden; }
.aio-col-header { border-bottom: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; gap: 8px; }
.aio-col-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.aio-col-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.aio-col-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.aio-col-result { background: rgba(8,8,13,0.6); border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; margin-top: 4px; }
.aio-col-result-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: oklch(42% 0.01 80deg); margin-bottom: 4px; }
.aio-col-result-value { font-size: 28px; font-weight: 700; background: linear-gradient(135deg, var(--gold), oklch(65% 0.12 65deg)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.aio-total { position: relative; border-radius: 16px; overflow: hidden; }
.aio-total-bg { position: absolute; inset: 0; background: linear-gradient(to right, oklch(74% 0.13 82deg / 0.1), oklch(65% 0.12 65deg / 0.1)); }
.aio-total-inner { position: relative; border: 1px solid oklch(74% 0.13 82deg / 0.22); border-radius: 16px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.aio-total-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.aio-total-desc { font-size: 14px; color: oklch(65% 0.01 80deg); }
.aio-total-value { font-size: 56px; font-weight: 700; flex-shrink: 0; background: linear-gradient(135deg, var(--gold), oklch(65% 0.12 65deg)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.aio-session-row { display: flex; gap: 16px; }
.aio-session-row .calc-field { flex: 1; }
.calc-divider { border: none; border-top: 1px solid var(--border); }

/* Other calc nav */
.calc-other-nav { display: flex; flex-direction: column; gap: 12px; }
.calc-other-nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.calc-other-links { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-other-link { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; transition: all 0.2s; }
.calc-other-link:hover { border-color: var(--gold-dim); color: var(--gold); }
.calc-other-link.current { border-color: var(--gold); color: var(--gold); background: oklch(74% 0.13 82deg / 0.06); pointer-events: none; }

/* Index grid */
.calc-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.calc-index-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: inherit; transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.calc-index-card:hover { border-color: oklch(74% 0.13 82deg / 0.4); box-shadow: 0 12px 32px oklch(74% 0.13 82deg / 0.08); transform: translateY(-2px); }
.calc-index-card-header { display: flex; align-items: center; gap: 14px; }
.calc-index-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, var(--gold), oklch(65% 0.12 65deg)); display: flex; align-items: center; justify-content: center; }
.calc-index-icon svg { width: 22px; height: 22px; stroke: #08080d; fill: none; }
.calc-index-card-title { font-size: 16px; font-weight: 600; color: var(--text); }
.calc-index-card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.calc-index-card-desc { font-size: 13px; color: var(--muted); line-height: 1.6; flex: 1; }
.calc-index-card-cta { font-size: 13px; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.calc-index-card:hover .calc-index-card-cta { gap: 10px; }

/* Responsive */
@media (max-width: 700px) {
  .calc-page-header { padding: 100px 24px 40px; }
  .calc-section { padding: 0 24px 80px; }
  .calc-card { padding: 20px; }
  .calc-inputs-grid { grid-template-columns: 1fr; }
  .calc-inputs-row, .aio-session-row { flex-direction: column; }
  .aio-columns { grid-template-columns: 1fr; }
  .aio-total-inner { flex-direction: column; text-align: center; }
  .calc-result-value, .aio-total-value { font-size: 40px; }
}
