@charset "utf-8";

/* ============================================================
   ARDUZ ONLINE — "Obsidian Forge" Theme
   Modern game portal aesthetic + medieval accents
   ============================================================ */

/* ============================================================
   0. DESIGN TOKENS
   ============================================================ */
:root {
    --bg-primary: #0d0d12;
    --bg-secondary: #14141f;
    --bg-card: #1a1a28;
    --bg-hover: #222235;
    --bg-input: #111119;

    --gold-primary: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dim: #8b7335;
    --gold-glow: rgba(201, 168, 76, 0.15);

    --text-primary: #e0ddd5;
    --text-secondary: #8a8578;
    --text-muted: #5a564e;

    --accent-red: #c44040;
    --accent-green: #4caf50;
    --accent-blue: #4a90d9;

    --border-default: #2a2a3a;
    --border-gold: rgba(201, 168, 76, 0.3);
    --border-gold-bright: rgba(201, 168, 76, 0.6);

    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Cinzel Decorative', 'Georgia', serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 20px var(--gold-glow);

    --transition: 0.2s ease;
    --container-width: 1200px;
    --nav-height: 64px;
}

/* ============================================================
   1. RESET
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   2. BASE
   ============================================================ */
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }
* { scrollbar-width: thin; scrollbar-color: var(--gold-dim) var(--bg-primary); }

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

#main-content {
    flex: 1;
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 48px;
}

.section {
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    color: var(--gold-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-default);
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   4. NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-default);
    height: var(--nav-height);
}

.nav {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 32px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--gold-primary);
    font-weight: 900;
    text-shadow: 0 0 20px var(--gold-glow);
    transition: text-shadow var(--transition);
}
.nav-logo:hover {
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.nav-link.active {
    color: var(--gold-primary);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 1px;
}

.nav-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-user {
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all var(--transition);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dim));
    color: var(--bg-primary);
    border-color: var(--gold-primary);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-default);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-hover);
}

.btn-danger {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
}
.btn-danger:hover {
    background: #d44;
    box-shadow: 0 0 15px rgba(196, 64, 64, 0.3);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-md);
}

.card-title {
    color: var(--gold-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

/* ============================================================
   7. HERO SECTION
   ============================================================ */
.hero {
    text-align: center;
    padding: 80px 0 64px;
    background: radial-gradient(ellipse at 50% 30%, rgba(201, 168, 76, 0.06) 0%, transparent 60%);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow: 0 0 40px var(--gold-glow), 0 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   7b. STATS BAR
   ============================================================ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
    padding: 20px 0;
    margin-bottom: 48px;
}
.stats-bar-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-primary);
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   7c. NEWS
   ============================================================ */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { padding: 24px; }
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}
.news-title {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin: 0;
}
.news-date {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}
.news-body {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.7;
}
.news-author {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   7d. TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-default);
    padding-bottom: 0;
}
.tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
}
.tab:hover {
    color: var(--text-primary);
}
.tab-active {
    color: var(--gold-primary);
    border-bottom-color: var(--gold-primary);
}

/* ============================================================
   7e. INFO LISTS
   ============================================================ */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 42, 58, 0.3);
    color: var(--text-secondary);
}
.info-list li:last-child { border-bottom: none; }
.info-list li strong { color: var(--text-primary); }
.info-list code {
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--gold-primary);
}

.info-list-ordered {
    list-style: decimal;
    padding-left: 20px;
}

/* ============================================================
   7f. STATS BIG (statistics page)
   ============================================================ */
.stat-big {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat-label-big {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================
   7g. CHANGELOG
   ============================================================ */
.changelog-version {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* ============================================================
   7h. STAFF
   ============================================================ */
.staff-avatar {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

/* ============================================================
   7i. PANEL & CHARACTER CAROUSEL
   ============================================================ */
.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}
.panel-header .section-title { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.panel-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0 0;
}
.panel-header-actions { display: flex; gap: 8px; align-items: center; }

/* Empty state */
.char-empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-card);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-lg);
}
.char-empty-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.4;
}
.char-empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}
.char-empty-state p { margin-bottom: 24px; }

/* ── Carousel ── */
.carousel {
    position: relative;
    user-select: none;
}

.carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 4px;
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}
.carousel-arrow:hover {
    color: var(--gold-primary);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-glow);
}
.carousel-arrow--prev { left: -22px; }
.carousel-arrow--next { right: -22px; }

/* Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--border-default);
    background: var(--bg-hover);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}
.carousel-dot:hover { border-color: var(--gold-dim); }
.carousel-dot--active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-glow);
    transform: scale(1.2);
}

/* ── Character Card (inside carousel) ── */
.ccard {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.carousel-slide--active .ccard {
    border-color: hsla(var(--class-hue, 45), 40%, 40%, 0.4);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 30px hsla(var(--class-hue, 45), 50%, 40%, 0.06);
}

/* Hero zone: avatar + name */
.ccard-hero {
    text-align: center;
    padding: 32px 24px 20px;
    background:
        radial-gradient(ellipse at 50% 20%, hsla(var(--class-hue, 45), 50%, 40%, 0.1), transparent 70%),
        var(--bg-secondary);
    border-bottom: 1px solid var(--border-default);
    position: relative;
}
.ccard-hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, hsla(var(--class-hue, 45), 50%, 50%, 0.4), transparent);
}

/* Avatar */
.ccard-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ccard-avatar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid hsla(var(--class-hue, 45), 50%, 50%, 0.4);
    background: linear-gradient(135deg,
        hsla(var(--class-hue, 45), 50%, 30%, 0.5),
        hsla(var(--class-hue, 45), 40%, 15%, 0.8)
    );
    box-shadow:
        0 0 20px hsla(var(--class-hue, 45), 60%, 50%, 0.15),
        inset 0 0 20px hsla(var(--class-hue, 45), 40%, 20%, 0.3);
    animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
    0%, 100% { box-shadow: 0 0 20px hsla(var(--class-hue, 45), 60%, 50%, 0.15), inset 0 0 20px hsla(var(--class-hue, 45), 40%, 20%, 0.3); }
    50% { box-shadow: 0 0 30px hsla(var(--class-hue, 45), 60%, 50%, 0.25), inset 0 0 25px hsla(var(--class-hue, 45), 40%, 20%, 0.4); }
}
.ccard-avatar-letter {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: hsl(var(--class-hue, 45) 60% 70%);
    z-index: 1;
    text-shadow: 0 0 20px hsla(var(--class-hue, 45), 60%, 60%, 0.4);
}

.ccard-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 10px;
    letter-spacing: 1px;
}
.ccard-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.ccard-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ccard-tag--class {
    background: hsla(var(--class-hue, 45), 40%, 40%, 0.2);
    color: hsl(var(--class-hue, 45) 50% 65%);
    border: 1px solid hsla(var(--class-hue, 45), 40%, 50%, 0.25);
}
.ccard-tag--race {
    background: rgba(232, 213, 163, 0.08);
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
}
.ccard-tag--gender {
    background: rgba(138, 133, 120, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
}

/* Body: paper doll + stats */
.ccard-body {
    display: flex;
    flex-direction: column;
}

/* ── Paper Doll ── */
.paperdoll {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    padding: 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-default);
    position: relative;
}
.paperdoll::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, hsla(var(--class-hue, 45), 30%, 30%, 0.06), transparent 70%);
    pointer-events: none;
}
.pd-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    z-index: 1;
}
.pd-side--left { align-items: flex-end; }
.pd-side--right { align-items: flex-start; }

/* Item slot */
.pd-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-sm);
    min-width: 120px;
    max-width: 160px;
    transition: all var(--transition);
}
.pd-slot--filled {
    border-style: solid;
    border-color: var(--border-gold);
    box-shadow: 0 0 8px hsla(var(--class-hue, 45), 40%, 40%, 0.1);
}
.pd-slot--filled:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px var(--gold-glow);
}
.pd-slot-icon {
    width: 20px;
    height: 20px;
    color: var(--gold-dim);
}
.pd-slot--filled .pd-slot-icon { color: var(--gold-primary); }
.pd-slot-icon svg { width: 100%; height: 100%; }
.pd-slot-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pd-slot-stat {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-primary);
}
.pd-slot-empty {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

/* Center figure */
.pd-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 1;
}
.pd-figure {
    width: 96px;
    height: 96px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.pd-figure-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid hsla(var(--class-hue, 45), 50%, 50%, 0.4);
    background: linear-gradient(135deg,
        hsla(var(--class-hue, 45), 50%, 30%, 0.5),
        hsla(var(--class-hue, 45), 40%, 15%, 0.8)
    );
    box-shadow:
        0 0 30px hsla(var(--class-hue, 45), 60%, 50%, 0.2),
        inset 0 0 25px hsla(var(--class-hue, 45), 40%, 20%, 0.3);
    animation: avatarPulse 3s ease-in-out infinite;
}
.pd-figure-letter {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--class-hue, 45) 60% 70%);
    z-index: 1;
    text-shadow: 0 0 20px hsla(var(--class-hue, 45), 60%, 60%, 0.4);
    line-height: 1;
}
.pd-figure-head {
    font-size: 10px;
    color: hsla(var(--class-hue, 45), 40%, 60%, 0.5);
    z-index: 1;
    margin-top: 2px;
}
.pd-pvp {
    display: flex;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
}
.pd-pvp-frags { color: var(--accent-green); }
.pd-pvp-deaths { color: var(--accent-red); }

/* Stats column */
.ccard-stats {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ccard-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.ccard-stat-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ccard-stat-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}
.ccard-stat-bar {
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}
.ccard-stat-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ccard-stat-fill--combat   { background: linear-gradient(90deg, #7a2020, #c44040); box-shadow: 0 0 6px rgba(196,64,64,0.3); }
.ccard-stat-fill--magic    { background: linear-gradient(90deg, #2a3a66, #4a90d9); box-shadow: 0 0 6px rgba(74,144,217,0.3); }
.ccard-stat-fill--defense  { background: linear-gradient(90deg, #2d5a30, #4caf50); box-shadow: 0 0 6px rgba(76,175,80,0.3); }
.ccard-stat-fill--resist   { background: linear-gradient(90deg, #5a4520, #c9a84c); box-shadow: 0 0 6px var(--gold-glow); }

/* (Items display integrated in paper doll slots) */

/* Footer: PvP + actions */
.ccard-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.ccard-pvp {
    display: flex;
    gap: 20px;
    align-items: center;
}
.ccard-pvp-item { text-align: center; }
.ccard-pvp-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.ccard-pvp-val--frags { color: var(--accent-green); }
.ccard-pvp-val--deaths { color: var(--accent-red); }
.ccard-pvp-val--clan { color: var(--accent-blue); }
.ccard-pvp-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ccard-pvp-divider {
    width: 1px;
    height: 28px;
    background: var(--border-default);
}
.ccard-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Character detail stats */
.char-stats-detail { display: flex; flex-direction: column; gap: 16px; }
.stat-row {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}
.stat-num {
    text-align: right;
    font-weight: 600;
    color: var(--text-primary);
}

/* Profile info */
.profile-info { display: flex; flex-direction: column; }
.profile-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(42, 42, 58, 0.3);
}
.profile-row:last-child { border-bottom: none; }
.profile-label {
    font-size: 14px;
    color: var(--text-muted);
}
.profile-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ── Inventory (Argentum-style backpack) ── */
.inv-backpack {
    background: var(--bg-secondary);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-width: 640px;
}
.inv-backpack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(90deg, var(--bg-card), var(--bg-secondary));
    border-bottom: 1px solid var(--border-default);
}
.inv-backpack-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.inv-backpack-count {
    font-size: 12px;
    color: var(--text-muted);
}
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 2px;
    background: rgba(42, 42, 58, 0.3);
}
.inv-slot {
    aspect-ratio: 1;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.inv-slot--has-item {
    cursor: grab;
}
.inv-slot--has-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-gold);
    z-index: 2;
    box-shadow: 0 0 12px var(--gold-glow);
}
.inv-slot--empty {
    background: rgba(20, 20, 31, 0.6);
}
.inv-slot-num {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.3;
}

/* Drag states */
.inv-slot-dragging { opacity: 0.3; }
.inv-slot-drop-target {
    border-color: var(--gold-primary) !important;
    box-shadow: inset 0 0 15px var(--gold-glow), 0 0 12px var(--gold-glow);
    background: var(--bg-hover);
}

/* Item cell inside slot */
.inv-item-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    width: 100%;
    height: 100%;
}
.inv-icon {
    width: 28px;
    height: 28px;
    color: var(--gold-primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px var(--gold-glow));
}
.inv-item-sprite {
    max-width: 38px;
    max-height: 38px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 4px var(--gold-glow));
}
.inv-item-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.inv-item-bonus {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}
.ib {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
}
.ib--atk { color: #f08080; background: rgba(196,64,64,0.15); }
.ib--mag { color: #80b8f0; background: rgba(74,144,217,0.15); }
.ib--def { color: #80d884; background: rgba(76,175,80,0.15); }
.ib--res { color: var(--gold-light); background: rgba(201,168,76,0.15); }

/* ── Vault Classic (Bóveda) ── */
.vault-classic {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.vc-panel {
    background: var(--bg-secondary);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.vc-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--bg-card), var(--bg-secondary));
    border-bottom: 1px solid var(--border-default);
    text-align: center;
}
.vc-grid {
    border-collapse: collapse;
}
.vc-cell {
    width: 40px;
    height: 40px;
    border: 1px solid #222;
    background: #000;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    transition: border-color 0.15s;
}
.vc-cell img {
    max-width: 34px;
    max-height: 34px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
    margin: auto;
}
.vc-cell:hover {
    border-color: var(--gold-primary);
}
.vc-selected {
    border: 2px solid #981601 !important;
    background: rgba(152, 22, 1, 0.15);
}
.vc-dragging {
    opacity: 0.3;
}
.vc-drop-target {
    border-color: var(--gold-primary) !important;
    box-shadow: inset 0 0 10px var(--gold-glow);
}
.vc-cell--has-item {
    cursor: grab;
}
.vc-actions {
    padding: 6px;
    text-align: right;
    background: var(--bg-card);
    border-top: 1px solid var(--border-default);
}
.vc-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border: 1px solid var(--border-gold);
    border-radius: 3px;
    background: var(--bg-secondary);
    color: var(--gold-primary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.vc-btn:hover:not(:disabled) {
    background: var(--gold-primary);
    color: #1a1a2e;
}
.vc-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Tooltip (Argentum style) */
.vc-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #333 url(/assets/images/back.jpg) repeat scroll 0 0;
    border: 2px solid #7A6952;
    border-radius: 3px;
    padding: 4px 8px;
    font-family: tahoma, Helvetica, sans-serif;
    font-size: 10px;
    color: #9e7b51;
    max-width: 240px;
    pointer-events: none;
    opacity: 0.85;
    line-height: 1.5;
}
.tt-name {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}
.tt-dur {
    font-size: 10px;
    color: #aaa;
    margin-bottom: 1px;
}
.tt-bar-bg {
    background-image: url(/assets/images/panel/energie_balken_grund.gif);
    height: 6px;
    width: 102px;
    overflow: hidden;
    margin-bottom: 4px;
}
.tt-bar-green {
    background-image: url(/assets/images/panel/energie_gruen.gif);
    background-repeat: repeat-x;
    height: 6px;
}
.tt-bar-yellow {
    background-image: url(/assets/images/panel/energie_gelb.gif);
    background-repeat: repeat-x;
    height: 6px;
}
.tt-bar-red {
    background-image: url(/assets/images/panel/energie_rot.gif);
    background-repeat: repeat-x;
    height: 6px;
}
.tt-desc {
    color: #9e7b51;
    margin-bottom: 2px;
}
.tt-stats {
    margin-top: 4px;
    color: #9e7b51;
}
.tt-stats b {
    color: #e1bd76;
}
.tt-spell {
    color: #06f;
}
.tt-divine {
    color: #fc6;
}

/* Merchant status */
.merchant-status {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Trainer skill cards */
.trainer-skill { display: flex; flex-direction: column; }
.trainer-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.trainer-skill-header .card-title { margin-bottom: 0; }

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

/* ── Clan Chat ── */
.clan-chat { display: flex; flex-direction: column; }
.clan-chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.chat-msg { font-size: 13px; line-height: 1.5; }
.chat-time { color: var(--text-muted); font-size: 11px; }
.chat-nick { color: var(--gold-primary); }
.chat-text { color: var(--text-primary); }
.clan-chat-form {
    display: flex;
    gap: 8px;
}
.clan-chat-form .form-input { flex: 1; }

/* ============================================================
   8. FORMS
   ============================================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: var(--text-muted);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

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

/* ============================================================
   9. ALERTS
   ============================================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.alert-text { flex: 1; }
.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
    line-height: 1;
    transition: opacity var(--transition);
}
.alert-close:hover { opacity: 1; }
.alert-error {
    background: rgba(196, 64, 64, 0.12);
    border-color: rgba(196, 64, 64, 0.3);
    color: #f08080;
}
.alert-success {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.3);
    color: #80d884;
}
.alert-info {
    background: rgba(74, 144, 217, 0.12);
    border-color: rgba(74, 144, 217, 0.3);
    color: #80b8f0;
}
.alert-warning {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--border-gold);
    color: var(--gold-light);
}
.flash-messages { margin-bottom: 24px; }

/* ============================================================
   9b. AUTH PAGES
   ============================================================ */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 48px 0;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}
.auth-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 8px;
}
.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}
.auth-form { margin-bottom: 24px; }
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-default);
}
.auth-link {
    font-size: 14px;
    color: var(--gold-primary);
}
.auth-link:hover { color: var(--gold-light); }
.auth-separator {
    color: var(--text-muted);
    margin: 0 8px;
}
.auth-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 4px;
}
.btn-block {
    width: 100%;
    display: flex;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   10. TABLES
   ============================================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th {
    text-align: left;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-default);
}
.table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(42, 42, 58, 0.5);
    font-size: 14px;
}
.table tbody tr {
    transition: background var(--transition);
}
.table tbody tr:hover {
    background: var(--bg-hover);
}
.table-sort {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
}
.table-sort:hover { color: var(--gold-primary); }

/* ============================================================
   11. BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
}
.badge-gold {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--border-gold);
    color: var(--gold-primary);
}
.badge-red {
    background: rgba(196, 64, 64, 0.15);
    border-color: rgba(196, 64, 64, 0.3);
    color: var(--accent-red);
}
.badge-blue {
    background: rgba(74, 144, 217, 0.15);
    border-color: rgba(74, 144, 217, 0.3);
    color: var(--accent-blue);
}
.badge-green {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: var(--accent-green);
}

/* ============================================================
   12. STAT BARS
   ============================================================ */
.stat-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.stat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.stat-bar-fill.stat-bar-hp {
    background: linear-gradient(90deg, #2d6630, var(--accent-green));
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
}
.stat-bar-fill.stat-bar-mp {
    background: linear-gradient(90deg, #2d3d66, var(--accent-blue));
    box-shadow: 0 0 8px rgba(74, 144, 217, 0.3);
}
.stat-bar-fill.stat-bar-xp {
    background: linear-gradient(90deg, #66502d, var(--gold-primary));
    box-shadow: 0 0 8px var(--gold-glow);
}

/* ============================================================
   13. FOOTER
   ============================================================ */
.site-footer {
    margin-top: auto;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-default);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-dim);
    font-weight: 700;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-nav a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text-primary); }

.footer-copy small {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================
   14. ERROR PAGES
   ============================================================ */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}
.error-content { max-width: 400px; }
.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow: 0 0 40px var(--gold-glow);
    line-height: 1;
    margin-bottom: 16px;
}
.error-message {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ============================================================
   15. UTILITIES
   ============================================================ */
/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
}

.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none; }

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 3rem; }

    .carousel-arrow--prev { left: -12px; }
    .carousel-arrow--next { right: -12px; }
    .pd-slot { min-width: 100px; padding: 8px 10px; }
    .pd-figure { width: 80px; height: 80px; }
    .pd-figure-letter { font-size: 2rem; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 56px;
    }

    .nav-menu, .nav-actions { display: none; }
    .nav-toggle { display: flex; }

    /* Mobile menu open state */
    body.menu-open .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-default);
        padding: 16px;
        gap: 4px;
        z-index: 999;
    }
    body.menu-open .nav-actions {
        display: flex;
        position: fixed;
        top: calc(var(--nav-height) + 200px);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 0 16px 16px;
        border-bottom: 1px solid var(--border-default);
        z-index: 999;
    }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 32px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }

    /* Panel responsive */
    .panel-header { flex-direction: column; gap: 12px; }
    .panel-header-actions { align-self: flex-start; }
    .carousel-arrow { display: none; }
    .ccard-hero { padding: 20px 16px 14px; }
    .ccard-name { font-size: 1.2rem; }
    .paperdoll { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .pd-side { flex-direction: row; justify-content: center; }
    .pd-side--left, .pd-side--right { align-items: center; }
    .pd-slot { min-width: 0; flex: 1; max-width: 140px; }
    .pd-figure { width: 72px; height: 72px; }
    .pd-figure-letter { font-size: 1.8rem; }
    .ccard-footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .ccard-actions { justify-content: center; flex-wrap: wrap; }

    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; max-width: 280px; }
}

/* ============================================================
   16. HEAD PICKER (Character Creation)
   ============================================================ */
.head-sprite {
    width: 16px;
    height: 16px;
    background-image: url('/assets/images/heads.png');
    background-repeat: no-repeat;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.head-sprite-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.head-sprite-lg {
    width: 64px;
    height: 64px;
    border: 2px solid var(--border-gold-bright);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    box-shadow: var(--shadow-glow);
}

.head-sprite-lg .head-sprite {
    transform: scale(4);
}

.head-picker {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.head-picker-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.head-picker-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.head-picker-label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.head-picker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dim) var(--bg-primary);
}

.head-grid-cell {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-input);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    padding: 0;
}

.head-grid-cell .head-sprite {
    transform: scale(3);
    pointer-events: none;
}

.head-grid-cell:hover {
    border-color: var(--gold-dim);
    transform: scale(1.08);
}

.head-grid-cell--active {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow), inset 0 0 6px var(--gold-glow);
    background: rgba(201, 168, 76, 0.08);
}

.head-grid-cell--active:hover {
    border-color: var(--gold-light);
}

/* ============================================================
   17. PRINT
   ============================================================ */
@media print {
    body { background: #fff; color: #000; }
    .site-header, .site-footer, .btn, .nav-toggle { display: none; }
    a { color: #000; text-decoration: underline; }
    .card { border: 1px solid #ccc; }
}
