* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #c9a961;
    --accent-gold: #d4af37;
    --dark-bg: rgba(12, 10, 8, 0.96);
    --card-bg: rgba(20, 16, 12, 0.92);
    --border-color: #4a3f2f;
    --text-primary: #e8dcc4;
    --text-secondary: #b8a589;
    --shadow-dark: rgba(0, 0, 0, 0.8);
}

body {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    background: #050505 url('../img/backgro.jpg') center top no-repeat fixed;
    background-size: cover;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.site-header {
    position: relative;
    margin-bottom: 30px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 16px;
}

.user-avatar-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.dragon-icon {
    position: absolute;
    top: -9px;
    left: 34%;
    transform: translateX(-50%);
    width: 75px;
    height: auto;
    z-index: 2;
    pointer-events: none;
}

.header-main {
    background: #0000005e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-dark), inset 0 1px 0 rgba(201, 169, 97, 0.2);
    backdrop-filter: blur(10px);
}

.header-banner {
    padding: 35px 40px;
    text-align: center;
    background: linear-gradient(180deg, rgba(30, 24, 18, 0.6), transparent),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(201,169,97,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    border-bottom: 1px solid var(--border-color);
}

.server-logo {
    font-family: 'Cinzel', serif;
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    color: var(--accent-gold);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.3);
    letter-spacing: clamp(3px, 1vw, 6px);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.server-logo::before,
.server-logo::after {
    content: '⚔';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: var(--primary-gold);
    opacity: 0.6;
}

.server-logo::before {
    left: -60px;
}

.server-logo::after {
    right: -60px;
}

.server-tagline {
    font-size: 17px;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 3px;
    font-weight: 500;
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
    flex-wrap: wrap;
}

.user-avatar {
    width: 40px;
    height: 40px;
    margin-top: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1410;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-dark);
}

.user-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(30, 24, 18, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
}

.stat-value {
    color: var(--accent-gold);
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 10px 22px;
    background: linear-gradient(135deg, rgba(30, 24, 18, 0.9), rgba(20, 16, 12, 0.9));
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Navigation */
.main-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    background: rgba(15, 12, 9, 0.9);
    backdrop-filter: blur(5px);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    border-right: 1px solid rgba(74, 63, 47, 0.5);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:last-child {
    border-right: none;
}

.nav-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(25, 20, 15, 0.8);
    color: var(--accent-gold);
}

.nav-link:hover .nav-icon {
    transform: translateY(-3px);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
}

/* Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
    margin-bottom: 30px;
}

/* Widget Styles */
.widget {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 25px var(--shadow-dark);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

.widget-header {
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(30, 24, 18, 0.8), rgba(20, 16, 12, 0.8));
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.widget-title {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.widget-body {
    padding: 18px;
    position: relative;
    z-index: 5;
}

/* Status Widget */
.status-grid {
    display: grid;
    gap: 12px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: rgba(30, 24, 18, 0.4);
    border: 1px solid rgba(74, 63, 47, 0.3);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.status-row:hover {
    background: rgba(40, 32, 24, 0.5);
    border-color: var(--border-color);
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 16px;
}

.status-value {
    color: var(--accent-gold);
    font-weight: 700;
}

.status-link {
    color: inherit;
    text-decoration: none;
}

.status-link:hover {
    color: var(--accent-gold);
}

.status-online {
    color: #6abf69 !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #6abf69;
    border-radius: 50%;
    box-shadow: 0 0 10px #6abf69;
    animation: pulse 2s ease-in-out infinite;
}

.rank-player-link {
    color: inherit;
    text-decoration: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Menu List */
.menu-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(30, 24, 18, 0.3);
    border: 1px solid rgba(74, 63, 47, 0.3);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-item a:hover {
    background: rgba(40, 32, 24, 0.5);
    border-color: var(--border-color);
    color: var(--accent-gold);
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Rankings */
.rank-list {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 24, 18, 0.4);
    border: 1px solid rgba(74, 63, 47, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: rgba(40, 32, 24, 0.5);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.rank-position {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-gold);
    text-align: center;
}

.rank-player {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.rank-level {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(212, 175, 55, 0.1));
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 12px;
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
    white-space: nowrap;
}

/* Main Content */
.main-panel {
    min-height: auto;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 20px;
    padding: 18px 25px;
    background: linear-gradient(135deg, rgba(30, 24, 18, 0.8), rgba(20, 16, 12, 0.8));
    border-bottom: 1px solid var(--border-color);
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
}

.panel-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

.panel-body {
    padding: 30px;
}

/* News Articles */
.article {
    background: rgba(35, 28, 21, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.article:hover {
    background: rgba(30, 24, 18, 0.671);
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(74, 63, 47, 0.5);
    gap: 15px;
    flex-wrap: wrap;
}

.article-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

.article-date {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

.article-content {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 20px;
}

/* Footer */
.site-footer {
    background: linear-gradient(145deg, var(--card-bg), #111);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow-dark);
    backdrop-filter: blur(6px);
    margin-top: 40px;
}

.footer-content {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 10px;
}

.footer-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-link:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-link:hover::after {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid;
}

.alert-success {
    background: rgba(106, 191, 105, 0.1);
    border-color: rgba(106, 191, 105, 0.4);
    color: #8cd68b;
}

.alert-error {
    background: rgba(220, 90, 85, 0.1);
    border-color: rgba(220, 90, 85, 0.4);
    color: #e89693;
}

.alert-info {
    font-size: 20px;
    background: rgba(30, 24, 18, 0.671);
    border-color: rgba(201, 169, 97, 0.4);
    color: var(--primary-gold);
}

/* ===== RESPONSIVE ===== */

/* Tablets */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 260px 1fr;
    }

    .content-grid>aside:last-child {
        display: none;
    }
}

/* Tablets Small */
@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-grid>aside {
        order: 2;
    }

    .content-grid>main {
        order: 1;
    }

    .content-grid>aside:last-child {
        display: block;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .page-container {
        padding: 20px 15px;
    }

    .header-banner {
        padding: 25px 20px;
    }

    .server-logo::before,
    .server-logo::after {
        display: none;
    }

    .info-bar {
        flex-direction: column;
        padding: 15px 20px;
    }

    .user-stats {
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
    }

    .widget {
        margin-bottom: 20px;
    }

    .widget-body {
        padding: 15px;
    }

    .status-grid {
        gap: 8px;
    }

    .status-row {
        padding: 8px 10px;
        font-size: 13px;
    }

    .rank-item {
        padding: 10px;
        gap: 10px;
    }

    .rank-position {
        font-size: 14px;
    }

    .rank-player {
        font-size: 15px;
    }

    .rank-level {
        font-size: 10px;
        padding: 3px 8px;
    }

    .site-footer {
        padding: 20px 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .panel-body {
        padding: 0px 15px;
    }

    .article {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .user-welcome {
        font-size: 13px;
        flex-direction: column;
        text-align: center;
    }

    .user-stats {
        flex-direction: column;
    }

    .stat-item {
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 12px 8px;
        font-size: 11px;
    }

    .nav-icon {
        font-size: 18px;
    }

    .menu-item a {
        font-size: 13px;
        padding: 10px 12px;
    }

    .article-content {
        font-size: 16px;
    }
}