@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-body: #120705;
    --bg-dark: #1a0d09;
    --bg-card: rgba(30, 15, 10, 0.92);
    --bg-card-solid: #21110b;
    --bg-card-hover: rgba(48, 22, 13, 0.97);
    --bg-input: rgba(24, 12, 9, 0.96);
    --bg-nav: rgba(17, 8, 6, 0.95);

    --text-primary: #f4e2c8;
    --text-secondary: #d3b184;
    --text-accent: #e0a93b;
    --text-white: #fff2dc;
    --text-muted: #9f7550;

    --accent: #d89c2f;
    --accent-hover: #f0c25a;
    --green: #55b943;
    --green-dark: #328932;
    --green-light: #72d05f;
    --red: #b6351d;
    --red-light: #df5535;

    --border: rgba(216, 156, 47, 0.16);
    --border-light: rgba(216, 156, 47, 0.34);
    --glow: rgba(182, 53, 29, 0.16);

    --discord: #5865F2;
    --facebook: #1877F2;
    --tiktok: #25F4EE;
    --twitter: #14171A;
    --instagram: #E4405F;
    --youtube: #FF0000;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: radial-gradient(circle at top, rgba(182, 53, 29, 0.17) 0%, rgba(182, 53, 29, 0) 26%), linear-gradient(180deg, #170907 0%, #0a0403 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.maintenance-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: radial-gradient(circle at top, rgba(182, 53, 29, 0.18) 0%, rgba(182, 53, 29, 0) 38%), linear-gradient(180deg, #150c09 0%, #080503 100%);
}

.maintenance-card {
    width: min(620px, 100%);
    background: rgba(18, 14, 10, 0.94);
    border: 1px solid var(--border-light);
    border-radius: 22px;
    padding: 42px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.maintenance-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(200, 169, 110, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.maintenance-card h1 {
    margin: 18px 0 12px;
    font-size: 36px;
    line-height: 1.08;
    color: var(--text-white);
}

.maintenance-card p {
    max-width: 480px;
    margin: 0 auto 26px;
    color: var(--text-secondary);
    font-size: 16px;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

input, button, select, textarea {
    font-family: var(--font);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(216, 156, 47, 0.14);
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    transition: background var(--transition), box-shadow var(--transition);
    overflow: visible;
}

.navbar.scrolled {
    background: rgba(22, 9, 6, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    flex: 1;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-accent);
    background: rgba(182, 53, 29, 0.14);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(200, 169, 110, 0.15));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-right .btn {
    min-height: 42px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    line-height: 1;
}

.btn-login {
    background: rgba(43, 24, 17, 0.88);
    color: #ddb05d;
    border: 1px solid rgba(136, 82, 39, 0.42);
    box-shadow: none;
}

.btn-login:hover {
    background: rgba(51, 28, 19, 0.94);
    border-color: rgba(169, 104, 48, 0.52);
    color: #e8bf72;
}

.btn-register {
    background: #d7a347;
    color: #28170d;
    font-weight: 700;
    border: 1px solid #d7a347;
    box-shadow: none;
}

.btn-register:hover {
    background: #dfad54;
    border-color: #dfad54;
    color: #23130b;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 40px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(67, 160, 71, 0.3);
    color: #fff;
}

.btn-accent {
    background: #d7a347;
    color: #28170d;
    font-weight: 700;
    border: 1px solid #d7a347;
    box-shadow: none;
}

.btn-accent:hover {
    background: #dfad54;
    border-color: #dfad54;
    color: #23130b;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-outline:hover {
    color: var(--text-accent);
    border-color: var(--accent);
    background: rgba(182, 53, 29, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, var(--red) 0%, #992020 100%);
    color: #fff;
    font-weight: 700;
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 100%);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 18px 50px;
    font-size: 17px;
    border-radius: var(--radius);
}

.btn-block {
    width: 100%;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 560px;
    margin-top: 60px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: var(--bg-body);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0.92;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 9, 6, 0.08) 0%, rgba(40, 14, 10, 0.18) 36%, rgba(28, 10, 7, 0.6) 75%, #120705 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    min-height: 500px;
}

/* ===== HERO KICKER ===== */
.hero-kicker-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 7px 20px;
    border-radius: 999px;
    background: rgba(182, 53, 29, 0.16);
    border: 1px solid rgba(216, 156, 47, 0.28);
    color: var(--text-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-logo-img {
    display: block;
    width: min(900px, 88vw);
    max-width: min(900px, 88vw) !important;
    height: auto;
    max-height: 270px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 10px 34px rgba(216, 156, 47, 0.2)) drop-shadow(0 10px 28px rgba(130, 27, 18, 0.26));
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== HERO ACTION ROW ===== */
.hero-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.07);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hero-btn:hover::after { opacity: 1; }
.hero-btn:hover { transform: translateY(-2px); }

.hero-btn-outline {
    background: rgba(14, 9, 6, 0.65);
    border: 1.5px solid rgba(216, 156, 47, 0.5);
    color: var(--text-accent);
    box-shadow: inset 0 1px 0 rgba(216, 156, 47, 0.12), 0 2px 12px rgba(0,0,0,0.35);
}

.hero-btn-outline:hover {
    border-color: rgba(240, 194, 90, 0.88);
    color: var(--text-accent);
    box-shadow: inset 0 1px 0 rgba(240, 194, 90, 0.16), 0 4px 20px rgba(182, 53, 29, 0.24), 0 2px 12px rgba(0,0,0,0.35);
}

.hero-btn-primary {
    background: linear-gradient(175deg, #d24e1b 0%, #8f2411 52%, #611108 100%);
    border: 1.5px solid rgba(216, 116, 53, 0.56);
    color: #ffecd6;
    box-shadow: inset 0 1px 0 rgba(255, 197, 112, 0.15), 0 4px 20px rgba(140, 30, 10, 0.45);
}

.hero-btn-primary:hover {
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 214, 136, 0.18), 0 6px 28px rgba(180, 50, 15, 0.55);
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    border-left: 1px solid rgba(216, 156, 47, 0.18);
    margin-left: 2px;
}

.hero-soc {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-soc:hover {
    transform: translateY(-3px);
    color: #fff;
}

.hero-soc.social-discord {
    background: linear-gradient(145deg, #5865F2 0%, #404bbf 100%);
    box-shadow: 0 3px 12px rgba(88, 101, 242, 0.3);
}
.hero-soc.social-discord:hover { box-shadow: 0 6px 22px rgba(88, 101, 242, 0.55); }

.hero-soc.social-facebook {
    background: linear-gradient(145deg, #1877F2 0%, #1157c0 100%);
    box-shadow: 0 3px 12px rgba(24, 119, 242, 0.3);
}
.hero-soc.social-facebook:hover { box-shadow: 0 6px 22px rgba(24, 119, 242, 0.55); }

.hero-soc.social-tiktok {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}
.hero-soc.social-tiktok:hover { box-shadow: 0 6px 22px rgba(105, 201, 208, 0.35); }

.hero-soc.social-youtube {
    background: linear-gradient(145deg, #e60000 0%, #a80000 100%);
    box-shadow: 0 3px 12px rgba(230, 0, 0, 0.3);
}
.hero-soc.social-youtube:hover { box-shadow: 0 6px 22px rgba(230, 0, 0, 0.55); }

@media (max-width: 768px) {
    .hero-action-row {
        gap: 10px;
        padding: 0 16px;
    }
    .hero-btn {
        height: 46px;
        padding: 0 20px;
        font-size: 13px;
    }
    .hero-socials {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
    }
}


/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: -30px auto 0;
    padding: 0 40px 80px;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.home-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
    display: none;
}

.showcase-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(25, 18, 13, 0.96) 0%, rgba(14, 11, 8, 0.98) 100%);
    border: 1px solid rgba(200, 169, 110, 0.12);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.showcase-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(200, 169, 110, 0.95) 0%, rgba(200, 169, 110, 0) 100%);
}

.showcase-card h3 {
    color: var(--text-white);
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: 10px;
}

.showcase-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.showcase-card-primary {
    background: radial-gradient(circle at top right, rgba(67, 160, 71, 0.18) 0%, rgba(67, 160, 71, 0) 42%), linear-gradient(180deg, rgba(25, 18, 13, 0.96) 0%, rgba(14, 11, 8, 0.98) 100%);
}

.showcase-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--text-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== CARDS ===== */
.card {
    background: linear-gradient(180deg, rgba(18, 14, 10, 0.96) 0%, rgba(11, 9, 7, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(200, 169, 110, 0.14);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 18px;
    border-bottom: 1px solid rgba(200, 169, 110, 0.1);
}

.card-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

.card-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-title-group span {
    font-size: 13px;
    color: var(--text-muted);
}

.card-tabs {
    display: flex;
    gap: 6px;
}

.card-tab {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all var(--transition);
}

.card-tab:hover {
    color: var(--text-secondary);
    background: rgba(200, 169, 110, 0.05);
}

.card-tab.active {
    color: var(--text-accent);
    background: rgba(200, 169, 110, 0.1);
    border-color: rgba(200, 169, 110, 0.2);
}

.card-body {
    padding: 18px 0 6px;
    margin: 0 28px;
}

/* ===== RANKING TABLE ===== */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.ranking-table th {
    padding: 14px 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: #c8945d;
    text-align: left;
    border-bottom: 1px solid rgba(255, 178, 91, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ranking-table td {
    padding: 13px 0;
    font-size: 15px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 178, 91, 0.08);
    vertical-align: middle;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

.ranking-table tbody tr {
    transition: transform .2s ease, background var(--transition), box-shadow .2s ease;
}

.ranking-table tbody tr:hover td {
    background: rgba(255, 178, 91, 0.04);
}

.ranking-table tbody tr:hover {
    transform: translateX(2px);
}

.rank-number {
    font-weight: 600;
    color: #d7a06c;
    font-size: 14px;
    width: 40px;
    text-align: left;
}

.rank-number.top-1,
.rank-number.top-2,
.rank-number.top-3 { color: #d7a06c; }
.rank-number.top-1 { color: #ffd77f; }
.rank-number.top-2 { color: #d3ddf0; }
.rank-number.top-3 { color: #e0a47a; }

.rank-name { font-weight: 500; color: var(--text-primary); }
.rank-level { font-weight: 500; color: var(--text-primary); text-align: left; }
.rank-class, .rank-empire { text-align: center; }
.rank-class img, .rank-empire img { width: 24px; height: 24px; }

.rank-class-text {
    font-size: 15px;
    color: var(--text-primary);
}

.rank-empire-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rank-empire-cell span {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.empire-flag {
    width: 22px;
    height: auto;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.card-footer {
    padding: 18px 0 0;
    margin: 0 28px 18px;
    border-top: none;
    text-align: center;
}

.card-footer a {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-footer a:hover {
    color: var(--text-accent);
}

/* ===== NEWS ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border: none;
    border-bottom: 1px solid rgba(255, 178, 91, 0.12);
    border-radius: 16px;
    background: transparent;
    transition: all var(--transition);
}

.news-item:hover {
    transform: translateX(3px);
    background: transparent;
    border-color: rgba(255, 178, 91, 0.2);
}

.news-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-icon i {
    font-size: 20px;
    color: #fff;
}

.news-icon-update {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.news-icon-event {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.news-icon-announce {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.news-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
}

.tag-update { color: #60a5fa; background: rgba(59, 130, 246, 0.12); }
.tag-event { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }
.tag-announce { color: #f87171; background: rgba(239, 68, 68, 0.12); }

.news-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: all var(--transition);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
}

.news-item:hover .news-arrow {
    opacity: 1;
    transform: translateX(0);
}

.news-info {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 4px;
}

.news-list .news-item:last-child {
    border-bottom: none;
    padding-bottom: 4px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== PAGE WRAPPER (subpages) ===== */
.page-wrapper {
    margin-top: 60px;
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 40px;
}

.page-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    position: relative;
}

.page-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 236, 205, 0.04);
    pointer-events: none;
}

.page-card-wide {
    max-width: 900px;
}

.page-card-header {
    padding: 30px 35px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.page-card-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.page-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.page-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.page-card-body {
    padding: 30px 35px;
}

/* ===== CONTENT CARD (in main-content) ===== */
.content-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    position: relative;
}

.content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 236, 205, 0.04);
    pointer-events: none;
}

.content-card-header {
    padding: 26px 30px 18px;
    border-bottom: 1px solid var(--border);
}

.content-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.content-card-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.content-card-body {
    padding: 30px;
}

.auth-card {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(28, 17, 11, 0.95) 0%, rgba(17, 11, 8, 0.96) 100%);
    border: 1px solid rgba(255, 178, 91, 0.22);
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.34);
}

.auth-card-register-simple {
    background: rgba(8, 8, 10, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.auth-card-header h2 {
    font-size: 30px;
    letter-spacing: 0.02em;
}

.auth-card-header p {
    max-width: 620px;
    line-height: 1.7;
    color: #d8bc96;
}

.auth-card-register-simple .auth-card-header {
    padding-bottom: 14px;
}

.auth-card-register-simple .auth-card-header p {
    display: none;
}

.auth-card-body {
    padding: 32px 30px;
}

.auth-form-simple .form-group label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
}

.auth-grid-full {
    grid-column: 1 / -1;
}

.auth-highlight-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.auth-highlight-item {
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 178, 91, 0.09) 0%, rgba(255, 178, 91, 0.03) 100%);
    border: 1px solid rgba(255, 178, 91, 0.2);
}

.auth-highlight-item strong {
    display: block;
    color: var(--text-white);
    font-size: 14px;
    margin-bottom: 6px;
}

.auth-highlight-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap .form-control {
    padding-left: 42px;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: color var(--transition);
}

.input-icon-wrap:focus-within .input-icon {
    color: var(--text-accent);
}

.input-icon-wrap-sm .form-control {
    padding-left: 38px;
}

.input-icon-wrap-sm .input-icon {
    left: 12px;
    font-size: 13px;
}

.form-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid transparent;
}

.form-notice i {
    flex-shrink: 0;
    font-size: 15px;
}

.form-notice-danger {
    background: rgba(231, 76, 60, 0.12);
    border-color: rgba(231, 76, 60, 0.38);
    color: #f08f7f;
}

.form-notice-success {
    background: rgba(46, 213, 115, 0.12);
    border-color: rgba(46, 213, 115, 0.35);
    color: #7ce6a9;
}

.form-notice-info {
    background: rgba(255, 178, 91, 0.12);
    border-color: rgba(255, 178, 91, 0.35);
    color: #f4c38a;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-footer {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.form-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--text-accent);
    font-weight: 600;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.checkbox-group a {
    color: var(--text-accent);
    font-weight: 600;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: rgba(192, 57, 43, 0.12);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: #e88;
}

.alert-success {
    background: rgba(67, 160, 71, 0.12);
    border: 1px solid rgba(67, 160, 71, 0.25);
    color: #8e8;
}

.alert-info {
    background: rgba(200, 169, 110, 0.1);
    border: 1px solid rgba(200, 169, 110, 0.2);
    color: var(--text-accent);
}

/* ===== PAYMENT ===== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.payment-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.payment-flash {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.payment-flash i {
    font-size: 18px;
    flex-shrink: 0;
}

.payment-flash--success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.payment-flash--error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.payment-flash--info {
    background: rgba(255, 178, 91, 0.1);
    border-color: rgba(255, 178, 91, 0.25);
    color: var(--text-accent);
}

.payment-card-code {
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-card-code:hover {
    transform: none;
    border-color: var(--border-light);
    box-shadow: none;
}

.code-form {
    width: 100%;
    margin-top: 16px;
}

.code-input-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.code-input-row .form-control {
    flex: 1;
    text-align: center;
    letter-spacing: 0.15em;
    font-family: monospace;
    font-size: 14px;
}

.payment-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}

.payment-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.payment-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--text-accent);
}

.payment-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.payment-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.payment-packages-section {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
}

.payment-packages-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.payment-packages-head h3 {
    margin: 0;
    color: var(--text-white);
    font-size: 20px;
}

.payment-packages-head span {
    color: var(--text-muted);
    font-size: 13px;
}

.payment-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.payment-package-card {
    background: linear-gradient(160deg, rgba(255, 178, 91, 0.08) 0%, rgba(16, 10, 7, 0.92) 64%);
    border: 1px solid rgba(255, 178, 91, 0.22);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payment-package-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-package-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 178, 91, 0.14);
    border: 1px solid rgba(255, 178, 91, 0.34);
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.payment-package-card h4 {
    margin: 0;
    color: var(--text-white);
    font-size: 16px;
}

.payment-package-sm {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.payment-package-price {
    color: var(--text-accent);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.payment-package-form {
    margin-top: auto;
}

/* ===== USER PANEL ===== */
.user-panel {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.user-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
}

.user-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.1);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 32px;
    color: var(--text-accent);
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.user-coins {
    font-size: 13px;
    color: var(--text-accent);
}

.user-coins i {
    margin-right: 4px;
}

.user-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.user-menu a:hover,
.user-menu a.active {
    color: var(--text-accent);
    background: rgba(200, 169, 110, 0.08);
}

.user-menu a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.user-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
}

.user-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(200, 169, 110, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 280px;
    padding: 20px;
    display: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: visible;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 239, 214, 0.05);
    pointer-events: none;
}

.dropdown-menu-login {
    min-width: 300px;
    padding: 18px;
    border-radius: 10px;
    background: linear-gradient(170deg, rgba(19, 22, 27, 0.98) 0%, rgba(10, 12, 16, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.login-compact-form {
    margin: 0;
}

.compact-field {
    margin-bottom: 10px;
}

.login-inline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.compact-pin-field {
    margin-bottom: 0;
}

.login-submit-btn {
    min-height: 42px;
    width: 100%;
}

.login-remember-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.login-remember-row input {
    width: 15px;
    height: 15px;
    accent-color: var(--green);
}

.dropdown-panel-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.dropdown-panel-kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 178, 91, 0.1);
    border: 1px solid rgba(255, 178, 91, 0.18);
    color: var(--text-accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dropdown-panel-head strong {
    color: var(--text-white);
    font-size: 22px;
    line-height: 1.2;
}

.dropdown-panel-head p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.dropdown-menu-login .dropdown-panel-head,
.dropdown-menu-login .dropdown-panel-kicker {
    display: none;
}

.dropdown:focus-within .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-menu .form-group {
    margin-bottom: 12px;
}

.dropdown-menu .form-control {
    padding: 11px 14px 11px 38px;
    font-size: 13px;
    border-color: rgba(255, 178, 91, 0.18);
    background: rgba(11, 8, 6, 0.92);
}

.dropdown-menu .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 178, 91, 0.14);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-links a {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color var(--transition);
}

.dropdown-links a:hover {
    color: var(--text-accent);
}

.dropdown-register-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.dropdown-register-btn {
    margin-top: 14px;
    min-height: 40px;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.dropdown-menu-login .dropdown-register-btn {
    margin-top: 10px;
}

.dropdown-register-hint span {
    color: var(--text-muted);
    font-size: 12px;
}

.dropdown-register-hint a {
    color: var(--text-accent);
    font-size: 13px;
    font-weight: 700;
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
}

.user-dropdown-header .info .name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.dropdown-user-subtitle {
    margin-top: 4px;
    color: var(--text-secondary);
    font-size: 12px;
}

.coins-badge {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-accent);
    background: linear-gradient(135deg, rgba(255, 178, 91, 0.16) 0%, rgba(255, 178, 91, 0.05) 100%);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 178, 91, 0.2);
    min-width: 86px;
    text-align: center;
}

.dropdown-menu-account {
    min-width: 390px;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 178, 91, 0.12), transparent 44%),
        linear-gradient(165deg, rgba(29, 18, 12, 0.98) 0%, rgba(14, 9, 6, 0.98) 100%);
    border-color: rgba(255, 178, 91, 0.25);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(4px);
}

.dropdown-links-rich {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-link-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 12px;
    border-radius: 14px;
    transition: all var(--transition);
    border: 1px solid rgba(255, 178, 91, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

.dropdown-link-item:hover {
    background: rgba(255, 178, 91, 0.085);
    border-color: rgba(255, 178, 91, 0.22);
    transform: translateX(2px);
}

.dropdown-link-item i {
    font-size: 16px;
    color: #d8bf98;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 178, 91, 0.08);
    border: 1px solid rgba(255, 178, 91, 0.16);
}

.dropdown-link-item div strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
}

.dropdown-link-item div span {
    display: block;
    font-size: 12px;
    color: #b79d77;
    margin-top: 3px;
    line-height: 1.4;
}

.dropdown-link-highlight {
    background: linear-gradient(135deg, rgba(255, 178, 91, 0.16) 0%, rgba(255, 178, 91, 0.06) 100%);
    border: 1px solid rgba(255, 178, 91, 0.3);
    border-radius: 14px;
    margin-bottom: 2px;
}

.dropdown-link-highlight i {
    color: var(--text-accent);
    background: rgba(200, 169, 110, 0.14);
    border-color: rgba(255, 178, 91, 0.32);
}

.dropdown-link-admin i {
    color: #7fb3ff;
    background: rgba(51, 111, 214, 0.12);
}

.dropdown-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #c8b08a;
    padding: 12px 12px;
    border-radius: 14px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.dropdown-logout:hover {
    color: var(--text-white);
    background: rgba(255, 178, 91, 0.07);
    border-color: rgba(255, 178, 91, 0.16);
}

.user-dropdown-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
    padding: 10px 10px 14px;
    border: 1px solid rgba(255, 178, 91, 0.14);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 178, 91, 0.08) 0%, rgba(255, 178, 91, 0.02) 100%);
}

.user-dropdown-header .info .name {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #f6ead7;
}

.dropdown-user-subtitle {
    margin-top: 8px;
    color: #bca281;
    font-size: 13px;
}

.coins-badge {
    font-size: 26px;
    font-weight: 800;
    color: #ffd99f;
    background: linear-gradient(135deg, rgba(255, 178, 91, 0.28) 0%, rgba(255, 178, 91, 0.12) 100%);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 178, 91, 0.35);
    min-width: 110px;
    text-align: center;
}

.coins-badge i {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 6px;
}

/* ===== ACCOUNT INFO GRID ===== */
.account-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.account-info-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.account-info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.account-info-value {
    font-size: 14px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-info-value i {
    color: var(--text-muted);
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.account-info-coins {
    color: var(--text-accent);
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 11px;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(255, 178, 91, 0.12);
    padding: 0 40px;
    background:
        radial-gradient(circle at top, rgba(182, 53, 29, 0.14) 0%, rgba(182, 53, 29, 0) 26%),
        linear-gradient(180deg, rgba(11, 5, 4, 0.98) 0%, rgba(7, 3, 2, 1) 100%);
}

.footer-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 18px 0 14px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px 28px;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links-title,
.footer-social-title {
    display: block;
    margin-bottom: 7px;
    color: rgba(214, 184, 143, 0.56);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.footer-nav a {
    font-size: 12px;
    font-weight: 600;
    color: rgba(212, 186, 148, 0.56);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid rgba(216, 156, 47, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.footer-nav a:hover {
    color: rgba(244, 225, 194, 0.92);
    border-color: rgba(216, 156, 47, 0.22);
    background: rgba(182, 53, 29, 0.08);
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(26, 14, 10, 0.92) 0%, rgba(14, 8, 6, 0.96) 100%);
    border: 1px solid rgba(216, 156, 47, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(186, 160, 122, 0.52);
    font-size: 14px;
    transition: all var(--transition);
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 239, 214, 0.03);
}

.footer-social a:hover {
    color: var(--text-accent);
    background: linear-gradient(180deg, rgba(46, 22, 14, 0.96) 0%, rgba(20, 10, 6, 0.98) 100%);
    border-color: rgba(216, 156, 47, 0.26);
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 14px 0 0;
    display: block;
}

.footer-copy {
    font-size: 12px;
    color: rgba(148, 125, 95, 0.42);
}

.footer-meta {
    color: rgba(130, 109, 83, 0.38);
    font-size: 12px;
    display: none;
}

/* ===== DOWNLOAD PAGE ===== */
.download-page-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-page-content h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
}

.download-page-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.download-requirements {
    background: rgba(200, 169, 110, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 25px;
    text-align: left;
    margin-top: 30px;
}

.download-requirements h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 16px;
}

.download-requirements ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-requirements li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.download-requirements li i {
    color: var(--green);
    font-size: 14px;
    width: 20px;
    text-align: center;
}

/* ===== ANIMATIONS ===== */
    background: linear-gradient(180deg, rgba(8, 6, 4, 0.98) 0%, rgba(13, 10, 8, 1) 100%);
    border-top: 1px solid rgba(200, 169, 110, 0.12);
    padding: 60px 40px 34px;

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    from { opacity: 0; transform: translateY(20px); }
    gap: 28px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    gap: 18px;
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-accent { color: var(--text-accent); }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

    height: 52px;
.info-table-wrapper {
    overflow-x: auto;
    opacity: 0.9;
}

.info-table {
    width: 100%;
    gap: 18px;
}

.info-table tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

    justify-content: flex-end;
.info-table tr:last-child {
    border-bottom: none;
}

.info-table tr:hover {
    background: rgba(200, 169, 110, 0.03);
}
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 180px;
        max-width: 420px;
}

/* ===== CHARACTER CARDS ===== */
.characters-grid {
    display: flex;
    .hero-content { padding: 20px; min-height: auto; }
    .hero-logo img { max-width: 320px; }
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(200, 169, 110, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.character-card:hover {
    border-color: var(--border-light);
    background: rgba(200, 169, 110, 0.06);
}

.char-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.08);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.char-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.char-info {
    flex: 1;
    min-width: 0;
}

.char-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 4px;
}

.char-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.char-details span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.char-details i {
    color: var(--text-accent);
    font-size: 11px;
}

.char-actions {
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* ===== SETTINGS TABS ===== */
.settings-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.settings-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
}

.settings-tab:hover {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.settings-tab.active {
    color: #1a1408;
    background: linear-gradient(135deg, var(--accent) 0%, #a8894e 100%);
    border-color: var(--accent);
}

.settings-section {
    padding: 24px;
    background: rgba(200, 169, 110, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.settings-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ===== RANKING NAV ===== */
.ranking-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.ranking-nav .btn {
    flex: 1;
    text-align: center;
}

.ranking-content {
    overflow-x: auto;
    border: 1px solid rgba(255, 178, 91, 0.16);
    border-radius: 12px;
    background: rgba(8, 6, 4, 0.56);
    padding: 8px 12px 12px;
}

.ranking-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.ranking-content table th,
.ranking-content table td {
    padding: 12px 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 178, 91, 0.1);
    color: var(--text-primary);
    vertical-align: middle;
}

.ranking-content table th {
    color: #ca985f;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 13px 12px;
    background: rgba(255, 178, 91, 0.07);
}

.ranking-content table tr:hover td {
    background: rgba(255, 178, 91, 0.06);
}

.ranking-content table .id {
    width: 52px;
    color: #d9ab72;
    font-weight: 700;
    text-align: center;
}

.ranking-content table .nick {
    font-weight: 600;
}

.ranking-content table .level,
.ranking-content table .time,
.ranking-content table .job {
    text-align: center;
}

.ranking-content table .empire-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ranking-content table .rank-row.top-1 td {
    background: linear-gradient(90deg, rgba(255, 215, 127, 0.14), rgba(255, 215, 127, 0.03));
}

.ranking-content table .rank-row.top-2 td {
    background: linear-gradient(90deg, rgba(211, 221, 240, 0.12), rgba(211, 221, 240, 0.03));
}

.ranking-content table .rank-row.top-3 td {
    background: linear-gradient(90deg, rgba(224, 164, 122, 0.12), rgba(224, 164, 122, 0.03));
}

.ranking-content .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 178, 91, 0.16);
}

.ranking-content .pagination a {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #d9b17e;
    border: 1px solid rgba(255, 178, 91, 0.22);
    border-radius: 999px;
    background: rgba(255, 178, 91, 0.07);
    transition: all var(--transition);
}

.ranking-content .pagination a:hover {
    color: #fff3df;
    border-color: rgba(255, 178, 91, 0.46);
    background: rgba(255, 178, 91, 0.2);
}

/* ===== VIP PACKAGES ===== */
.vip-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.vip-box {
    background: rgba(200, 169, 110, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.vip-box-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-accent);
    background: rgba(200, 169, 110, 0.06);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-box-content {
    padding: 16px 20px;
}

.vip-box-content .oferts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.vip-box-content .oferts:last-child {
    border-bottom: none;
}

.vip-box-content .oferts .day {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.vip-box-content .oferts .button-buy .btn {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #a8894e 100%);
    color: #1a1408;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}

.vip-box-content .oferts .button-buy .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 169, 110, 0.25);
}

/* ===== ITEMSHOP ===== */
.itemshop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.itemshop-items {
    overflow-x: auto;
}

.itemshop-items table {
    width: 100%;
    border-collapse: collapse;
}

.itemshop-items table td {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.itemshop-items table tr:hover td {
    background: rgba(200, 169, 110, 0.03);
}

.itemshop-items .btn2 {
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, #a8894e 100%);
    color: #1a1408;
    border-radius: var(--radius-xs);
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}

.itemshop-items .btn2:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 169, 110, 0.25);
}

.itemshop-items img {
    max-width: 40px;
    max-height: 40px;
}

/* ===== PREZENTACJA ===== */
.prezentacja-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.prezentacja-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.btn-full {
    width: 100%;
}

/* ===== MOBILE MENU ===== */
.nav-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    transition: color var(--transition);
}

.nav-mobile-toggle:hover {
    color: var(--text-accent);
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    z-index: 999;
}

.nav-mobile-menu.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.nav-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-mobile-menu a:hover {
    color: var(--text-accent);
    background: rgba(200, 169, 110, 0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }

    .account-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main { grid-template-columns: 1fr; gap: 16px; }
    .footer-links-block, .footer-social-block { text-align: center; }
    .footer-nav { flex-wrap: wrap; overflow-x: visible; }
    .footer-nav { justify-content: center; }
    .footer-social { justify-content: center; }

    .hero-logo-img { width: min(780px, 90vw); max-height: 220px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .nav-mobile-toggle { display: flex; }


    .hero {
        min-height: auto;
        padding: 20px 0;
    }

    .hero-content { padding: 20px; min-height: auto; }
    .hero-logo-img { width: min(560px, 88vw); max-height: 150px; }
    .hero-kicker { font-size: 10px; letter-spacing: 0.1em; }
    .hero-copy p { font-size: 15px; }
    .social-icon { width: 48px; height: 48px; font-size: 20px; }

    .main-content { padding: 30px 16px 60px; }
    .content-card-body { padding: 24px 20px; }
    .content-card-header { padding: 20px 20px 14px; }
    .page-wrapper { padding: 30px 16px; }
    .page-card-body { padding: 24px 20px; }
    .page-card-header { padding: 24px 20px 16px; }

    .footer { padding: 0 20px; }
    .footer-main { grid-template-columns: 1fr; gap: 16px; }
    .footer-links-block, .footer-social-block { text-align: center; }
    .footer-nav { justify-content: center; gap: 10px; }
    .footer-social { justify-content: center; }
    .footer-bottom { text-align: center; }
    .auth-grid, .auth-highlight-box { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .payment-grid-2 { grid-template-columns: 1fr; }
    .payment-packages-head { flex-direction: column; align-items: flex-start; }
    .payment-packages-head h3 { font-size: 18px; }
    .payment-packages-grid { grid-template-columns: 1fr; }
    .account-info-grid { grid-template-columns: 1fr; }
    .dropdown-menu-account { min-width: min(340px, calc(100vw - 32px)); right: -6px; }
    .dropdown-menu-login { min-width: min(340px, calc(100vw - 32px)); }

    .character-card {
        flex-direction: column;
        text-align: center;
    }
    .char-details { justify-content: center; }
    .settings-tabs { flex-direction: column; }
    .ranking-nav { flex-direction: column; }
    .vip-packages { grid-template-columns: 1fr; }
    .info-table .info-label { width: auto; }
}

/* ===== RANKING NICK LINK ===== */
.ranking-nick-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}
.ranking-nick-link:hover {
    color: var(--text-white);
    text-decoration: underline;
}

/* ===== CHARACTER PROFILE ===== */
.char-profile-card {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid rgba(255, 176, 91, 0.25);
    background:
        radial-gradient(circle at 85% 10%, rgba(255, 176, 91, 0.14), transparent 48%),
        linear-gradient(150deg, rgba(22, 11, 6, 0.94) 0%, rgba(10, 6, 4, 0.96) 100%);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.44);
}
.char-profile-header {
    padding: 34px 32px 14px;
    text-align: center;
}
.char-profile-name {
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 800;
    color: #ffd08a;
    letter-spacing: 0.07em;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(255, 176, 91, 0.3);
}
.char-profile-body {
    padding: 16px 32px 34px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.char-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(200,169,110,0.05);
    border: 1px solid rgba(255, 176, 91, 0.2);
    border-radius: 14px;
    padding: 18px;
}
.char-info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.char-info-box {
    border: 1px solid rgba(255, 176, 91, 0.18);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    background: rgba(14, 9, 7, 0.56);
}
.char-name-box {
    border-style: solid;
    padding: 18px 16px;
}
.char-info-box-label {
    font-size: 11px;
    color: #d6a96c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.char-info-box-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.char-info-box-sub {
    font-size: 14px;
    color: #ffbe73;
    margin-top: 4px;
}
.char-empire-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}
.char-empire-flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.char-empire-pill.empire-1 {
    border-color: rgba(218, 78, 78, 0.55);
    background: rgba(218, 78, 78, 0.15);
}
.char-empire-pill.empire-2 {
    border-color: rgba(242, 198, 84, 0.55);
    background: rgba(242, 198, 84, 0.16);
}
.char-empire-pill.empire-3 {
    border-color: rgba(96, 143, 235, 0.55);
    background: rgba(96, 143, 235, 0.16);
}
.char-section-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffd08a;
    margin: 0 0 10px;
    text-align: center;
    letter-spacing: 0.02em;
}
.char-section {
    border: 1px solid rgba(255, 176, 91, 0.2);
    border-radius: 14px;
    padding: 16px 18px;
    background: rgba(10, 7, 5, 0.48);
}
.char-section-divider {
    height: 1px;
    background: rgba(255, 176, 91, 0.2);
    margin: 0;
}
.char-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    font-size: 15px;
}
.char-detail-label {
    color: #ffc47c;
    min-width: 160px;
    font-weight: 600;
}
.char-detail-value {
    color: #f6efe6;
    text-align: right;
}
.char-guild-name {
    color: #ff9e5c;
}
.char-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.char-stat-box {
    background: linear-gradient(180deg, rgba(255, 176, 91, 0.16), rgba(255, 176, 91, 0.05));
    border: 1px solid rgba(255, 176, 91, 0.3);
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
}
.char-stat-label {
    font-size: 12px;
    color: #ffd3a0;
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.char-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #fff4df;
}
.char-not-found {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
}
@media (max-width: 600px) {
    .char-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .char-info-row { grid-template-columns: 1fr; }
    .char-profile-header { padding: 26px 16px 10px; }
    .char-profile-body { padding: 14px 16px 24px; }
    .char-section-title { font-size: 22px; }
    .char-detail-row { flex-direction: column; align-items: flex-start; }
    .char-detail-label { min-width: 0; }
    .char-detail-value { text-align: left; }
}
