/* =============================================
   PETROLYT — Internal App Stylesheet
   Theme: Dark (#141414) + Gold (#ffcf63)
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #141414;
  --bg-card:     #1e1e1e;
  --bg-input:    #252525;
  --gold:        #ffcf63;
  --gold-dark:   #c8900c;
  --gold-hover:  #9b700b;
  --amber:       #d0960f;
  --text:        #f0f0f0;
  --text-sub:    wheat;
  --text-muted:  #888;
  --border:      #2e2e2e;
  --border-gold: rgba(255, 207, 99, 0.3);
  --danger:      #e55;
  --success:     #4caf7d;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px; /* offset fixed navbar */
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background-color: #000;
  border-bottom: 1px solid var(--border-gold);
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  width: 100%;
  padding: 0 50px;
}

#navbar-logo {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.navbar_menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 auto;
  gap: 0;
}

.navbar_item { height: 80px; display: flex; align-items: center; }

.navbar_links {
  color: var(--text-sub);
  text-decoration: none;
  height: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.navbar_links:hover { color: var(--gold); }

/* Tier badge */
.tier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin: 0 0.75rem;
}
.tier-free     { background: #333; color: var(--text-muted); }
.tier-pro      { background: var(--gold-dark); color: #000; }
.tier-enterprise { background: linear-gradient(135deg, var(--gold), var(--amber)); color: #000; }

/* Navbar user greeting */
.navbar_user {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-right: 1rem;
  white-space: nowrap;
}

/* Navbar button */
.navbar_btn { display: flex; align-items: center; gap: 0.75rem; }
.navbar_btn.mobile { display: none; }
.navbar_btn.desktop { display: flex; }

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--gold);
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  height: 3em;
  width: 9em;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.button:hover {
  background-color: var(--gold-hover);
  color: #fff;
  transform: translateY(-1px);
}

.navbar_toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
}

/* Mobile nav */
@media screen and (max-width: 968px) {
  .container { padding: 0 20px; }

  .navbar_toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .navbar_menu {
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 80px; left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: #111;
    opacity: 0;
    transition: left 0.35s ease, opacity 0.35s ease;
    z-index: 999;
    padding-top: 1rem;
  }
  .navbar_menu.active { left: 0; opacity: 1; }

  .navbar_item { width: 100%; height: auto; }
  .navbar_links {
    width: 100%;
    justify-content: center;
    padding: 1.25rem;
    font-size: 1.25rem;
  }

  .navbar_btn.desktop { display: none; }
  .navbar_btn.mobile {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    width: 100%;
  }
  .navbar_btn.mobile .button { width: 80%; height: 54px; }
}

/* =============================================
   FLASH MESSAGES
   ============================================= */
.messages-container {
  position: sticky;
  top: 80px;
  z-index: 900;
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.message {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  border-left: 4px solid var(--gold);
  background: #1c1a10;
  color: var(--text-sub);
}
.message-error   { border-left-color: var(--danger); background: #1c1010; color: #ffaaaa; }
.message-success { border-left-color: var(--success); background: #101c14; color: #aaffcc; }

/* =============================================
   APP HERO (internal pages top banner)
   ============================================= */
.app-hero {
  background: linear-gradient(135deg, #1a1500 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--border-gold);
  padding: 3rem 50px 2.5rem;
}

.app-hero_container h1 {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.app-hero_container p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* =============================================
   MODE GRID (Tools / Home)
   ============================================= */
.modes-section {
  padding: 3rem 50px 5rem;
  min-height: 60vh;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.mode-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(255, 207, 99, 0.08);
}

.mode-card_icon {
  width: 52px; height: 52px;
  background: rgba(255, 207, 99, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold);
}

.mode-card_content h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.mode-card_content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.mode-card_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.2s;
}
.mode-card_btn:hover { gap: 0.8rem; color: var(--gold-dark); }

/* =============================================
   AUTH PAGES (Login / Register)
   ============================================= */
.auth-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,207,99,0.06) 0%, transparent 70%);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-card_header {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-card_header h2 {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.auth-card_header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-error {
  background: rgba(220, 80, 80, 0.12);
  border: 1px solid rgba(220, 80, 80, 0.35);
  color: #ff9999;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sub);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 207, 99, 0.12);
}

.field-error {
  font-size: 0.8rem;
  color: #ff8888;
}
.field-help {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-btn {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.auth-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.auth-card_footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-card_footer a { color: var(--gold); font-weight: 600; }
.auth-card_footer a:hover { color: var(--gold-dark); }

/* =============================================
   UPGRADE REQUIRED
   ============================================= */
.upgrade-section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.upgrade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.upgrade-icon {
  width: 72px; height: 72px;
  background: rgba(255, 207, 99, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold);
  margin: 0 auto 1.5rem;
}

.upgrade-card h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.upgrade-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.upgrade-limit-msg {
  background: rgba(255,207,99,0.08);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
}
.upgrade-limit-msg i { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.upgrade-desc {
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 0.75rem;
  text-align: left;
}

.upgrade-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.upgrade-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-sub);
}
.upgrade-features li i { color: var(--gold); flex-shrink: 0; }

.upgrade-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.upgrade-btn {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}
.upgrade-btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }

.back-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}
.back-btn:hover { border-color: var(--gold); color: var(--gold); }

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-section {
  padding: 3rem 50px 5rem;
}

.dashboard-header {
  margin-bottom: 2.5rem;
}
.dashboard-header h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.dashboard-header p { color: var(--text-muted); }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-card_icon {
  width: 48px; height: 48px;
  background: rgba(255,207,99,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.stat-card_label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.stat-card_value { font-size: 1.5rem; font-weight: 700; color: var(--text); }

/* =============================================
   DECLINE MODES LIST
   ============================================= */
.decline-section {
  padding: 3rem 50px 5rem;
  min-height: 60vh;
}

.section-title {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
}

.analysis-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.analysis-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}
.analysis-card h4 { font-size: 1rem; color: var(--text); }
.analysis-card p  { font-size: 0.85rem; color: var(--text-muted); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.badge-free { background: #2a2a2a; color: var(--text-muted); }
.badge-pro  { background: rgba(200,144,12,0.2); color: var(--gold); border: 1px solid var(--border-gold); }

.analysis-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold);
  color: #000;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin-top: auto;
  transition: background 0.2s;
  align-self: flex-start;
}
.analysis-btn:hover { background: var(--gold-dark); color: #fff; }

.analysis-btn.locked {
  background: #2a2a2a;
  color: var(--text-muted);
}
.analysis-btn.locked:hover { background: #333; color: var(--text-muted); cursor: not-allowed; }

/* =============================================
   FORMS (Decline analysis inputs)
   ============================================= */
.form-section {
  padding: 3rem 50px 5rem;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 720px;
}

.form-card h2 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.form-card .form-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-full { grid-column: 1 / -1; }

.submit-btn {
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: background 0.2s, transform 0.15s;
}
.submit-btn:hover { background: var(--gold-dark); transform: translateY(-1px); }

/* =============================================
   RESULTS PAGE
   ============================================= */
.results-section {
  padding: 3rem 50px 5rem;
}

.results-header {
  margin-bottom: 2rem;
}
.results-header h2 {
  font-size: 1.75rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.results-header p { color: var(--text-muted); }

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
}
@media (max-width: 900px) { .results-grid { grid-template-columns: 1fr; } }

.result-chart-card,
.result-data-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}

.result-chart-card h3,
.result-data-card h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.result-chart-card svg { width: 100%; height: auto; border-radius: 6px; }

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-item {
  background: var(--bg-input);
  border-radius: 8px;
  padding: 1rem;
}
.kpi-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.kpi-value { font-size: 1.2rem; font-weight: 700; color: var(--gold); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: #252525;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.data-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,207,99,0.03); }

.results-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1rem 50px;
  border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--gold); }

/* =============================================
   GENERIC UTILITIES
   ============================================= */
.page-section {
  padding: 3rem 50px 5rem;
  min-height: 60vh;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
}

.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

hr.gold-divider {
  border: none;
  border-top: 1px solid var(--border-gold);
  margin: 1.5rem 0;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  border-top: 1px solid var(--border);
}

.footer-container {
  background-color: #000;
  color: var(--gold);
  padding: 4rem 0 3rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
}

#footer-logo {
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer_link-wrapper {
  display: flex;
  margin: 0 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer_link-items {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.footer_link-items h2 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer_link-items a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer_link-items a:hover { color: var(--gold); }

.social-media {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 2rem;
}

.social_media-wrap { margin-bottom: 0.5rem; }

.website-rights {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social_icon-link {
  color: var(--gold);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}
.social_icon-link:hover { color: var(--gold-dark); transform: translateY(-2px); }

@media screen and (max-width: 768px) {
  .footer-container { flex-direction: column; padding: 3rem 1rem; }
  .footer_link-wrapper { margin: 0 0 2rem; }
  .social-media { margin: 0; }
  .website-rights { margin-left: 0; }
  .social-icons { margin-left: 0; }
  .modes-section,
  .decline-section,
  .form-section,
  .results-section,
  .dashboard-section,
  .page-section { padding: 2rem 1rem 4rem; }
  .app-hero { padding: 2rem 1rem 1.5rem; }
  .breadcrumb { padding: 1rem; }
  .results-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 480px) {
  .form-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr; }
  .upgrade-actions { flex-direction: column; }
}

/* =============================================
   PRICING PAGE
   ============================================= */
.pricing-section {
  padding: 3rem 50px 5rem;
  min-height: 60vh;
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}
.pricing-header h1 {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.pricing-header > p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.toggle-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.toggle-option {
  font-size: 1rem;
  color: var(--text-sub);
}
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #333;
  border-radius: 28px;
  transition: 0.3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
  background-color: var(--gold);
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .slider { background-color: var(--gold-dark); }
input:checked + .slider:before { transform: translateX(24px); }

.save-badge {
  background: rgba(255, 207, 99, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 40px rgba(255, 207, 99, 0.07);
}
.pricing-card--featured {
  border-color: var(--gold-dark);
  background: linear-gradient(160deg, #201a00 0%, var(--bg-card) 50%);
}

.pricing-card_popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card_header h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.pricing-card_desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  min-height: 2.5rem;
}

.pricing-card_price {
  margin-bottom: 1.25rem;
}
.price-amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}
.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.price-billed {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.current-plan-badge {
  display: inline-block;
  background: rgba(76,175,125,0.12);
  border: 1px solid rgba(76,175,125,0.35);
  color: #4caf7d;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  width: 100%;
  text-align: center;
}

.price-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  background: var(--gold);
  color: #000;
  text-decoration: none;
}
.price-btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }

.price-btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.price-btn--outline:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

.pricing-card_features {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.pricing-card_features h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.pricing-card_features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.pricing-card_features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-sub);
}
.pricing-card_features li i { margin-top: 2px; flex-shrink: 0; }
.pricing-card_features .fa-check { color: var(--gold); }
.pricing-card_features .fa-xmark { color: var(--text-muted); }

.pricing-footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .pricing-section { padding: 2rem 1rem 4rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card--featured { order: -1; }
}

/* ---- BILLING / SUBSCRIPTION CARD (dashboard) ---- */
.billing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0 2rem;
}
.billing-card_info { flex: 1 1 320px; }
.billing-card_info h3 { color: var(--gold); margin-bottom: 0.5rem; }
.billing-card_info p { color: var(--text-sub); margin-bottom: 0.9rem; }
.billing-card_action form { margin: 0; }

.usage-bar {
  width: 100%;
  max-width: 420px;
  height: 10px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.4rem 0 0.4rem;
}
.usage-bar_fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.usage-bar_label { font-size: 0.8rem; color: var(--text-muted); }

/* ---- LOGOUT FORM (navbar) ---- */
.logout-form { margin: 0; display: inline; }
.logout-form .button {
  border: none;
  cursor: pointer;
  font: inherit;
}
.navbar_btn.mobile .logout-form { width: 100%; display: flex; justify-content: center; }
.navbar_btn.mobile .logout-form .button { width: 80%; height: 54px; }

/* =============================================
   DASHBOARD (stats, quick actions, tables)
   ============================================= */
.dashboard { padding: 3rem 50px 5rem; }
.dashboard > h3 {
  font-size: 1.15rem;
  color: var(--gold);
  margin: 2.5rem 0 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin-bottom: 1rem;
}

/* stat-card here is a label+value column (no icon variant) */
.stat-card { flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.stat-value small { font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, color 0.2s;
}
.action-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.empty-state {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* =============================================
   DATA TABLES (params / forecast)
   ============================================= */
.params-table,
.forecast-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.5rem 0 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.params-table th,
.forecast-table th {
  text-align: left;
  padding: 0.7rem 1rem;
  background: #252525;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.params-table td,
.forecast-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
}
.params-table tr:last-child td,
.forecast-table tr:last-child td { border-bottom: none; }
.forecast-table tbody tr:hover td { background: rgba(255, 207, 99, 0.03); }
.params-table td:first-child { color: var(--text-muted); }
.params-table a,
.forecast-table a { color: var(--gold); font-weight: 600; }
.params-table a:hover,
.forecast-table a:hover { color: var(--gold-dark); }
tr.best-model td { background: rgba(255, 207, 99, 0.08); color: var(--text); font-weight: 600; }

/* =============================================
   DECLINE RESULTS (text blocks, alerts, export)
   ============================================= */
.results-container { padding: 2.5rem 50px 5rem; max-width: 1100px; }
.results-container > h1 { font-size: 1.8rem; color: var(--gold); margin-bottom: 1.5rem; line-height: 1.3; }
.results-container > h2 { font-size: 1.45rem; color: var(--gold); margin: 1.5rem 0 1rem; }
.results-container > h3 { font-size: 1.15rem; color: var(--text); margin: 2rem 0 0.75rem; }
.results-container > p { color: var(--text-sub); margin-bottom: 0.6rem; }

.explanation,
.info {
  background: rgba(255, 207, 99, 0.06);
  border-left: 3px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
}

.recommendation {
  background: rgba(76, 175, 125, 0.1);
  border: 1px solid rgba(76, 175, 125, 0.3);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  color: #aee0c4;
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
}

.report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.report strong { color: var(--gold); }

.error-box {
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.35);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #ffaaaa;
  margin: 1rem 0;
}

.warning-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-sub);
  line-height: 1.6;
}
.warning-banner strong { color: var(--gold); font-size: 1.02rem; display: block; margin-bottom: 0.5rem; }
.warning-banner p { margin-bottom: 0.5rem; }
.warning-banner ul { margin: 0.5rem 0 0.5rem 1.25rem; }
.warning-banner li { margin-bottom: 0.4rem; }
.warning-banner em { color: var(--gold); font-style: italic; }
.warning-note { margin-top: 0.6rem; font-style: italic; font-size: 0.88rem; color: var(--text-muted); }

.export-section { margin: 2rem 0 1rem; }
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.export-btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }

/* =============================================
   RESULTS DETAIL (single calculation)
   ============================================= */
.result-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  max-width: 1000px;
}
@media (max-width: 800px) { .result-summary-grid { grid-template-columns: 1fr; } }

.result-headline {
  text-align: center;
  padding: 1rem 0 1.5rem;
}
.result-headline_value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.result-headline_label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.input-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.input-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}
.input-list li:last-child { border-bottom: none; }
.input-list .input-key { color: var(--text-muted); }
.input-list .input-val { color: var(--text); font-weight: 600; text-align: right; }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 1rem;
}
.status-tag.failed { color: var(--danger); }

/* =============================================
   ERROR PAGES (404 / 500)
   ============================================= */
.error-page {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
  gap: 1rem;
}
.error-page .error-code { font-size: 4.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.error-page h1 { font-size: 1.6rem; color: var(--text); }
.error-page p { color: var(--text-muted); max-width: 440px; }
.error-page .button { width: auto; padding: 0.7rem 1.6rem; border-radius: 8px; margin-top: 0.5rem; }

/* =============================================
   UTILITIES
   ============================================= */
.hidden { display: none !important; }

@media (max-width: 768px) {
  .dashboard,
  .results-container { padding-left: 20px; padding-right: 20px; }
}
