﻿:root {
    --button: linear-gradient(135deg, #a67c52 0%, #4b3621 100%);
    --buttonbefore: linear-gradient(90deg, transparent, #a67c52, transparent);
    --buttonhover: linear-gradient(180deg, #a67c52 0%, #4b3621 150%);
    --buttonclick: linear-gradient(180deg, #694f34 0%, #4b3621 150%);
    --primary: #a67c52;
    --primary-glow: #a67c5280;
    --bg-darker: #110e0a;
    --bg-card: #1a1410;
    --bg-card-hover: #a67c522c;
    --bg-hover: #120e0b85;
    --border-color: #3d2f25;
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --font-heading: 'Open Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-primary {
    color: var(--primary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.bg-dark-20 {
    background: rgba(0, 0, 0, 0.2) !important;
}

.border-b-purple {
    border-bottom: 1px solid var(--border-color) !important;
}

.rounded-sm {
    border-radius: 5px !important;
}

.rounded-xs {
    border-radius: 2px !important;
}

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-item-center {
    align-items: center !important;
}

.flex-justify-center {
    justify-content: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-5 {
    gap: 5px !important;
}

.gap-10 {
    gap: 10px !important;
}

.gap-20 {
    gap: 20px !important;
}

.p-0 {
    padding: 0 !important;
}

.p-5 {
    padding: 5px !important;
}

.p-10 {
    padding: 10px !important;
}

.p-15 {
    padding: 15px !important;
}

.p-20 {
    padding: 20px !important;
}

.pb-15 {
    padding-bottom: 15px !important;
}

.py-20 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.px-15 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.m-0 {
    margin: 0 !important;
}

.mr-5 {
    margin-right: 5px !important;
}

.mr-8 {
    margin-right: 8px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.mr-15 {
    margin-right: 15px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.w-50 {
    width: 50px !important;
}

.w-full {
    width: 100% !important;
}

.no-decor {
    text-decoration: none !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.italic {
    font-style: italic !important;
}

.text-xs {
    font-size: 10px !important;
}

.text-sm {
    font-size: 12px !important;
}

.text-center {
    text-align: center !important;
}

.bold {
    font-weight: bold !important;
}

.btn-cat {
    padding: 8px 18px !important;
    font-size: 10px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    transition: var(--transition);
}

.p-30 {
    padding: 30px !important;
}

.px-25 {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.font-bold {
    font-weight: bold !important;
}

.letter-spacing-1 {
    letter-spacing: 1px !important;
}

.text-lg {
    font-size: 16px !important;
}

.text-base {
    font-size: 14px !important;
}

.border-dashed {
    border: 1px dashed var(--border-color) !important;
}

.bg-dark-15 {
    background: rgba(0, 0, 0, 0.15) !important;
}

.hr-primary {
    background-color: var(--primary) !important;
    border: none;
    height: 1px;
    opacity: 0.3;
}

.mirror-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.req-card-row {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 35px;
}

.req-card {
    flex: 1;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, #0b3d33 0%, #011a15 100%);
    padding: 15px 26px;
    display: flex;
    align-items: center;
    text-decoration: none !important;
    border-radius: 8px;
    text-align: center;
}

.req-card.active {
    border-color: var(--primary) !important;
}

.req-card.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary);
    z-index: 10;
}

.req-card-icon {
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.req-card.active .req-card-icon i {
    color: #fff !important;
    text-shadow: 0 0 10px var(--primary-glow);
}

.req-card-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.req-card .value {
    font-size: 18px;
    color: var(--text-main);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2px;
}

.req-card .label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.req-card.active .value {
    color: var(--primary) !important;
    font-weight: bold;
}

.req-card:hover:not(.active) {
    border-color: var(--primary);
    background: rgba(34, 107, 93, 0.1);
}

.table td:nth-child(2) img {
    border-radius: 15px;
}

.ashika-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    width: 100%;
}

.ashika-stat-card {
    background: linear-gradient(135deg, #0b3d33 0%, #011a15 100%);
    border-bottom: 3px solid var(--primary);
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.ashika-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.ashika-icon-box {
    width: 45px;
    height: 45px;
    background: #0b3d33;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.ashika-icon-box i {
    font-size: 24px;
    color: var(--primary);
}

.ashika-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #777;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.ashika-value {
    font-size: 17px;
    color: #fff;
    font-weight: 700;
    word-break: break-all;
}

.req-account-info-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
}

.account-action-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 15px 0;
    margin: 0 10px;
}

.account-action-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .ashika-grid-container {
        grid-template-columns: 1fr;
    }
}

.jumbo-stats {
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.opacity-4 {
    opacity: 0.4 !important;
}

.opacity-10 {
    opacity: 1 !important;
}

.shadow-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.shadow-title {
    text-shadow: 2px 2px 4px #000 !important;
}

.text-center {
    text-align: center !important;
}

.text-right {
    text-align: right !important;
}

.badge-primary {
    background: var(--primary) !important;
    color: #fff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 500;
    font-size: 13px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 8px;
    padding: 0;
}

.pagination-link {
    padding: 8px 14px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.pagination-link.active {
    background: var(--button);
    opacity: 1;
}

.pagination-link.inactive {
    opacity: 0.5;
}

.table {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-main) !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    
    background: transparent !important;
}

.table th,
.table td {
    padding: 18px 15px !important;
    vertical-align: middle !important;
    text-align: center !important;
    border: none !important;
    font-size: 13px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.table thead th,
.thead-inverse th {
    background: rgba(34, 107, 93, 0.05) !important;
    color: var(--primary) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 15px !important;
}

.table tbody tr {
    background: rgba(255, 255, 255, 0.03) !important;
    
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 0 0 1px rgba(166,124,82,0.15);
}

.table th[scope=row],
.rank-number {
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    width: 60px !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.rank-number {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
    width: 60px;
}

.v-middle {
    vertical-align: middle !important;
}

.max-w-500 {
    max-width: 500px !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.btn-full {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer !important;
}

.header-grad-shadow {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
}

.text-white {
    color: white !important;
}

.text-gold {
    color: #f1c40f !important;
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.3) !important;
}

.text-xs-muted {
    color: #888 !important;
    font-size: 10px !important;
}

.text-sm-muted {
    color: #666 !important;
    font-size: 12px !important;
}

.bg-dark-25 {
    background: rgba(0, 0, 0, 0.25) !important;
}

.border-thin {
    border: 1px solid rgba(255, 255, 255, 0.03) !important;
}

.btn-red {
    background: linear-gradient(135deg, #d84b4b 0%, #a33232 100%) !important;
}

.btn-action {
    display: block !important;
    text-decoration: none !important;
    padding: 12px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    text-align: center !important;
    border: none !important;
    width: 100% !important;
}

body {
    background-color: var(--bg-darker);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-image:
        radial-gradient(at 0% 0%, var(--bg-darker) 0, transparent 50%),
        radial-gradient(at 50% 0%, var(--bg-darker) 0, transparent 50%),
        radial-gradient(at 100% 0%, var(--bg-darker) 0, transparent 50%) !important;
}

.main-body,
.site-container,
.news-container,
.center-col,
.newsfeed {
    background-image: none !important;
    background-color: transparent !important;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.site-header {
    height: 600px;
    background:
        linear-gradient(to top, var(--bg-darker) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 30%),
        url('/img/theme/header_bg_sinn.png') no-repeat center top;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: -55px;
}

@media (max-width: 1400px) {
    
}

@media (max-width: 1100px) {
    
}

.site-header .site-container {
    position: relative;
    z-index: 100;
}

.site-nav {
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-darker);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 9999;
    padding: 0 20px;
    transition: var(--transition);
    box-sizing: border-box;
    width: 100%;
}

.site-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0;
    margin: 0;
}

.site-nav .l-menu {
    margin-right: 40px;
}

.site-nav .r-menu {
    margin-left: 40px;
}

.site-nav li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    height: 72px;
    position: relative;
}

.site-nav li a::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.site-nav li a:hover {
    color: #fff;
}

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

.logo-head {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.logo-head img {
    height: 50px;
    filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.logo-head:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

.nav-lang-wrapper {
    margin-left: 20px;
    position: relative;
    height: 72px;
    display: flex;
    align-items: center;
}

.site-nav .lang-dropdown {
    position: relative;
    cursor: pointer;
    z-index: 9999;
}

.site-nav .lang-current {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav .lang-current:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 0 15px var(--border-color);
}

.site-nav .lang-current img {
    width: 18px;
    margin-right: 8px;
    border-radius: 2px;
}

.site-nav .lang-current span {
    color: #ccc;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
    height: auto;
    letter-spacing: normal;
}

.site-nav .lang-current i {
    font-size: 9px;
    color: #c1cccc;
}

.site-nav .lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px 0;
    list-style: none !important;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 5px;
    
}

.site-nav .lang-dropdown:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav .lang-list li {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.site-nav .lang-list li a {
    display: flex !important;
    align-items: center !important;
    padding: 8px 15px !important;
    text-decoration: none !important;
    color: #888 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    height: auto !important;
    width: 100% !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    transition: all 0.2s ease !important;
}

.site-nav .lang-list li a::after {
    display: none !important;
}

.site-nav .lang-list li a:hover {
    background: var(--bg-card-hover) !important;
    color: #fff !important;
    padding-left: 15px !important;
    
}

.site-nav .lang-list li a img {
    width: 18px;
    margin-right: 12px;
    border-radius: 2px;
    margin-left: 0;
}

.site-nav .lang-list li a span {
    color: inherit;
    font-size: inherit;
}

.modern-grid {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.modern-grid > * { min-width: 0; }

.card-v2 {
    margin-bottom: 25px;
    overflow: hidden;
    transition: var(--transition);
}

.card-header-v2 {
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(34, 107, 93, 0.1), transparent);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header-v2 h3 {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
}

.card-content-v2 {
    padding: 20px;
}

.btn-modern {
    color: #ffffff;
    background: var(--button);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 12px 20px;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--buttonbefore);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-modern:hover {
    color: #ffffff;
    background: var(--buttonhover);
    text-decoration: none;
    
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:active,
.btn-modern.active,
.btn-modern:focus {
    color: #ffffff;
    background: var(--buttonclick);
    outline: none;
}

.btn-primary {
    color: #ffffff;
    
    background: var(--button);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    z-index: 1;
    border-radius: 4px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--buttonbefore);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover {
    color: #ffffff;
    background: var(--buttonhover);
    
    text-decoration: none;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:focus {
    color: #ffffff;
    background: var(--buttonclick);
    
    outline: none;
}

.btn-primary.disabled,
.btn-primary[disabled] {
    background: #8b735b;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-primary .badge {
    color: #4b3621;
    background-color: #f5f5dc; 
}

.stats-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-val {
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.login-form-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-modern > i {
    position: absolute;
    left: 15px;
    color: var(--primary);
}

.input-modern input {
    width: 100%;
    padding: 12px 40px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: var(--transition);
}

.input-modern input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.toggle-password {
    position: absolute;
    right: 15px;
    left: auto !important;
    cursor: pointer;
    color: var(--text-muted) !important;
}

.login-footer-modern {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

.login-footer-modern a {
    color: var(--primary);
    text-decoration: none;
}

.user-menu-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-side {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-side:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(5px);
}

.btn-logout-modern {
    margin-top: 10px;
    background: rgba(216, 75, 75, 0.05);
    border-color: rgba(216, 75, 75, 0.2);
    color: #ffbaba;
}

.btn-logout-modern:hover {
    background: rgba(216, 75, 75, 0.1);
    border-color: #d84b4b;
    color: #ff4b4b;
}

.ranking-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.ranking-item-v2:hover {
    background: rgba(255, 255, 255, 0.07);
    border-left-color: var(--primary);
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-weight: 800;
    color: var(--primary);
}

.player-rank-job {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-rank-job img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    border-radius: 15px;
}

.ranking-item-v2.gold {
    border-left: 3px solid #FFD700;
}

.ranking-item-v2.silver {
    border-left: 3px solid #C0C0C0;
}

.ranking-item-v2.bronze {
    border-left: 3px solid #CD7F32;
}

.player-info {
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
}

.player-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.level-label {
    color: var(--primary);
    font-weight: bold;
}

.btn-view-all {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-view-all:hover {
    letter-spacing: 2px;
}

.guild-ranking-v2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guild-item-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 15px;
    border-radius: 8px;
}

.guild-rank {
    font-weight: 800;
    color: var(--text-muted);
    width: 20px;
}

.guild-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guild-name {
    font-size: 14px;
    font-weight: 600;
}

.guild-empire img {
    height: 12px;
    border-radius: 2px;
}

.guild-points {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 1200px) {
    .modern-grid {
        grid-template-columns: 280px 1fr 280px;
    }
}

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

    .left-col,
    .right-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.burger-menu-toggle {
    display: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition);
}

.burger-menu-toggle:hover {
    color: #fff;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

@media (max-width: 640px) {

    .left-col,
    .right-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .site-header {
        height: auto !important;
        min-height: 100px !important;
        margin-bottom: 20px !important;
        background-position: top center !important;
        padding-bottom: 20px !important;
        border-bottom: 1px solid var(--border-color);
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .main-body {
        min-width: 0 !important;
    }

    

    .site-header .site-nav {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 72px !important;
        max-height: 72px;
        overflow: hidden;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        position: relative;
        background: var(--bg-darker) !important;
        transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .site-header .burger-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute !important;
        top: 17px !important;
        right: 15px !important;
        z-index: 10001 !important;
        width: 38px !important;
        height: 38px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-sizing: border-box !important;
        color: #fff !important;
    }

    .site-header .site-nav .logo-head {
        position: absolute;
        top: 11px;
        left: 20px;
        z-index: 10001;
        margin: 0 !important;
    }

    .site-header .site-nav .logo-head img {
        height: 45px;
        width: auto;
    }

    .site-header .site-nav ul.l-menu,
    .site-header .site-nav ul.r-menu {
        display: flex !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease 0.1s, visibility 0.3s;
    }

    .site-header .site-nav ul.l-menu {
        margin-top: 72px !important;
    }

    .site-header .site-nav.mobile-open {
        max-height: 800px !important;
    }

    .site-header .site-nav.mobile-open ul.l-menu,
    .site-header .site-nav.mobile-open ul.r-menu {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header .site-nav ul li {
        width: 100% !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        justify-content: center !important;
    }

    .site-header .site-nav ul li a {
        height: auto !important;
        padding: 15px 0 !important;
        width: 100% !important;
        justify-content: center !important;
        line-height: normal !important;
    }

    .site-header .site-nav ul li a::after {
        display: none !important;
    }

    .site-header .site-nav .nav-lang-wrapper {
        position: absolute !important;
        right: 65px !important;
        
        z-index: 10001 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .site-header .site-nav .lang-list {
        position: absolute !important;
        top: 120% !important;
        right: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
        border: 1px solid var(--border-color) !important;
        background: var(--bg-darker) !important;
        margin-top: 10px !important;
        display: none;
        border-radius: 8px !important;
        z-index: 100 !important;
    }

    .site-header .site-nav .lang-current {
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 12px !important;
        background: rgba(255, 255, 255, 0.1) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        box-sizing: border-box !important;
    }

    .site-header .site-nav .lang-dropdown.lang-open .lang-list {
        display: flex !important;
        flex-direction: column !important;
    }
}

.ashika-style-footer {
    margin-top: 60px;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.footer-section h4 {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.copyright-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.powered-by {
    font-size: 11px;
    color: var(--text-muted);
}

.powered-by a {
    color: var(--primary);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav a:hover {
        padding-left: 0;
    }
}

.table {
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    color: var(--text-main) !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    
    background: transparent !important;
}

.table th,
.table td {
    padding: 18px 15px !important;
    vertical-align: middle !important;
    text-align: center !important;
    border: none !important;
    font-size: 13px !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    background: transparent !important;
}

.table thead th,
.thead-inverse th {
    background: rgba(34, 107, 93, 0.05) !important;
    color: var(--primary) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 15px !important;
}

.table th[scope=row],
.rank-number {
    color: var(--primary) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    width: 60px !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.line-height-1-6 {
    line-height: 1.6 !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.flex-grow {
    flex-grow: 1 !important;
}

.block {
    display: block !important;
}

.object-cover {
    object-fit: cover !important;
}

.aspect-video {
    aspect-ratio: 16 / 9 !important;
}

.bg-black {
    background-color: #000 !important;
}

.text-red {
    color: #ff4b4b !important;
}

.translate-hover {
    transition: var(--transition);
}

.translate-hover:hover {
    transform: translateY(-5px);
}

.req-main-container {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 30px !important;
}

.req-page-header {
    padding: 50px 40px !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    border-bottom: 2px solid var(--primary) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.header-grad-shadow {
    position: relative;
}

.header-grad-shadow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.req-page-header h2,
.req-page-header .page-title {
    position: relative;
    z-index: 2;
    margin: 0;
    text-align: center;
}

.padding-container {
    padding: 40px !important;
}

.header-ranking {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/ranking.png');
}

.header-news {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/ranking.png');
}

.header-download {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/img/ranking.png');
}

.form-control {
    display: block !important;
    height: 38px !important;
    padding: 6px 15px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    transition: var(--transition) !important;
    outline: none !important;
}

.form-control:focus {
    border-color: var(--primary) !important;
    background-color: var(--bg-hover) !important;
    box-shadow: 0 0 15px var(--primary-glow) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

select.form-control {
    cursor: pointer;
    padding-right: 40px !important;
}

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

.form-group label {
    display: block;
    color: var(--primary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .req-page-header {
        padding: 40px 20px !important;
    }

    .padding-container {
        padding: 20px !important;
    }
}

.modal-content {
    background: var(--bg-darker) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color) !important;
    border-radius: 15px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
    overflow: hidden;
    color: var(--text-main) !important;
}

.modal-header {
    background: linear-gradient(90deg, rgba(34, 107, 93, 0.05), transparent) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 25px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.modal-title {
    color: var(--primary) !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.modal-body {
    padding: 30px 25px !important;
    color: var(--text-main) !important;
}

.modal-footer {
    padding: 15px 25px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

.modal .close {
    color: white !important;
    opacity: 0.5 !important;
    transition: var(--transition) !important;
    text-shadow: none !important;
    font-size: 28px !important;
    font-weight: 300 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.modal .close:hover {
    opacity: 1 !important;
    color: var(--primary) !important;
    transform: rotate(90deg);
}

.modal {
    position: fixed !important;
    top: 50% !important;
    left: 55% !important;
    margin: auto;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    z-index: 100050 !important;
    display: none;
    overflow: visible !important;
}

.modal.in,
.modal.show {
    display: block !important;
}

.modal-dialog {
    margin: 0 !important;
    width: 650px !important;
    max-width: 95vw !important;
    position: relative !important;
    z-index: 100051 !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 100040 !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.show,
.modal-backdrop.in {
    opacity: 1 !important;
}

body.modal-open .modern-grid,
body.modal-open .main-body,
body.modal-open .site-header,
body.modal-open .req-main-container,
body.modal-open .glass {
    z-index: auto !important;
    position: static !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    overflow: visible !important;
    backdrop-filter: none !important;
}

.modal-icon-circle {
    width: 90px;
    height: 90px;
    background: rgba(34, 107, 93, 0.05);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 0 30px var(--primary-glow);
}

.modal-icon-circle img {
    width: 40px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.modal-desc-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border-left: 3px solid var(--primary);
}

.modal-label-small {
    display: block;
    color: var(--primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.modal.fade .modal-dialog {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.nav-tabs-modern {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 25px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    gap: 15px !important;
}

.nav-tabs-modern .nav-item {
    flex: 1;
}

.nav-tabs-modern .nav-link {
    display: block !important;
    padding: 12px 0 !important;
    text-align: center !important;
    color: var(--text-muted) !important;
    text-transform: uppercase !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    transition: var(--transition) !important;
    text-decoration: none !important;
    background: transparent !important;
}

.nav-tabs-modern .nav-link:hover {
    color: var(--text-main) !important;
}

.nav-tabs-modern .nav-link.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
    text-shadow: 0 0 10px var(--primary-glow) !important;
}

.modal-admin-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.modal-admin-info i {
    font-size: 32px;
    opacity: 0.3;
    color: var(--primary);
}

.border-purple {
    border: 1px solid var(--border-color) !important;
}

.border-purple-10 {
    border: 1px solid var(--border-color) !important;
}

.border-purple-light {
    border: 1px solid var(--border-color) !important;
}

.border-primary {
    border: 1px solid var(--primary) !important;
}

.border-red {
    border: 1px solid rgba(216, 75, 75, 0.4) !important;
}

.border-green {
    border: 1px solid rgba(40, 167, 69, 0.4) !important;
}

.border-none {
    border: none !important;
}

.border-t-purple-10 {
    border-top: 1px solid var(--border-color) !important;
}

.border-t-purple {
    border-top: 1px solid var(--border-color) !important;
}

.border-b-purple-10 {
    border-bottom: 1px solid var(--border-color) !important;
}

.text-green {
    color: #28a745 !important;
}

.text-xl {
    font-size: 20px !important;
}

.text-2xl {
    font-size: 22px !important;
}

.text-3xl {
    font-size: 28px !important;
}

.text-4xl {
    font-size: 36px !important;
}

.text-white {
    color: #fff !important;
}

.font-mono {
    font-family: 'Courier New', Courier, monospace !important;
}

.letter-spacing-2 {
    letter-spacing: 2px !important;
}

.letter-spacing-3 {
    letter-spacing: 3px !important;
}

.bg-red {
    background: linear-gradient(135deg, #d84b4b 0%, #a33232 100%) !important;
}

.bg-green {
    background: linear-gradient(135deg, #28a745 0%, #1a6b2c 100%) !important;
}

.bg-primary-10 {
    background: var(--bg-card) !important;
}

.bg-dark-10 {
    background: rgba(0, 0, 0, 0.1) !important;
}

.bg-dark-40 {
    background: rgba(0, 0, 0, 0.4) !important;
}

.border-primary-20 {
    border: 1px solid var(--border-color) !important;
}

.opacity-5 {
    opacity: 0.5 !important;
}

.opacity-6 {
    opacity: 0.6 !important;
}

.opacity-8 {
    opacity: 0.8 !important;
}

.h-35 {
    height: 35px !important;
}

.h-40 {
    height: 40px !important;
}

.h-45 {
    height: 45px !important;
}

.h-50 {
    height: 50px !important;
}

.h-60 {
    height: 60px !important;
}

.h-80 {
    height: 80px !important;
}

.h-160 {
    height: 160px !important;
}

.w-18 {
    width: 18px !important;
}

.w-40 {
    width: 40px !important;
}

.w-50 {
    width: 50px !important;
}

.w-60 {
    width: 60px !important;
}

.w-80 {
    width: 80px !important;
}

.w-100 {
    width: 100px !important;
}

.w-120 {
    width: 120px !important;
}

.w-200 {
    width: 200px !important;
}

.w-300 {
    width: 300px !important;
}

.max-w-200 {
    max-width: 200px !important;
}

.max-w-300 {
    max-width: 300px !important;
}

.max-w-400 {
    max-width: 400px !important;
}

.h-full {
    height: 100% !important;
}

.w-full {
    width: 100% !important;
}

.h-18 {
    height: 18px !important;
}

.px-10 {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

.py-3 {
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}

.py-5 {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.py-10 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.py-12 {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.py-15 {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.py-20 {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

.px-15 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

.px-25 {
    padding-left: 25px !important;
    padding-right: 25px !important;
}

.px-40 {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.px-50 {
    padding-left: 50px !important;
    padding-right: 50px !important;
}

.px-60 {
    padding-left: 60px !important;
    padding-right: 60px !important;
}

.p-25 {
    padding: 25px !important;
}

.p-30 {
    padding: 30px !important;
}

.p-40 {
    padding: 40px !important;
}

.p-50 {
    padding: 50px !important;
}

.my-10 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.my-25 {
    margin-top: 25px !important;
    margin-bottom: 25px !important;
}

.my-30 {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

.mt-5 {
    margin-top: 5px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-5 {
    margin-bottom: 5px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mb-25 {
    margin-bottom: 25px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mr-5 {
    margin-right: 5px !important;
}

.ml-auto {
    margin-left: auto !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.m-0 {
    margin: 0 !important;
}

.flex-justify-between {
    justify-content: space-between !important;
}

.flex-justify-end {
    justify-content: flex-end !important;
}

.flex-1 {
    flex: 1 !important;
}

.flex-col {
    flex-direction: column !important;
}

.gap-5 {
    gap: 5px !important;
}

.gap-25 {
    gap: 25px !important;
}

.gap-30 {
    gap: 30px !important;
}

.rounded-sm {
    border-radius: 6px !important;
}

.rounded-md {
    border-radius: 10px !important;
}

.rounded-lg {
    border-radius: 16px !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.grid {
    display: grid !important;
}

.grid-cols-1 {
    grid-template-columns: 1fr !important;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.grid-cols-12 {
    grid-template-columns: repeat(12, 1fr) !important;
}

.gap-x-25 {
    column-gap: 25px !important;
}

.gap-y-15 {
    row-gap: 15px !important;
}

.gap-15 {
    gap: 15px !important;
}

.col-span-2 {
    grid-column: span 2 !important;
}

.col-span-3 {
    grid-column: span 3 !important;
}

.col-span-4 {
    grid-column: span 4 !important;
}

.col-span-6 {
    grid-column: span 6 !important;
}

.col-span-8 {
    grid-column: span 8 !important;
}

.col-span-10 {
    grid-column: span 10 !important;
}

.col-span-12 {
    grid-column: span 12 !important;
}

.btn-modern-outline {
    background: transparent !important;
    border: 1px solid var(--primary) !important;
    color: var(--primary) !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 1px;
}

.btn-modern-outline:hover {
    background: var(--bg-hover) !important;
    box-shadow: 0 0 15px var(--primary-glow);
    color: var(--primary) !important;
    transform: translateY(-1px);
}

.input-modern select,
.input-modern textarea {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    outline: none;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
}

.input-modern select:focus,
.input-modern textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px var(--primary-glow);
}

.input-modern select option {
    background: var(--bg-card);
    color: white;
}

.input-modern textarea {
    resize: vertical;
    min-height: 80px;
    padding-top: 15px;
}

.text-green {
    color: #28a745 !important;
}

.text-xs-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    line-height: 1.5;
}

.text-sm-primary {
    color: var(--primary) !important;
    font-size: 13px !important;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hover-bg-dark-20:hover {
    background: rgba(0, 0, 0, 0.2) !important;
}

.hover-bg-dark-30:hover {
    background: rgba(0, 0, 0, 0.3) !important;
}

.transition-all {
    transition: var(--transition) !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.admin-section-title {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.admin-card {
    transition: var(--transition);
}

.admin-card:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.admin-card-icon {
    transition: var(--transition);
}

.admin-card:hover .admin-card-icon {
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--primary);
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

.hr-primary {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    width: 100%;
    border: none;
    margin: 0;
}

.badge-green {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-red {
    background: rgba(216, 75, 75, 0.15);
    border: 1px solid rgba(216, 75, 75, 0.3);
    color: #ff4b4b;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.relative {
    position: relative !important;
}

.absolute {
    position: absolute !important;
}

.top-15 {
    top: 15px !important;
}

.right-15 {
    right: 15px !important;
}

.inset-0 {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

.z-10 {
    z-index: 10 !important;
}

.collapse {
    display: none;
}

.collapse.in,
.collapse.show {
    display: block;
}

.table-sm td,
.table-sm th {
    padding: 10px 12px !important;
    font-size: 12px !important;
}

.border-none .table-responsive {
    border: none !important;
    background: transparent;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.event-sidebar-main {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
}

.event-box-sidebar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    padding: 12px !important;
    margin: 0 !important;
    transition: var(--transition) !important;
    position: relative;
    overflow: hidden;
}

.event-box-sidebar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.event-icon {
    flex-shrink: 0;
}

.event-icon img {
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border-radius: 8px;
    display: block !important;
    object-fit: cover;
    filter: drop-shadow(0 2px 6px rgba(34, 107, 93, 0.2));
}

.event-details {
    flex: 1;
    min-width: 0;
}

.event-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #e2d9f3 !important;
    text-shadow: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.event-timer {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    margin-top: 0 !important;
}

.timer-label {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 10px !important;
    margin-right: 0 !important;
}

.is-active .timer-time {
    color: #4ade80 !important;
    font-weight: 800 !important;
    font-size: 11px !important;
}

.is-active .timer-label {
    color: rgba(74, 222, 128, 0.6) !important;
}

.is-upcoming .timer-time {
    color: #fb923c !important;
    font-size: 11px !important;
}

.is-upcoming .timer-label {
    color: rgba(251, 146, 60, 0.6) !important;
}

.is-active::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    margin-left: 5px;
    animation: eventPulse 1.5s ease-in-out infinite;
    vertical-align: middle;
    flex-shrink: 0;
}

@keyframes eventPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.event-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    gap: 10px;
    opacity: 0.5;
}

.event-empty-state i {
    font-size: 26px;
    color: var(--primary);
}

.event-empty-state span {
    font-size: 12px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

.register-layout {
    display: flex;
    justify-content: center;
}

.register-form-panel {
    width: 100%;
    max-width: 650px;
}

.register-requirements-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.register-req-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.register-req-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.register-req-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.register-req-val {
    font-size: 12px;
    color: var(--primary);
    font-weight: 700;
}

.card-header-v2 {
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: white !important;
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.bg-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8a2e 100%) !important;
}

.char-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.char-card-horizontal {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary);
}

.char-card-horizontal:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.char-avatar-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 25px;
    padding-right: 20px;
    border-right: 1px solid rgba(34, 107, 93, 0.1);
}

.char-img-circle {
    
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-darker);
    padding: 5px;
    box-shadow: 0 0 15px rgba(34, 107, 93, 0.2);
}

.char-lvl-badge {
    margin-top: -12px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 20px;
    border: 2px solid #011a15;
    z-index: 2;
    text-transform: uppercase;
}

.char-info-side {
    flex-grow: 1;
}

.char-name-text {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    display: block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.char-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
    opacity: 0.8;
}

.detail-value {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.value-gold {
    color: #fff;
}

.empire-highlight {
    font-weight: 800;
}

.char-action-side {
    position: absolute;
    top: 15px;
    right: 15px;
}

.btn-debug-ashika {
    width: 32px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-debug-ashika:hover {
    color: #fff;
    background: var(--primary);
    transform: rotate(180deg);
}

.alert-modern {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.active-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: slide-glow 2s infinite linear;
}

@keyframes slide-glow {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.op-7 {
    opacity: 0.7;
}

.op-7:hover {
    opacity: 1;
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-purple {
    border-color: var(--border-color) !important;
}

.captcha-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    border: none;
    margin: 5px 0;
    transition: var(--transition);
    overflow: hidden;
    min-height: 78px;
}

.captcha-modern .g-recaptcha {
    transform: scale(0.88);
    transform-origin: center;
}

@media screen and (max-width: 320px) {
    .captcha-modern .g-recaptcha {
        transform: scale(0.8);
    }
}

#discord {
    position: fixed;
    bottom: 200px;
    right: -150px;
    z-index: 45;
    opacity: .5;
    transition: .3s
}

#discord:hover {
    right: 0;
    opacity: 1
}

#infobannerwidget {
    position: fixed;
    bottom: 300px;
    right: 0px;
    z-index: 45;
    opacity: .5;
    transition: .3s;
}

#infobannerwidget:hover {
    right: 0;
    opacity: 1
}

.site-footer {
    margin-top: 30px;
    padding: 30px 0 20px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    border-radius: 0 !important;
    
}

.footer-center-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    
}

.footer-logo img {
    height: 40px;
    
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.footer-logo:hover img {
    transform: scale(1.05);
}

.footer-partners {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-partners a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    transition: var(--transition);
}

.footer-partners a:hover {
    color: var(--primary);
}

.footer-partners .sep {
    color: rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-copyright {
    color: var(--text-muted);
}

.powered-by-wrap {
    position: relative;
    display: inline-block;
}
.powered-by-label {
    font-size: 12px;
    color: var(--text-muted);
    cursor: default;
    user-select: none;
    transition: color 0.2s;
}
.powered-by-wrap:hover .powered-by-label {
    color: var(--primary);
}
.powered-by-card {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    z-index: 200;
    min-width: 200px;
}
.powered-by-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(166,124,82,0.1);
}
.powered-by-link {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}
a.powered-by-link:hover {
    color: var(--primary);
}

.footer-copyright p {
    margin: 2px 0;
    font-size: 12px;
}

.footer-copyright .highlight {
    color: #fff;
    font-weight: 700;
}

.footer-copyright .small {
    font-size: 10px;
    opacity: 0.6;
}

.footer-copyright .small a {
    color: inherit;
    transition: var(--transition);
}

.footer-copyright .small a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-links-v2 {
        gap: 10px;
    }

    .footer-partners {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 5px;
    }

    .footer-partners .sep {
        display: none;
    }
}.slider {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}
.slider-media {
    position: relative;
    width: 100%;
}
.slider-frame {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.slider-frame-active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
.slider-frame-hidden {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
.slider-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(17,14,10,0.7);
    border: 1px solid var(--border-color);
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}
.slider-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}
.slider-btn-left { left: 10px; }
.slider-btn-right { right: 10px; }
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}
.slider-dot-active {
    background: var(--primary);
}
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}
.tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-card-hover);
}
.tab.active {
    background: var(--button);
    border-color: var(--primary);
    color: #fff;
}
.avatar-24 {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.table th,
.table td {
    padding: 7px 12px !important;
}
.gold { color: var(--primary); }
.red { color: #ef4444; }
.muted { color: var(--text-muted); }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px;
    position: relative;
    min-width: 0;
    overflow: hidden;
}
.card-sm { padding: 16px; }
.card-lg { padding: 32px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--button);
    color: #fff;
    border: 1px solid var(--primary);
}
.btn-primary:hover { background: var(--buttonhover); }
.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover { background: rgba(166,124,82,0.08); border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.p-4 { padding: 4px; }
.grid { display: grid; gap: 16px; min-width: 0; max-width: 100%; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-4 { gap: 4px !important; }
.gap-8 { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.pt-6 { padding-top: 24px; }
.items-center { align-items: center; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.min-w-0 { min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 12px; }
.border-top { border-top: 1px solid var(--border-color); }
.overflow-x-auto { overflow-x: auto; max-width: 100%; }
.character-avatar { width: 40px; height: 40px; object-fit: contain; }
.account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.section { margin-bottom: 32px; }
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 16px;
    transition: var(--transition);
}
.news-item:hover { border-color: var(--primary); }
.news-item-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.news-item-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.news-item-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
    box-sizing: border-box;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-glow); }
.input::placeholder { color: var(--text-muted); }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.notification {
    padding: 14px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
}
.notification.success { background: #166534; border: 1px solid #22c55e; }
.notification.error { background: #7f1d1d; border: 1px solid #ef4444; }
.notification.info { background: #1e3a5f; border: 1px solid #3b82f6; }
.notifications-pane { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.notification-item { cursor: pointer; }
.notification-close { margin-left: 12px; opacity: 0.7; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 24px; }
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
.password-field-container {
    position: relative;
    display: flex;
    align-items: center;
}
.password-field-container .input {
    padding-right: 40px;
}
.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.password-toggle-btn:hover { color: var(--primary); }
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    text-align: center;
}
.empty-icon {
    font-size: 48px;
    color: var(--border-color);
}
.package-card { transition: var(--transition); }
.package-card:hover { border-color: var(--primary); }
.promo-badge { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.price-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.notes-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.notes-list-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.notes-list-icon { margin-top: 2px; flex-shrink: 0; }
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.status-success { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.status-pending { background: rgba(234,179,8,0.15); color: #eab308; border: 1px solid rgba(234,179,8,0.3); }
.status-info { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.status-failed { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.status-default { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border-color); }
.transaction-code {
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 3px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; text-align: center; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); }
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-card { max-width: 480px; width: 90%; }
.modal-card-donate { max-width: 400px; width: 90%; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; padding: 4px; }
.modal-close:hover { color: var(--primary); }
.modal-package-info { padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: 4px; }
.package-price { font-size: 20px; font-weight: 700; }
.btn-payment { justify-content: flex-start; gap: 12px; }
.btn-payment-icon { font-size: 20px; }
.btn-payment-sub { font-size: 11px; opacity: 0.8; }
.btn-paypal { background: #003087; color: #fff; border: 1px solid #003087; }
.btn-paypal:hover { background: #00256b; }
.text-bold { font-weight: 700; }
.text-left { text-align: left; }
.text-sm { font-size: 13px; }
.mt-2 { margin-top: 8px; }
.mb-2 { margin-bottom: 8px; }
.p-32 { padding: 32px; }
.mr-2 { margin-right: 8px; }

[x-cloak] { display: none !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-start { align-items: flex-start !important; }
.min-w-max { min-width: max-content; }
.mx-4 { margin-left: 16px; margin-right: 16px; }
.ml-3 { margin-left: 12px; }
.mr-1 { margin-right: 4px; }
.mt-1 { margin-top: 4px; }
.mt-3 { margin-top: 12px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-3 { margin-bottom: 12px; }
.mb-6 { margin-bottom: 24px; }
.pb-4 { padding-bottom: 16px; }
.pt-4 { padding-top: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.p-4 { padding: 16px; }
.w-full { width: 100%; }
.col-span-2 { grid-column: span 2; }
.font-mono { font-family: monospace; }
.font-normal { font-weight: 400; }
.font-semibold { font-weight: 600; }
.text-2xl { font-size: 24px; }
.text-4xl { font-size: 36px; }
.text-align-left { text-align: left !important; }
.text-align-right { text-align: right !important; }
.text-align-center { text-align: center !important; }
.border-b { border-bottom: 1px solid var(--border-color); padding-bottom: 12px; margin-bottom: 12px; }
.block { display: block; }
.email-display { opacity: 0.7; cursor: default; }
.rounded-t-lg { border-radius: 8px 8px 0 0; }
.space-y-8 > * + * { margin-top: 8px; }
.gap-24 { gap: 24px !important; }
.gap-6 { gap: 6px !important; }
.max-w-420 { max-width: 420px !important; }
.max-w-600 { max-width: 600px !important; }
.w-80 { width: 80px !important; }
.w-140 { width: 140px !important; }
.w-180 { width: 180px !important; }
.w-200 { width: 200px !important; }
.w-220 { width: 220px !important; }
.w-260 { width: 260px !important; }
.w-380 { width: 380px !important; }
.w-420 { width: 420px !important; }
.w-480 { width: 480px !important; }
.max-w-280 { max-width: 280px !important; }
.modal-card-lg { max-width: 640px; width: 90%; }
.modal-card-xl { max-width: 860px; width: 95%; }
.modal-body { padding: 0; }
.modal-content { display: flex; flex-direction: column; gap: 16px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.admin-nav { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px; margin-bottom: 24px; }
.admin-nav-container { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-nav-item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 6px; color: var(--text-muted); font-size: 13px; font-weight: 500; text-decoration: none; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.admin-nav-item:hover { background: rgba(166,124,82,0.12); color: var(--primary); }
.admin-nav-item.active { background: rgba(166,124,82,0.2); color: var(--primary); border-bottom: 2px solid var(--primary); }
.btn-gold { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; color: #fff !important; }
.btn-danger { background: rgba(220,53,69,0.15); border: 1px solid rgba(220,53,69,0.4); color: #dc3545; }
.btn-danger:hover { background: rgba(220,53,69,0.25); color: #ff4d5e; }
.btn-link { background: none; border: none; color: var(--primary); cursor: pointer; padding: 0; text-decoration: underline; font-size: inherit; }
.feature-icon { font-size: 32px; display: block; margin-bottom: 8px; }
.spinner-lg { font-size: 32px; color: var(--primary); }
.log-viewport { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 6px; min-width: 0; }
.log-viewport-inner { max-height: 480px; overflow-y: auto; }
.log-viewport table thead th { position: sticky; top: 0; background: var(--bg-darker) !important; z-index: 2; }
.nowrap { white-space: nowrap; }
.filter-panel { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 6px; padding: 16px; margin-bottom: 16px; }
.input-sm { padding: 6px 10px; font-size: 12px; }
.input-sm.input { padding: 6px 10px; font-size: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.label-inline { display: inline-flex; align-items: center; gap: 6px; }
.checkbox { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border-color); border-radius: 24px; transition: 0.3s; }
.toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(20px); }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; border: 1px solid; }
.alert-error { background: rgba(220,53,69,0.1); border-color: rgba(220,53,69,0.3); color: #ff4d5e; }
.alert-info { background: rgba(166,124,82,0.1); border-color: rgba(166,124,82,0.3); color: var(--primary); }
.info-callout { background: rgba(166,124,82,0.08); border: 1px solid rgba(166,124,82,0.2); border-radius: 6px; padding: 12px 16px; margin-bottom: 16px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-color); }
.info-row:last-child { border-bottom: none; }
.section-divider { border: none; border-top: 1px solid var(--border-color); margin: 16px 0; }
.card-inner { background: rgba(0,0,0,0.15); border: 1px solid var(--border-color); border-radius: 6px; padding: 16px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; background: rgba(166,124,82,0.15); color: var(--primary); border: 1px solid rgba(166,124,82,0.3); }
.badge-level { background: rgba(255,255,255,0.07); color: var(--text-light); border: 1px solid var(--border-color); }
.nav-link { color: var(--text-muted); text-decoration: none; }
.nav-link:hover { color: var(--primary); }
.cursor-pointer { cursor: pointer; }
.authority-badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.authority-god { background: rgba(220,53,69,0.15); color: #ff4d5e; border: 1px solid rgba(220,53,69,0.3); }
.authority-high-wizard { background: rgba(166,124,82,0.15); color: var(--primary); border: 1px solid rgba(166,124,82,0.3); }
.empire-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.empire-stat { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.empire-stat:last-child { border-bottom: none; }
.empire-count { font-weight: 700; color: var(--primary); }
.empire-name { color: var(--text-light); font-size: 13px; }
.shinsoo { color: #e05c5c; }
.chunjo { color: #e8b84b; }
.jinno { color: #5b9bd5; }
.empire-badge.empire-1 { background: rgba(224,92,92,0.1); border: 1px solid rgba(224,92,92,0.3); color: #e05c5c; }
.empire-badge.empire-2 { background: rgba(232,184,75,0.1); border: 1px solid rgba(232,184,75,0.3); color: #e8b84b; }
.empire-badge.empire-3 { background: rgba(91,155,213,0.1); border: 1px solid rgba(91,155,213,0.3); color: #5b9bd5; }
.empire-flag { width: 18px; height: 14px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.job-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; background: rgba(166,124,82,0.1); color: var(--primary); border: 1px solid rgba(166,124,82,0.2); }
.player-info { display: flex; flex-direction: column; gap: 2px; }
.status-online { background: rgba(40,167,69,0.15); color: #28a745; border: 1px solid rgba(40,167,69,0.3); }
.status-offline { background: rgba(108,117,125,0.15); color: #868e96; border: 1px solid rgba(108,117,125,0.3); }
.status-default { background: rgba(108,117,125,0.1); color: var(--text-muted); border: 1px solid var(--border-color); }
.package-card { transition: border-color 0.2s; }
.package-card:hover { border-color: var(--primary); }
.package-active { border-color: rgba(40,167,69,0.5) !important; background: rgba(40,167,69,0.05) !important; }
.package-inactive { opacity: 0.65; }
.lang-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 16px; }
.lang-list { display: flex; flex-direction: column; gap: 0; }
.language-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.language-row:last-child { border-bottom: none; }
.language-code { font-weight: 700; color: var(--primary); font-size: 14px; min-width: 36px; }
.language-name { color: var(--text-light); font-size: 13px; flex: 1; }
.language-count { color: var(--text-muted); font-size: 12px; }
.languages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.translations-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; min-width: 0; }
.translations-layout > * { min-width: 0; overflow: hidden; }
.translations-list { max-height: 600px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; min-width: 0; }
.translation-list-inner { display: flex; flex-direction: column; }
.translation-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.15s; }
.translation-row:hover, .translation-row.active { background: rgba(166,124,82,0.1); color: var(--primary); }
.translation-row:last-child { border-bottom: none; }
.translation-key-label { font-size: 12px; color: var(--text-muted); word-break: break-all; }
.translation-editor-wrap { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; padding: 20px; min-width: 0; overflow: hidden; }
.translation-editor { display: flex; flex-direction: column; gap: 16px; }
.translation-item { display: flex; flex-direction: column; gap: 6px; }
.translation-key { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.translation-value { display: flex; flex-direction: column; gap: 6px; }
.translation-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.textarea-content, .textarea-excerpt { width: 100%; background: var(--bg-darker); border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-light); padding: 10px 12px; font-size: 14px; resize: vertical; min-height: 80px; }
.textarea-content:focus, .textarea-excerpt:focus { border-color: var(--primary); outline: none; }
.textarea-excerpt { min-height: 60px; }
.empty-icon-sm { font-size: 24px; margin-bottom: 8px; color: var(--text-muted); }
.sticky-sidebar { position: sticky; top: 20px; }
.code { font-family: monospace; background: rgba(0,0,0,0.25); padding: 2px 6px; border-radius: 3px; font-size: 12px; color: var(--primary); }
@media (max-width: 900px) {
    .translations-layout { grid-template-columns: 1fr; }
    .translations-list { max-height: 300px; }
}
@media (max-width: 768px) {
    .admin-nav-item span { display: none; }
    .admin-nav-item { padding: 8px 10px; }
    .sm\:flex-row { flex-direction: row !important; }
}

* { scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-darker); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light, #c49a6c); }
::-webkit-scrollbar-corner { background: var(--bg-darker); }

.download-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-color); background: rgba(255,255,255,0.02); text-decoration: none; color: inherit; transition: border-color 0.15s, background 0.15s; }

#discord-banner-wrap {
    position: fixed;
    top: 218px;
    right: 0;
    z-index: 900;
    transform: translateX(calc(100% - 170px));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.5);
    line-height: 0;
}
#discord-banner-wrap:hover {
    transform: translateX(0);
}
#discord-banner-img {
    display: block;
    width: 320px;
    height: auto;
}
@media (max-width: 768px) {
    #discord-banner-wrap {
        top: auto;
        bottom: 80px;
        transform: translateX(calc(100% - 100px));
    }
}

#discord-wb-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
#discord-wb-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #5865F2;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(88,101,242,0.5);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    order: 2;
}
#discord-wb-toggle:hover {
    background: #4752c4;
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(88,101,242,0.65);
}
#discord-wb-panel {
    width: 480px;
    height: 620px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(88,101,242,0.3);
    background: #36393f;
    order: 1;
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4,0,0.2,1),
                transform 0.3s cubic-bezier(0.4,0,0.2,1);
    transform-origin: bottom right;
}
#discord-wb-panel.discord-wb-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 500px) {
    #discord-wb-panel {
        width: calc(100vw - 48px);
        height: 420px;
    }
}
.download-row:hover { border-color: var(--primary); background: rgba(166,124,82,0.06); color: inherit; }

body.ag-body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #0d0407 !important;
    background-image: url('/img/astregate/bg_and_header.png') !important;
    background-size: 100% auto !important;
    background-repeat: no-repeat !important;
    background-position: top left !important;
    background-attachment: scroll !important;
}
body.ag-body *, body.ag-body *::before, body.ag-body *::after {
    box-sizing: border-box;
}

body.ag-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.ag-body > header,
body.ag-body > main,
body.ag-body > footer,
.ag-main {
    display: block;
}
.ag-main {
    flex: 1 0 auto;
}

.ag-nav-wrap {
    position: relative;
    width: 100%;
    height: calc(211 / 2560 * 100vw);
    min-height: 36px;
    overflow: visible;
    z-index: 1000;
}
.ag-nav-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/astregate/navigation_bar.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.ag-nav-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    
    padding: 0 8% 0 1%;
    gap: clamp(4px, 0.8vw, 16px);
    overflow: visible;
}

.ag-nav-logo-bg {
    position: absolute;
    left: calc(9.5% - 4vw);
    top: calc(211 / 2560 * 100vw * -0.2);
    height: calc(211 / 2560 * 100vw * 1.2);
    width: auto;
    pointer-events: none;
    user-select: none;
    z-index: 9;
    filter: brightness(2.5);
}
.ag-nav-logo {
    position: absolute;
    left: 11.5%;
    top: 25%;
    transform: translateY(-50%);
    z-index: 10;
    line-height: 0;
    display: block;
    padding: 0;
    margin: 0;
}
.ag-nav-logo img {
    width: clamp(140px, 14vw, 245px);
    height: auto;
    display: block;
}

.ag-nav-links {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: clamp(10px, 2vw, 36px);
    align-items: center;
}
.ag-nav-left { flex: 1; justify-content: center; padding-left: clamp(60px, 12vw, 230px); position: relative; top: -20px; }
.ag-nav-links li a {
    color: #b09060;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: clamp(11px, 1.3vw, 20px);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    white-space: nowrap;
}
.ag-nav-links li a:hover { color: #e8c870; }

.ag-nav-right {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.7vw, 12px);
    flex-shrink: 0;
    position: relative;
    top: -20px;
}

.ag-gold-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: calc(211 / 2560 * 100vw * 0.4);
    width: calc(211 / 2560 * 100vw * 0.4 * (190 / 51));
    min-height: 22px;
    min-width: 60px;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    flex-shrink: 0;
    transition: filter 0.2s ease;
}
.ag-gold-btn-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    object-fit: fill;
    display: block;
}
.ag-gold-btn span {
    position: relative; z-index: 1;
    color: #2a1a08;
    font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.85vw, 13px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.ag-gold-btn:hover { filter: brightness(1.15); }
.ag-gold-btn.ag-btn-sm {
    height: clamp(16px, 1.7vw, 28px);
    width: clamp(44px, 4vw, 72px);
    min-height: unset;
    min-width: unset;
    font-size: unset;
}
.ag-gold-btn.ag-btn-sm span { font-size: clamp(6px, 0.6vw, 9px); white-space: nowrap; }

.ag-nav-user-group {
    display: flex; align-items: center;
    gap: clamp(3px, 0.4vw, 8px);
}
.ag-nav-logout {
    color: #7a5838; text-decoration: none;
    font-size: clamp(10px, 1vw, 16px);
    transition: color 0.2s ease;
}
.ag-nav-logout:hover { color: #e84040; }

.ag-lang-dropdown {
    position: relative; cursor: pointer; user-select: none;
}
.ag-lang-current {
    display: flex; align-items: center; gap: 5px;
    color: #b09060;
    font-size: clamp(10px, 1.1vw, 16px);
    font-family: 'Cinzel', serif; font-weight: 600;
    padding: 2px 3px; transition: color 0.2s ease; white-space: nowrap;
}
.ag-lang-current img { width: 20px; height: auto; }
.ag-lang-current i { font-size: 0.6em; opacity: 0.7; }
.ag-lang-dropdown:hover .ag-lang-current { color: #e8c870; }
.ag-lang-list {
    display: none; position: absolute; top: 100%; right: 0;
    background: rgba(15,5,8,0.97);
    border: 1px solid #3a2810; border-radius: 4px;
    list-style: none; margin: 2px 0 0; padding: 6px 0;
    z-index: 500; min-width: 96px;
}
.ag-lang-dropdown.lang-open .ag-lang-list { display: block; }
.ag-lang-list li a {
    display: flex; align-items: center; gap: 7px;
    padding: 6px 14px; color: #b09060; text-decoration: none;
    font-size: clamp(10px, 1vw, 14px);
    font-family: 'Cinzel', serif; font-weight: 600;
    white-space: nowrap; transition: background 0.2s ease, color 0.2s ease;
}
.ag-lang-list li a:hover { background: rgba(201,168,76,0.12); color: #e8c870; }
.ag-lang-list li a img { width: 20px; height: auto; }

.ag-burger {
    display: none; background: none; border: none; cursor: pointer;
    color: #c9a84c; font-size: clamp(12px, 1.4vw, 20px);
    padding: 3px 5px; line-height: 1;
}

.ag-login-drop-wrap {
    position: relative;
    flex-shrink: 0;
}

.ag-login-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 950;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ag-login-backdrop.open { opacity: 1; pointer-events: auto; }

.ag-login-panel {
    position: absolute;
    top: calc(100% + -40px);
    right: -65px;
    width: clamp(220px, 22vw, 360px);
    aspect-ratio: 396 / 460;
    z-index: 960;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ag-login-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.ag-login-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
    user-select: none;
}

.ag-login-panel-inner {
    position: absolute;
    top: 13%;
    left: 14%;
    right: 14%;
    bottom: 13%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(5px, 0.7vw, 10px);
    overflow: visible;
}
.ag-login-panel-inner form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    gap: clamp(5px, 0.7vw, 10px);
}

.ag-login-panel-title {
    width: 100%;
    color: #c9a84c;
    font-family: 'Cinzel', serif;
    font-size: clamp(10px, 1.1vw, 17px);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 clamp(2px, 0.3vw, 5px);
}

.ag-login-panel-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.4vw, 7px);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(7px, 0.75vw, 11px);
    white-space: nowrap;
}
.ag-login-panel-register-label { color: #7a6040; }
.ag-login-panel-register-link {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.ag-login-panel-register-link:hover { color: #f0d070; }

.ag-login-field {
    position: relative;
    width: 85%;
    aspect-ratio: 259 / 43;
    flex-shrink: 0;
}
.ag-login-field-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}
.ag-login-field input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #e8d4a0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(7px, 0.78vw, 12px);
    font-weight: 500;
    padding: 0 clamp(6px, 1vw, 14px);
    letter-spacing: 0.02em;
    caret-color: #c9a84c;
}
.ag-login-field input::placeholder { color: #6a5030; opacity: 1; }

.ag-login-field-eye {
    position: absolute;
    right: clamp(5px, 0.8vw, 12px);
    top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: #7a6040; font-size: clamp(7px, 0.75vw, 11px);
    padding: 0; line-height: 1;
    transition: color 0.2s ease;
    z-index: 2;
}
.ag-login-field-eye:hover { color: #c9a84c; }

.ag-login-panel-forgot {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(8px, 0.82vw, 13px);
}
.ag-login-panel-forgot a {
    color: #9a7850;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ag-login-panel-forgot a:hover { color: #c9a84c; }

.ag-login-recaptcha {
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.ag-login-recaptcha .g-recaptcha {
    transform-origin: top center;
    transform: scale(0.62);
    margin: -22px 0 -24px;
}

.ag-login-submit-wrap {
    position: relative;
    width: 85%;
    aspect-ratio: 259 / 43;
    flex-shrink: 0;
    top: 65px;
    transition: filter 0.2s ease;
}
.ag-login-submit-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}
.ag-login-submit {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #2a1a08;
    font-family: 'Cinzel', serif;
    font-size: clamp(7px, 0.8vw, 12px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: filter 0.2s ease;
    z-index: 1;
}
.ag-login-submit-wrap:hover { filter: brightness(1.18); }
.ag-login-submit:disabled ~ .ag-login-submit-bg,
.ag-login-submit-wrap:has(.ag-login-submit:disabled) { opacity: 0.6; cursor: not-allowed; }

.ag-register-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.ag-register-modal-backdrop.open { opacity: 1; pointer-events: auto; }

.ag-register-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    width: clamp(280px, 32vw, 520px);
    aspect-ratio: 602 / 744;
    z-index: 1110;
    filter: drop-shadow(0 12px 40px rgba(0,0,0,0.8));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.ag-register-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.ag-register-modal-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.ag-register-modal-inner {
    position: absolute;
    top: 7%;
    left: 9.5%;
    right: 9.5%;
    bottom: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(4px, 0.55vw, 8px);
    overflow: visible;
}

.ag-register-modal-inner form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 1;
    gap: clamp(4px, 0.55vw, 8px);
}

.ag-register-modal-title {
    width: 100%;
    color: #c9a84c;
    font-family: 'Cinzel', serif;
    font-size: clamp(10px, 1.1vw, 17px);
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 clamp(1px, 0.2vw, 3px);
}

.ag-register-modal-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.4vw, 7px);
    font-family: 'Outfit', sans-serif;
    font-size: clamp(7px, 0.75vw, 11px);
    white-space: nowrap;
    width: 100%;
}
.ag-register-modal-login-label { color: #7a6040; }
.ag-register-modal-login-link {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.ag-register-modal-login-link:hover { color: #f0d070; }

.ag-register-modal-terms {
    width: 90%;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(8px, 0.82vw, 12px);
    color: #6a5030;
    line-height: 1.5;
    flex-shrink: 0;
}
.ag-register-modal-terms a {
    color: #9a7850;
    text-decoration: none;
    transition: color 0.2s ease;
}
.ag-register-modal-terms a:hover { color: #c9a84c; }

.ag-register-recaptcha {
    display: flex;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ag-register-recaptcha .g-recaptcha {
    transform-origin: top center;
    transform: scale(0.62);
    margin: -22px 0 -24px;
}

.ag-register-submit-wrap {
    position: relative;
    width: 70%;
    aspect-ratio: 259 / 43;
    flex-shrink: 0;
    top: 45px;
    transition: filter 0.2s ease;
}
.ag-register-submit-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}
.ag-register-submit {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #2a1a08;
    font-family: 'Cinzel', serif;
    font-size: clamp(7px, 0.8vw, 12px);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 1;
}
.ag-register-submit-wrap:hover { filter: brightness(1.18); }
.ag-register-submit-wrap:has(.ag-register-submit:disabled) { opacity: 0.6; cursor: not-allowed; }

.ag-hero {
    position: relative;
    width: 100%;
    
    height: calc(879 / 2560 * 100vw);
    min-height: 90px;
    overflow: hidden;

}
.ag-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(16px, 3vw, 48px);
    padding: 1% 8% 0 0;
}
.ag-hero-logo {
    height: clamp(40px, 7vw, 120px);
    width: auto;
    display: block;
    align-self: flex-start;
    position: relative;
    right: 200px;
    top: 145px;
}
.ag-hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.2vw, 20px);
    position: relative;
    top: 20px;
    right: 400px;
}
.ag-hero-tagline {
    color: #a09070; font-family: 'Outfit', sans-serif;
    font-size: clamp(8px, 0.85vw, 13px); font-weight: 600;
    line-height: 1.7; text-align: center;
    max-width: clamp(180px, 18vw, 400px);
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    margin: 0;
}
.ag-hero-register {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.ag-hero-register-label {
    color: #6a5840; font-family: 'Outfit', sans-serif;
    font-size: clamp(7px, 0.72vw, 11px); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.07em;
}
.ag-hero-register-link {
    color: #c9a84c; font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.82vw, 12px); font-weight: 700;
    text-decoration: none; letter-spacing: 0.05em;
    transition: color 0.2s ease;
}
.ag-hero-register-link:hover { color: #e8c870; }
.ag-hero-register-link i { font-size: 0.8em; }

.ag-hero-title-img {
    width: clamp(120px, 15vw, 280px);
    height: auto; display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.7));
}

.ag-download-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(120px, 16vw, 260px);
    aspect-ratio: 320 / 116;
    height: auto;
    text-decoration: none; overflow: hidden; cursor: pointer;
    transition: filter 0.2s ease;
}
.ag-download-btn-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: fill;
}
.ag-download-btn span {
    position: relative; z-index: 1;
    color: #2a1a08; font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.9vw, 16px); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    top: 25px;
}
.ag-download-btn:hover { filter: brightness(1.12); }

.ag-news-section {
    position: relative;
    width: 100%;
    margin-top: -8vw;
    padding: clamp(4px, 0.5vw, 10px) 0 clamp(16px, 2.2vw, 40px);
    z-index: 5;
}
.ag-section-inner {
    width: 88%;
    max-width: 1100px;
    margin: 0 auto;
}
.ag-news-title {
    text-align: center;
    margin-bottom: clamp(10px, 1.4vw, 24px);
}

.ag-news-title img {
    height: clamp(28px, 3.5vw, 56px);
    width: auto; display: inline-block;
}
.ag-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(10px, 1.5vw, 28px);
}

.ag-news-card {
    position: relative;
    display: block;
    text-decoration: none;
    background-image: url('/img/astregate/news_card_1.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    aspect-ratio: 654 / 353;
    overflow: hidden;
    border-radius: 2px;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.ag-news-card-2 { background-image: url('/img/astregate/news_card_2.png'); }
.ag-news-card:hover:not(.ag-news-card-empty) { filter: brightness(1.1); transform: translateY(-2px); }

.ag-news-card-thumb {
    position: absolute;
    top: 4%; left: 3.5%; right: 3.5%; bottom: 3.5%;
    overflow: hidden;
    border-radius: 1px;
    z-index: 1;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.6) 50%, black 100%);
    mask-image: linear-gradient(to top, transparent 0%, rgba(0,0,0,0.6) 50%, black 100%);
}
.ag-news-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.ag-news-card-body {
    position: absolute;
    bottom: 6.5%; left: 3.5%; right: 3.5%;
    padding: clamp(4px, 0.6vw, 10px) clamp(6px, 1vw, 14px);
    z-index: 2;
}
.ag-news-badge {
    display: inline-block; padding: 1px 7px; border-radius: 2px;
    font-size: clamp(6px, 0.58vw, 9px); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px;
}
.ag-badge-info    { background: rgba(50,100,180,0.85); color: #cde; }
.ag-badge-pending { background: rgba(180,120,30,0.85); color: #fec; }
.ag-badge-success { background: rgba(40,120,60,0.85);  color: #cec; }
.ag-news-card-title {
    color: #e8d8b8; font-family: 'Cinzel', serif;
    font-size: clamp(9px, 0.95vw, 14px); font-weight: 700;
    margin: 0 0 2px; line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}
.ag-news-card-date {
    color: #7a6848; font-size: clamp(6px, 0.6vw, 9px); margin: 0 0 2px;
}
.ag-news-card-excerpt {
    color: #8a7858; font-size: clamp(7px, 0.68vw, 10px);
    margin: 0 0 3px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.ag-read-more {
    color: #c9a84c; font-size: clamp(7px, 0.62vw, 9px);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}

.ag-features-section {
    width: 100%; display: block; line-height: 0;
}
.ag-features-img {
    display: block; width: 100%; height: auto;
}

.ag-bottom-section {
    width: 100%;
}
.ag-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2%;
}

.ag-stats-card {
    position: relative;
    flex-shrink: 0;
    margin-top: -65px;
    left: 78px;
}
.ag-stats-card > .ag-card-bg-img {
    display: block; width: 100%; height: auto; width: auto;
}
.ag-stats-card-inner {
    position: absolute;
    top: 7%; left: 7%; right: 7%; bottom: 5%;
    display: flex; flex-direction: column; overflow: hidden;
}

.ag-rankings-wrap {
    display: flex;
    gap: clamp(8px, 1.2vw, 20px);
    align-items: flex-start;
}
.ag-ranking-card {
    position: relative;
    width: auto;
    flex-shrink: 0;
    margin-top: -75px;
    z-index: 2;
}
.ag-ranking-card > .ag-card-bg-img {
    display: block; width: 100%; height: auto;
}
.ag-ranking-card-inner {
    position: absolute;
    top: 5%; left: 7%; right: 7%; bottom: 10%;
    display: flex; flex-direction: column; overflow: hidden;
}

.ag-card-heading {
    color: #c9a84c; font-family: 'Cinzel', serif;
    font-size: clamp(10px, 1.1vw, 17px); font-weight: 700;
    text-align: center; margin: 0 0 clamp(4px, 0.6vw, 10px);
    text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(201,168,76,0.22);
    padding-bottom: clamp(3px, 0.4vw, 7px); flex-shrink: 0;
}

.ag-stats-list { flex-shrink: 0; }
.ag-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: clamp(2px, 0.35vw, 6px) 0;
    border-bottom: 1px solid rgba(201,168,76,0.07);
}
.ag-stat-row:last-child { border-bottom: none; }
.ag-stat-row-gap { margin-top: clamp(29px, 2.6vw, 43px); }
.ag-stat-label {
    display: flex; align-items: center; gap: 5px;
    color: #7a6848; font-size: clamp(8px, 0.85vw, 13px);
    font-family: 'Outfit', sans-serif;
}
.ag-stat-label i { color: #5a4830; font-size: 0.85em; }
.ag-online-dot { color: #40c060 !important; }
.ag-stat-val {
    color: #e8c870; font-size: clamp(9px, 0.95vw, 14px);
    font-family: 'Cinzel', serif; font-weight: 700;
}

.ag-stats-login-block { margin-top: clamp(3px, 0.6vw, 10px); flex: 1; overflow: hidden; }
.ag-login-form { display: flex; flex-direction: column; gap: clamp(2px, 0.4vw, 7px); }
.ag-input-wrap {
    position: relative; display: flex; align-items: center;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(201,168,76,0.18); border-radius: 3px;
    padding: 0 7px;
}
.ag-input-wrap i { color: #5a4830; font-size: clamp(7px, 0.65vw, 10px); flex-shrink: 0; }
.ag-input-wrap input {
    flex: 1; background: none; border: none; outline: none;
    color: #e8d8b8; font-size: clamp(7px, 0.7vw, 10px);
    font-family: 'Outfit', sans-serif;
    padding: clamp(2px, 0.35vw, 6px) 5px;
}
.ag-input-wrap input::placeholder { color: #4a3820; }
.ag-toggle-pwd { cursor: pointer; color: #5a4830; font-size: clamp(7px, 0.65vw, 10px); }
.ag-register-link {
    display: block; text-align: center; color: #6a5838; text-decoration: none;
    font-size: clamp(6px, 0.58vw, 8px); font-family: 'Outfit', sans-serif;
    transition: color 0.2s ease;
}
.ag-register-link:hover { color: #c9a84c; }

.ag-stats-user-block {
    margin-top: clamp(4px, 0.6vw, 10px);
    display: flex; flex-direction: column;
    gap: clamp(2px, 0.4vw, 7px); align-items: stretch;
}
.ag-stats-user-name {
    color: #c9a84c; font-family: 'Cinzel', serif;
    font-size: clamp(8px, 0.82vw, 12px); font-weight: 600; text-align: center;
}

.ag-ranking-list {
    flex: 1; display: flex; flex-direction: column;
    gap: clamp(1px, 0.15vw, 3px); overflow: hidden;
}
.ag-rank-row {
    display: flex; align-items: center; gap: clamp(2px, 0.35vw, 6px);
    padding: clamp(1px, 0.14vw, 2px) 0;
    border-bottom: 1px solid rgba(201,168,76,0.06);
}
.ag-rank-row:last-child { border-bottom: none; }
.ag-rank-num {
    font-family: 'Cinzel', serif; font-size: clamp(7px, 0.72vw, 11px);
    font-weight: 700; min-width: clamp(12px, 1.2vw, 20px); flex-shrink: 0;
    margin-left: clamp(3px, 0.5vw, 8px);
}
.ag-rank-job {
    width: clamp(10px, 1.1vw, 18px); height: clamp(10px, 1.1vw, 18px);
    object-fit: contain; flex-shrink: 0;
}
.ag-rank-name {
    flex: 1; color: #c0a878; font-size: clamp(9px, 0.9vw, 13px);
    font-family: 'Outfit', sans-serif; font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ag-rank-level {
    color: #b09060; font-size: clamp(8px, 0.8vw, 11px);
    font-family: 'Cinzel', serif; flex-shrink: 0; white-space: nowrap;
    margin-left: 0; margin-right: clamp(4px, 0.6vw, 10px);
    letter-spacing: 0.15em;
}
.ag-rank-empty .ag-rank-name { color: #2a2018; }
.ag-view-all {
    display: block; text-align: center; color: #7a6040;
    text-decoration: none; font-size: clamp(6px, 0.6vw, 9px);
    font-weight: 600; letter-spacing: 0.5px;
    margin-top: clamp(2px, 0.3vw, 6px); transition: color 0.2s ease; flex-shrink: 0;
}
.ag-view-all:hover { color: #e8c870; }

.ag-footer {
    position: relative;
    width: 100%;
    height: calc(234 / 2560 * 90vw);
    min-height: 30px;
    background-image: url('/img/astregate/footer_bar.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    margin-top: clamp(-155px, -8vw, -60px);
}
.ag-footer-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    padding: 0 3%; gap: 2%;
}
.ag-footer-logo { flex-shrink: 0; line-height: 0; }
.ag-footer-logo img { height: clamp(24px, 4.6vw, 80px); width: auto; display: block; }
.ag-footer-links {
    display: flex; gap: clamp(10px, 1.4vw, 24px);
    flex: 1; flex-wrap: wrap; align-items: center;
}
.ag-footer-links a {
    color: #7a6858; text-decoration: none;
    font-size: clamp(9px, 0.9vw, 14px); font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
    transition: color 0.2s ease; white-space: nowrap;
}
.ag-footer-links a:hover { color: #c9a84c; }
.ag-footer-copy { font-size: clamp(8px, 0.75vw, 11px); color: #8a7060; white-space: nowrap; }
.ag-footer-powered { margin-left: 4px; }
.ag-sinweb-trigger {
    position: relative; color: #b09060; cursor: default;
    display: inline-block; font-weight: 600;
}
.ag-sinweb-trigger:hover { color: #c9a84c; }
.ag-sinweb-card {
    position: absolute; bottom: calc(100% + 10px); left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(160deg, #1e140a 0%, #120d06 100%);
    border: 1px solid rgba(201,168,76,0.45);
    border-radius: 6px; padding: 10px 16px;
    display: flex; flex-direction: column; gap: 8px;
    white-space: nowrap; z-index: 9999;
    box-shadow: 0 6px 28px rgba(0,0,0,0.75), inset 0 1px 0 rgba(201,168,76,0.12);
    pointer-events: auto;
}

.ag-sinweb-card::after {
    content: '';
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(201,168,76,0.45);
}
.ag-sinweb-card-row {
    display: flex; align-items: center; gap: 7px;
}
.ag-sinweb-card-label {
    color: #5a4830; font-size: 10px; font-family: 'Outfit', sans-serif;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.ag-sinweb-link {
    color: #c9a84c; text-decoration: none; font-size: 13px;
    font-family: 'Outfit', sans-serif; font-weight: 600;
    pointer-events: auto;
}
.ag-sinweb-link:hover { color: #e8c870; text-decoration: underline; }
.ag-sinweb-discord {
    color: #9a8868; font-size: 13px; font-weight: 600;
    font-family: 'Outfit', sans-serif;
    user-select: none; -webkit-user-select: none;
    cursor: default;
}

#discord-banner-img  { max-width: 300px; height: auto; }
#discord-banner-img  { max-width: 300px; height: auto; }
#discord-wb-wrap     { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
#discord-wb-toggle   {
    width: 52px; height: 52px; border-radius: 50%;
    background: #5865f2; border: none; cursor: pointer;
    color: #fff; font-size: 22px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
#discord-wb-panel    { display: none; position: absolute; bottom: 62px; right: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.6); }
#discord-wb-panel.discord-wb-open { display: block; }

.notifications-pane {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    display: flex; flex-direction: column; gap: 8px; max-width: 340px;
}
.notification {
    padding: 12px 16px; border-radius: 6px; color: #fff;
    font-size: 13px; font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5); cursor: pointer;
}
.notification.success { background: rgba(40,120,60,0.92); border-left: 3px solid #40c060; }
.notification.error   { background: rgba(140,30,30,0.92); border-left: 3px solid #e04040; }
.notification.info    { background: rgba(30,80,160,0.92);  border-left: 3px solid #6090e0; }
.notification-close { margin-left: 12px; opacity: 0.7; }
.flex { display: flex; }
.flex-between { justify-content: space-between; align-items: center; width: 100%; }
.cursor-pointer { cursor: pointer; }
.notification-item { min-width: 220px; }

@media (max-width: 900px) {
    .ag-bottom-grid { width: 90%; }
}
@media (max-width: 768px) {
    .ag-nav-links { display: none; }
    .ag-nav-links.ag-mobile-open {
        display: flex; flex-direction: column;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(8,3,5,0.97);
        padding: 60px 20px 20px; z-index: 200;
        gap: 2px; overflow-y: auto;
    }
    .ag-nav-links.ag-mobile-open li a { font-size: 14px; padding: 8px 12px; display: block; }
    .ag-burger { display: inline-flex; }
    .ag-news-grid { grid-template-columns: 1fr; }
    .ag-bottom-grid { grid-template-columns: 1fr; max-width: 340px; width: 90%; gap: 14px; }
    .ag-stats-card > .ag-card-bg-img,
    .ag-ranking-card > .ag-card-bg-img { display: none; }
    .ag-stats-card-inner, .ag-ranking-card-inner {
        position: relative; inset: auto; padding: 14px;
        background: rgba(20,5,10,0.92);
        border: 1px solid rgba(201,168,76,0.22); border-radius: 4px;
    }
    .ag-footer { height: auto; min-height: 40px; }
    .ag-footer-inner { position: relative; flex-wrap: wrap; padding: 10px 16px; gap: 8px; }
    .ag-footer-copy { white-space: normal; }
    .ag-nav-wrap { height: clamp(36px, 6vw, 60px); }
    .ag-hero { height: 50vw; }
}
@media (max-width: 480px) {
    .ag-hero { height: 60vw; }
    .ag-nav-wrap { height: clamp(32px, 7vw, 52px); }
    .ag-hero-title-img { width: clamp(90px, 35vw, 160px); }
    .ag-download-btn { width: clamp(70px, 28vw, 130px); }
    .ag-bottom-grid { max-width: 100%; }
}

.ag-page {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 40px) 200px;
    margin-top: -40px;
}
.ag-page-wide {
    max-width: 1300px;
}

.ag-panel {
    position: relative;
    border-radius: 6px;
    padding: clamp(43px, 5.3%, 63px) clamp(28px, 11%, 140px) clamp(28px, 4%, 48px);
    overflow: hidden;
}
.ag-panel + .ag-panel {
    margin-top: clamp(16px, 2vw, 28px);
}
.ag-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.ag-panel > *:not(.ag-panel-bg) {
    position: relative;
    z-index: 1;
}
.ag-panel-glow {
    display: none;
}

.ag-page-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(18px, 2vw, 23px);
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 12px rgba(201,168,76,0.25);
    margin: 0 0 clamp(14px, 1.8vw, 24px);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ag-page-title i {
    font-size: 0.8em;
    opacity: 0.8;
}

.ag-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
    margin: clamp(12px, 1.5vw, 20px) 0;
}

.ag-page-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: clamp(16px, 2vw, 24px);
    flex-wrap: wrap;
}
.ag-page-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 4px;
    border: 1px solid rgba(201,168,76,0.2);
    background: rgba(255,255,255,0.03);
    color: #7a6858;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}
.ag-page-tab:hover {
    border-color: rgba(201,168,76,0.5);
    color: #c9a84c;
    background: rgba(201,168,76,0.07);
}
.ag-page-tab.active {
    border-color: rgba(201,168,76,0.55);
    color: #c9a84c;
    background: rgba(201,168,76,0.12);
}
.ag-page-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    border-radius: 2px;
}

.ag-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #2a1a08;
    transition: filter 0.2s ease, opacity 0.2s ease;
    overflow: hidden;
    line-height: 1;
}
.ag-btn:hover { filter: brightness(1.15); }
.ag-btn-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.ag-btn > span, .ag-btn > i {
    position: relative;
    z-index: 1;
}
.ag-btn-sm {
    height: clamp(30px, 3vw, 42px);
    min-width: clamp(100px, 11vw, 160px);
    font-size: clamp(11px, 1.05vw, 13px);
}
.ag-btn-sm span {
    position: relative;
    z-index: 1;
    padding: 0 clamp(12px, 1.4vw, 20px);
    white-space: nowrap;
}
.ag-btn-md {
    height: clamp(34px, 3.5vw, 48px);
    min-width: clamp(100px, 11vw, 160px);
    font-size: clamp(11px, 1.1vw, 15px);
}
.ag-btn-md span {
    position: relative;
    z-index: 1;
    padding: 0 clamp(14px, 1.6vw, 24px);
    white-space: nowrap;
}

.ag-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(11px, 1.1vw, 14px);
}
.ag-table thead th {
    font-family: 'Cinzel', serif;
    font-size: clamp(9px, 0.85vw, 11px);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a6858;
    padding: clamp(8px, 1vw, 12px) clamp(8px, 1.2vw, 16px);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    white-space: nowrap;
}
.ag-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
}
.ag-table tbody tr:hover {
    background: rgba(201,168,76,0.05);
}
.ag-table td {
    padding: clamp(7px, 0.85vw, 11px) clamp(8px, 1.2vw, 16px);
    color: #c8b89a;
    vertical-align: middle;
}
.ag-table .ag-rank-gold { color: #c9a84c; font-weight: 700; font-size: 1.05em; }
.ag-table .ag-rank-silver { color: #b8b8b8; font-weight: 700; }
.ag-table .ag-rank-bronze { color: #cd7f32; font-weight: 700; }
.ag-table .ag-rank-num {
    font-family: 'Cinzel', serif;
    font-size: 0.95em;
    font-weight: 700;
    color: #5a4a3a;
}
.ag-rank-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    font-family: 'Cinzel', serif;
}
.ag-rank-medal-1 { background: rgba(201,168,76,0.18); color: #c9a84c; border: 1px solid rgba(201,168,76,0.4); }
.ag-rank-medal-2 { background: rgba(184,184,184,0.12); color: #b8b8b8; border: 1px solid rgba(184,184,184,0.35); }
.ag-rank-medal-3 { background: rgba(205,127,50,0.12); color: #cd7f32; border: 1px solid rgba(205,127,50,0.35); }

.ag-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: clamp(12px, 1.5vw, 20px);
    margin-top: clamp(8px, 1vw, 14px);
    border-top: 1px solid rgba(201,168,76,0.12);
}
.ag-page-info {
    font-size: clamp(10px, 1vw, 13px);
    color: #7a6858;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.05em;
}

.ag-news-list {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vw, 24px);
    top: -17px;
}
.ag-news-list-item {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
    text-decoration: none;
    color: inherit;
    padding-bottom: clamp(14px, 1.8vw, 24px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s ease;
}
.ag-news-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.ag-news-list-item:hover .ag-news-list-title { color: #c9a84c; }
.ag-news-list-thumb {
    flex-shrink: 0;
    width: clamp(80px, 10vw, 140px);
    height: clamp(54px, 6.5vw, 90px);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(201,168,76,0.15);
}
.ag-news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ag-news-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ag-news-list-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ag-news-list-date {
    font-size: clamp(10px, 0.95vw, 12px);
    color: #5a4a3a;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ag-news-list-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(13px, 1.3vw, 17px);
    font-weight: 600;
    color: #d4c4a8;
    transition: color 0.2s ease;
    line-height: 1.3;
    margin: 0;
}
.ag-news-list-excerpt {
    font-size: clamp(11px, 1vw, 13px);
    color: #7a6858;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ag-news-list-read-more {
    font-size: clamp(10px, 0.95vw, 12px);
    color: #c9a84c;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s ease;
}
.ag-news-list-item:hover .ag-news-list-read-more { gap: 8px; }

.ag-cat-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: clamp(14px, 1.8vw, 24px);
    padding-bottom: clamp(12px, 1.5vw, 18px);
    border-bottom: 1px solid rgba(201,168,76,0.12);
}
.ag-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(201,168,76,0.2);
    background: rgba(255,255,255,0.03);
    color: #7a6858;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}
.ag-cat-btn:hover, .ag-cat-btn.active {
    border-color: rgba(201,168,76,0.5);
    color: #c9a84c;
    background: rgba(201,168,76,0.1);
}

.ag-news-article-header {
    margin-bottom: clamp(14px, 1.8vw, 24px);
    padding-bottom: clamp(12px, 1.5vw, 18px);
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.ag-news-article-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 700;
    color: #c9a84c;
    margin: 0 0 10px;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(201,168,76,0.2);
}
.ag-news-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.ag-news-article-date {
    font-size: clamp(10px, 1vw, 13px);
    color: #5a4a3a;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ag-news-article-img {
    width: 100%;
    max-height: clamp(180px, 25vw, 380px);
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid rgba(201,168,76,0.15);
    margin-bottom: clamp(16px, 2vw, 28px);
}
.ag-news-article-body {
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.75;
    color: #c8b89a;
}
.ag-news-article-body h1, .ag-news-article-body h2, .ag-news-article-body h3 {
    font-family: 'Cinzel', serif;
    color: #c9a84c;
    margin-top: 1.4em;
    margin-bottom: 0.5em;
}
.ag-news-article-body p { margin: 0 0 0.9em; }
.ag-news-article-body a { color: #c9a84c; }
.ag-news-article-body img { max-width: 100%; border-radius: 4px; }
.ag-news-article-body ul, .ag-news-article-body ol {
    padding-left: 1.4em;
    margin: 0 0 0.9em;
}

.ag-dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(14px, 2vw, 24px);
    margin-bottom: clamp(16px, 2vw, 28px);
}
.ag-dl-card {
    overflow: hidden;
}
.ag-dl-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: clamp(8px, 1vw, 12px) 0;
    border-bottom: 1px solid rgba(201,168,76,0.15);
}
.ag-dl-card-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #c9a84c;
}
.ag-dl-card-head-text h4 {
    font-family: 'Cinzel', serif;
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 700;
    color: #c9a84c;
    margin: 0 0 2px;
}
.ag-dl-card-head-text p {
    font-size: clamp(10px, 0.9vw, 12px);
    color: #5a4a3a;
    margin: 0;
}
.ag-dl-card-links {
    padding: clamp(8px, 1vw, 12px) 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ag-dl-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    text-decoration: none;
    color: #c8b89a;
    font-size: clamp(11px, 1.05vw, 13px);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.ag-dl-link:hover {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.07);
    color: #c9a84c;
}
.ag-dl-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ag-dl-link-left i {
    width: 16px;
    text-align: center;
    color: #c9a84c;
    font-size: 13px;
}
.ag-dl-link-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ag-dl-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    color: #c9a84c;
}
.ag-dl-card-foot {
    padding: 8px clamp(14px, 1.6vw, 20px);
    border-top: 1px solid rgba(201,168,76,0.08);
    font-size: 11px;
    color: #4a3a2a;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ag-sysreq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(16px, 2.5vw, 36px);
    top: -25px;
}
.ag-sysreq-col h4 {
    font-family: 'Cinzel', serif;
    font-size: clamp(10px, 1vw, 12px);
    font-weight: 700;
    color: #7a6858;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 clamp(10px, 1.2vw, 16px);
}
.ag-sysreq-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: clamp(11px, 1vw, 13px);
}
.ag-sysreq-row:last-child { border-bottom: none; }
.ag-sysreq-row i {
    width: 15px;
    text-align: center;
    color: #c9a84c;
    font-size: 12px;
    flex-shrink: 0;
}
.ag-sysreq-label {
    min-width: 60px;
    color: #5a4a3a;
    font-size: 0.95em;
}
.ag-sysreq-val { color: #c8b89a; }

.ag-empty-state {
    text-align: center;
    padding: clamp(32px, 4vw, 60px) 20px;
    color: #5a4a3a;
}
.ag-empty-state i {
    font-size: clamp(36px, 4vw, 56px);
    margin-bottom: 16px;
    display: block;
    opacity: 0.4;
}
.ag-empty-state p {
    font-size: clamp(12px, 1.1vw, 15px);
    margin: 6px 0 0;
}

@media (max-width: 768px) {
    .ag-sysreq-grid { grid-template-columns: 1fr; }
    .ag-news-list-thumb { width: 70px; height: 50px; }
    .ag-page { padding: 20px 14px 40px; }
}
@media (max-width: 480px) {
    .ag-dl-grid { grid-template-columns: 1fr; }
    .ag-news-list-item { flex-direction: column; }
    .ag-news-list-thumb { width: 100%; height: clamp(100px, 40vw, 160px); }
}

/* ── Account nav ─────────────────────────────────────────────── */
.ag-account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: clamp(16px, 2vw, 24px);
    position: relative;
    z-index: 10;
    margin-top: 50px;
}
.ag-btn-active {
    filter: brightness(1.15);
    outline: 2px solid rgba(201,168,76,0.5);
    outline-offset: 2px;
}

/* ── Account info grid ───────────────────────────────────────── */
.ag-account-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 2vw, 24px);
}
.ag-account-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Character cards ─────────────────────────────────────────── */
.ag-char-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(10px, 1.5vw, 18px);
}
.ag-char-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.ag-char-card {
    padding: clamp(7px, 0.9vw, 12px);
    border-bottom: 1px solid rgba(201,168,76,0.12);
}
.ag-char-card:last-child { border-bottom: none; }
.ag-char-card-full {
    border-bottom: none;
}
.ag-char-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.ag-char-avatar { width: 30px; height: 30px; object-fit: contain; }
.ag-char-avatar-lg { width: 38px; height: 38px; }
.ag-char-stats { display: flex; flex-direction: column; gap: 2px; }
.ag-char-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(10px, 0.85vw, 12px);
    padding: 2px 0;
    border-bottom: 1px solid rgba(201,168,76,0.08);
}
.ag-char-stat-row:last-child { border-bottom: none; }

/* ── Settings / donate two-col grid ─────────────────────────── */
.ag-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 40px);
}

/* ── Forms ───────────────────────────────────────────────────── */
.ag-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ag-form-label {
    display: block;
    font-size: 11px;
    color: #5a4a3a;
    font-family: 'Cinzel', serif;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ag-input {
    width: 100%;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(201,168,76,0.25);
    color: #c8b89a;
    padding: 9px 12px;
    font-size: clamp(12px, 1.1vw, 14px);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.ag-input:focus { outline: none; border-color: rgba(201,168,76,0.6); }
.ag-input::placeholder { color: #5a4a3a; }
.ag-input:disabled { opacity: 0.5; cursor: not-allowed; }
.ag-input option { background: #1a1208; color: #c8b89a; }
.ag-input-wrap { position: relative; }
.ag-input-wrap .ag-input { padding-right: 38px; }
.ag-input-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #5a4a3a;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    line-height: 1;
}
.ag-input-eye:hover { color: #c9a84c; }

/* ── Modal ───────────────────────────────────────────────────── */
.ag-modal-card {
    border: none;
    padding: clamp(43px, 5.3%, 63px) clamp(28px, 6%, 60px) clamp(40px, 5%, 60px);
    max-width: 480px;
    width: 90%;
    position: relative;
    overflow: hidden;
}
.ag-modal-card > *:not(.ag-panel-bg) {
    position: relative;
    z-index: 1;
}

/* ── Branded payment buttons (modal) ────────────────────────── */
.ag-pay-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 13px 18px;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    transition: filter 0.15s, transform 0.1s;
    text-align: left;
}
.ag-pay-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ag-pay-btn:active { transform: translateY(0); }
.ag-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.ag-pay-btn-stripe {
    background: linear-gradient(135deg, #635bff 0%, #7a73ff 100%);
}
.ag-pay-btn-paypal {
    background: linear-gradient(135deg, #003087 0%, #009cde 100%);
}

/* ── Donate cards ────────────────────────────────────────────── */
.ag-donate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(12px, 1.5vw, 17px);
}
.ag-donate-card {
    padding: clamp(12px, 1.4vw, 13px);
    border: 1px solid rgba(201,168,76,0.15);
    position: relative;
    transition: border-color 0.2s;
}
.ag-donate-card:hover { border-color: rgba(201,168,76,0.4); }
.ag-donate-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.ag-donate-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Cinzel', serif;
}
.ag-donate-badge-discount {
    background: rgba(248,113,113,0.12);
    color: #f87171;
    border: 1px solid rgba(248,113,113,0.3);
}
.ag-donate-badge-bonus {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.25);
}

@media (max-width: 900px) {
    .ag-account-info-grid { grid-template-columns: 1fr; }
    .ag-settings-grid { grid-template-columns: 1fr; }
    .ag-char-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-char-grid-2 { grid-template-columns: 1fr; }
    .ag-donate-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ag-char-grid { grid-template-columns: 1fr; }
    .ag-donate-grid { grid-template-columns: 1fr; }
    .ag-account-nav { gap: 6px; }
}

.ag-admin-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
    margin-bottom: clamp(16px,2vw,24px);
    padding: 0 clamp(28px,11%,140px);
    position: relative;
    z-index: 10;
}
.ag-admin-nav .ag-btn-sm {
    min-width: clamp(70px,7vw,110px);
    height: clamp(26px,2.6vw,36px);
    font-size: clamp(10px,0.95vw,12px);
}
.ag-admin-nav .ag-btn-sm span {
    padding: 0 clamp(8px,1vw,14px);
    font-size: clamp(10px,0.95vw,12px);
}
.ag-admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(12px,1.5vw,20px);
}
.ag-admin-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: clamp(6px,0.7vw,10px) 0;
}
.ag-admin-stat > i { color: #c9a84c; font-size: clamp(13px,1.3vw,17px); }
.ag-admin-stat-value {
    font-family: 'Cinzel', serif;
    font-size: clamp(14px,1.5vw,20px);
    font-weight: 700;
    color: #c9a84c;
    line-height: 1;
}
.ag-admin-stat-label {
    font-size: 10px;
    color: #5a4a3a;
}
.ag-tab-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: clamp(14px,1.8vw,22px);
    padding-bottom: clamp(12px,1.5vw,18px);
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.ag-callout {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 10px 14px;
    font-size: 12px;
    color: #5a4a3a;
    margin: 10px 0;
}
.ag-callout strong { color: #c9a84c; }
.ag-toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.ag-toggle-row span { font-size: 13px; color: #c8b89a; }
@media (max-width: 900px) {
    .ag-admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-admin-nav { gap: 6px; }
}
@media (max-width: 560px) {
    .ag-admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1025px) and (max-width: 1600px) {
    .ag-nav-left {
        padding-left: clamp(20px, 8vw, 140px);
    }
    .ag-nav-links {
        gap: clamp(6px, 1.2vw, 20px);
    }
    .ag-nav-links li a {
        font-size: clamp(10px, 1.1vw, 16px);
    }
    .ag-hero-text {
        right: clamp(100px, 20vw, 350px);
        top: clamp(5px, 1.2vw, 20px);
    }
    .ag-hero-logo {
        right: clamp(40px, 10vw, 160px);
        top: clamp(60px, 8vw, 130px);
    }
}

@media (max-width: 1024px) {

    body.ag-body { padding-top: 52px; background-image: none !important; background-color: #0d0407 !important; }

    /* ── Phase 1: Navbar ── */
    .ag-nav-wrap {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 52px !important;
        z-index: 2000;
    }
    .ag-nav-bg {
        background-image: none;
        background: #0d0905;
        border-bottom: 1px solid rgba(201,168,76,0.2);
    }
    .ag-nav-inner {
        position: relative;
        inset: auto;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 14px;
        gap: 0;
    }
    .ag-nav-logo-bg { display: none; }
    .ag-nav-logo {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        order: 2;
    }
    .ag-nav-logo img { width: 110px; }
    .ag-nav-left { display: none; }
    .ag-nav-right {
        order: 3;
        position: static;
        top: auto;
        gap: 8px;
        flex-shrink: 0;
    }
    .ag-nav-logout { display: none; }
    .ag-nav-user-group {
        gap: 6px;
    }
    .ag-gold-btn {
        height: 32px;
        width: auto;
        min-width: 0;
        padding: 0 10px;
    }
    .ag-gold-btn-bg { display: none; }
    .ag-gold-btn span {
        font-size: 11px;
        color: #c9a84c;
        position: static;
    }
    .ag-gold-btn.ag-btn-sm {
        height: 26px;
        width: auto;
        padding: 0 8px;
    }
    .ag-gold-btn.ag-btn-sm span { font-size: 10px; }
    .ag-lang-dropdown { order: 1; }
    .ag-lang-current { font-size: 11px; }
    .ag-lang-current img { width: 16px; }
    .ag-burger {
        display: inline-flex;
        order: 4;
        font-size: 18px;
        padding: 4px 6px;
    }
    .ag-nav-links {
        display: none;
    }
    .ag-nav-links.ag-mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 52px;
        left: 0; right: 0; bottom: 0;
        background: rgba(8,3,5,0.97);
        padding: 24px 20px;
        z-index: 1999;
        gap: 4px;
        overflow-y: auto;
    }
    .ag-nav-links.ag-mobile-open li a {
        font-size: 15px;
        padding: 12px 16px;
        display: block;
        border-bottom: 1px solid rgba(201,168,76,0.1);
    }

    /* ── Phase 1: Hero ── */
    .ag-hero {
        height: 56vw;
        margin-top: 0;
    }
    .ag-hero-content {
        padding: 2% 5% 0;
        justify-content: center;
        align-items: center;
    }
    .ag-hero-logo { display: none; }
    .ag-hero-text {
        position: static;
        right: auto;
        top: auto;
        align-items: center;
        gap: 8px;
    }
    .ag-hero-tagline { display: none; }
    .ag-hero-title-img { width: clamp(90px, 30vw, 160px); }
    .ag-download-btn { width: clamp(90px, 28vw, 140px); }
    .ag-download-btn span { font-size: clamp(7px, 2.2vw, 11px); top: 18px; }

    /* ── Phase 1: Footer ── */
    .ag-footer { height: auto; }
    .ag-footer-inner {
        position: relative;
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px;
        justify-content: center;
    }
    .ag-footer-logo img { height: 32px; }
    .ag-footer-links { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .ag-footer-copy { white-space: normal; text-align: center; width: 100%; }

    /* ── Phase 2: Panels ── */
    .ag-panel {
        padding: 20px 16px 24px;
        border: 1px solid rgba(201,168,76,0.18);
        background: rgba(15,8,4,0.95);
        border-radius: 6px;
    }
    .ag-panel-bg { display: none; }
    .ag-panel + .ag-panel { margin-top: 12px; }

    /* ── Phase 2: Page ── */
    .ag-page {
        padding: 12px 12px 60px;
        margin-top: 0;
    }
    .ag-news-section { margin-top: 0; }

    /* ── Phase 2: Grids → single column ── */
    .ag-news-grid { grid-template-columns: 1fr; }
    .ag-char-grid { grid-template-columns: 1fr; }
    .ag-char-grid-2 { grid-template-columns: 1fr; }
    .ag-donate-grid { grid-template-columns: 1fr; }
    .ag-dl-grid { grid-template-columns: 1fr; }
    .ag-sysreq-grid { grid-template-columns: 1fr; gap: 16px; }
    .ag-settings-grid { grid-template-columns: 1fr; }
    .ag-account-info-grid { grid-template-columns: 1fr; }
    .ag-bottom-grid { grid-template-columns: 1fr; max-width: 100%; gap: 12px; width: 92%; }
    .ag-admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

    /* ── Phase 2: Home cards ── */
    .ag-stats-card > .ag-card-bg-img,
    .ag-ranking-card > .ag-card-bg-img { display: none; }
    .ag-stats-card-inner, .ag-ranking-card-inner {
        position: relative;
        inset: auto;
        padding: 14px;
        background: rgba(20,5,10,0.92);
        border: 1px solid rgba(201,168,76,0.22);
        border-radius: 4px;
    }

    /* ── Phase 2: Tables ── */
    .ag-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ag-table { min-width: 480px; }

    /* ── Phase 2: Misc ── */
    .ag-page-title { font-size: clamp(14px, 4.5vw, 20px); }
    .ag-btn-sm {
        min-width: clamp(80px, 22vw, 130px);
        height: clamp(30px, 7vw, 40px);
        font-size: clamp(10px, 2.8vw, 13px);
    }
    .ag-btn-sm span { padding: 0 clamp(8px, 2vw, 14px); }
    .ag-page-tabs { gap: 5px; flex-wrap: wrap; }
    .ag-page-tab { padding: 6px 12px; font-size: 11px; }
    .ag-cat-btn { padding: 5px 10px; font-size: 11px; }
    .ag-tab-bar { gap: 5px; flex-wrap: wrap; }
    .ag-tab-bar .ag-btn-sm { min-width: clamp(60px, 18vw, 110px); font-size: clamp(9px, 2.4vw, 12px); }
    .ag-search-row { flex-wrap: wrap; gap: 8px; }
    .ag-donate-card { padding: 12px; }
    .ag-pay-btn { padding: 10px 14px; gap: 10px; }
    .ag-news-list-thumb { width: 70px; height: 52px; }
    .ag-admin-nav { padding: 0 12px; }

    /* ── Phase 3: Login modal (center overlay) ── */
    .ag-login-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        width: 88vw;
        max-width: 340px;
        aspect-ratio: unset;
        height: auto;
        background: #100a06;
        border: 1px solid rgba(201,168,76,0.3);
        border-radius: 8px;
        overflow: hidden;
        transform: translate(-50%, -46%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        filter: none;
        z-index: 1960;
    }
    .ag-login-panel.open {
        transform: translate(-50%, -50%);
        opacity: 1;
        pointer-events: auto;
    }
    .ag-login-panel-bg { display: none; }
    .ag-login-panel-inner {
        position: static;
        padding: 24px 20px 20px;
        gap: 10px;
    }
    .ag-login-field {
        width: 100%;
        aspect-ratio: unset;
        height: 40px;
        border: 1px solid rgba(201,168,76,0.25);
        border-radius: 4px;
        background: rgba(0,0,0,0.4);
    }
    .ag-login-field-bg { display: none; }
    .ag-login-field input {
        font-size: 13px;
        color: #e8d4a0;
        padding: 0 32px 0 12px;
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        background: transparent;
        border: none;
        outline: none;
    }
    .ag-login-field-eye { right: 10px; font-size: 12px; }
    .ag-login-panel-title { font-size: 14px; }
    .ag-login-panel-register { font-size: 11px; }
    .ag-login-panel-forgot { font-size: 12px; }
    .ag-login-submit-wrap {
        width: 100%;
        aspect-ratio: unset;
        height: 40px;
        top: 0;
        border-radius: 4px;
        overflow: hidden;
        background: linear-gradient(135deg, #a67c52, #4b3621);
    }
    .ag-login-submit-bg { display: none; }
    .ag-login-submit {
        font-size: 13px;
        color: #fff;
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Cinzel', serif;
        font-weight: 700;
        text-transform: uppercase;
    }
    .ag-login-recaptcha .g-recaptcha { transform: scale(0.78); margin: -10px 0 -14px; }

    /* ── Phase 3: Register modal (full-screen scroll) ── */
    .ag-register-modal {
        width: 92vw;
        max-width: 420px;
        aspect-ratio: unset;
        max-height: 90vh;
        overflow-y: auto;
        background: #100a06;
        border: 1px solid rgba(201,168,76,0.3);
        border-radius: 8px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -46%);
        padding: 0;
        filter: none;
        -webkit-overflow-scrolling: touch;
    }
    .ag-register-modal.open { transform: translate(-50%, -50%); }
    .ag-register-modal-bg { display: none; }
    .ag-register-modal-inner {
        position: static;
        padding: 24px 20px 24px;
        gap: 10px;
        overflow: visible;
    }
    .ag-register-modal-title { font-size: 14px; }
    .ag-register-modal-login { font-size: 11px; }
    .ag-register-modal-terms { font-size: 11px; }
    .ag-register-submit-wrap {
        width: 100%;
        aspect-ratio: unset;
        height: 40px;
        top: 0;
        border-radius: 4px;
        overflow: hidden;
        background: linear-gradient(135deg, #a67c52, #4b3621);
    }
    .ag-register-submit-bg { display: none; }
    .ag-register-submit {
        font-size: 13px;
        color: #fff;
        position: absolute;
        inset: 0;
        width: 100%; height: 100%;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Cinzel', serif;
        font-weight: 700;
        text-transform: uppercase;
        z-index: 1;
    }
    .ag-register-recaptcha .g-recaptcha { transform: scale(0.78); margin: -10px 0 -14px; }

    /* ── Phase 3: ag-modal-card (donate, debug, etc.) ── */
    .ag-modal-card {
        width: 94vw;
        max-width: 480px;
        padding: 20px 16px 20px;
        background: #100a06;
        border: 1px solid rgba(201,168,76,0.3);
        border-radius: 8px;
        overflow: hidden;
        max-height: 90vh;
        overflow-y: auto;
    }
    .ag-modal-card .ag-panel-bg { display: none; }

    /* ── Footer ── */
    .ag-footer {
        height: auto;
        margin-top: 0;
        background-image: none;
        background: #0d0905;
        border-top: 1px solid rgba(201,168,76,0.2);
    }
    .ag-footer-inner {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 14px 16px;
        gap: 10px;
    }
    .ag-footer-copy { font-size: 11px; }

    /* ── Bottom section (stats + rankings) ── */
    .ag-bottom-grid {
        flex-direction: column;
        align-items: stretch;
        width: 92%;
        gap: 12px;
        padding: 16px 0 24px;
    }
    .ag-stats-card {
        margin-top: 0;
        left: 0;
        width: 100%;
    }
    .ag-stats-card-inner {
        position: static;
        padding: 14px;
        background: rgba(20,5,10,0.92);
        border: 1px solid rgba(201,168,76,0.22);
        border-radius: 4px;
    }
    .ag-rankings-wrap {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .ag-ranking-card {
        margin-top: 0;
        width: 100%;
    }
    .ag-ranking-card-inner {
        position: static;
        padding: 14px;
        background: rgba(20,5,10,0.92);
        border: 1px solid rgba(201,168,76,0.22);
        border-radius: 4px;
    }
    .ag-card-bg-img { display: none; }
    .ag-card-heading { font-size: 13px; }
    .ag-stat-label { font-size: 12px; }
    .ag-stat-val { font-size: 13px; }
    .ag-stat-row-gap { margin-top: 10px; }

    /* ── Phase 4: Account nav ── */
    .ag-account-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 6px;
        margin-top: 16px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .ag-account-nav::-webkit-scrollbar { display: none; }
    .ag-account-nav .ag-btn-sm { flex-shrink: 0; }
}

/* ── Rankings table responsive ── */
.ag-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.ag-table-wrap .ag-table { min-width: 480px; }

@media (max-width: 600px) {
    .ag-col-playtime { display: none; }
    .ag-race-label { display: none; }
    .ag-table-wrap .ag-table { min-width: 360px; }
}
@media (max-width: 400px) {
    .ag-table-wrap .ag-table { min-width: 300px; font-size: 11px; }
    .ag-rank-medal { width: 20px; height: 20px; font-size: 10px; }
}

/* ── Admin search form responsive ── */
@media (max-width: 600px) {
    [style*="grid-template-columns:1fr 1fr auto"],
    [style*="grid-template-columns: 1fr 1fr auto"] {
        grid-template-columns: 1fr !important;
    }
}
