/* style.css - FreeHourBoost shared styles */

:root {
  --bg: #080d18;
  --bg-2: #0c1322;
  --card: #0f1729;
  --card-2: #131c30;
  --border: #1c2742;
  --border-2: #243250;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --muted: #64748b;
  --primary: #6366f1;
  --primary-2: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.15);
  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ----- Header / Nav ----- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 13, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.nav-brand img, .nav-brand .logo { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text-2); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-actions a { color: var(--text-2); font-weight: 500; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; user-select: none;
  background: var(--card-2); color: var(--text);
  transition: all 0.15s ease;
}
.btn:hover { background: var(--border-2); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-2); border-color: var(--primary-2); }
.btn-blue { background: var(--blue); color: white; border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; border-color: var(--border-2); }
.btn-ghost:hover { background: var(--card-2); }
.btn-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }
.btn-success { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.3); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ----- Cards ----- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

/* ----- Forms ----- */
.field { margin-bottom: 16px; }
.label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
}
.label .required { color: var(--red); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 8px; color: var(--text);
  font-size: 14px; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); background: var(--card);
}

/* ----- Toggle switch ----- */
.toggle {
  position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0;
}
.toggle input { display: none; }
.toggle .slider {
  position: absolute; inset: 0; cursor: pointer;
  background: #334155; border-radius: 999px;
  transition: 0.2s;
}
.toggle .slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; background: white; border-radius: 50%;
  transition: 0.2s;
}
.toggle input:checked + .slider { background: var(--primary); }
.toggle input:checked + .slider::before { transform: translateX(20px); }

/* ----- Layouts ----- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.flex { display: flex; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.center { text-align: center; }
.between { justify-content: space-between; }
.items-center { align-items: center; }

/* ----- Hero (landing) ----- */
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; padding: 80px 40px 120px;
  max-width: 1280px; margin: 0 auto;
  align-items: center;
}
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.05; margin: 0 0 22px; letter-spacing: -0.02em; }
.hero p { font-size: 17px; color: var(--text-2); margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-actions .btn-primary { padding: 12px 24px; font-size: 15px; }

/* Cards stack on right (mockup 1) */
.game-stack { position: relative; height: 540px; }
.game-card {
  position: absolute; width: 200px; aspect-ratio: 2/3;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
  color: white; font-weight: 700; font-size: 14px; padding-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}
.game-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  border-radius: 12px; pointer-events: none;
}
.game-card > * { position: relative; z-index: 1; }
.game-card { color: white; } /* text above overlay */
/* Lebegő animáció a hero kártyáknak */
@keyframes float1 { 0%,100%{transform:rotate(-3deg) translateY(0)} 50%{transform:rotate(-3deg) translateY(-12px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float3 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes float4 { 0%,100%{transform:rotate(2deg) translateY(0)} 50%{transform:rotate(2deg) translateY(-8px)} }
@keyframes float5 { 0%,100%{transform:rotate(-2deg) translateY(0)} 50%{transform:rotate(-2deg) translateY(-11px)} }

.game-card.cs2   { left: 0;   top: 180px; background: #d97706; animation: float1 4.2s ease-in-out infinite; }
.game-card.rust  { left: 220px; top: 80px; background: #7c2d12; animation: float2 3.8s ease-in-out infinite 0.5s; }
.game-card.cs    { left: 220px; top: 320px; background: #1e3a8a; animation: float3 4.5s ease-in-out infinite 1s; }
.game-card.dota  { left: 440px; top: 0; background: #7c2d12; animation: float4 3.6s ease-in-out infinite 0.3s; }
.game-card.tf2   { left: 440px; top: 240px; background: #7c2d12; animation: float5 4.0s ease-in-out infinite 0.8s; }

/* Background atmosphere */
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(600px circle at 10% 30%, rgba(59, 130, 246, 0.10), transparent 50%),
    radial-gradient(800px circle at 90% 60%, rgba(99, 102, 241, 0.10), transparent 50%);
}

/* ----- Sections ----- */
.section { padding: 80px 0; }
.section h2 { font-size: 36px; font-weight: 700; text-align: center; margin: 0 0 60px; letter-spacing: -0.02em; }
.section .eyebrow { text-align: center; color: var(--primary-2); font-weight: 600; font-size: 14px; margin-bottom: 12px; letter-spacing: 0.04em; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px 60px; max-width: 1120px; margin: 0 auto;
}
.feature h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 8px; }
.feature h3 svg { color: var(--primary-2); width: 18px; height: 18px; flex-shrink: 0; }
.feature p { color: var(--text-2); margin: 0; font-size: 14px; line-height: 1.6; }

/* Pricing */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1120px; margin: 0 auto;
}
.price-card { display: flex; flex-direction: column; }
.price-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.price-card .name { font-size: 22px; font-weight: 700; }
.price-card .amount { font-size: 22px; font-weight: 700; }
.price-card .sub { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.price-stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-align: center; }
.price-stat .v { font-size: 18px; font-weight: 700; color: var(--primary-2); }
.price-stat .l { color: var(--muted); font-size: 12px; margin-top: 2px; }
.price-feats { font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.price-feats .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.price-feats .item { display: flex; align-items: center; gap: 6px; padding: 3px 0; }
.price-feats .item.no { color: var(--muted); text-decoration: line-through; }
.price-feats .item .check { color: var(--primary-2); }
.price-feats .item .x { color: var(--muted); }
.price-card .btn { width: 100%; padding: 12px; }
.price-feats-label { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: 0.1em; margin-bottom: 10px; }

/* Page header (pricing/etc) */
.page-header { padding: 80px 40px 40px; text-align: center; position: relative; }
.page-header h1 { font-size: 44px; margin: 0; }

/* ----- Auth / Login ----- */
.auth-shell {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 420px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-title { font-size: 32px; font-weight: 700; text-align: center; margin: 0 0 6px; }
.auth-sub { color: var(--text-2); text-align: center; margin: 0 0 26px; font-size: 14px; }
.auth-link { display: inline-block; color: var(--blue-2); font-size: 13px; margin-top: 6px; cursor: pointer; }
.lang-pill {
  position: fixed; top: 20px; right: 24px;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px;
}
.lang-pill .badge { background: var(--blue); padding: 1px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }

/* ----- Dashboard ----- */
.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 24px 16px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 12px 24px; font-weight: 700; }
.sidebar .group-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; padding: 14px 12px 6px; }
.sidebar .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  color: var(--text-2); border-radius: 8px; font-size: 14px; cursor: pointer;
  font-weight: 500;
}
.sidebar .nav-item:hover { background: var(--card); color: var(--text); }
.sidebar .nav-item.active { background: var(--card); color: var(--text); }
.sidebar .nav-item svg { width: 18px; height: 18px; }

.app-main { padding: 28px 36px; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.app-topbar .right { display: flex; align-items: center; gap: 14px; }
.user-pill {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer;
}
.user-pill .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #06b6d4);
}
.user-pill .name { font-size: 13px; font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 32px; }
.stat-cell .l { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.stat-cell .v { font-size: 38px; font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: 6px; }
.stat-cell .v small { font-size: 14px; color: var(--muted); font-weight: 500; }

.plan-block { margin-bottom: 18px; }
.plan-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.plan-head .left { display: flex; align-items: center; gap: 14px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.running { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.stopped { background: var(--red); }
.status-dot.error   { background: var(--yellow); }
.status-text { font-weight: 600; font-size: 16px; }
.plan-tag { color: var(--muted); font-size: 14px; }

.plan-table {
  width: 100%; border-collapse: collapse; margin-bottom: 8px;
}
.plan-table th { text-align: left; padding: 8px 0 14px; font-size: 14px; font-weight: 600; }
.plan-table td { padding: 14px 0; border-top: 1px solid var(--border); vertical-align: middle; }
.plan-table .uname { display: flex; align-items: center; gap: 12px; }
.plan-table .uname img, .plan-table .uname .ph {
  width: 36px; height: 36px; border-radius: 8px; background: var(--card-2);
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.plan-table .actions { text-align: right; white-space: nowrap; }
.plan-table .actions .btn { margin-left: 6px; }
.plan-table .small-link { color: var(--primary-2); font-size: 13px; }

/* ----- Modal ----- */
.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 20px;
}
.modal-back.show { display: flex; }
.modal {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.modal .close {
  float: right; cursor: pointer; color: var(--muted);
  font-size: 22px; line-height: 1;
  border: none; background: none;
}
.modal .close:hover { color: var(--text); }

/* Settings modal rows */
.settings-section { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.settings-row + .settings-row { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 14px; }
.settings-row .info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.settings-row .info p  { margin: 0; color: var(--muted); font-size: 13px; }
.settings-controls { display: flex; gap: 8px; align-items: center; }

/* Game chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px 7px 7px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px;
}
.chip.selected { border-color: var(--primary); background: rgba(99,102,241,0.10); }
.chip .ico { width: 22px; height: 22px; border-radius: 4px; background: var(--card-2); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.chip .x { cursor: pointer; color: var(--muted); }
.chip .x:hover { color: var(--red); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Referrals */
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.ref-stat .l { color: var(--muted); font-size: 13px; }
.ref-stat .v { font-size: 36px; font-weight: 700; }
.ref-text { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; line-height: 1.7; }

/* Toasts */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--card); border: 1px solid var(--border);
  border-left-width: 4px; padding: 12px 18px; border-radius: 8px;
  min-width: 240px; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  font-size: 14px; animation: slidein 0.2s ease;
}
.toast.ok { border-left-color: var(--green); }
.toast.err { border-left-color: var(--red); }
.toast.info { border-left-color: var(--blue); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Footer */
.footer { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 80px; }

/* Admin panel */
.admin-shell { padding: 32px 40px; max-width: 1400px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { margin: 0; font-size: 28px; font-weight: 700; }
.admin-toolbar {
  display: grid; grid-template-columns: 1fr 200px auto auto; gap: 12px;
  margin-bottom: 22px;
}
.admin-toolbar input, .admin-toolbar select { margin: 0; }

.data-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.data-table th {
  text-align: left; padding: 14px 18px; background: var(--card-2);
  font-weight: 600; color: var(--text-2); font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.015); }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table .actions .btn { margin-left: 6px; }
.data-table code.codecell {
  font-family: 'SF Mono', Menlo, monospace; font-size: 13px;
  background: var(--card-2); padding: 4px 8px; border-radius: 6px;
  color: var(--primary-2);
}

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge.free     { background: rgba(148,163,184,0.18); color: #cbd5e1; }
.badge.basic    { background: rgba(59,130,246,0.18); color: #93c5fd; }
.badge.plus     { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.badge.premium  { background: rgba(168,85,247,0.18); color: #d8b4fe; }
.badge.ultimate { background: rgba(236,72,153,0.18); color: #f9a8d4; }
.badge.lifetime { background: rgba(245,158,11,0.18); color: #fcd34d; }
.badge.running  { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.badge.stopped  { background: rgba(239,68,68,0.18); color: #fca5a5; }
.badge.error    { background: rgba(245,158,11,0.18); color: #fcd34d; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); }
.admin-card-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
.admin-card-grid .card { padding: 18px; }
.admin-card-grid .card .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.admin-card-grid .card .v { font-size: 28px; font-weight: 700; }

/* ============================================================
   RESPONSIVE — Tablet (max 980px)
   ============================================================ */
@media (max-width: 980px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-actions a:first-child { display: none; }

  .hero { grid-template-columns: 1fr; padding: 60px 24px 80px; text-align: center; }
  .hero h1 { font-size: 38px; }
  .hero-actions { justify-content: center; }
  .game-stack { display: none; }

  .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 24px; }
  .container { grid-template-columns: 1fr !important; gap: 40px !important; }

  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 50;
    height: auto; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding: 10px 12px; gap: 2px;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .sidebar .brand { display: none; }
  .sidebar .group-label { display: none; }
  .sidebar > div[style*="flex: 1"] { display: none; }
  .sidebar .nav-item {
    flex-shrink: 0; padding: 8px 14px;
    font-size: 13px; white-space: nowrap;
    border-radius: 8px;
  }
  .sidebar .nav-item svg { width: 15px; height: 15px; }

  .app-main { padding: 20px 16px; }
  .app-topbar { margin-bottom: 16px; }

  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
  .stat-cell .v { font-size: 28px; }

  .admin-shell { padding: 20px; }
  .admin-toolbar { grid-template-columns: 1fr 1fr; }
  .admin-card-grid { grid-template-columns: repeat(2, 1fr); }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px; }
  #dash-pricing-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   RESPONSIVE — Mobil (max 640px)
   ============================================================ */
@media (max-width: 640px) {
  /* Nav */
  .nav { padding: 12px 16px; }
  .nav-brand { font-size: 15px; }
  .btn-sm { padding: 6px 12px; font-size: 12px; }

  /* Hero */
  .hero { padding: 48px 16px 60px; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero p { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { text-align: center; }
  .hero-actions a:last-child { text-align: center; }

  /* Sections */
  .section { padding: 40px 16px; }
  .section h2 { font-size: 22px; }
  .features-grid { grid-template-columns: 1fr; gap: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }

  /* Auth */
  .auth-shell { padding: 16px; align-items: flex-start; padding-top: 40px; }
  .auth-card { padding: 24px 18px; }
  .auth-title { font-size: 24px; }

  /* Sidebar mobilon — csak ikonok */
  .sidebar .nav-item span { display: none; }
  .sidebar .nav-item { padding: 9px 10px; gap: 0; min-width: 40px; justify-content: center; }
  .sidebar .nav-item svg { width: 18px; height: 18px; }

  /* Stats */
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-cell { padding: 12px; }
  .stat-cell .v { font-size: 22px; gap: 3px; }
  .stat-cell .v small { font-size: 12px; }
  .stat-cell .l { font-size: 11px; margin-bottom: 4px; }

  /* Plan block */
  .plan-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .plan-tag { font-size: 13px; }

  /* Plan table — scrollozható */
  .plan-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -12px; padding: 0 12px;
  }
  .plan-table { min-width: 520px; }
  .plan-table th { font-size: 12px; padding: 6px 8px 10px; }
  .plan-table td { padding: 10px 8px; font-size: 13px; }
  .plan-table .actions .btn { margin-left: 4px; padding: 5px 8px; font-size: 11px; }
  .plan-table .uname { gap: 8px; }

  /* App main */
  .app-main { padding: 14px 12px; }
  .app-topbar { padding: 0 0 10px; margin-bottom: 14px; }
  .user-pill { padding: 5px 10px; }
  .user-pill .name { font-size: 12px; }

  /* Modals */
  .modal-back { padding: 10px; align-items: flex-end; }
  .modal {
    padding: 20px 16px; border-radius: 16px 16px 0 0;
    max-height: 92vh; max-width: 100%;
  }
  .modal h3 { font-size: 17px; }

  /* Settings */
  .settings-section { padding: 12px 14px; }
  .settings-row .info h4 { font-size: 13px; }
  .settings-row .info p { font-size: 12px; }
  .settings-controls { flex-wrap: wrap; }

  /* Games modal */
  .chip { font-size: 12px; padding: 5px 8px; }

  /* Admin */
  .admin-shell { padding: 12px; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .admin-header h1 { font-size: 22px; }
  .admin-toolbar { grid-template-columns: 1fr; }
  .admin-card-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-card-grid .card { padding: 12px; }
  .admin-card-grid .card .v { font-size: 20px; }
  .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -12px; }
  .data-table { min-width: 650px; }

  /* Referrals */
  .ref-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ref-stat { padding: 12px; }

  /* Pricing belső dashboard */
  #dash-pricing-grid { grid-template-columns: 1fr !important; }

  /* Cards */
  .card { padding: 14px; }

  /* Footer */
  .footer { padding: 20px 16px; font-size: 13px; }
}

/* ============================================================
   RESPONSIVE — Kis mobil (max 390px)
   ============================================================ */
@media (max-width: 390px) {
  .hero h1 { font-size: 22px; }
  .stat-cell .v { font-size: 20px; }
  .sidebar .nav-item { padding: 8px; min-width: 36px; }
  .sidebar .nav-item svg { width: 16px; height: 16px; }
  .auth-card { padding: 20px 14px; }
  .plan-table { min-width: 480px; }
}
