/* Omertà Online — Modern Dark Mafia Theme v2 */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── KEYFRAMES ──────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes slideInRight {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideInDown {
    from { transform: translateY(-16px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes shimmer {
    0%   { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(250%)  skewX(-20deg); }
}
@keyframes glowPulse {
    0%,100% { box-shadow: 0 0 8px rgba(201,168,76,.15), 0 0 0 rgba(201,168,76,0); }
    50%      { box-shadow: 0 0 28px rgba(201,168,76,.45), 0 0 60px rgba(201,168,76,.1); }
}
@keyframes borderGlow {
    0%,100% { border-color: rgba(201,168,76,.12); }
    50%      { border-color: rgba(201,168,76,.45); }
}
@keyframes pulse {
    0%,100% { opacity: 1; }
    50%      { opacity: .65; }
}
@keyframes scaleBounce {
    0%   { transform: scale(.82); opacity: 0; }
    65%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); }
}
@keyframes floatUp {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}
@keyframes modalIn {
    from { transform: scale(.93) translateY(18px); opacity: 0; }
    to   { transform: scale(1)   translateY(0);    opacity: 1; }
}
@keyframes progressFill {
    from { width: 0; }
}
@keyframes progressShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
@keyframes orbDrift {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-30px) scale(1.08); }
    66%      { transform: translate(-25px,20px)  scale(.94); }
}
@keyframes notifIn {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes stepComplete {
    0%  { transform: scale(1); }
    40% { transform: scale(1.3); }
    70% { transform: scale(.9); }
    100%{ transform: scale(1); }
}
@keyframes tutorialPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(201,168,76,.4); }
    50%      { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}
@keyframes typewriter {
    from { width: 0; }
    to   { width: 100%; }
}

/* ─── VARIABLES ──────────────────────────────── */
:root {
    --bg-primary:        #060608;
    --bg-secondary:      #0c0c10;
    --bg-card:           #101015;
    --bg-card-hover:     #15151c;
    --bg-input:          #18181f;
    --gold:              #c9a84c;
    --gold-light:        #e8c76a;
    --gold-dark:         #8a6e28;
    --gold-glow:         rgba(201,168,76,.1);
    --gold-glow-strong:  rgba(201,168,76,.22);
    --red:               #8b1a1a;
    --red-light:         #c0392b;
    --red-glow:          rgba(192,57,43,.2);
    --green:             #1e6b3c;
    --green-light:       #27ae60;
    --blue:              #1a5276;
    --blue-light:        #2980b9;
    --warning:           #d4830f;
    --text-primary:      #eeeef2;
    --text-secondary:    #9898a8;
    --text-muted:        #7d7d92;   /* volt #484858 — 2.1:1 kontraszt, megbukott a WCAG AA-n */
    --text-faint:        #565668;   /* dekoratív, NEM olvasandó szöveghez */
    --border:            rgba(201,168,76,.09);
    --border-hover:      rgba(201,168,76,.38);
    --shadow:            0 10px 40px rgba(0,0,0,.95);
    --shadow-gold:       0 0 32px rgba(201,168,76,.1);
    --shadow-card:       0 2px 12px rgba(0,0,0,.7), 0 1px 3px rgba(0,0,0,.9);
    --radius:            9px;
    --radius-lg:         14px;
    --sidebar-w:         244px;
    --topbar-h:          62px;
    --ease:              cubic-bezier(.4,0,.2,1);
    --ease-bounce:       cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── BODY & BACKGROUND ──────────────────────── */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Floating ambient orbs — CSS only, GPU-composited */
body::before, body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .035;
}
body::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: -100px; left: -150px;
    animation: orbDrift 22s ease-in-out infinite;
}
body::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--red-light) 0%, transparent 70%);
    bottom: -80px; right: -100px;
    animation: orbDrift 28s ease-in-out infinite reverse;
}

/* Ensure content sits above orbs */
.game-layout, .landing-page, .auth-page, .onboarding-page { position: relative; z-index: 1; }

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Cinzel', serif; letter-spacing: .04em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; }
p  { color: var(--text-secondary); }

a { color: var(--gold); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-light); }

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,.5); }

/* ─── LANDING PAGE ───────────────────────────── */
.landing-page {
    min-height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.05) 0%, transparent 55%),
                var(--bg-primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0;
    background: rgba(6,6,8,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(201,168,76,.3);
    letter-spacing: .1em;
}
.logo span { color: var(--text-secondary); font-weight: 400; font-size: 1rem; }

.hero {
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 500px;
    background: radial-gradient(ellipse, rgba(201,168,76,.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tagline {
    font-size: .82rem;
    letter-spacing: .35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 22px;
    animation: fadeInUp .6s var(--ease) both;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.15;
    animation: fadeInUp .7s var(--ease) .1s both;
}
.hero h1 em { font-style: normal; color: var(--gold); }

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 44px;
    animation: fadeInUp .7s var(--ease) .2s both;
}

.hero-cta {
    display: flex; gap: 14px;
    justify-content: center; flex-wrap: wrap;
    animation: fadeInUp .7s var(--ease) .3s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color .3s, transform .3s var(--ease-bounce), box-shadow .3s;
    animation: fadeInUp .6s var(--ease) both;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.feature-card h3 { color: var(--gold); margin-bottom: 8px; }

/* ─── GAME LAYOUT ────────────────────────────── */
.game-layout { display: flex; min-height: 100vh; }

/* ─── SIDEBAR ────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, #0d0d12 0%, #090910 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    z-index: 50;
    transition: transform .3s var(--ease);
    overflow: hidden;
}

/* Subtle top glow in sidebar */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: radial-gradient(ellipse at 50% 0%, rgba(201,168,76,.06) 0%, transparent 80%);
    pointer-events: none;
}

.sidebar-logo {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: .08em;
    position: relative;
    text-shadow: 0 0 20px rgba(201,168,76,.3);
    animation: glowPulse 4s ease-in-out infinite;
}
.sidebar-logo small {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: .68rem;
    color: var(--text-muted);
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: 2px;
    font-style: italic;
}

.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; min-height: 0; }

.nav-section {
    padding: 8px 18px 4px;
    font-size: .62rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: var(--text-secondary);
    font-size: .84rem;
    transition: background .18s var(--ease), color .18s, border-left-color .18s, transform .15s var(--ease);
    border-left: 3px solid transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gold-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.nav-item:hover::before, .nav-item.active::before { opacity: 1; }
.nav-item:hover {
    color: var(--gold-light);
    border-left-color: rgba(201,168,76,.5);
    transform: translateX(2px);
}
.nav-item.active {
    background: var(--gold-glow);
    color: var(--gold);
    border-left-color: var(--gold);
    font-weight: 600;
}
.nav-badge {
    margin-left: auto;
    background: var(--red-light);
    color: #fff;
    font-size: .62rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* Collapsible nav groups */
.nav-group { overflow: hidden; }
.nav-section-btn {
    display: flex; align-items: center;
    width: 100%; padding: 7px 18px 7px 10px;
    background: transparent; border: none; cursor: pointer;
    color: var(--text-muted); font-size: .68rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase; letter-spacing: .16em;
    transition: color .2s; gap: 6px;
}
.nav-section-btn:hover { color: var(--gold); }
.nav-chevron { font-size: .7rem; transition: transform .22s var(--ease); }
.nav-group[aria-expanded="true"] .nav-chevron,
.nav-section-btn[aria-expanded="true"] .nav-chevron { transform: rotate(90deg); }
.nav-drag-handle {
    cursor: grab;
    font-size: .85rem;
    opacity: .25;
    letter-spacing: -.1em;
    user-select: none;
    flex-shrink: 0;
    padding: 0 2px;
    transition: opacity .2s, transform .15s;
}
.nav-drag-handle:hover { opacity: .75; transform: scale(1.2); }
.nav-drag-handle:active { cursor: grabbing; }
.nav-item.active { background: rgba(201,168,76,.1); color: var(--gold); }

/* Progress bar at top of window (AJAX) */
#nav-progress {
    position: fixed; top: 0; left: 0;
    height: 2px; background: var(--gold);
    width: 0; z-index: 9999;
    transition: width .28s var(--ease), opacity .35s;
    pointer-events: none;
    box-shadow: 0 0 8px var(--gold);
}
#nav-progress.done { opacity: 0; }

/* Sidebar bottom */
.sidebar-bottom {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: linear-gradient(0deg, rgba(0,0,0,.3) 0%, transparent 100%);
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sf-logout {
    font-size: .7rem; color: var(--text-muted);
    text-decoration: none;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 5px;
    transition: color .2s, border-color .2s, background .2s;
}
.sf-logout:hover { color: var(--red-light); border-color: var(--red-light); background: var(--red-glow); }

/* Heat bar */
.heat-bar-wrap { margin-top: 8px; }
.heat-bar-wrap label { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-muted); margin-bottom: 4px; }
.heat-bar { height: 4px; background: #1a1a1a; border-radius: 2px; overflow: hidden; }
.heat-bar-fill { height: 100%; border-radius: 2px; transition: width .6s var(--ease), background .6s; }

/* ─── MAIN CONTENT ───────────────────────────── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── TOPBAR ─────────────────────────────────── */
.topbar {
    height: var(--topbar-h);
    background: rgba(10,10,14,.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky; top: 0;
    z-index: 40;
    gap: 12px;
}
/* Thin gold line at very bottom of topbar */
.topbar::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20%; right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.15), transparent);
    pointer-events: none;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: .06em;
    text-shadow: 0 0 20px rgba(201,168,76,.2);
}

/* Topbar user area */
.topbar-user {
    display: flex; flex-direction: column; align-items: center;
    gap: 3px; flex: 1; min-width: 0;
}
.tu-identity { display: flex; align-items: center; gap: 7px; line-height: 1; }
.tu-alias {
    font-weight: 700; font-size: .88rem;
    color: var(--text-primary);
    font-family: 'Cinzel', serif;
}
.tu-rank {
    font-size: .63rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--gold-glow);
    border: 1px solid var(--border);
    color: var(--gold);
    font-family: 'Cinzel', serif;
}
.tu-wanted { color: var(--red-light); font-size: .8rem; animation: pulse 1.5s infinite; }
.tu-stats {
    display: flex; align-items: center;
    gap: 4px; flex-wrap: wrap; justify-content: center;
}
.tu-pill {
    display: flex; align-items: center; gap: 4px;
    font-size: .78rem; font-weight: 600;
    color: var(--text-primary); white-space: nowrap;
    transition: transform .15s var(--ease-bounce);
}
.tu-pill:hover { transform: scale(1.05); }
.tu-icon { font-size: .7rem; color: var(--text-muted); }
.tu-sep { width: 1px; height: 12px; background: var(--border); }
.tu-heat-pill { display: flex; align-items: center; gap: 4px; }
.tu-heatbar { width: 50px; height: 4px; background: #1e1e1e; border-radius: 2px; overflow: hidden; }

.topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.topbar-stat { display: flex; align-items: center; gap: 6px; font-size: .8rem; }
.topbar-stat .amount { font-weight: 600; }

/* ─── PAGE CONTENT ───────────────────────────── */
.page-content {
    padding: 22px 24px;
    flex: 1;
    animation: fadeInUp .3s var(--ease) both;
}

/* ─── CARDS ──────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.15), transparent);
    pointer-events: none;
}
.card:hover {
    border-color: rgba(201,168,76,.22);
    box-shadow: var(--shadow-card), 0 0 24px rgba(201,168,76,.06);
    transform: translateY(-1px);
}

.card-header {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.card-title {
    font-family: 'Cinzel', serif;
    font-size: .9rem; color: var(--gold); letter-spacing: .04em;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ─── STAT CARDS ─────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: border-color .25s, transform .25s var(--ease-bounce), box-shadow .25s;
    position: relative; overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.025), transparent);
    transition: left .5s var(--ease);
    pointer-events: none;
}
.stat-card:hover::after { left: 150%; }
.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.6), 0 0 16px rgba(201,168,76,.06);
}

.stat-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; flex-shrink: 0;
    transition: transform .2s var(--ease-bounce);
}
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-5deg); }
.stat-icon.gold  { background: rgba(201,168,76,.1); box-shadow: 0 0 12px rgba(201,168,76,.08); }
.stat-icon.red   { background: var(--red-glow); }
.stat-icon.green { background: rgba(39,174,96,.1); }
.stat-icon.blue  { background: rgba(41,128,185,.1); }

.stat-info label {
    font-size: .68rem; text-transform: uppercase;
    letter-spacing: .14em; color: var(--text-muted);
    display: block; margin-bottom: 2px;
}
.stat-info .value {
    font-size: 1.4rem; font-weight: 700;
    color: var(--text-primary); line-height: 1.2;
}
.stat-info .sub { font-size: .75rem; color: var(--text-muted); }

/* ─── BUTTONS ────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: .85rem; font-weight: 600;
    cursor: pointer; border: 1px solid transparent;
    transition: all .2s var(--ease);
    text-decoration: none; letter-spacing: .03em;
    white-space: nowrap;
    position: relative; overflow: hidden;
    user-select: none;
}
/* Shimmer sweep on all buttons */
.btn::after {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transform: skewX(-20deg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .1s;
}
.btn:hover::after { animation: shimmer .5s var(--ease); opacity: 1; }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
    background: linear-gradient(135deg, #c9a84c, #b8943a);
    color: #000; border-color: var(--gold);
    text-shadow: 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #e0bb58, #c9a84c);
    border-color: var(--gold-light); color: #000;
    box-shadow: 0 0 20px rgba(201,168,76,.35), 0 4px 12px rgba(0,0,0,.4);
    transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 0 10px rgba(201,168,76,.2); }

.btn-outline {
    background: transparent; color: var(--gold);
    border-color: var(--border-hover);
}
.btn-outline:hover {
    background: var(--gold-glow); border-color: var(--gold);
    box-shadow: 0 0 14px rgba(201,168,76,.12);
}

.btn-danger {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: #fff; border-color: var(--red-light);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 0 20px var(--red-glow), 0 4px 10px rgba(0,0,0,.4);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent; color: var(--text-secondary); border-color: #2a2a30;
}
.btn-ghost:hover { background: rgba(255,255,255,.04); color: var(--text-primary); border-color: #3a3a42; }

.btn-blue {
    background: linear-gradient(135deg, #2980b9, #1a5276);
    color: #fff; border-color: var(--blue-light);
}
.btn-blue:hover {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 0 16px rgba(41,128,185,.3);
    transform: translateY(-1px);
}

.btn-sm { padding: 6px 14px; font-size: .78rem; }
.btn-lg { padding: 12px 28px; font-size: .95rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ─── FORMS ──────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.form-group label {
    display: block; font-size: .78rem; font-weight: 500;
    color: var(--text-secondary); margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: .09em;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: .9rem;
    transition: border-color .2s, box-shadow .2s;
    font-family: 'Inter', sans-serif;
}
.form-control:focus {
    outline: none;
    border-color: rgba(201,168,76,.45);
    box-shadow: 0 0 0 3px rgba(201,168,76,.08), 0 0 12px rgba(201,168,76,.06);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:hover { border-color: rgba(255,255,255,.1); }

select.form-control {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-error {
    background: rgba(192,57,43,.1); border: 1px solid rgba(192,57,43,.3);
    border-radius: var(--radius); padding: 10px 14px;
    color: #e74c3c; font-size: .85rem; margin-bottom: 16px;
    animation: slideInDown .25s var(--ease);
}
.form-success {
    background: rgba(39,174,96,.1); border: 1px solid rgba(39,174,96,.3);
    border-radius: var(--radius); padding: 10px 14px;
    color: var(--green-light); font-size: .85rem; margin-bottom: 16px;
    animation: slideInDown .25s var(--ease);
}
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ─── AUTH PAGES ─────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(139,26,26,.04) 0%, transparent 50%),
        var(--bg-primary);
}

.auth-box {
    width: 100%; max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow), 0 0 60px rgba(201,168,76,.05);
    animation: scaleBounce .4s var(--ease-bounce);
    position: relative;
    overflow: hidden;
}
.auth-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo .logo { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.auth-logo p { font-size: .78rem; color: var(--text-muted); letter-spacing: .12em; text-transform: uppercase; }

.auth-divider {
    text-align: center; color: var(--text-muted); font-size: .8rem;
    margin: 16px 0; position: relative;
}
.auth-divider::before, .auth-divider::after {
    content: ''; position: absolute; top: 50%;
    width: calc(50% - 22px); height: 1px; background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-footer { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--text-muted); }

/* ─── ONBOARDING ─────────────────────────────── */
.onboarding-page {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 40px 20px;
    background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,.05) 0%, transparent 60%), var(--bg-primary);
}

.onboarding-box {
    width: 100%; max-width: 640px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px;
    box-shadow: var(--shadow), 0 0 60px rgba(201,168,76,.04);
    animation: fadeInUp .4s var(--ease);
    position: relative; overflow: hidden;
}
.onboarding-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.25), transparent);
}

.npc-bubble { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.npc-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #252530, #141418);
    border: 2px solid var(--gold-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; flex-shrink: 0;
    box-shadow: 0 0 16px rgba(201,168,76,.12);
    animation: floatUp 3s ease-in-out infinite;
}
.npc-text {
    background: #151520; border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px;
    padding: 14px 18px; color: var(--text-secondary);
    font-style: italic; line-height: 1.7; flex: 1;
}

.option-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px; margin: 20px 0;
}

.option-card {
    background: var(--bg-secondary); border: 2px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 14px;
    text-align: center; cursor: pointer;
    transition: all .25s var(--ease-bounce);
    position: relative;
}
.option-card:hover, .option-card.selected {
    border-color: var(--gold);
    background: var(--gold-glow);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.5), 0 0 16px rgba(201,168,76,.1);
}
.option-card.selected::after {
    content: '✓'; position: absolute; top: 8px; right: 10px;
    color: var(--gold); font-size: .9rem; font-weight: 700;
}
.option-card .icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.option-card h4 { font-family: 'Cinzel', serif; color: var(--text-primary); margin-bottom: 5px; font-size: .9rem; }
.option-card p { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }

.progress-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.progress-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #222; transition: background .3s, transform .3s var(--ease-bounce);
}
.progress-dots .dot.active { background: var(--gold); transform: scale(1.3); }
.progress-dots .dot.done   { background: var(--gold-dark); }

/* ─── MISSIONS ───────────────────────────────── */
.mission-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 20px;
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color .25s, transform .25s var(--ease-bounce), box-shadow .25s;
    cursor: pointer; position: relative; overflow: hidden;
}
.mission-card::after {
    content: '';
    position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.02), transparent);
    transition: left .6s var(--ease); pointer-events: none;
}
.mission-card:hover::after { left: 150%; }
.mission-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card), var(--shadow-gold);
}
.mission-card.difficulty-red    { border-left: 3px solid var(--red-light); }
.mission-card.difficulty-yellow { border-left: 3px solid var(--warning); }
.mission-card.difficulty-green  { border-left: 3px solid var(--green-light); }
.mission-card.on-cooldown { opacity: .55; cursor: not-allowed; }

.mission-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mission-header h3 { font-size: .95rem; color: var(--text-primary); }

.difficulty-badge {
    font-size: .63rem; padding: 3px 9px; border-radius: 20px;
    font-weight: 700; text-transform: uppercase; letter-spacing: .08em; flex-shrink: 0;
}
.badge-green  { background: rgba(39,174,96,.15);  color: #2ecc71;  border: 1px solid rgba(39,174,96,.3); }
.badge-yellow { background: rgba(243,156,18,.15); color: #f39c12;  border: 1px solid rgba(243,156,18,.3); }
.badge-red    { background: rgba(192,57,43,.15);  color: #e74c3c;  border: 1px solid rgba(192,57,43,.3); }

.mission-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.mission-rewards { display: flex; gap: 14px; font-size: .78rem; }
.reward-item { display: flex; align-items: center; gap: 5px; color: var(--text-secondary); }
.reward-item.money   { color: var(--gold); }
.reward-item.respect { color: #a8d8ea; }
.reward-item.heat    { color: var(--red-light); }

.cooldown-timer { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: none; /* Alapértelmezésben rejtve */
    align-items: center;
    justify-content: center;
    z-index: 99999; /* Legyen a legfelül */
}

/* Amikor nyitva van, legyen aktív a kattintás */
.modal-overlay.is-open {
    display: flex;
}
.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 30px;
    max-width: 520px; width: 100%;
    box-shadow: var(--shadow), 0 0 60px rgba(201,168,76,.06);
    animation: modalIn .28s var(--ease-bounce);
    position: relative; overflow: hidden;
}
.modal::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.2), transparent);
}
.modal h2 { color: var(--gold); margin-bottom: 10px; }
.modal p  { margin-bottom: 20px; }

.choice-grid { display: grid; gap: 10px; margin: 20px 0; }
.choice-option {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    cursor: pointer; transition: all .2s var(--ease);
    display: flex; align-items: center; justify-content: space-between;
}
.choice-option:hover {
    border-color: var(--gold); background: var(--gold-glow);
    transform: translateX(3px);
}
.choice-info h4 { font-size: .9rem; color: var(--text-primary); margin-bottom: 3px; }
.choice-info p  { font-size: .78rem; color: var(--text-muted); }
.choice-heat {
    font-size: .75rem; padding: 3px 10px; border-radius: 20px;
    background: var(--red-glow); color: var(--red-light); white-space: nowrap;
}

/* ─── SHOP ───────────────────────────────────── */
.shop-tabs {
    display: flex; gap: 4px; margin-bottom: 20px;
    background: var(--bg-secondary); border-radius: var(--radius);
    padding: 4px; border: 1px solid var(--border);
}
.shop-tab {
    flex: 1; padding: 8px 14px; text-align: center;
    border-radius: 6px; cursor: pointer; font-size: .82rem;
    color: var(--text-muted); transition: all .2s; font-weight: 500;
    border: none; background: transparent;
}
.shop-tab.active { background: var(--gold-glow); color: var(--gold-light); }
.shop-tab:hover:not(.active) { color: var(--text-primary); background: rgba(255,255,255,.03); }

.item-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    transition: border-color .2s, transform .2s var(--ease-bounce);
}
.item-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.item-icon {
    width: 46px; height: 46px; border-radius: 10px;
    background: var(--bg-secondary); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    transition: transform .2s var(--ease-bounce);
}
.item-card:hover .item-icon { transform: scale(1.1) rotate(-3deg); }
.item-name { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.item-desc { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.item-price { font-size: .9rem; color: var(--gold); font-weight: 700; }

.rarity-common    { border-left: 3px solid #555; }
.rarity-uncommon  { border-left: 3px solid #3a9d5c; }
.rarity-rare      { border-left: 3px solid #2980b9; }
.rarity-epic      { border-left: 3px solid #8e44ad; }
.rarity-legendary { border-left: 3px solid var(--gold); box-shadow: 0 0 12px rgba(201,168,76,.08); }

/* ─── FAMIGLIA ───────────────────────────────── */
.hierarchy { display: flex; flex-direction: column; gap: 2px; }
.rank-row {
    display: flex; align-items: center; gap: 14px;
    padding: 10px 14px; border-radius: var(--radius);
    background: var(--bg-secondary); border: 1px solid var(--border);
    transition: border-color .2s, transform .2s var(--ease);
}
.rank-row:hover { border-color: var(--border-hover); transform: translateX(3px); }
.rank-row .rank-name { font-family: 'Cinzel', serif; font-size: .82rem; color: var(--gold); min-width: 90px; }
.rank-row .member-alias { font-size: .88rem; color: var(--text-primary); flex: 1; }
.rank-row .member-stats { font-size: .75rem; color: var(--text-muted); }

.treasury-card {
    background: linear-gradient(135deg, rgba(201,168,76,.07) 0%, var(--bg-card) 100%);
    border: 1px solid var(--border-hover); border-radius: var(--radius-lg);
    padding: 24px; text-align: center;
    animation: glowPulse 4s ease-in-out infinite;
}
.treasury-amount {
    font-family: 'Cinzel', serif; font-size: 2rem; color: var(--gold);
    text-shadow: 0 0 30px rgba(201,168,76,.4);
}

/* ─── VEHICLES ───────────────────────────────── */
.vehicle-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px;
    transition: all .25s var(--ease); position: relative; overflow: hidden;
}
.vehicle-card:hover { border-color: rgba(201,168,76,.2); transform: translateY(-2px); }
.vehicle-card.active-vehicle {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(201,168,76,.15), 0 0 0 1px rgba(201,168,76,.1);
}
.vehicle-card .active-label {
    position: absolute; top: 10px; right: 10px;
    background: var(--gold); color: #000; font-size: .62rem; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: .08em;
    animation: glowPulse 3s ease-in-out infinite;
}
.vehicle-icon { font-size: 2.6rem; margin-bottom: 10px; transition: transform .3s var(--ease-bounce); }
.vehicle-card:hover .vehicle-icon { transform: scale(1.1) rotate(3deg); }
.vehicle-name { font-family: 'Cinzel', serif; font-size: .9rem; color: var(--text-primary); margin-bottom: 6px; }
.vehicle-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.vehicle-stat { font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

/* Tuning progress bars */
.tuning-bar { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.tuning-row { display: flex; align-items: center; gap: 10px; }
.tuning-label { font-size: .75rem; color: var(--text-muted); width: 100px; flex-shrink: 0; }
.tuning-dots { display: flex; gap: 4px; }
.tuning-dot {
    width: 16px; height: 16px; border-radius: 4px;
    background: #1a1a22; border: 1px solid #2a2a34;
    cursor: pointer; transition: all .2s var(--ease-bounce);
}
.tuning-dot.filled { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 6px rgba(201,168,76,.3); }
.tuning-dot:hover  { border-color: var(--gold); transform: scale(1.2); }

/* ─── INVENTORY ──────────────────────────────── */
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.inv-slot {
    background: var(--bg-secondary); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 8px;
    text-align: center; cursor: pointer;
    transition: all .2s var(--ease-bounce); position: relative;
}
.inv-slot:hover { border-color: var(--gold); background: var(--gold-glow); transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.inv-slot.equipped { border-color: var(--green-light); box-shadow: 0 0 12px rgba(39,174,96,.2); }
.inv-slot .qty-badge {
    position: absolute; top: 4px; right: 4px;
    background: var(--gold); color: #000;
    font-size: .6rem; font-weight: 700; padding: 1px 5px; border-radius: 10px;
}
.inv-slot .item-emoji { font-size: 1.6rem; display: block; margin-bottom: 6px; transition: transform .2s var(--ease-bounce); }
.inv-slot:hover .item-emoji { transform: scale(1.2) rotate(-5deg); }
.inv-slot .item-label { font-size: .68rem; color: var(--text-secondary); line-height: 1.3; display: block; }

/* ─── CHAT ───────────────────────────────────── */
.chat-layout { display: flex; height: calc(100vh - var(--topbar-h) - 48px); gap: 16px; }
.chat-sidebar {
    width: 200px; flex-shrink: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 14px; overflow-y: auto;
}
.chat-main {
    flex: 1; display: flex; flex-direction: column;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-input-row {
    padding: 12px 16px; border-top: 1px solid var(--border);
    display: flex; gap: 8px;
}
.chat-input-row .form-control { flex: 1; }

.chat-msg { display: flex; gap: 10px; align-items: flex-start; animation: fadeInUp .2s var(--ease); }
.chat-msg .sender { font-weight: 600; color: var(--gold); font-size: .82rem; white-space: nowrap; }
.chat-msg .text { font-size: .84rem; color: var(--text-secondary); word-break: break-word; }
.chat-msg .time { font-size: .7rem; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }

.channel-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px; border-radius: var(--radius);
    cursor: pointer; font-size: .82rem; color: var(--text-secondary);
    transition: all .2s; border: none; background: transparent;
    width: 100%; text-align: left;
}
.channel-btn.active, .channel-btn:hover { background: var(--gold-glow); color: var(--gold-light); }

/* ─── DASHBOARD ──────────────────────────────── */
.dashboard-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: auto; gap: 16px;
}
.col-full { grid-column: 1 / -1; }

.event-banner {
    background: linear-gradient(135deg, rgba(139,26,26,.15) 0%, rgba(8,8,8,0) 100%);
    border: 1px solid rgba(192,57,43,.2);
    border-left: 3px solid var(--red-light);
    border-radius: var(--radius); padding: 12px 16px;
    font-size: .85rem; color: var(--text-secondary);
    margin-bottom: 8px; animation: slideInDown .3s var(--ease);
}
.event-banner strong { color: var(--red-light); }

.activity-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 10px 0; border-bottom: 1px solid var(--border);
    transition: background .15s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255,255,255,.01); }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.activity-text { font-size: .83rem; color: var(--text-secondary); flex: 1; }
.activity-time { font-size: .72rem; color: var(--text-muted); }

/* ─── PROGRESS BARS ──────────────────────────── */
.progress-bar {
    height: 6px; background: #141418; border-radius: 3px;
    overflow: hidden; margin: 6px 0;
}
.progress-fill {
    height: 100%; border-radius: 3px;
    transition: width .6s var(--ease);
    position: relative; overflow: hidden;
    animation: progressFill .8s var(--ease) both;
}
.progress-fill::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.25) 50%, transparent 100%);
    background-size: 400px 100%;
    animation: progressShimmer 2.5s linear infinite;
}
.progress-fill.gold  { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); }
.progress-fill.green { background: linear-gradient(90deg, var(--green), var(--green-light)); }
.progress-fill.red   { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.progress-fill.blue  { background: linear-gradient(90deg, var(--blue), var(--blue-light)); }

/* ─── NOTIFICATIONS ──────────────────────────── */
.notif-popup {
    position: fixed; top: 70px; right: 20px;
    z-index: 300; width: 320px;
    display: flex; flex-direction: column; gap: 8px;
}
.notif-toast {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 12px 16px;
    box-shadow: var(--shadow);
    animation: notifIn .3s var(--ease-bounce);
    border-left: 3px solid var(--gold);
    position: relative; overflow: hidden;
}
.notif-toast::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,.3), transparent);
}
.notif-toast.danger  { border-left-color: var(--red-light); }
.notif-toast.success { border-left-color: var(--green-light); }
.notif-toast h5 { font-size: .82rem; color: var(--text-primary); margin-bottom: 3px; }
.notif-toast p  { font-size: .77rem; color: var(--text-muted); }

/* ─── TABLES ─────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th {
    padding: 10px 14px; text-align: left;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 600;
}
.table td {
    padding: 10px 14px; font-size: .84rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,.025);
    transition: background .15s;
}
.table tr:hover td { background: rgba(201,168,76,.025); }

/* ─── PROFILE ────────────────────────────────── */
.profile-header {
    display: flex; align-items: center; gap: 24px;
    padding: 24px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    margin-bottom: 16px;
    animation: fadeInUp .3s var(--ease);
}
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #252535, #101015);
    border: 3px solid var(--gold-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; flex-shrink: 0;
    box-shadow: 0 0 20px rgba(201,168,76,.12);
    transition: transform .3s var(--ease-bounce), box-shadow .3s;
}
.profile-avatar:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(201,168,76,.2); }
.profile-info .alias { font-family: 'Cinzel', serif; font-size: 1.3rem; color: var(--text-primary); }
.profile-info .class { color: var(--gold); font-size: .85rem; }

.skill-tree { display: flex; flex-direction: column; gap: 12px; }
.skill-row { display: flex; align-items: center; gap: 12px; }
.skill-name { width: 140px; font-size: .82rem; color: var(--text-secondary); flex-shrink: 0; }
.skill-bar { flex: 1; }
.skill-value { width: 32px; text-align: right; font-size: .8rem; color: var(--gold); font-weight: 600; }

/* ─── ALERTS ─────────────────────────────────── */
.alert {
    padding: 12px 16px; border-radius: var(--radius);
    font-size: .88rem; margin-bottom: 16px; border: 1px solid;
    animation: slideInDown .25s var(--ease);
    position: relative; overflow: hidden;
}
.alert::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    opacity: .5;
}
.alert-success {
    background: rgba(30,107,60,.18); border-color: rgba(39,174,96,.35); color: #2ecc71;
}
.alert-success::before { background: linear-gradient(90deg, transparent, rgba(39,174,96,.4), transparent); }
.alert-danger  {
    background: rgba(139,26,26,.18); border-color: rgba(192,57,43,.35); color: #e74c3c;
}
.alert-danger::before { background: linear-gradient(90deg, transparent, rgba(192,57,43,.4), transparent); }
.alert-warning {
    background: rgba(212,131,15,.12); border-color: rgba(212,131,15,.35); color: #f39c12;
}
.alert-warning::before { background: linear-gradient(90deg, transparent, rgba(212,131,15,.4), transparent); }
.alert-info    {
    background: rgba(26,82,118,.18); border-color: rgba(41,128,185,.35); color: #3498db;
}
.alert-info::before { background: linear-gradient(90deg, transparent, rgba(41,128,185,.4), transparent); }

.wanted-banner {
    background: linear-gradient(135deg, rgba(139,26,26,.35), rgba(8,8,8,.0));
    border: 1px solid rgba(192,57,43,.4); border-radius: var(--radius);
    padding: 10px 16px; color: #e74c3c; font-size: .85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    animation: pulse 2s infinite;
}

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 2.8rem; margin-bottom: 14px; opacity: .4; display: block; animation: floatUp 3s ease-in-out infinite; }
.empty-state p { font-size: .9rem; }

/* ─── BADGES (generic) ───────────────────────── */
.badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.badge-success { background: rgba(39,174,96,.18); color: #2ecc71; border: 1px solid rgba(39,174,96,.3); }
.badge-danger  { background: rgba(192,57,43,.18); color: #e74c3c; border: 1px solid rgba(192,57,43,.3); }
.badge-warning { background: rgba(212,131,15,.15); color: #f39c12; border: 1px solid rgba(212,131,15,.3); }
.badge-info    { background: rgba(41,128,185,.18); color: #3498db; border: 1px solid rgba(41,128,185,.3); }
.badge-gold    { background: var(--gold-glow); color: var(--gold); border: 1px solid var(--border-hover); }

/* ─── INFO BUTTON & DROP BOX ─────────────────── */
.info-btn {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    color: var(--text-muted); font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
    padding: 0; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all .15s;
}
.info-btn:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,.12); }
.drop-info-box {
    background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.2);
    border-radius: 6px; padding: 8px 10px; margin-bottom: 8px;
    font-size: .75rem; color: var(--text-secondary); line-height: 1.6;
}
.stress-warn {
    display:flex; align-items:center; gap:6px; padding:5px 8px;
    border-radius:5px; font-size:.72rem; font-weight:600; margin-bottom:8px;
}

/* ─── TUTORIAL WIDGET ────────────────────────── */
#tutorial-widget {
    margin: 0 0 0 0;
    background: linear-gradient(135deg, rgba(12,12,18,.98) 0%, rgba(8,8,12,.98) 100%);
    border-bottom: 1px solid rgba(201,168,76,.15);
    position: relative;
    overflow: hidden;
}
#tutorial-widget::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(201,168,76,.4) 40%, var(--gold) 50%, rgba(201,168,76,.4) 60%, transparent 100%);
}

.tutorial-header {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 22px;
    cursor: pointer;
    user-select: none;
}
.tutorial-header:hover { background: rgba(255,255,255,.015); }
.tutorial-badge {
    background: var(--gold); color: #000;
    font-size: .62rem; font-weight: 800;
    padding: 2px 8px; border-radius: 10px;
    text-transform: uppercase; letter-spacing: .1em;
    animation: tutorialPulse 2.5s ease-in-out infinite;
    flex-shrink: 0;
}
.tutorial-title {
    font-family: 'Cinzel', serif; font-size: .82rem; color: var(--text-primary); flex: 1;
}
.tutorial-progress-text { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }
.tutorial-toggle-btn {
    background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.25); cursor: pointer;
    color: var(--gold); font-size: .75rem; padding: 3px 10px;
    transition: background .2s, border-color .2s;
    border-radius: 20px; display: flex; align-items: center; gap: 4px;
    white-space: nowrap; flex-shrink: 0;
}
.tutorial-toggle-btn:hover { background: rgba(201,168,76,.18); border-color: var(--gold); }
#tutorial-chevron-icon { font-size: .8rem; transition: none; }
#tutorial-chevron-label { font-size: .7rem; font-weight: 600; letter-spacing: .03em; }

.tutorial-body {
    padding: 0 22px 10px;
    display: flex; gap: 6px;
    flex-direction: column;
    overflow: hidden;
    transition: max-height .38s var(--ease), padding .35s var(--ease), opacity .25s;
    max-height: 600px;
}
.tutorial-steps-row {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.tutorial-body.collapsed { max-height: 0; padding-bottom: 0; opacity: 0; pointer-events: none; }

/* Current step hint box */
.tutorial-hint {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(201,168,76,.07);
    border: 1px solid rgba(201,168,76,.3);
    border-radius: var(--radius);
    padding: 10px 14px;
    margin-top: 2px;
}
.tutorial-hint-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.tutorial-hint-body { flex: 1; min-width: 0; }
.tutorial-hint-label {
    font-size: .72rem; font-weight: 700; color: var(--gold);
    display: block; margin-bottom: 3px;
}
.tutorial-hint-desc {
    font-size: .78rem; color: var(--text-secondary); line-height: 1.5;
}
.tutorial-hint-link {
    display: inline-block; margin-top: 6px;
    font-size: .72rem; color: var(--gold);
    text-decoration: none; border-bottom: 1px solid rgba(201,168,76,.3);
    transition: opacity .2s;
}
.tutorial-hint-link:hover { opacity: .75; }

.tutorial-step {
    flex: 1 1 60px; min-width: 0;
    background: rgba(255,255,255,.025);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--radius);
    padding: 10px 10px 8px;
    display: flex; flex-direction: column; align-items: center;
    gap: 5px; text-align: center;
    transition: all .25s var(--ease-bounce);
    text-decoration: none;
    position: relative; overflow: hidden;
}
.tutorial-step-info { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.tutorial-step-desc { display: none; }
.tutorial-step:hover {
    background: var(--gold-glow);
    border-color: rgba(201,168,76,.25);
    transform: translateY(-2px);
}
.tutorial-step.done {
    background: rgba(39,174,96,.07);
    border-color: rgba(39,174,96,.25);
}
.tutorial-step.done::after {
    content: '✓';
    position: absolute; top: 4px; right: 6px;
    color: var(--green-light); font-size: .68rem; font-weight: 800;
    animation: stepComplete .4s var(--ease-bounce);
}
.tutorial-step.current {
    background: var(--gold-glow);
    border-color: rgba(201,168,76,.35);
    animation: borderGlow 2.5s ease-in-out infinite;
}
.tutorial-step-icon { font-size: 1.2rem; line-height: 1; }
.tutorial-step-label {
    font-size: .6rem; color: var(--text-muted);
    line-height: 1.2; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.tutorial-step.done .tutorial-step-label { color: var(--green-light); opacity: .8; }
.tutorial-step.current .tutorial-step-label { color: var(--gold); }

.tutorial-reward {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 10px; background: var(--gold-glow);
    border: 1px solid var(--border); border-radius: 20px;
    font-size: .68rem; color: var(--gold); white-space: nowrap;
    flex-shrink: 0; height: fit-content; align-self: center;
}

/* Tutorial completion celebration */
.tutorial-complete-banner {
    padding: 12px 22px;
    background: linear-gradient(135deg, rgba(39,174,96,.12), rgba(6,6,8,.5));
    border-bottom: 1px solid rgba(39,174,96,.25);
    display: flex; align-items: center; gap: 12px;
    animation: slideInDown .4s var(--ease-bounce);
    position: relative;
}
.tutorial-complete-banner::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(39,174,96,.5), transparent);
}
.tutorial-complete-icon { font-size: 1.8rem; animation: scaleBounce .6s var(--ease-bounce); }
.tutorial-complete-text { flex: 1; }
.tutorial-complete-text strong { color: var(--green-light); font-size: .9rem; display: block; }
.tutorial-complete-text span { font-size: .78rem; color: var(--text-secondary); }

/* ─── UTILITIES ──────────────────────────────── */
.text-gold    { color: var(--gold)!important; }
.text-red     { color: var(--red-light)!important; }
.text-green   { color: var(--green-light)!important; }
.text-blue    { color: var(--blue-light)!important; }
.text-muted   { color: var(--text-muted)!important; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: .8rem; }
.text-xs      { font-size: .7rem; }
.mono         { font-family: 'Courier New', monospace; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap     { display: flex; align-items: center; gap: 8px; }
.gap-4        { gap: 4px; }
.gap-8        { gap: 8px; }
.gap-12       { gap: 12px; }
.gap-16       { gap: 16px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; padding: 30px 20px; }
    .landing-nav { padding: 16px 20px; }
    .hero { padding: 80px 20px 60px; }
    .page-content { padding: 14px; }
    .auth-box { padding: 24px; }
    .tutorial-steps-row { flex-wrap: wrap; }
    .tutorial-step { min-width: calc(50% - 4px); flex: none; }
}
@media (max-width: 480px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .tutorial-body { padding: 0 14px 10px; }
}

/* ─── ADMIN TABLE (reuse in game pages too) ──── */
.a-table { width: 100%; border-collapse: collapse; }
.a-table th {
    padding: 9px 12px; text-align: left;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
    color: var(--text-muted); border-bottom: 1px solid var(--border); font-weight: 600;
}
.a-table td {
    padding: 9px 12px; font-size: .84rem;
    color: var(--text-secondary); border-bottom: 1px solid rgba(255,255,255,.025);
    transition: background .12s;
}
.a-table tr:hover td { background: rgba(255,255,255,.02); }

/* ─── STAT UPDATED FLASH ─────────────────────── */
.stat-flash {
    animation: scaleBounce .35s var(--ease-bounce);
    color: var(--gold-light) !important;
}

/* drag states */
.dragging { opacity: .5; }
.drag-over { background: var(--gold-glow) !important; border-color: var(--border-hover) !important; }


/* ═══════════════════════════════════════════════════════════════════════════
   DIZÁJN FINOMÍTÁSOK
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Számok igazítása ────────────────────────────────────────────────────
   Táblázatos számjegyek: minden számjegy azonos szélességű, így a pénzösszegek
   és mennyiségek oszlopba rendeződnek. Pénzközpontú felületen ez a legolcsóbb
   olvashatósági javítás. */
table, .a-table, td, th,
.stat-money, .stat-respect, .stat-heat, .stat-value, .stat-num,
.money, .price, .amount, .tu-pill, .tu-stats,
.leaderboard-table, .lb-value, .rank-num,
input[type="number"], .form-control[type="number"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
}
/* Jobbra igazított számoszlopok — a nagyságrend így egy pillantással látszik */
.num, td.num, th.num { text-align: right; }


/* ── 2. Topbar: 3 csoport, nem 11 különálló szám ────────────────────────────
   Érték (pénz) · Karakter (rang, szint) · Állapot (élet, heat, stamina) */
.tu-stats { gap: 0; }
.tu-group {
    display: flex; align-items: center; gap: 9px;
    padding: 0 13px; position: relative;
}
.tu-group:first-child { padding-left: 0; }
.tu-group:last-child  { padding-right: 0; }
.tu-group + .tu-group::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 17px;
    background: linear-gradient(180deg, transparent, var(--border-hover), transparent);
}
.tu-group:empty, .tu-group:empty::before { display: none; }

/* Mobilon a másodlagos csoportok elrejtése — csak a pénz és az élet marad */
@media (max-width: 900px) {
    .tu-group { padding: 0 8px; gap: 7px; }
    .tu-group[data-opt="1"] { display: none; }
}
@media (max-width: 560px) {
    .tu-group[data-opt="2"] { display: none; }
    .tu-rank { display: none; }
}


/* ── 3. Monogram-csempe hiányzó logó helyett ────────────────────────────────
   A részvénytáblában „?” jelent meg ott, ahol az ikon hiányzik vagy sérült.
   Helyette a cég kezdőbetűi, a szimbólumból generált stabil színnel. */
.mono-tile {
    width: 34px; height: 34px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px;
    font-family: 'Cinzel', serif;
    font-weight: 700; font-size: .82rem; letter-spacing: .02em;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 2px 6px rgba(0,0,0,.5);
    text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.mono-tile.sm { width: 26px; height: 26px; font-size: .68rem; border-radius: 7px; }


/* ── 4. Üres állapotok: ikon + magyarázat + továbblépés ─────────────────────
   Egy zsákutca helyett mindig legyen következő lépés. */
.empty-state {
    text-align: center; padding: 44px 22px;
    color: var(--text-secondary);
}
.empty-state .empty-icon {
    font-size: 2.6rem; margin-bottom: 12px;
    opacity: .35; display: block;
    animation: floatUp 3s ease-in-out infinite;
}
.empty-state .empty-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem; color: var(--text-primary);
    margin-bottom: 5px;
}
.empty-state p, .empty-state .empty-desc {
    font-size: .86rem; color: var(--text-secondary);
    max-width: 42ch; margin: 0 auto 16px; line-height: 1.55;
}
.empty-state .btn { margin-top: 2px; }


/* ── 5. Ritkasági rendszer: egységes vizuális nyelv ─────────────────────────
   Ugyanaz a kártya bárhol megjelenik — boltban, inventoryban, parkolóban. */
.rar-common    { --rar: #9aa0aa; }
.rar-uncommon  { --rar: #27ae60; }
.rar-rare      { --rar: #3498db; }
.rar-epic      { --rar: #9b59b6; }
.rar-legendary { --rar: #c9a84c; }

.rar-card {
    position: relative;
    border: 1px solid color-mix(in srgb, var(--rar) 32%, transparent);
    border-radius: var(--radius);
    background:
        radial-gradient(120% 90% at 50% 0%,
            color-mix(in srgb, var(--rar) 11%, transparent), transparent 62%),
        var(--bg-card);
    transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.rar-card:hover {
    border-color: color-mix(in srgb, var(--rar) 62%, transparent);
    transform: translateY(-2px);
}
.rar-card.is-epic::after, .rar-card.is-legendary::after {
    content: ''; position: absolute; inset: -1px; border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 22px -6px var(--rar);
}
.rar-badge {
    display: inline-block; font-size: .64rem; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 20px;
    color: var(--rar);
    background: color-mix(in srgb, var(--rar) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--rar) 34%, transparent);
}


/* ── 6. Termékképek: a fehér stúdióháttér kioltása ──────────────────────────
   A boltban és a modálokban fehér hátterű fotók lebegtek a sötét felületen. */
.thumb-dark {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 50% 42%,
        rgba(201,168,76,.09), transparent 68%);
    border-radius: var(--radius);
    overflow: hidden;
}
.thumb-dark img {
    mix-blend-mode: screen;              /* a fehér háttér eltűnik */
    filter: contrast(1.12) saturate(.92);
    max-width: 100%; height: auto;
}
/* Fotókhoz (autórenderek), ahol a screen mód kiégetné a képet */
.thumb-vignette { position: relative; overflow: hidden; border-radius: var(--radius); }
.thumb-vignette::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 50% 45%, transparent 42%, rgba(6,6,8,.72) 100%),
        linear-gradient(180deg, transparent 55%, rgba(6,6,8,.55));
}
.thumb-vignette img { filter: saturate(.72) contrast(1.06) brightness(.94); }
