/* ═══════════════════════════════════════════════════
   KickViz Dashboard — Global Stylesheet
   ═══════════════════════════════════════════════════ */

* { box-sizing: border-box; }

body {
  background: #0f172a;
  color: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

/* ── Navigation ──────────────────────────────────── */

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #1e293b;
  padding: 0 1.5rem;
  height: 52px;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}

.nav-links a:hover {
  background: #334155;
  color: #f1f5f9;
}

.nav-links a.active {
  background: #0284c7;
  color: #fff;
}

.nav-links a.nav-viz {
  background: #4f46e5;
  color: #fff;
}
.nav-links a.nav-viz:hover {
  background: #4338ca;
}

.nav-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.nav-logout {
  background: #ef4444;
  color: #fff;
  padding: 0.3rem 0.7rem;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
}
.nav-logout:hover { background: #dc2626; }

/* ── Content ─────────────────────────────────────── */

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

/* ── Alerts ──────────────────────────────────────── */

.alert {
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.alert-danger  { background: rgba(239,68,68,0.15);  border: 1px solid #ef4444; color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.15); border: 1px solid #10b981; color: #a7f3d0; }

/* ── Dashboard Hub ───────────────────────────────── */

.dash-hub h2 {
  margin: 0 0 0.25rem 0;
  font-size: 1.4rem;
}
.dash-subtitle {
  color: #64748b;
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) { .dash-cards { grid-template-columns: 1fr; } }

.dash-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: #f1f5f9;
  transition: all 0.2s;
  display: block;
}
.dash-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.3);
}
.dash-card-viz:hover { border-color: #818cf8; }

.dash-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.dash-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.dash-card-meta { font-size: 0.8rem; color: #38bdf8; margin-bottom: 0.5rem; }
.dash-card-desc { font-size: 0.8rem; color: #64748b; line-height: 1.4; }

/* ── Panels & Grid ───────────────────────────────── */

.page-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.5rem;
}
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }

.panel {
  background: #1e293b;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
}

.panel h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem 0;
  color: #94a3b8;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.5rem;
}

/* ── Forms ───────────────────────────────────────── */

.form-group { margin-bottom: 0.75rem; }
label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; color: #cbd5e1; }
input, select, textarea {
  width: 100%; padding: 0.5rem; background: #0f172a; border: 1px solid #334155;
  border-radius: 6px; color: #f8fafc; font-size: 0.9rem;
}
input:focus, select:focus { outline: none; border-color: #38bdf8; }
input[type="color"] { height: 36px; padding: 2px; cursor: pointer; }

.color-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }

/* ── Buttons ─────────────────────────────────────── */

button, .btn {
  border: none; border-radius: 6px; padding: 0.5rem 1rem;
  font-weight: 700; cursor: pointer; font-size: 0.85rem;
  color: #fff; text-decoration: none; display: inline-block;
}
.btn:hover, button:hover { opacity: 0.9; }
.btn-primary  { background: #0284c7; }
.btn-success  { background: #10b981; }
.btn-danger   { background: #ef4444; }
.btn-indigo   { background: #6366f1; }
.btn-default  { background: #475569; }

.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; border-radius: 6px; }

/* Ensure <a> and <label> styled as btn-sm match button appearance */
a.btn-sm, label.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
a.btn-primary, label.btn-indigo { color: #fff; }

/* ── Share Search Dropdown ─────────────────────────── */
.share-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  border-top: none;
  z-index: 50;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.share-result-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #e5e7eb;
}
.share-result-item:last-child { border-bottom: none; }

/* ── Team Cards ──────────────────────────────────── */

.team-card {
  background: #0f172a; border: 1px solid #334155; border-radius: 8px;
  padding: 1rem; margin-bottom: 1rem;
}
.team-header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.team-logo-thumb { flex: 0 0 auto; }
.team-title { font-size: 1.05rem; font-weight: 700; color: #38bdf8; }
.team-meta { font-size: 0.75rem; color: #64748b; margin-left: 0.5rem; }
.team-colors { display: flex; gap: 0.4rem; }
.color-swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #475569; }

.team-details { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #334155; }
.team-details summary { cursor: pointer; font-size: 0.85rem; color: #94a3b8; }

/* ── Player Rows ─────────────────────────────────── */

.player-list { margin-bottom: 0.5rem; }

.player-row {
  padding: 0.4rem 0;
  border-bottom: 1px solid #1e293b;
}
.player-row:last-child { border-bottom: none; }

.player-display {
  display: flex; align-items: center; gap: 0.5rem;
}
.player-photo-thumb { flex: 0 0 auto; }
.player-num {
  background: #334155; text-align: center; border-radius: 4px;
  font-weight: 700; padding: 0.2rem; min-width: 40px;
}
.player-pos { color: #94a3b8; font-size: 0.85rem; min-width: 60px; }
.player-name { color: #e2e8f0; flex: 1; }

.player-edit-form {
  display: none; gap: 0.4rem; align-items: center;
}
.player-edit-num { max-width: 50px; }
.player-edit-pos { max-width: 70px; }
.player-edit-name { flex: 1; }
.player-edit-form input { padding: 0.3rem; font-size: 0.85rem; }

.add-player-form {
  display: grid; grid-template-columns: 50px 70px 1fr auto; gap: 0.4rem;
  margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #334155;
}
.add-player-form input { padding: 0.35rem; font-size: 0.85rem; }

/* ── Scenario Cards ──────────────────────────────── */

.scenario-card {
  background: #0f172a; border: 1px solid #334155; border-radius: 8px;
  padding: 0.8rem; margin-bottom: 0.6rem;
}
.scenario-display { display: flex; justify-content: space-between; align-items: center; }
.scenario-info { flex: 1; }
.scenario-name { font-weight: 700; color: #38bdf8; font-size: 0.95rem; }
.scenario-meta { font-size: 0.75rem; color: #64748b; }
.scenario-actions { display: flex; gap: 0.4rem; align-items: center; }

.scenario-rename-form {
  display: none; gap: 0.4rem; align-items: center;
}
.rename-input { flex: 1; }

/* ── Scenario Sharing UI ─────────────────────────── */

.scenario-share-row {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px dashed #334155;
}
.share-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
}
.share-badge-text {
  font-size: 0.7rem;
  color: #64748b;
}
.share-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  vertical-align: middle;
}
.share-badge-public {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.share-badge-private {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.3);
}
.share-badge-acct {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.scenario-card-shared {
  border-color: #312e81;
  border-left: 3px solid #6366f1;
}

/* ── Search Results ──────────────────────────────── */

.search-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-weight: 700;
  color: #38bdf8;
  font-size: 0.9rem;
  word-break: break-word;
}
.search-result-meta {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
}

/* ── Login Page ───────────────────────────────────── */

.login-container {
  background: #0f172a; color: #f1f5f9; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 2rem;
}

.login-container h1 {
  font-size: 1.8rem; font-weight: 800; text-align: center; margin: 0 0 1.5rem 0;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.login-card {
  background: #1e293b; padding: 1.5rem; border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5); width: 100%; max-width: 380px;
  margin-bottom: 1.5rem;
}

.login-card h2 {
  font-size: 1.1rem; margin: 0 0 1rem 0; color: #94a3b8;
  border-bottom: 1px solid #334155; padding-bottom: 0.5rem;
}

.login-footer { text-align: center; font-size: 0.75rem; color: #64748b; }

/* ── Empty state ──────────────────────────────────── */

.empty-state { color: #64748b; font-size: 0.85rem; padding: 1rem 0; }

/* ── Upgrade Overlay (free tier) ──────────────────── */

.upgrade-overlay {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #0f172a;
  border: 1px dashed #475569;
  border-radius: 8px;
}
.upgrade-overlay p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0 0 0.75rem 0;
}
.upgrade-overlay .btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   PUBLIC PAGES — Home, Plans, Contact
   ═══════════════════════════════════════════════════ */

/* ── Public Nav ───────────────────────────────────── */

.public-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #1e293b;
  padding: 0 1.5rem;
  height: 52px;
  border-bottom: 1px solid #334155;
  position: sticky;
  top: 0;
  z-index: 100;
}

.public-nav .nav-brand {
  font-size: 1.1rem;
  font-weight: 800;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.public-nav .nav-links {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}

.public-nav .nav-links a {
  color: #94a3b8;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.15s;
}

.public-nav .nav-links a:hover {
  background: #334155;
  color: #f1f5f9;
}

.public-nav .nav-links a.active {
  background: #0284c7;
  color: #fff;
}

.public-nav .nav-links a.nav-viz {
  background: #4f46e5;
  color: #fff;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  min-height: 60vh;
}

.hero-content { flex: 1 1 50%; }

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.3;
  padding-bottom: 0.1em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.hero-image { flex: 1 1 40%; }

.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: #1e293b;
  border: 2px dashed #334155;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-image-placeholder span { font-size: 3rem; }
.hero-image-placeholder p { color: #64748b; font-size: 0.85rem; }

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-title { font-size: 2rem; }
}

/* ── Sections ─────────────────────────────────────── */

.section { padding: 3rem 0; }
.section-alt { background: #1e293b; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  color: #f1f5f9;
}

.section-text {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0 0 1rem 0;
}

/* ── Features Grid ────────────────────────────────── */

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

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}

.feature-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.05rem; margin: 0 0 0.5rem 0; color: #f1f5f9; }
.feature-card p { font-size: 0.85rem; color: #94a3b8; line-height: 1.5; margin: 0; }

/* ── Gallery ──────────────────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid #334155;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}
.gallery-item p {
  padding: 0.6rem 0.8rem;
  color: #94a3b8;
  font-size: 0.8rem;
  margin: 0;
}

.gallery-placeholder {
  aspect-ratio: 16/10;
  background: #0f172a;
  border: 2px dashed #334155;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gallery-placeholder span { font-size: 2.5rem; }
.gallery-placeholder p { color: #64748b; font-size: 0.8rem; }

/* ── CTA Section ──────────────────────────────────── */

.cta-section { text-align: center; }

/* ── Buttons (large) ──────────────────────────────── */

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ── Tier Badges ──────────────────────────────────── */

.tier-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
}
.tier-free { background: #334155; color: #94a3b8; }
.tier-premium { background: #22c55e; color: #0b0f19; }

/* ── Admin Panel ──────────────────────────────────── */

.stat-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 110px;
}
.stat-number { font-size: 1.8rem; font-weight: 800; color: #f1f5f9; }
.stat-label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th {
  text-align: left;
  padding: 0.75rem;
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  border-bottom: 2px solid #334155;
  white-space: nowrap;
}
.admin-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #1e293b;
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(30, 41, 59, 0.5); }

.sub-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}
.sub-active { background: #14532d; color: #4ade80; }
.sub-trialing { background: #155e75; color: #67e8f9; }
.sub-past_due { background: #713f12; color: #fbbf24; }
.sub-canceled { background: #450a0a; color: #fca5a5; }
.sub-incomplete { background: #334155; color: #94a3b8; }

/* ── Dashboard Upgrade Card ───────────────────────── */

.dash-card-upgrade {
  border: 2px solid #22c55e;
  background: linear-gradient(135deg, #0f172a, #14532d);
  position: relative;
}
.dash-card-upgrade::after {
  content: '★';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.5rem;
  color: #22c55e;
}
.dash-card-upgrade .dash-card-title { color: #22c55e; }
.dash-card-upgrade:hover { border-color: #4ade80; }

/* ── Pricing ──────────────────────────────────────── */

.pricing-card {
  width: 320px;
  max-width: 320px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  margin: 14px 0 0;
  background: #0f172a;
  border: 2px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.pricing-header {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 2rem;
  text-align: center;
  border-radius: 14px 14px 0 0;
}

.pricing-header h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem 0;
  color: #fff;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.pricing-period {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.8;
}

.pricing-features {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.pricing-list li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-bottom: 1px solid #1e293b;
}

.pricing-list li:last-child { border-bottom: none; }

.pricing-list li strong { color: #f1f5f9; }

.pricing-card .btn {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
}
.pricing-card form {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
}
.pricing-card form .btn {
  margin: 0;
  width: 100%;
}
.pricing-card .btn-lg {
  text-align: center;
}

/* Save badge on yearly card - positioned at top of card */
.pricing-save-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #22c55e;
  color: #0b0f19;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 14px;
  border-radius: 0 0 8px 8px;
  z-index: 2;
  white-space: nowrap;
}

/* ── FAQ ──────────────────────────────────────────── */

.pricing-faq {
  max-width: 700px;
  margin: 3rem auto 0;
}

.pricing-faq h3 {
  font-size: 1.3rem;
  margin: 0 0 1rem 0;
  color: #f1f5f9;
  text-align: center;
}

.faq-item {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #e2e8f0;
  font-size: 0.9rem;
}

.faq-item p {
  margin: 0.75rem 0 0 0;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ── Contact ──────────────────────────────────────── */

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

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}

.contact-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.contact-card h3 { font-size: 0.95rem; margin: 0 0 0.5rem 0; color: #f1f5f9; }
.contact-card a { color: #38bdf8; text-decoration: none; font-size: 0.85rem; }
.contact-card a:hover { text-decoration: underline; }

.contact-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
}

.contact-info h3 { font-size: 1rem; margin: 0 0 0.5rem 0; color: #f1f5f9; }
.contact-info p { color: #94a3b8; font-size: 0.85rem; line-height: 1.6; margin: 0; }

/* ── Footer ───────────────────────────────────────── */

.public-footer {
  background: #1e293b;
  border-top: 1px solid #334155;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(to right, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
}

.footer-links a:hover { color: #f1f5f9; }

.footer-copy {
  font-size: 0.75rem;
  color: #64748b;
}

/* ── Account Dropdown ──────────────────────────────── */

.account-dropdown {
  position: relative;
  display: inline-block;
}

.account-trigger {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s;
}
.account-trigger:hover {
  background: rgba(255,255,255,0.2);
}

.account-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 10px 30px -5px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
}

.account-dropdown.open .account-dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.6rem 1rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.12s;
}
.dropdown-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 0.25rem 0;
}

/* ── Tutorials / Wiki Layout ───────────────────────── */

.tutorials-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .tutorials-layout { grid-template-columns: 1fr; }
}

.tutorials-sidebar {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1rem;
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .tutorials-sidebar { position: static; max-height: none; }
}

.tutorials-sidebar h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 1rem 0 0.5rem 0;
}
.tutorials-sidebar h4:first-child { margin-top: 0; }

.tutorials-sidebar a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: all 0.15s;
  line-height: 1.3;
}
.tutorials-sidebar a:hover {
  background: #334155;
  color: #f1f5f9;
}
.tutorials-sidebar a.active {
  background: #0284c7;
  color: #fff;
  font-weight: 600;
}

.tutorials-content {
  min-width: 0;
}

.tutorial-header {
  margin-bottom: 1.5rem;
}
.tutorial-header .tutorial-icon {
  font-size: 2rem;
}
.tutorial-header h1 {
  font-size: 1.6rem;
  margin: 0.25rem 0;
}
.tutorial-header .tutorial-summary {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.tutorial-body {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
}
.tutorial-body h2 {
  color: #f1f5f9;
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #334155;
}
.tutorial-body h2:first-child { margin-top: 0; }
.tutorial-body h3 {
  color: #e2e8f0;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem 0;
}
.tutorial-body p {
  margin: 0.5rem 0;
}
.tutorial-body ul, .tutorial-body ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}
.tutorial-body li {
  margin: 0.35rem 0;
}
.tutorial-body code {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85rem;
  color: #38bdf8;
}
.tutorial-body .tip {
  background: rgba(56,189,248,0.1);
  border-left: 3px solid #38bdf8;
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.tutorial-body .tip strong { color: #38bdf8; }
.tutorial-body .warn {
  background: rgba(251,191,36,0.1);
  border-left: 3px solid #fbbf24;
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.tutorial-body .warn strong { color: #fbbf24; }

.tutorial-body img,
.tutorial-body .screenshot {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #334155;
  margin: 1rem 0;
  display: block;
}
.tutorial-body .screenshot-placeholder {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 3rem 2rem;
  text-align: center;
  color: #475569;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.tutorial-body .steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}
.tutorial-body .steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.5rem;
  margin: 1rem 0;
}
.tutorial-body .steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  background: #0284c7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.tutorial-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  gap: 1rem;
}
.tutorial-nav a {
  color: #38bdf8;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 1px solid #334155;
  border-radius: 6px;
  transition: all 0.15s;
}
.tutorial-nav a:hover {
  border-color: #38bdf8;
  background: rgba(56,189,248,0.1);
}
.tutorial-nav a.nav-next { text-align: right; }
.tutorial-nav .nav-label {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Tutorials Index ──────────────────────────────── */

.tutorials-index h1 {
  font-size: 1.8rem;
  margin: 0 0 0.25rem 0;
}
.tutorials-index .subtitle {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0 0 2rem 0;
}

.tutorials-category {
  margin-bottom: 2rem;
}
.tutorials-category h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tutorial-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: #f1f5f9;
  transition: all 0.2s;
  display: block;
}
.tutorial-card:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0,0,0,0.3);
}
.tutorial-card-icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.tutorial-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.tutorial-card-summary { font-size: 0.8rem; color: #64748b; line-height: 1.4; }

/* ── Admin Feedback ───────────────────────────────── */

.feedback-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-left: 3px solid #475569;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.feedback-card.status-new { border-left-color: #38bdf8; }
.feedback-card.status-read { border-left-color: #22c55e; }
.feedback-card.status-archived { opacity: 0.6; border-left-color: #64748b; }

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.feedback-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.feedback-author { font-weight: 700; font-size: 0.95rem; color: #f1f5f9; }
.feedback-email { font-size: 0.8rem; color: #64748b; }
.feedback-date { font-size: 0.75rem; color: #64748b; white-space: nowrap; }

.feedback-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.category-suggestion { background: #1e3a5f; color: #38bdf8; }
.category-bug { background: #5f1e1e; color: #ef4444; }
.category-question { background: #3a3a1e; color: #fbbf24; }
.category-other { background: #3a3a3a; color: #94a3b8; }

.feedback-status-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}
.status-badge-new { background: #1e3a5f; color: #38bdf8; }
.status-badge-read { background: #1e3a2f; color: #22c55e; }
.status-badge-archived { background: #2d2d2d; color: #64748b; }

.feedback-message {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.feedback-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile & Tablet
   ═══════════════════════════════════════════════════ */

/* ── Hamburger Button (hidden on desktop) ─────────── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #475569;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  border-radius: 1px;
  transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Tablet (≤1024px) ─────────────────────────────── */

@media (max-width: 1024px) {
  .content { padding: 1rem; }
  .section-inner { padding: 0 1rem; }
  .hero { padding: 2.5rem 1rem; gap: 1.5rem; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { padding: 0 1rem; }
}

/* ── Mobile (≤768px) ──────────────────────────────── */

@media (max-width: 768px) {

  /* Navigation — hamburger menu */
  .top-nav, .public-nav {
    padding: 0 0.75rem;
    height: 48px;
    gap: 0.5rem;
  }
  .top-nav .nav-brand img, .public-nav .nav-brand img {
    height: 26px;
  }

  .nav-hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Convert nav-links to dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 0.5rem;
    gap: 2px;
    z-index: 200;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  }
  /* When hamburger is open, show nav-links */
  .top-nav.nav-menu-open .nav-links,
  .public-nav.nav-menu-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
    border-radius: 6px;
  }

  /* Account dropdown — compact */
  .nav-account { gap: 0.4rem; }
  .account-trigger { padding: 0.3rem 0.5rem; font-size: 0.8rem; }
  .account-dropdown-menu {
    right: 0;
    min-width: 200px;
  }

  /* Content */
  .content { padding: 0.75rem; }

  /* Dashboard cards — single column already handled, ensure touch-friendly */
  .dash-card { padding: 1.25rem; }
  .dash-card-icon { font-size: 2.2rem; }
  .dash-card-title { font-size: 1.2rem; }

  /* Page grid — already collapses to 1fr, add gap */
  .page-grid { gap: 1rem; }

  /* Panels — more padding for touch */
  .panel { padding: 1rem; }

  /* Forms — larger touch targets */
  input, select, textarea {
    padding: 0.7rem;
    font-size: 1rem; /* prevents iOS zoom */
  }
  label { font-size: 0.85rem; }

  /* Color row — 2x2 grid on mobile */
  .color-row { grid-template-columns: 1fr 1fr; }

  /* Buttons — larger touch targets */
  button, .btn {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
  }
  .btn-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
  }

  /* Team cards */
  .team-card { padding: 0.85rem; }
  .team-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .team-title { font-size: 1rem; }

  /* Player display — wrap buttons to new line */
  .player-display {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .player-num { min-width: 36px; padding: 0.25rem; }
  .player-pos { min-width: 50px; }
  .player-name {
    flex: 1 1 100%;
    font-size: 0.95rem;
    padding-left: 0;
  }

  /* Player edit form — stack */
  .player-edit-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  .player-edit-form input {
    width: 100%;
    max-width: none;
  }
  .player-edit-num, .player-edit-pos { max-width: none; }

  /* Add player form — stack */
  .add-player-form {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  /* Scenario cards */
  .scenario-card { padding: 0.75rem; }
  .scenario-display {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .scenario-actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
  }
  .scenario-actions .btn-sm {
    padding: 0.45rem 0.65rem;
  }

  /* Search results */
  .search-result-card {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  /* Hero section */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    min-height: auto;
    gap: 1.5rem;
  }
  .hero-title { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-cta { justify-content: center; }
  .hero-image { flex: 1 1 100%; }

  /* Features — single column */
  .features-grid { grid-template-columns: 1fr; }

  /* Gallery — single column */
  .gallery-grid { grid-template-columns: 1fr; }

  /* Sections — less padding */
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.4rem; }
  .section-text { font-size: 0.9rem; }

  /* Pricing — stack cards, full width */
  .pricing-card {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-header { padding: 1.5rem; }
  .pricing-price { font-size: 2rem; }
  .pricing-features { padding: 1rem; }
  .pricing-list li { font-size: 0.85rem; }
  .pricing-card .btn, .pricing-card form {
    margin: 0 1rem 1rem;
    width: calc(100% - 2rem);
  }

  /* Contact grid — single column */
  .contact-card { padding: 1.25rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* Admin — stats wrap */
  .stat-card {
    min-width: 90px;
    padding: 0.75rem 1rem;
  }
  .stat-number { font-size: 1.4rem; }

  /* Admin search — stack */
  .admin-search-row,
  form[method="GET"] > div[style*="display: flex"] {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Tutorials layout — already collapses, add touch sizing */
  .tutorials-sidebar a { padding: 0.5rem 0.6rem; font-size: 0.9rem; }

  /* Login container */
  .login-container { padding: 1rem; }
  .login-card { padding: 1.25rem; max-width: none; }
  .login-container h1 { font-size: 1.4rem; }

  /* Account dropdown menu — full width on mobile */
  .account-dropdown-menu {
    right: 0.5rem;
    left: 0.5rem;
    min-width: auto;
    width: auto;
  }

  /* Feedback cards */
  .feedback-header { flex-direction: column; align-items: flex-start; }
  .feedback-actions { width: 100%; }

  /* Upgrade overlay */
  .upgrade-overlay { padding: 1.25rem 0.75rem; }
  .upgrade-overlay .btn { padding: 0.6rem 1.2rem; }
}

/* ── Small phones (≤420px) ────────────────────────── */

@media (max-width: 420px) {
  .content { padding: 0.5rem; }
  .panel { padding: 0.85rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .dash-card { padding: 1rem; }
  .dash-card-title { font-size: 1.05rem; }

  /* Even more compact player rows */
  .player-display { gap: 0.3rem; }
  .player-num { min-width: 32px; font-size: 0.8rem; }
  .player-pos { min-width: 40px; font-size: 0.8rem; }

  /* Scenario actions — full width buttons */
  .scenario-actions {
    width: 100%;
  }
  .scenario-actions .btn-sm {
    flex: 1;
    text-align: center;
  }

  /* Pricing save badge — smaller */
  .pricing-save-badge { font-size: 0.6rem; padding: 2px 10px; }

  /* Footer links — smaller gap */
  .footer-links { gap: 0.5rem; }
  .footer-links a { font-size: 0.75rem; }
}

/* ── Touch-friendly improvements (all touch devices) ── */

@media (hover: none) and (pointer: coarse) {
  /* Larger touch targets for buttons */
  .btn-sm { padding: 0.5rem 0.75rem; }
  .nav-links a { padding: 0.6rem 0.8rem; }
  .dropdown-item { padding: 0.75rem 1rem; }

  /* Remove hover transforms that cause sticky states on touch */
  .dash-card:hover, .feature-card:hover, .tutorial-card:hover {
    transform: none;
  }
}

/* ── Kit Texture Upload UI ─────────────────────────── */

.kit-section {
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.75rem;
  background: #0f172a;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .kit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.kit-preview {
  position: relative;
  display: inline-block;
}

.kit-badge-custom,
.kit-badge-default {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
}

.kit-badge-custom {
  background: #22c55e;
}

.kit-badge-default {
  background: #64748b;
}

.player-style-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.player-edit-style {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.player-edit-style .style-label {
  font-size: 0.6rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-edit-select {
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #475569;
  border-radius: 4px;
  padding: 0.3rem 0.4rem;
  font-size: 0.75rem;
  max-width: 110px;
}

/* Player edit form — accommodate new selects */
.player-edit-form {
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.hint-text {
  line-height: 1.4;
}

/* ── Style Picker Modal ─────────────────────────────── */

.style-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.style-modal {
  background: #1e293b;
  border: 1px solid #475569;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.style-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #334155;
}

.style-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  color: #f1f5f9;
}

.style-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

.style-modal-close:hover {
  background: #334155;
  color: #f1f5f9;
}

.style-modal-body {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  overflow-y: auto;
  justify-content: center;
}

.style-thumb-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}

.style-thumb-item:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.style-thumb-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #475569;
}

.style-thumb-label {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Style picker button (in player edit row) */
.style-picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.style-picker-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.style-picker-btn:hover {
  border-color: #6366f1;
}

.style-picker-label {
  font-size: 0.65rem;
  color: #94a3b8;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .style-modal {
    width: 95%;
  }
  .style-thumb-img {
    width: 56px;
    height: 56px;
  }
}

/* ── News ──────────────────────────────────────────── */

.news-article {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.news-article-title {
  font-size: 1.35rem;
  color: #e2e8f0;
  margin: 0 0 0.5rem 0;
}

.news-article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
  flex-wrap: wrap;
}

.news-article-body {
  color: #cbd5e1;
  line-height: 1.6;
  font-size: 0.95rem;
}

.news-article-body p {
  margin: 0 0 0.75rem 0;
}

.news-article-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.news-article-body h1,
.news-article-body h2,
.news-article-body h3 {
  color: #e2e8f0;
  margin: 1rem 0 0.5rem 0;
}

.news-article-body a {
  color: #38bdf8;
}

.news-article-body ul,
.news-article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.news-page-info {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ── Admin News Form ───────────────────────────────── */

.news-admin-form {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .news-pagination {
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-popup {
    min-width: 280px !important;
  }
}
