/* ==========================================================
   RIDA ROHAN ONLINE - OFFICIAL THEME & DESIGN SYSTEM v3.0
   Fully Professional MMORPG Web Portal
   Preserves all backend logic, form names & functions
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cinzel:wght@600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.45);
    
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #b45309;
    --gold-glow: rgba(245, 158, 11, 0.35);

    --accent: #38bdf8;
    --accent-dark: #0284c7;
    
    --bg-dark: #070a13;
    --bg-surface: #0e1628;
    --bg-card: rgba(14, 22, 40, 0.88);
    --bg-card-hover: rgba(19, 30, 56, 0.94);
    
    --text-main: #f8fafc;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    
    --success: #10b981;
    --danger: #ef4444;
    
    --border-color: rgba(56, 189, 248, 0.16);
    --border-card: rgba(255, 255, 255, 0.06);
    --border-gold: rgba(245, 158, 11, 0.28);
    
    --border-radius-lg: 16px;
    --border-radius-sm: 10px;
    
    --glass-bg: rgba(7, 10, 19, 0.88);
    --glass-blur: blur(20px);
    
    --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.25);
    --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.3);
    
    --container-width: 1320px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

body {
    background: var(--bg-dark);
    color: var(--text-body);
    font-family: 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(2, 132, 199, 0.18), transparent 70%),
        radial-gradient(circle at 10% 30%, rgba(56, 189, 248, 0.04), transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(245, 158, 11, 0.03), transparent 45%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1, h2, h3, h4, .font-fantasy {
    font-family: 'Cinzel', 'Bebas Neue', serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-main);
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

ul { list-style: none; }

.gold-text {
    color: var(--gold-light) !important;
    text-shadow: 0 0 12px var(--gold-glow);
}

/* ========== TOP NAVIGATION ========== */
.top-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 48px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.top-panel::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--gold-light), transparent);
    opacity: 0.7;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-brand-icon {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: transform 0.3s;
}

.brand-link:hover .nav-brand-icon {
    transform: scale(1.08);
}

.nav-brand-text {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu li a {
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    transition: var(--transition);
}

.menu li a i {
    font-size: 13px;
    opacity: 0.8;
}

.menu li a:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.1);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.menu li.active a {
    color: var(--primary-light);
    background: rgba(2, 132, 199, 0.18);
    box-shadow: inset 0 0 0 1px var(--primary-light);
    font-weight: 700;
}

.menu li.discord-nav-item a {
    color: #5865F2;
    background: rgba(88, 101, 242, 0.12);
    box-shadow: inset 0 0 0 1px rgba(88, 101, 242, 0.3);
}

.menu li.discord-nav-item a:hover {
    color: #fff;
    background: #5865F2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.topPanel__buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ========== HEADER / LOGO SHOWCASE ========== */
.header {
    min-height: 400px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.25) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%),
        linear-gradient(180deg, rgba(7, 10, 19, 0.4) 0%, rgba(7, 10, 19, 0.95) 100%),
        url('../images/divine-bg.jpg') no-repeat center top/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 50px;
    overflow: hidden;
}

body:not(.home-page) .header {
    min-height: 290px;
    padding-top: 80px;
    padding-bottom: 30px;
}

.logo {
    position: relative;
    z-index: 5;
    text-align: center;
}

.main-site-logo {
    max-width: 440px;
    width: 90vw;
    height: auto;
    filter: drop-shadow(0 0 45px rgba(56, 189, 248, 0.45)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
    animation: floating 4.5s ease-in-out infinite;
    transition: filter 0.4s;
}

.main-site-logo:hover {
    filter: drop-shadow(0 0 65px rgba(56, 189, 248, 0.7)) drop-shadow(0 0 30px rgba(245, 158, 11, 0.5));
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========== MAIN LAYOUT WRAPPER ========== */
.wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.main-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    margin-top: -30px;
    margin-bottom: 70px;
    position: relative;
    z-index: 10;
}

body.home-page .main-grid {
    margin-top: 0;
}

/* ========== HERO SLIDER ========== */
.hero-slider {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 480px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card), 0 0 40px rgba(2, 132, 199, 0.15);
    margin-top: -60px;
    margin-bottom: 40px;
    position: relative;
    z-index: 15;
}

.hero-slide {
    background-size: cover;
    background-position: center top;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    text-align: left;
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(95deg, rgba(6, 9, 17, 0.95) 0%, rgba(6, 9, 17, 0.7) 48%, rgba(6, 9, 17, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--gold-light);
    padding: 7px 18px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.hero-slide h2 {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
}

.hero-slide p {
    color: rgba(226, 232, 240, 0.9);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Swiper Controls */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.4);
    opacity: 0.6;
    width: 10px;
    height: 10px;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: var(--primary-light) !important;
    width: 32px;
    border-radius: 6px;
    opacity: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ========== CARDS & GLASSMORPHISM ========== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
}

.card-title {
    font-size: 17px;
    color: #fff;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Cinzel', 'Bebas Neue', serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-title i {
    color: var(--primary-light);
    font-size: 16px;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.card-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* ========== SERVER STATUS WIDGET ========== */
.status-item {
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.status-item:hover {
    background: rgba(56, 189, 248, 0.04);
    border-color: rgba(56, 189, 248, 0.15);
}

.status-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.status-val {
    color: var(--primary-light);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.status-val:has(.radar-dot) {
    color: var(--success);
}

.radar-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--success);
    position: relative;
}

.radar-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--success);
    border-radius: 50%;
    animation: radar-pulse 2s infinite ease-out;
}

@keyframes radar-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.progress-container {
    height: 7px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    padding: 1px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.8s ease;
}

/* ========== DOWNLOAD CARDS ========== */
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.download-card:hover {
    background: rgba(2, 132, 199, 0.1);
    border-color: var(--primary-light);
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.download-card:hover::before {
    opacity: 1;
}

.download-icon {
    width: 46px;
    height: 46px;
    background: rgba(2, 132, 199, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.download-card:hover .download-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: scale(1.05);
}

.download-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    font-family: 'Outfit', sans-serif;
}

.download-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* ========== TOP 5 PLAYERS WIDGET ========== */
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rank-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.rank-item:hover {
    border-color: var(--primary-light);
    background: rgba(56, 189, 248, 0.08);
    transform: translateX(4px);
}

.rank-num {
    font-weight: 800;
    font-size: 13px;
    color: var(--text-muted);
    min-width: 32px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rank-name {
    flex: 1;
    margin-left: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.rank-val {
    font-weight: 700;
    font-size: 12px;
    color: var(--primary-light);
    background: rgba(2, 132, 199, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.rank-item:first-child {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(245, 158, 11, 0.35);
}

.rank-item:first-child .rank-num {
    color: var(--gold-light);
}

.rank-item:first-child .rank-val {
    color: var(--gold-light);
    background: rgba(245, 158, 11, 0.18);
    border-color: var(--border-gold);
}

.rank-item:nth-child(2) .rank-num { color: #e2e8f0; }
.rank-item:nth-child(3) .rank-num { color: #d97706; }

/* ========== NEWS GRID ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.news-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.news-card:hover {
    border-color: var(--primary-light);
    background: rgba(2, 132, 199, 0.06);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.news-card:hover::after {
    opacity: 1;
}

.news-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
}

/* ========== BUTTONS SYSTEM ========== */
.button,
.buttonDark {
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
}

.button {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff !important;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
}

.button:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(56, 189, 248, 0.5);
    filter: brightness(1.1);
}

.buttonDark {
    background: rgba(255, 255, 255, 0.04);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.buttonDark:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary-light);
    color: var(--primary-light) !important;
    transform: translateY(-2px);
}

/* ========== FORM INPUTS ========== */
input, textarea, select,
.input-modern, .input-be {
    width: 100%;
    background: rgba(4, 7, 15, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

input:focus,
.input-modern:focus {
    border-color: var(--primary-light);
    background: rgba(2, 132, 199, 0.08);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* ========== FOOTER ========== */
.footer {
    padding: 60px 0 36px;
    background: #04070d;
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), var(--gold-light), transparent);
}

.f-menu {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.f-menu a {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.f-menu a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 15px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px var(--primary-glow);
}

/* ========== MODALS (AUTHENTICATION) ========== */
.modal_div {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 440px;
    max-width: 95%;
}

.modal_div#register { width: 480px; }

.modal-content {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 38px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.15);
}

.modal-content .card-title {
    font-size: 24px;
    margin-bottom: 26px;
    color: #fff;
}

.modal-content form p {
    margin-bottom: 16px;
    position: relative;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"] {
    padding-left: 46px;
}

.modal-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 14px;
    pointer-events: none;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-full { grid-column: 1 / -1; }

.modal-captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.modal-captcha-row img {
    border-radius: 8px;
    height: 42px;
    width: 110px;
    object-fit: cover;
}

.modal-captcha-row input { flex: 1; }

.modal-terms {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-terms a { color: var(--primary-light); font-weight: 600; }

.modal-submit-btn {
    width: 100%;
    margin-top: 20px;
    height: 48px;
    font-size: 14px;
    letter-spacing: 1.5px;
}

.modal-switch {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.modal-switch a {
    color: var(--gold-light);
    font-weight: 700;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 10, 0.88);
    z-index: 9999;
    backdrop-filter: blur(8px);
}

/* ========== ITEM MALL GRID & CARDS ========== */
.item-mall-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}

.item-mall-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.item-mall-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

body.modal-open .item-mall-card:hover,
.item-mall-card:focus-within {
    border-color: rgba(255, 255, 255, 0.05);
    transform: none;
}

.item-img-container {
    position: relative;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.08) 0%, rgba(0, 0, 0, 0.4) 80%);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.item-img-container img {
    width: 70%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.2));
}

.item-socket-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-gold);
}

.item-mall-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    min-height: 42px;
}

.item-mall-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-mall-actions form { margin: 0; }

.btn-details,
.btn-price {
    width: 100%;
    height: 44px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    text-transform: uppercase;
}

.btn-details {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-details:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-price {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 800;
}

.btn-price:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }
    .hero-slider {
        margin-top: 24px;
        height: 420px;
    }
}

@media (max-width: 900px) {
    .top-panel {
        padding: 12px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }
    .menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .hero-slide {
        padding: 40px 30px;
    }
    .hero-slide h2 {
        font-size: 34px;
    }
    .main-site-logo {
        max-width: 320px;
    }
}
