/* ═══════════════════════════════════════════════════════
   KamadoIQ — Premium Precision Cooking System
   Black + Gold Design System
   ═══════════════════════════════════════════════════════ */

:root {
  --black: #0a0a0a;
  --black-card: #111111;
  --black-raised: #161616;
  --black-border: #1e1e1e;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dim: rgba(201,168,76,0.15);
  --gold-glow: rgba(201,168,76,0.25);
  --text: #e8e8e8;
  --text-dim: #888888;
  --text-muted: #555555;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #27ae60;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--black);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4 { margin: 0 0 0.5rem; line-height: 1.2; }
p { margin: 0 0 1rem; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ---------- Splash Screen ---------- */

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  animation: splashFadeIn 1.2s ease-out;
}

.splash-content::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -55%);
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.04) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.splash-image {
  position: relative;
  z-index: 1;
  max-width: min(80vw, 420px);
  max-height: 50vh;
  object-fit: contain;
}

.splash-brand {
  position: relative;
  z-index: 1;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--white);
}

.splash-iq, .logo-iq {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,168,76,0.7), 0 0 30px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.15);
}

.splash-tagline {
  position: relative;
  z-index: 1;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.splash-enter-btn {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  padding: 0.7rem 3.5rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.splash-enter-btn:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 40px var(--gold-glow);
}

.splash-enter-btn:active {
  transform: scale(0.96);
}

.app-wrapper {
  opacity: 0;
  animation: appReveal 0.5s ease forwards;
}

@keyframes appReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Navigation ---------- */

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 1.25rem;
  height: 56px;
  background: #000;
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--black-border);
}

nav .logo {
  font-size: 1.1rem;
  font-weight: 800;
  margin-right: auto;
  letter-spacing: 0.06em;
  color: var(--white);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  height: 100%;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

.nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
  text-shadow: 0 0 10px rgba(201,168,76,0.7), 0 0 25px rgba(201,168,76,0.35);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
/* ---------- Layout ---------- */

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.section {
  min-height: calc(100vh - 56px);
}

/* ---------- Hero / Home ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  color: var(--white);
  text-align: center;
  background: var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 70%, var(--gold-dim) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 3rem 1.5rem;
  animation: heroFadeIn 0.8s ease-out;
}

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

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero h1 .gold {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201,168,76,0.7), 0 0 30px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.15);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 2rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 0 30px var(--gold-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn-secondary:hover {
  background: var(--gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--black-border);
}

.btn-ghost:hover {
  color: var(--white);
  border-color: var(--text-muted);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

.btn:active {
  transform: scale(0.97);
}

/* ---------- Cards ---------- */

.card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

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

.card-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.card-header .badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: var(--gold-dim);
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--black-border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Feature Cards (Home grid) ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.08);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Section Headers ---------- */

.section-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0.5rem auto 0;
}

.section-header .gold {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,168,76,0.7), 0 0 30px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.15);
}
/* ---------- Forms / Inputs ---------- */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--black-raised);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--black-card);
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ---------- Choice Grid ---------- */

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.choice-btn {
  background: var(--black-raised);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.choice-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.choice-btn.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Cook Plan / Result ---------- */

.cook-plan {
  background: var(--black-card);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.cook-plan-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--black-card), #1a1508);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.cook-plan-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.cook-plan-header p {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.cook-plan-body {
  padding: 1.5rem;
}

.cook-plan-section {
  margin-bottom: 1.5rem;
}

.cook-plan-section:last-child {
  margin-bottom: 0;
}

.cook-plan-section h4,
.cook-plan-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}

.cook-plan-section p,
.cook-plan-section li {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.cook-plan-section ol {
  padding-left: 1.25rem;
  margin: 0;
}

.cook-plan-section ol li {
  margin-bottom: 0.5rem;
}

.cook-plan-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--black-border);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------- Stats Row ---------- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.stat-item {
  background: var(--black-raised);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.stat-item .label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Snap to Cook ---------- */

.snap-zone {
  border: 2px dashed var(--black-border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--black-card);
}

.snap-zone:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,0.03);
}

.snap-zone .icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.snap-zone p {
  color: var(--text-dim);
  margin: 0;
}

.snap-preview {
  max-width: 400px;
  margin: 1.5rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--black-border);
}

.snap-preview img {
  width: 100%;
  height: auto;
}

/* ---------- Fire Control ---------- */

.temp-dial {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 2rem auto;
  background: var(--black-card);
  box-shadow: 0 0 40px rgba(201,168,76,0.1);
}

.temp-dial .temp {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}

.temp-dial .unit {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: -0.25rem;
}

.vent-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.vent-item {
  background: var(--black-raised);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.vent-item .label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}

.vent-item .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
/* ---------- Mastery / Progress ---------- */

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--black-raised);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Accessories ---------- */

.accessory-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
}

.accessory-card .info {
  flex: 1;
}

.accessory-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.accessory-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.owned-toggle {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--black-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.owned-toggle.owned {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Cook Log ---------- */

.log-entry {
  padding: 1.25rem;
  border-bottom: 1px solid var(--black-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry .date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 70px;
}

.log-entry .name {
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.log-entry .rating {
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---------- Profile ---------- */

.profile-section {
  margin-bottom: 2rem;
}

.profile-section h3 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--black-border);
}

/* ---------- Upgrade / Pro ---------- */

.pro-banner {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--black-card), #1a1508);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.pro-banner h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}

.pro-banner .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin: 1rem 0 0.25rem;
}

.pro-banner .price-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.pro-features {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 360px;
  text-align: left;
}

.pro-features li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--black-border);
}

.pro-features li::before {
  content: '\2713  ';
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Chat ---------- */

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  background: var(--black);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.chat-bubble.user {
  background: var(--gold-dim);
  color: var(--gold-light);
  margin-left: auto;
  border-bottom-right-radius: var(--radius-xs);
}

.chat-bubble.assistant {
  background: var(--black-raised);
  color: var(--text);
  border: 1px solid var(--black-border);
  border-bottom-left-radius: var(--radius-xs);
}

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--black-border);
  background: #000;
}

.chat-input-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--black-raised);
  border: 1px solid var(--black-border);
  border-radius: 50px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.chat-input-row input:focus {
  border-color: var(--gold);
}

.chat-input-row button {
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.chat-input-row button:hover {
  background: var(--gold-light);
}

.typing-indicator .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-right: 4px;
  animation: dotBounce 1.2s ease-in-out infinite;
}

.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

/* ---------- Loading / Empty ---------- */

.loading-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.loading-icon {
  font-size: 2.5rem;
  animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.08); }
}

.loading-state p {
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */

.app-footer {
  border-top: 1px solid var(--black-border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.04em;
}

/* ---------- Page Content ---------- */

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ---------- Pro Lock ---------- */

.pro-lock {
  position: relative;
}

.pro-lock::after {
  content: 'PRO';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: var(--gold);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 50px;
}

/* ---------- Utilities ---------- */

.text-gold {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(201,168,76,0.7), 0 0 30px rgba(201,168,76,0.4), 0 0 60px rgba(201,168,76,0.15);
}
.text-dim { color: var(--text-dim); }
.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; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none; }

/* ---------- Admin Dashboard ---------- */

.admin-tabs {
  border-bottom: 1px solid var(--black-border);
  padding-bottom: 0.75rem;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--black-border);
  font-size: 0.85rem;
}

.log-entry:last-child { border-bottom: none; }

.log-entry .date {
  color: var(--text-muted);
  font-size: 0.75rem;
  min-width: 140px;
}

.log-entry .name {
  color: var(--text);
  flex: 1;
}

.log-entry .rating {
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Blog ---------- */

.blog-body p {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.blog-body h3 {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------- Auth ---------- */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--black-border);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0;
    gap: 0;
    background: #000;
    border-top: 1px solid var(--black-border);
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1.25rem;
    width: 100%;
    border-radius: 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    border-bottom: 1px solid var(--black-border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a.active {
    color: var(--gold);
    background: var(--gold-dim);
  }

  .nav-links a.active::after {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vent-guide {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 400px) {
  nav .logo {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .choice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}
