*{
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #eef2ff;
    background:
        linear-gradient(rgba(4, 8, 18, 0.68), rgba(4, 8, 18, 0.86)),
        url('/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.page-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top center, rgba(255, 195, 90, 0.10), transparent 28%),
        radial-gradient(circle at bottom left, rgba(70, 110, 255, 0.07), transparent 25%);
    z-index: 0;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(5, 9, 18, 0.55);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 215, 140, 0.08);
}

.topbar-inner {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 18px;
}

.brand {
    text-decoration: none;
    color: #ffcf70;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow:
        0 0 12px rgba(255, 190, 70, 0.32),
        0 0 30px rgba(255, 140, 0, 0.16);
}

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(38, 28, 20, 0.84), rgba(18, 14, 14, 0.84));
    border: 1px solid rgba(255, 208, 125, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 10px 25px rgba(0,0,0,0.28);
}

.main-nav a {
    position: relative;
    text-decoration: none;
    color: #f3e7cf;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    transition: all 0.18s ease;
}

.main-nav a:hover {
    color: #ffd27a;
    background: rgba(255, 210, 122, 0.06);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 8px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffcb66, #fff0ba);
    transform: scaleX(0);
    transition: transform 0.18s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-name {
    color: #d8deed;
    font-weight: 600;
    white-space: nowrap;
}

.nav-btn {
    text-decoration: none;
    color: #fff3d4;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 12px;
    background: linear-gradient(180deg, #2f3554, #1d223c);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
}

.nav-btn:hover {
    color: #ffcf70;
}

.hero {
    text-align: center;
    padding: 70px 0 34px;
}

.hero-title {
    margin: 0 0 12px;
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffcf70;
    text-transform: uppercase;
    text-shadow:
        0 0 18px rgba(255, 200, 80, 0.35),
        0 0 50px rgba(255, 140, 0, 0.18);
}

.hero-subtitle {
    margin: 0 0 16px;
    font-size: 20px;
    color: #f3efe4;
}

.hero-text {
    margin: 0 auto 26px;
    max-width: 760px;
    color: #c5cee2;
    font-size: 18px;
    line-height: 1.55;
}

.cta-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #16110a;
    background: linear-gradient(180deg, #ffd56e, #e7a82d);
    box-shadow: 0 10px 24px rgba(255, 175, 50, 0.22);
}

.btn-secondary {
    color: #f5f7ff;
    background: linear-gradient(180deg, #242b44, #161c33);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.section {
    margin: 34px 0;
}

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

.card {
    background: rgba(10, 16, 30, 0.84);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.28);
    backdrop-filter: blur(5px);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    color: #fff4d7;
}

.card p {
    margin: 0;
    color: #d3d9e8;
    line-height: 1.6;
}

.stat-number {
    font-size: 54px;
    font-weight: 900;
    color: #ffcf70;
    text-shadow: 0 0 12px rgba(255, 190, 70, 0.16);
}

.rates-card h3 {
    margin-bottom: 18px;
    font-size: 34px;
    color: #ffcf70;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.rate-item span {
    color: #d8dfef;
    font-size: 18px;
    font-weight: 700;
}

.rate-item b {
    color: #ffcf70;
    font-size: 18px;
    font-weight: 900;
}

.footer {
    margin-top: 40px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(5, 9, 18, 0.38);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    color: #aeb7cb;
    font-size: 14px;
}

@media (max-width: 980px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .brand,
    .topbar-right {
        justify-self: center;
    }

    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 700px) {
    .rates-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
/* LOGIN */
.auth-section {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: rgba(10, 16, 30, 0.88);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.32);
    backdrop-filter: blur(6px);
}

.auth-title {
    margin: 0 0 10px;
    font-size: 42px;
    text-align: center;
    color: #ffcf70;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow:
        0 0 16px rgba(255, 190, 70, 0.24),
        0 0 40px rgba(255, 140, 0, 0.12);
}

.auth-subtitle {
    margin: 0 0 28px;
    text-align: center;
    color: #c5cee2;
    line-height: 1.6;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 700;
    color: #f2e7cf;
}

.input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #eef2ff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.input:focus {
    border-color: rgba(255, 206, 112, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 206, 112, 0.10);
    background: rgba(255,255,255,0.05);
}

.btn-block {
    width: 100%;
    text-align: center;
    border: 0;
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 206, 112, 0.08);
    border: 1px solid rgba(255, 206, 112, 0.15);
    color: #ffe4a3;
}


/* DONATE PANEL */

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.select {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #eef2ff;
    font-size: 15px;
    outline: none;
    transition: all 0.18s ease;
}

.select:focus {
    border-color: rgba(255, 206, 112, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 206, 112, 0.10);
    background: rgba(255,255,255,0.05);
}

.form-grid label {
    font-size: 14px;
    font-weight: 700;
    color: #f2e7cf;
    margin-bottom: 6px;
    display: block;
}

.form-grid > div {
    display: flex;
    flex-direction: column;
}

/* BUTTON UPGRADE */
.donate-submit {
    margin-top: 22px;
    width: 100%;
    height: 56px;
    font-size: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffd56e, #d89a22);
    color: #1a1408;
    border: 1px solid rgba(255, 220, 120, 0.4);
    font-weight: 900;
    letter-spacing: 0.5px;
    box-shadow: 0 12px 28px rgba(255, 175, 50, 0.25);
    transition: all 0.2s ease;
}

.donate-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(255, 175, 50, 0.35);
    background: linear-gradient(180deg, #ffe08a, #e0a62f);
}

.donate-submit:active {
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
  

.footer {
    margin-top: 40px;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(5, 9, 18, 0.38);
}

.footer-inner {
    min-height: 0;
    padding: 0;
}


.footer {
    display: none;
}
 
/* ONLINE LEFT PANEL */

.online-box {
    max-width: 260px;
    background: rgba(10, 16, 30, 0.85);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.online-box h3 {
    margin: 0 0 10px;
    color: #fff4d7;
    font-size: 18px;
}

.online-box .stat-number {
    font-size: 42px;
}

/* STATUS SIDEBAR */

.status-sidebar {
    position: fixed;
    left: 20px;
    top: 160px;
    width: 240px;
    z-index: 50;
}

.status-card {
    background: linear-gradient(180deg, rgba(12,18,34,0.95), rgba(8,12,24,0.95));
    border: 1px solid rgba(255, 200, 100, 0.15);
    border-radius: 18px;
    padding: 20px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(255, 180, 60, 0.05);
    position: relative;
}

.status-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(255,200,100,0.15), transparent 60%);
    pointer-events: none;
}

.status-card h3 {
    margin: 0 0 18px;
    font-size: 18px;
    text-align: center;
    color: #ffcf70;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ITEMS */
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
}

.status-item span {
    color: #d8dfef;
    font-weight: 600;
}

.status-item b {
    font-weight: 800;
}

/* STATUS COLORS */
.status-on {
    color: #4cff9a;
    text-shadow: 0 0 8px rgba(80,255,160,0.4);
}

.status-off {
    color: #ff5c5c;
    text-shadow: 0 0 8px rgba(255,80,80,0.4);
}

/* ONLINE */
.status-item.online b {
    color: #ffcf70;
    font-size: 18px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .status-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }
}

.wrap {
    position: relative;
}


/* RIGHT VOTE SIDEBAR */

.vote-sidebar {
    position: fixed;
    right: 0;
    top: 230px;
    width: 210px;
    z-index: 50;
}

.vote-card {
    background: linear-gradient(180deg, rgba(12,18,34,0.95), rgba(8,12,24,0.95));
    border: 1px solid rgba(255, 200, 100, 0.15);
    border-radius: 18px;
    padding: 14px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 20px rgba(255, 180, 60, 0.05);
}

.vote-card h3 {
    margin: 0 0 14px;
    font-size: 16px;
    text-align: center;
    color: #ffcf70;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vote-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.18s ease;
}

.vote-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 206, 112, 0.28);
    background: rgba(255, 206, 112, 0.05);
}

.vote-item img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    display: block;
}

.vote-item span {
    color: #f2e7cf;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .vote-sidebar {
        position: static;
        width: 100%;
        margin: 0 0 20px;
    }

    .vote-card {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}


/* HERO PAGE */

.hero-row {
    background: rgba(255, 200, 80, 0.03);
    transition: all 0.2s ease;
}

.hero-row:hover {
    background: rgba(255, 200, 80, 0.08);
    box-shadow: inset 0 0 20px rgba(255, 200, 80, 0.08);
}

.hero-row td {
    border-bottom: 1px solid rgba(255, 200, 80, 0.08);
}

.hero-name {
    font-weight: 800;
    color: #ffcf70;
    text-shadow: 0 0 10px rgba(255, 190, 70, 0.25);
}

.hero-crown {
    display: inline-block;
    margin-right: 8px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 100, 0.35));
}

.hero-class {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f2e7cf;
    font-weight: 600;
}

.hero-class-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 206, 112, 0.08);
    border: 1px solid rgba(255, 206, 112, 0.14);
    box-shadow: inset 0 0 10px rgba(255, 206, 112, 0.06);
}
 
/* SERVER DESCRIPTION */

.server-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.server-description h2 {
    margin: 0 0 14px;
    font-size: 34px;
    color: #ffcf70;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow:
        0 0 12px rgba(255, 190, 70, 0.25),
        0 0 30px rgba(255, 140, 0, 0.15);
}

.server-description p {
    margin: 0 0 12px;
    color: #cfd6e6;
    font-size: 17px;
    line-height: 1.6;
}

/* =========================
   MOBILE / TABLET FIXES
   ========================= */

@media (max-width: 1200px) {
    .status-sidebar,
    .vote-sidebar {
        position: static;
        width: 100%;
        max-width: 420px;
        margin: 0 auto 20px;
    }

    .status-card,
    .vote-card {
        margin: 0 auto;
    }

    .server-description,
    .rates-card,
    .download-card {
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .wrap {
        width: min(100%, calc(100% - 24px));
    }

    .topbar {
        padding: 14px 0;
    }

    .topbar-inner {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .brand,
    .topbar-right {
        justify-self: center;
    }

    .main-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px;
    }

    .main-nav a {
        padding: 10px 14px;
        font-size: 15px;
    }

    .topbar-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .account-name {
        width: 100%;
        text-align: center;
    }

    .server-description {
        padding: 24px 18px;
    }

    .server-description h2 {
        font-size: 28px;
    }

    .server-description p {
        font-size: 15px;
    }

    .rates-card h3,
    .download-title,
    .auth-title {
        font-size: 30px;
    }

    .rates-grid,
    .download-grid,
    .form-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .card,
    .auth-card {
        padding: 20px;
        border-radius: 18px;
    }

    .rate-item {
        padding: 16px 14px;
    }

    .rate-item span,
    .rate-item b {
        font-size: 16px;
    }

    .vote-item {
        padding: 10px;
    }

    .vote-item img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 700px) {
    .brand {
        font-size: 28px;
    }

    .main-nav {
        border-radius: 14px;
    }

    .main-nav a {
        width: calc(50% - 8px);
        text-align: center;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .server-description h2,
    .rates-card h3 {
        font-size: 26px;
    }

    .status-card h3,
    .vote-card h3 {
        font-size: 15px;
    }

    .status-item,
    .vote-item,
    .download-box {
        border-radius: 12px;
    }

    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .auth-section {
        padding: 30px 0;
    }

    .input,
    .select,
    .donate-submit {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .wrap {
        width: min(100%, calc(100% - 16px));
    }

    .brand {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .main-nav a {
        width: 100%;
    }

    .card,
    .auth-card,
    .status-card,
    .vote-card {
        padding: 16px;
    }

    .server-description h2,
    .download-title,
    .rates-card h3,
    .auth-title {
        font-size: 22px;
    }

    .server-description p,
    .download-subtitle,
    .card p {
        font-size: 14px;
    }

    .rate-item {
        flex-direction: row;
        gap: 10px;
    }

    .hero-class {
        gap: 6px;
    }

    .hero-class-icon {
        width: 24px;
        height: 24px;
    }
}

.ranking-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ranking-switch a {
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #d8dfef;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s ease;
}

.ranking-switch a.active {
    background: linear-gradient(135deg, #ffcf70, #d89a22);
    color: #1a1205;
    font-weight: 800;
}

.ranking-switch a:hover {
    transform: translateY(-2px);
}
 
/* HERO UPGRADE */

.hero-row {
    background: rgba(255, 200, 80, 0.03);
    transition: all 0.25s ease;
}

.hero-row:hover {
    background: rgba(255, 200, 80, 0.1);
    box-shadow: inset 0 0 25px rgba(255, 200, 80, 0.12);
}

/* TOP HERO (FIRST) */
.top-hero {
    background: linear-gradient(
        90deg,
        rgba(255, 215, 100, 0.08),
        rgba(255, 160, 50, 0.05)
    );
    box-shadow:
        inset 0 0 30px rgba(255, 200, 80, 0.2),
        0 0 20px rgba(255, 180, 60, 0.08);
}

/* NAME */
.hero-name {
    font-weight: 900;
    color: #ffcf70;
    text-shadow:
        0 0 12px rgba(255, 190, 70, 0.3),
        0 0 30px rgba(255, 140, 0, 0.15);
}

/* TOP HERO NAME */
.top-hero .hero-name {
    font-size: 18px;
    color: #ffd978;
}

/* CROWN */
.hero-crown {
    margin-right: 8px;
    filter: drop-shadow(0 0 6px rgba(255, 215, 100, 0.4));
}

/* CLASS */
.hero-class {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e8edf8;
}

.hero-class-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 206, 112, 0.08);
    border: 1px solid rgba(255, 206, 112, 0.15);
    box-shadow: inset 0 0 12px rgba(255, 206, 112, 0.08);
}

/* HERO EXTRA */

.hero-class-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 206, 112, 0.08);
    border: 1px solid rgba(255, 206, 112, 0.15);
    box-shadow: inset 0 0 12px rgba(255, 206, 112, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-class-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fallback-icon {
    font-size: 16px;
    color: #ffcf70;
}

.top-hero {
    position: relative;
    animation: heroPulse 2.2s infinite ease-in-out;
}

.top-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: inset 0 0 24px rgba(255, 210, 110, 0.12);
}

@keyframes heroPulse {
    0% {
        box-shadow:
            inset 0 0 26px rgba(255, 200, 80, 0.16),
            0 0 8px rgba(255, 180, 60, 0.05);
    }
    50% {
        box-shadow:
            inset 0 0 38px rgba(255, 200, 80, 0.24),
            0 0 16px rgba(255, 180, 60, 0.12);
    }
    100% {
        box-shadow:
            inset 0 0 26px rgba(255, 200, 80, 0.16),
            0 0 8px rgba(255, 180, 60, 0.05);
    }
}

/* HERO OLYMPIAD POINTS */

.hero-points {
    font-weight: 800;
    color: #ffd978;
    text-align: right;
    text-shadow: 0 0 10px rgba(255, 200, 80, 0.25);
}

.top-hero .hero-points {
    font-size: 18px;
    color: #ffdf85;
}
