/* ============================================================
   PV Asset Valuator - Enhanced Demo Styles
   ============================================================ */

:root {
  --primary: #0057B8;
  --primary-dark: #003D80;
  --primary-light: #E8F1FB;
  --success: #00875A;
  --success-light: #E3FCEF;
  --danger: #DE350B;
  --danger-light: #FFEBE6;
  --warning: #FF8B00;
  --warning-light: #FFFAE6;
  --purple: #6554C0;
  --purple-light: #EAE6FF;
  --info: #0065FF;
  --info-light: #DEEBFF;
  --text-primary: #172B4D;
  --text-secondary: #5E6C84;
  --text-muted: #8993A4;
  --bg-page: #F4F5F7;
  --bg-card: #FFFFFF;
  --border-color: #DFE1E6;
  --shadow: 0 1px 3px rgba(9,30,66,.13), 0 0 0 1px rgba(9,30,66,.05);
  --shadow-lg: 0 10px 30px rgba(9,30,66,.15), 0 0 0 1px rgba(9,30,66,.05);
  --radius: 8px;
  --radius-lg: 12px;
  --font: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --topbar-height: 56px;
  --live-dot-size: 8px;
}

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

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  padding-top: var(--topbar-height);
}

/* ============================================================
   TOP LIVE BAR
   ============================================================ */
.live-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: linear-gradient(135deg, #003D80 0%, #0057B8 50%, #0065FF 100%);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  gap: 0;
}

.live-topbar .brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 1.5rem;
}

.live-topbar .brand-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.live-ticker {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.9);
  padding: .25rem .75rem;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.live-ticker + .live-ticker { margin-left: .5rem; }

.live-dot {
  width: var(--live-dot-size);
  height: var(--live-dot-size);
  border-radius: 50%;
  background: #57D9A3;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.live-dot.orange { background: #FF8B00; }
.live-dot.red { background: #FF5630; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

.ticker-value {
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ticker-label {
  color: rgba(255,255,255,.65);
  margin-left: .2rem;
}

.ticker-update {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  margin-left: .25rem;
}

.live-topbar .compliance-badge {
  margin-left: auto;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  padding: .2rem .6rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
}

/* ============================================================
   MAIN NAV
   ============================================================ */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: var(--topbar-height);
  z-index: 900;
  padding: 0 1.5rem;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav-inner::-webkit-scrollbar { display: none; }

.nav-item {
  padding: .85rem 1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: color .15s, border-color .15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-item:hover { color: var(--primary); }

.nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.nav-item .nav-badge {
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  padding: .1rem .4rem;
  border-radius: 10px;
  font-weight: 600;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.page-section {
  display: none;
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn .2s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .25rem;
}

.page-subtitle {
  font-size: .875rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.section-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

/* ============================================================
   METRIC CARDS
   ============================================================ */
.metric-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: box-shadow .2s, transform .2s;
  height: 100%;
}

.metric-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-icon.blue { background: var(--primary-light); color: var(--primary); }
.metric-icon.green { background: var(--success-light); color: var(--success); }
.metric-icon.yellow { background: var(--warning-light); color: var(--warning); }
.metric-icon.red { background: var(--danger-light); color: var(--danger); }
.metric-icon.purple { background: var(--purple-light); color: var(--purple); }
.metric-icon.orange { background: var(--warning-light); color: var(--warning); }

.metric-live-tag {
  font-size: .65rem;
  color: var(--success);
  background: var(--success-light);
  padding: .15rem .45rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-weight: 600;
}

.metric-label {
  font-size: .78rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: .4rem;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: .15rem;
}

.metric-desc {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .4rem;
}

.metric-trend {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .72rem;
  margin-top: .35rem;
  font-weight: 600;
}

.metric-trend.up { color: var(--success); }
.metric-trend.down { color: var(--danger); }
.metric-trend.neutral { color: var(--text-muted); }

/* ============================================================
   CONTENT CARDS
   ============================================================ */
.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header-custom {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: #FAFBFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-custom h5 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.card-header-custom .card-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.card-body-custom {
  padding: 1.25rem;
}

/* ============================================================
   NAV CARDS
   ============================================================ */
.nav-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
  height: 100%;
  cursor: pointer;
}

.nav-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
  text-decoration: none;
}

.nav-card-icon {
  font-size: 1.6rem;
  margin-bottom: .6rem;
  display: block;
}

.nav-card h5 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .4rem;
}

.nav-card p {
  font-size: .78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   DATA TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}

.data-table thead th {
  padding: .65rem .75rem;
  text-align: left;
  font-weight: 700;
  font-size: .75rem;
  color: var(--text-secondary);
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}

.data-table tbody td {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

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

.data-table tbody tr:hover td { background: var(--primary-light); }

.data-table tbody tr.highlight-row td {
  background: #FFF8E1;
  font-weight: 600;
  color: var(--warning);
}

.table-responsive {
  overflow-x: auto;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  font-size: .85rem;
  border-radius: var(--radius);
  border-color: var(--border-color);
  transition: border-color .15s, box-shadow .15s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,87,184,.15);
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.range-wrapper input[type="range"] {
  flex: 1;
  accent-color: var(--primary);
}

.range-value {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 36px;
  text-align: right;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-pv {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
}

.btn-primary-pv:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.btn-primary-pv:active { transform: scale(.98); }

.btn-success-pv {
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none;
}

.btn-success-pv:hover { background: #006644; color: #fff; text-decoration: none; }
.btn-success-pv:active { transform: scale(.98); }

.btn-outline-pv {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  transition: background .15s;
}

.btn-outline-pv:hover { background: var(--primary-light); }

.btn-sm-pv {
  font-size: .75rem;
  padding: .25rem .65rem;
}

/* ============================================================
   COMPLIANCE / NOTICE BOX
   ============================================================ */
.compliance-box {
  background: var(--warning-light);
  border: 1px solid #FFE380;
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #172B4D;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.compliance-box i { color: var(--warning); margin-top: .1rem; flex-shrink: 0; }

.demo-mode-box {
  background: var(--info-light);
  border: 1px solid #B3D4FF;
  border-left: 4px solid var(--info);
  border-radius: var(--radius);
  padding: .65rem 1rem;
  font-size: .78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.demo-mode-box i { color: var(--info); }

.data-source {
  font-size: .72rem;
  color: var(--text-muted);
  padding: .5rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: .5rem;
}

/* ============================================================
   CHARTS
   ============================================================ */
.chart-container {
  width: 100%;
  height: 320px;
}

.chart-container-sm { height: 220px; }
.chart-container-lg { height: 400px; }

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner {
  background: linear-gradient(135deg, #003D80 0%, #0057B8 40%, #0065FF 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-banner h1 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.hero-banner p {
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-stat-item {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: .75rem 1.25rem;
  backdrop-filter: blur(8px);
  min-width: 140px;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  font-size: .7rem;
  color: rgba(255,255,255,.65);
  margin-top: .2rem;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { padding: .5rem 0; }

.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  padding-bottom: 1.25rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-item h5 { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.timeline-item p { font-size: .8rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* ============================================================
   MARKET INTELLIGENCE PAGE
   ============================================================ */
.market-ticker-bar {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
  margin-bottom: 1rem;
}

.market-ticker-bar::-webkit-scrollbar { display: none; }

.ticker-card {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: .6rem 1rem;
  min-width: 150px;
  box-shadow: var(--shadow);
}

.ticker-card-name {
  font-size: .7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .2rem;
}

.ticker-card-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.ticker-card-change {
  font-size: .7rem;
  font-weight: 600;
  margin-top: .15rem;
}

.ticker-card-change.up { color: var(--success); }
.ticker-card-change.down { color: var(--danger); }

.policy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow);
  margin-bottom: .75rem;
  transition: transform .15s, box-shadow .15s;
}

.policy-card:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-lg);
}

.policy-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}

.policy-tag.national { background: var(--danger-light); color: var(--danger); }
.policy-tag.local { background: var(--info-light); color: var(--info); }
.policy-tag.standard { background: var(--purple-light); color: var(--purple); }
.policy-tag.industry { background: var(--success-light); color: var(--success); }

.policy-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .3rem;
  line-height: 1.4;
}

.policy-meta {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* ============================================================
   PRICE UPDATE PANEL
   ============================================================ */
.price-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.price-panel-header {
  background: var(--bg-page);
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-refresh-info {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ============================================================
   ASSESSMENT COUNTER
   ============================================================ */
.assessment-counter {
  background: linear-gradient(135deg, #003D80, #0057B8);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.counter-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.counter-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: .5rem;
}

.counter-sub {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  margin-top: .3rem;
}

/* ============================================================
   CARBON CALCULATOR
   ============================================================ */
.carbon-highlight {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border: 1px solid #A5D6A7;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.carbon-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1B5E20;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.carbon-label {
  font-size: .82rem;
  color: #2E7D32;
  margin-top: .4rem;
}

.carbon-equivalent {
  font-size: .78rem;
  color: #388E3C;
  margin-top: .3rem;
  background: rgba(56,142,60,.1);
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
}

/* ============================================================
   REPORT PREVIEW
   ============================================================ */
.report-preview-wrapper {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}

.report-preview {
  padding: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-compliance {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
  font-size: .9rem;
}

.loading-overlay.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .live-topbar { padding: 0 1rem; gap: 0; }
  .live-ticker { font-size: .72rem; padding: .2rem .5rem; }
  .ticker-label { display: none; }
  .hero-banner { padding: 1.5rem 1.25rem; }
  .hero-banner h1 { font-size: 1.2rem; }
  .hero-stats { gap: .75rem; }
  .hero-stat-item { min-width: 100px; padding: .5rem .75rem; }
  .hero-stat-value { font-size: 1.1rem; }
  .metric-value { font-size: 1.3rem; }
  .page-section { padding: 1rem; }
  .page-title { font-size: 1.1rem; }
  .counter-number { font-size: 2.5rem; }
}

/* ============================================================
   PRINT / PDF REPORT STYLES
   ============================================================ */
.report-cover {
  text-align: center;
  padding: 4rem 2rem;
  border-bottom: 3px solid var(--primary);
}

.report-section { padding: 1.5rem 0; border-bottom: 1px solid var(--border-color); }
.report-section:last-child { border-bottom: none; }
.report-section h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1rem; }
.report-table { width: 100%; border-collapse: collapse; font-size: .82rem; margin: .75rem 0; }
.report-table th, .report-table td { padding: .5rem .75rem; border: 1px solid var(--border-color); text-align: left; }
.report-table th { background: var(--primary-light); font-weight: 700; color: var(--primary); }
.report-chart-img { max-width: 100%; height: auto; display: block; margin: 1rem auto; }
.report-footer { padding-top: 1rem; font-size: .78rem; color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   模式切换 Banner & Modal
   ============================================================ */
.mode-banner {
  background: linear-gradient(90deg, #FF8B00 0%, #FF6B00 100%);
  color: #fff;
  font-size: .82rem;
  padding: .5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(255,139,0,.35);
}
.mode-banner.production {
  background: linear-gradient(90deg, #00875A 0%, #006644 100%);
  box-shadow: 0 2px 8px rgba(0,135,90,.35);
}
.mode-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.mode-switch-btn {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  border-radius: 20px;
  padding: .25rem .8rem;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: .3rem;
}
.mode-switch-btn:hover { background: rgba(255,255,255,.28); }
.mode-switch-btn.production { background: rgba(255,255,255,.18); }
.mode-switch-btn.production:hover { background: rgba(255,255,255,.3); }
.mode-badge {
  background: rgba(255,139,0,.15);
  border: 1px solid rgba(255,139,0,.4);
  color: #FF8B00;
  border-radius: 12px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
  transition: all .2s;
}
.mode-badge:hover { background: rgba(255,139,0,.25); }
.mode-badge.production {
  background: rgba(0,135,90,.15);
  border-color: rgba(0,135,90,.4);
  color: #00875A;
}
.mode-badge.production:hover { background: rgba(0,135,90,.25); }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  width: 380px;
  max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-box h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: .3rem; }
