/* ============================================
   PRICING PAGE, integrated with site design system
   ============================================ */

.page-header h1 em { color: var(--accent); font-style: italic; }

/* ===== Mode Toggle ===== */
.pricing-wrap {
  padding: 80px 0 120px;
}

.pricing-shell {
  max-width: 980px;
  margin: 0 auto;
}

.mode-toggle {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  gap: 4px;
  margin-bottom: 16px;
}

.mode-btn {
  flex: 1;
  padding: 16px 20px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-align: center;
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.mode-btn:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.mode-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.mode-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
  padding: 0 4px;
}

.hidden { display: none !important; }

/* ===== Calc Section ===== */
.calc-section {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 40px;
  margin-bottom: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.calc-section:hover {
  border-color: var(--border-accent);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Abril Fatface', serif;
  font-size: 30px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.section-explain {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 720px;
}

/* ===== Option Group ===== */
.option-group {
  margin-bottom: 24px;
}

.option-group:last-child { margin-bottom: 0; }

.option-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Option Rows ===== */
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  margin-bottom: 6px;
}

.option-row:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.option-row.selected {
  background: var(--accent-muted);
  border-color: var(--accent);
}

.option-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.option-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.option-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* ===== Radio ===== */
.option-radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.option-row.selected .option-radio { border-color: var(--accent); }

.option-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
  transition: transform 0.2s var(--ease-out);
}

.option-row.selected .option-radio-inner { transform: scale(1); }

/* ===== Checkbox ===== */
.option-checkbox {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--text-muted);
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  flex-shrink: 0;
  color: var(--bg-primary);
}

.option-row.selected .option-checkbox {
  background: var(--accent);
  border-color: var(--accent);
}

.option-check-icon {
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s var(--ease-out);
}

.option-row.selected .option-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* ===== Qty Control ===== */
.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: grid;
  place-items: center;
}

.qty-btn:hover {
  background: var(--accent-muted);
  color: var(--accent);
}

.qty-value {
  min-width: 34px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Inline row (qty + fixed label) */
.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-soft);
  margin-bottom: 6px;
}

.inline-row .option-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.inline-row-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.option-price-lg {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.option-price-lg .sub {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 2px;
}

/* ===== Info Tooltip ===== */
.info-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  position: relative;
  transition: all 0.2s;
}

.info-icon:hover {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent);
}

.tooltip {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: 0;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 5;
  box-shadow: var(--shadow-lg);
}

.info-icon:hover .tooltip { opacity: 1; }

/* ===== Tier Table ===== */
.tier-selector {
  background: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 20px;
}

.tier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tier-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-soft);
}

.tier-table th:first-child { text-align: left; }

.tier-table td {
  padding: 14px 6px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-primary);
}

.tier-table td:first-child {
  text-align: left;
  font-weight: 500;
}

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

.tier-table td.selectable {
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  color: var(--accent);
  border-radius: 6px;
}

.tier-table td.selectable:hover {
  background: var(--accent-muted);
}

.tier-table td.tier-selected {
  background: var(--accent);
  color: var(--bg-primary);
}

.res-badge {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
  text-transform: none;
}

.tier-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.7;
}

.tier-note em { color: var(--text-secondary); font-style: normal; }

/* ===== Summary Panel ===== */
.summary-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 40px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.summary-panel::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(86,196,184,0.08), transparent 70%);
  pointer-events: none;
}

.summary-title {
  font-family: 'Abril Fatface', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}

.summary-empty {
  font-size: 14px;
  color: var(--text-muted);
  padding: 20px 0;
  font-style: italic;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  gap: 20px;
  position: relative;
}

.summary-line:last-of-type { border-bottom: none; }

.summary-item-name {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.summary-item-detail {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.summary-item-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0 16px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  position: relative;
}

.summary-total-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.summary-total-value {
  font-family: 'Abril Fatface', serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.summary-vat-note {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  text-align: right;
}

.summary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 24px;
  padding: 18px 32px;
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.summary-cta::after {
  content: '→';
  transition: transform 0.25s;
}

.summary-cta:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 83, 0.3);
}

.summary-cta:hover::after { transform: translateX(4px); }

.summary-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  line-height: 1.6;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.summary-disclaimer strong { color: var(--text-secondary); font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .pricing-wrap { padding: 40px 0 80px; }
  .calc-section { padding: 24px 20px; }
  .section-title { font-size: 24px; }
  .summary-panel { padding: 28px 20px; }
  .summary-total-value { font-size: 32px; }
  .mode-btn { font-size: 11px; padding: 14px 10px; letter-spacing: 1px; }

  .tier-table { font-size: 13px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tier-table th, .tier-table td { padding: 10px 4px; white-space: nowrap; }

  .inline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .inline-row-right { width: 100%; justify-content: space-between; }

  .option-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}
