/* =========================================================================
   Wolfots Metin2 — modern theme
   Dark, responsive redesign. Replaces the legacy 2013 Gameforge styling.
   ========================================================================= */

:root {
    --bg:        #0c0e13;
    --bg-2:      #11141b;
    --surface:   #181c25;
    --surface-2: #1f2430;
    --border:    #2a3040;
    --border-2:  #3a4252;
    --text:      #e7e9ee;
    --muted:     #9aa1b0;
    --muted-2:   #6c7385;
    --gold:      #e7b455;
    --gold-2:    #f4cf7d;
    --gold-dim:  #b98c34;
    --ember:     #cf5240;
    --ember-2:   #e0664f;
    --green:     #3fbf6f;
    --red:       #e0524a;
    --radius:    14px;
    --radius-sm: 9px;
    --shadow:    0 10px 30px rgba(0,0,0,.45);
    --shadow-sm: 0 4px 14px rgba(0,0,0,.35);
    --ring:      0 0 0 3px rgba(231,180,85,.22);
    --maxw:      1180px;
    --header-h:  68px;
    --font:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --display:   'Cinzel', 'Times New Roman', serif;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(231,180,85,.08), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(207,82,64,.07), transparent 55%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .3px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ---- layout helpers ---- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--text); }
.section-head h2 .accent { color: var(--gold); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow {
    display: inline-block; font-family: var(--font); font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; font-size: .72rem;
    color: var(--gold); margin-bottom: 10px;
}
.text-center { text-align: center; }

/* ---- buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font-family: var(--font); font-weight: 600; font-size: .95rem; line-height: 1;
    padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dim));
    color: #2a1d07; box-shadow: 0 6px 20px rgba(231,180,85,.30);
}
.btn--primary:hover { color: #2a1d07; box-shadow: 0 10px 26px rgba(231,180,85,.42); }
.btn--ember {
    background: linear-gradient(135deg, var(--ember-2), var(--ember));
    color: #fff; box-shadow: 0 6px 20px rgba(207,82,64,.30);
}
.btn--ember:hover { color: #fff; }
.btn--ghost {
    background: rgba(255,255,255,.04); color: var(--text);
    border-color: var(--border-2);
}
.btn--ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(231,180,85,.08); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { display: flex; width: 100%; }

/* ---- header ---- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: rgba(12,14,19,.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--text); letter-spacing: .5px; }
.brand:hover { color: var(--text); }
.brand__mark {
    width: 34px; height: 34px; border-radius: 9px; flex: none;
    display: grid; place-items: center; font-size: 1.1rem;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dim)); color: #2a1d07;
    box-shadow: 0 4px 12px rgba(231,180,85,.35);
}
.brand__name span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a {
    color: var(--muted); font-weight: 500; font-size: .95rem;
    padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--text); background: rgba(255,255,255,.05); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--border-2); border-radius: 999px; padding: 3px; }
.lang-switch a { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.lang-switch a.is-active { background: var(--gold); color: #2a1d07; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }
.user-chip strong { color: var(--gold); }

/* hamburger */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; border-radius: 2px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
    position: relative; padding: 96px 0 84px; text-align: center; overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(12,14,19,.55), rgba(12,14,19,.95)),
        url('/assets/main/img/screenshots/mmorpg-fantasy-metin2-screenshot01.jpg') center/cover no-repeat;
    filter: saturate(.9);
}
.hero__badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
    border: 1px solid rgba(231,180,85,.4); background: rgba(231,180,85,.08);
    padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.6); margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c6cbd6; max-width: 660px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* live status strip under hero */
.status-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    margin-top: 44px;
}
.status-pill {
    display: flex; align-items: center; gap: 14px;
    background: rgba(24,28,37,.7); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 22px; min-width: 150px;
    backdrop-filter: blur(6px);
}
.status-pill__val { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1; }
.status-pill__label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot--on  { background: var(--green); box-shadow: 0 0 0 4px rgba(63,191,111,.18); animation: pulse 2s infinite; }
.dot--off { background: var(--red);   box-shadow: 0 0 0 4px rgba(224,82,74,.18); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(63,191,111,.18); } 50% { box-shadow: 0 0 0 7px rgba(63,191,111,.05); } }

/* ---- feature cards ---- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.card__icon {
    width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
    font-size: 1.4rem; margin-bottom: 16px;
    background: rgba(231,180,85,.12); color: var(--gold); border: 1px solid rgba(231,180,85,.25);
}
.card h3 { font-size: 1.15rem; color: var(--text); margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---- news ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.news-card__media { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card__media img { transform: scale(1.06); }
.news-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: .78rem; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.news-card__body h3 { font-size: 1.1rem; color: var(--text); margin-bottom: .5em; }
.news-card__body p { color: var(--muted); font-size: .92rem; flex: 1; }
.news-card__more { font-weight: 600; font-size: .9rem; margin-top: 10px; }

/* ---- ranking table ---- */
.rank-wrap { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 14px 20px; text-align: left; }
.rank-table thead th { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: var(--bg-2); border-bottom: 1px solid var(--border); }
.rank-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.rank-table tbody tr:last-child { border-bottom: 0; }
.rank-table tbody tr:hover { background: rgba(255,255,255,.03); }
.rank-table td.rank-num { font-family: var(--display); font-weight: 700; color: var(--muted); width: 60px; }
.rank-table tr:nth-child(1) td.rank-num { color: var(--gold); }
.rank-table .rank-name { font-weight: 600; color: var(--text); }
.rank-badge { display: inline-block; font-size: .78rem; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border-2); color: var(--muted); }
.rank-lv { font-family: var(--display); font-weight: 700; color: var(--gold-2); }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; text-align: center; }
.step__num {
    width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dim)); color: #2a1d07;
    box-shadow: 0 6px 16px rgba(231,180,85,.3);
}
.step h3 { font-size: 1.1rem; color: var(--text); }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---- final CTA ---- */
.cta-banner { position: relative; text-align: center; border-radius: 20px; overflow: hidden; padding: 64px 24px; margin: 0 20px; border: 1px solid var(--border); }
.cta-banner::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(12,14,19,.7), rgba(12,14,19,.92)),
        url('/assets/main/img/screenshots/mmorpg-fantasy-metin2-screenshot03.jpg') center/cover no-repeat;
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; }
.cta-banner p { color: #c6cbd6; max-width: 540px; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---- footer ---- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { font-family: var(--font); font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 16px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { color: var(--muted); font-size: .92rem; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom p { margin: 0; font-size: .82rem; color: var(--muted-2); }
.footer-disclaimer { font-size: .78rem; color: var(--muted-2); max-width: 720px; margin: 14px auto 0; text-align: center; line-height: 1.5; }

/* =========================================================================
   NEW PAGE COMPONENTS — used by the rebuilt subpages
   ========================================================================= */
.site-main { min-height: 50vh; }
.site-main--page { padding-bottom: 20px; }

/* compact page hero band */
.page-hero {
    position: relative; padding: 60px 0 48px; text-align: center;
    border-bottom: 1px solid var(--border); overflow: hidden;
    background:
        radial-gradient(800px 300px at 50% -40%, rgba(231,180,85,.12), transparent 70%),
        var(--bg-2);
}
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: #fff; margin-bottom: .25em; }
.page-hero h1 .accent { color: var(--gold); }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.page-hero .eyebrow { margin-bottom: 12px; }

/* sub-page tab nav (the game: game/classes/empires) */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 36px; }
.tabs a {
    padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    color: var(--muted); border: 1px solid var(--border-2); background: rgba(255,255,255,.03);
}
.tabs a:hover { color: var(--text); border-color: var(--gold); }
.tabs a.is-active { background: var(--gold); color: #2a1d07; border-color: var(--gold); }

/* prose / readable text blocks */
.prose { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.02rem; }
.prose h2, .prose h3 { color: var(--text); margin: 1.4em 0 .5em; }
.prose h2 { font-size: 1.5rem; } .prose h3 { font-size: 1.2rem; }
.prose h2 .accent, .prose h3 .accent { color: var(--gold); }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--text); }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose ul li { position: relative; padding-left: 1.6em; margin-bottom: .5em; }
.prose ul li::before { content: "\25C6"; color: var(--gold); position: absolute; left: 0; top: 0; font-size: .8em; }

/* class / empire cards */
.icon-card { text-align: center; }
.icon-card .card__icon { margin-left: auto; margin-right: auto; width: 60px; height: 60px; font-size: 1.7rem; }
.empire-card { border-top: 3px solid var(--border-2); }
.empire-card.e1 { border-top-color: #d9534f; }   /* Shinsoo - red */
.empire-card.e2 { border-top-color: #4f8fd9; }   /* Chunjo - blue  */
.empire-card.e3 { border-top-color: #e7b455; }   /* Jinno - gold  */
.empire-card__tag { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 600; }

/* system requirements / generic key-value table */
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.table-modern { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-modern caption { caption-side: top; text-align: left; font-family: var(--display); font-weight: 700; color: var(--gold); padding: 16px 18px 6px; }
.table-modern th, .table-modern td { padding: 12px 18px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.table-modern tr:last-child td { border-bottom: 0; }
.table-modern td:first-child { color: var(--muted); width: 42%; }
.table-modern thead th { background: var(--bg-2); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.table-modern tbody tr:hover { background: rgba(255,255,255,.03); }
.table-modern .empire-cell img { display: inline-block; }

/* download buttons */
.dl-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin: 28px 0; }

/* auth forms */
.auth-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; max-width: 880px; margin: 0 auto; align-items: start; }
.form-modern .field { margin-bottom: 18px; }
.form-modern label { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; font-size: .92rem; }
.form-modern input[type="text"], .form-modern input[type="password"], .form-modern input[type="email"] {
    width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
    padding: 12px 14px; border-radius: var(--radius-sm); font-size: .98rem; font-family: var(--font);
}
.form-modern input:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.form-modern .field-error { color: var(--ember-2); font-size: .85rem; margin-top: 6px; }
.form-modern .check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.form-modern .check-row input { margin-top: 3px; }
.help-list { font-size: .88rem; color: var(--muted); }
.help-list li::before { content: "\2713"; color: var(--green); }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; border: 1px solid; }
.alert--error { background: rgba(207,82,64,.12); border-color: rgba(207,82,64,.4); color: var(--ember-2); }
.alert--ok { background: rgba(63,191,111,.12); border-color: rgba(63,191,111,.4); color: var(--green); }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* account dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dash-card { display: flex; flex-direction: column; gap: 6px; }
.dash-card .dash-val { font-family: var(--display); font-size: 1.5rem; color: var(--gold); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- item shop (mall) ---- */
.mall-toolbar { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.mall-toolbar__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; }
.mall-toolbar h1 { font-size: 1.25rem; margin: 0; color: var(--text); }
.mall-balances { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.mall-balance { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 16px; font-size: .9rem; }
.mall-balance strong { font-family: var(--display); color: var(--gold); }
.mall-balance .b-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }

.mall-shell { display: grid; grid-template-columns: 250px 1fr; gap: 26px; max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 10px; }
.mall-sidebar { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.mall-sidebar h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 12px; font-family: var(--font); }
.mall-cats { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mall-cats a { display: block; padding: 11px 16px; color: var(--muted); font-size: .92rem; border-bottom: 1px solid var(--border); transition: background .15s, color .15s; }
.mall-cats a:last-child { border-bottom: 0; }
.mall-cats a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.mall-cats a.is-active { background: rgba(231,180,85,.1); color: var(--gold); border-left: 3px solid var(--gold); }

.mall-main h1.shop-title { font-size: 1.6rem; color: var(--gold); margin: 0 0 22px; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.shop-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; transition: transform .18s, border-color .18s, box-shadow .18s; position: relative; }
.shop-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.shop-card__media { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-bottom: 14px; aspect-ratio: 1; display: grid; place-items: center; }
.shop-card__media img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.shop-card__name { font-weight: 600; color: var(--text); font-size: .98rem; margin-bottom: 4px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.shop-card__qty { font-size: .8rem; color: var(--muted-2); margin-bottom: 10px; }
.shop-price { font-family: var(--display); font-weight: 700; color: var(--gold-2); font-size: 1.1rem; }
.shop-price .old { display: block; font-size: .8rem; color: var(--muted-2); text-decoration: line-through; font-weight: 400; }
.shop-card .btn { margin-top: 14px; }
.badge-sale { position: absolute; top: 10px; right: 10px; background: var(--ember); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }

.item-detail { display: grid; grid-template-columns: 320px 1fr; gap: 30px; align-items: start; }
.item-detail__visual { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; position: relative; }
.item-detail__visual img { max-width: 100%; }
.item-detail__info h1 { font-size: 1.7rem; color: var(--gold); margin: 0 0 14px; }
.item-detail__desc { color: var(--muted); margin-bottom: 22px; }
.item-buy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.item-buy__price { font-family: var(--display); font-size: 1.6rem; color: var(--gold); margin-bottom: 4px; }
.item-buy__price .old { font-size: 1rem; color: var(--muted-2); text-decoration: line-through; margin-left: 8px; }
.item-buy__note { font-size: .82rem; color: var(--muted-2); margin-top: 10px; }
.item-suggest { margin-top: 36px; }
.item-suggest h2 { font-size: 1.1rem; color: var(--text); margin-bottom: 14px; }
.item-suggest__row { display: flex; flex-wrap: wrap; gap: 12px; }
.item-suggest__row a { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: grid; place-items: center; width: 78px; height: 78px; transition: border-color .15s, transform .15s; }
.item-suggest__row a:hover { border-color: var(--gold); transform: translateY(-2px); }
.item-suggest__row img { max-width: 100%; max-height: 100%; }

/* =========================================================================
   LEGACY content compatibility — scoped to .col-2 so it ONLY affects the
   old pages that are not rebuilt yet (security/*, tutorials, password, …).
   ========================================================================= */
.col-1, .col-3 { display: none !important; }  /* legacy side columns */
.col-2 {
    display: block; width: 100% !important; max-width: var(--maxw);
    margin: 0 auto !important; padding: 48px 20px; float: none !important;
}
.col-2 .boxes-top, .col-2 .boxes-bottom, .col-2 .boxes-middle, .col-2 .shadow { display: none; }
.col-2 .content, .col-2 .modul-box, .col-2 .two-boxes, .col-2 .box {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px;
}
.col-2 .box-right { margin-top: 22px; }
.col-2 h2 { font-size: 1.5rem; color: var(--gold); margin-bottom: .6em; }
.col-2 h3 { font-size: 1.2rem; color: var(--text); margin: 1em 0 .5em; }
.col-2 h4 { font-size: 1rem; color: var(--muted); }
.col-2 .inner-content, .col-2 .body { color: var(--muted); }
.col-2 .inner-content ul, .col-2 .body ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.col-2 p { color: var(--muted); }
.col-2 a { color: var(--gold); }
.col-2 .btn, .col-2 input[type="submit"], .col-2 .button, .col-2 .small-btn, .col-2 .btn-big, .col-2 .tutorial-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold-2), var(--gold-dim)); color: #2a1d07 !important;
    font-weight: 600; padding: 11px 22px; border: 0; border-radius: 999px; cursor: pointer;
    text-indent: 0; width: auto; height: auto; text-decoration: none; margin: 6px 6px 6px 0;
}
.col-2 .btn:hover, .col-2 input[type="submit"]:hover, .col-2 .btn-big:hover { transform: translateY(-2px); }
.col-2 input[type="text"], .col-2 input[type="password"], .col-2 input[type="email"],
.col-2 select, .col-2 textarea {
    width: 100%; max-width: 360px; background: var(--bg-2); border: 1px solid var(--border-2);
    color: var(--text); padding: 11px 14px; border-radius: var(--radius-sm); font-size: .95rem; margin: 4px 0 14px;
}
.col-2 input:focus, .col-2 select:focus, .col-2 textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.col-2 label { display: block; font-weight: 600; color: var(--text); margin-bottom: 2px; font-size: .9rem; }
.col-2 table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.col-2 th, .col-2 td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.col-2 thead th { background: var(--bg-2); color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.col-2 object, .col-2 embed { display: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
    .grid--3, .news-grid, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .auth-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0; margin: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        padding: 10px 16px 18px; transform: translateY(-130%); transition: transform .28s ease;
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    body.nav-open .main-nav { transform: translateY(0); }
    .main-nav a { padding: 13px 12px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .header-actions { margin-left: auto; gap: 8px; }
    .header-actions .btn--register-text { display: none; }
    .grid--3, .grid--2, .news-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
    .kv-grid, .dash-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .mall-shell { grid-template-columns: 1fr; }
    .mall-sidebar { position: static; }
    .item-detail { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 56px; }
    .section { padding: 52px 0; }
    .status-pill { flex: 1 1 calc(50% - 14px); min-width: 0; }
}
@media (max-width: 420px) {
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    .lang-switch { display: none; }
}
