/* Global tokens */
:root {
    --site-accent: #d4af37;
    --site-accent-soft: rgba(212, 175, 55, 0.18);
    --site-text: #e8ebf4;
    --site-text-muted: #a9b0c5;
    --site-surface: rgba(11, 14, 24, 0.82);
    --site-surface-2: rgba(17, 22, 35, 0.9);
    --site-border: rgba(255, 255, 255, 0.1);
    --site-shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.28);
    --site-shadow-hard: 0 24px 50px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(212, 175, 55, 0.35);
    color: #fff;
}

/* Shared cursor for all pages */
html, body, a, button, input, select, textarea, label, .btn, .nav-link, .card, .list-group-item {
    cursor: url('/assets/img/cursor.png'), auto !important;
}
a:hover,
button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
label[for]:hover {
    cursor: url('/assets/img/cursor.png'), pointer !important;
}

/* Scrollbar polish */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.75), rgba(212, 175, 55, 0.35));
    border-radius: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.22);
}

/* A-quality visual layer.
   Applied only where html.site-aq exists (non-forum pages). */
html.site-aq body {
    color: var(--site-text);
}

html.site-aq a {
    transition: color 0.22s ease, filter 0.22s ease;
}

html.site-aq a:hover {
    filter: brightness(1.08);
}

html.site-aq .elite-panel,
html.site-aq .stat-card,
html.site-aq .admin-card,
html.site-aq .login-box,
html.site-aq .register-card,
html.site-aq .d-card,
html.site-aq .box,
html.site-aq .ranking-box,
html.site-aq .cat-box,
html.site-aq .item-card,
html.site-aq .market-header,
html.site-aq .hero-card,
html.site-aq .market-banner,
html.site-aq .table-dark,
html.site-aq .sidebar,
html.site-aq .card {
    border: 1px solid var(--site-border) !important;
    border-radius: 14px !important;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), var(--site-surface) !important;
    box-shadow: var(--site-shadow-soft) !important;
    backdrop-filter: blur(7px);
}

html.site-aq .market-header,
html.site-aq .top-nav,
html.site-aq .navbar,
html.site-aq .sidebar {
    background: linear-gradient(135deg, rgba(7, 10, 18, 0.96), rgba(15, 21, 33, 0.94)) !important;
}

html.site-aq .panel-header,
html.site-aq .section-title,
html.site-aq .title,
html.site-aq .form-header h2,
html.site-aq h1,
html.site-aq h2,
html.site-aq h3 {
    letter-spacing: 0.4px;
    text-shadow: 0 5px 18px rgba(0, 0, 0, 0.35);
}

html.site-aq .subtitle,
html.site-aq .text-muted,
html.site-aq small,
html.site-aq .f-desc {
    color: var(--site-text-muted) !important;
}

html.site-aq .btn,
html.site-aq button,
html.site-aq input[type="submit"],
html.site-aq input[type="button"],
html.site-aq .btn-elite,
html.site-aq .btn-register,
html.site-aq .btn-sepet,
html.site-aq .btn-satin-al,
html.site-aq .btn-gold,
html.site-aq .btn-quick,
html.site-aq .menu-link,
html.site-aq .sub-nav-btn,
html.site-aq .cat-link {
    border-radius: 11px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, filter 0.2s ease !important;
}

html.site-aq .btn:hover,
html.site-aq button:hover,
html.site-aq input[type="submit"]:hover,
html.site-aq input[type="button"]:hover,
html.site-aq .btn-elite:hover,
html.site-aq .btn-register:hover,
html.site-aq .btn-sepet:hover,
html.site-aq .btn-satin-al:hover,
html.site-aq .btn-gold:hover,
html.site-aq .btn-quick:hover,
html.site-aq .menu-link:hover,
html.site-aq .sub-nav-btn:hover,
html.site-aq .cat-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
    filter: saturate(1.08);
}

html.site-aq .btn-gold,
html.site-aq .btn-register,
html.site-aq .btn-satin-al,
html.site-aq .btn-enter {
    background: linear-gradient(145deg, #f7d86f, #c79e2f 55%, #a07920) !important;
    color: #121212 !important;
    border: 1px solid rgba(255, 225, 137, 0.6) !important;
}

html.site-aq .btn-elite,
html.site-aq .btn-sec,
html.site-aq .btn-outline-light,
html.site-aq .btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

html.site-aq input:not([type="checkbox"]):not([type="radio"]),
html.site-aq select,
html.site-aq textarea,
html.site-aq .form-control,
html.site-aq .form-elite,
html.site-aq .form-control-custom,
html.site-aq .adet-input {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 10px !important;
    background: rgba(9, 12, 20, 0.76) !important;
    color: #fff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

html.site-aq input:not([type="checkbox"]):not([type="radio"]):focus,
html.site-aq select:focus,
html.site-aq textarea:focus,
html.site-aq .form-control:focus,
html.site-aq .form-elite:focus,
html.site-aq .form-control-custom:focus,
html.site-aq .adet-input:focus {
    border-color: rgba(212, 175, 55, 0.85) !important;
    box-shadow: 0 0 0 0.18rem rgba(212, 175, 55, 0.24) !important;
    background: rgba(12, 16, 27, 0.88) !important;
}

html.site-aq .custom-table td,
html.site-aq .custom-table th,
html.site-aq .table-dark td,
html.site-aq .table-dark th,
html.site-aq .rank-table td,
html.site-aq .rank-table th {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

html.site-aq .custom-table tr:hover td,
html.site-aq .table-dark tr:hover td,
html.site-aq .rank-table tr:hover td {
    background: rgba(212, 175, 55, 0.08) !important;
}

html.site-aq .stat-card,
html.site-aq .item-card,
html.site-aq .cat-card,
html.site-aq .feature-box,
html.site-aq .event-item {
    position: relative;
    overflow: hidden;
}

html.site-aq .stat-card::before,
html.site-aq .item-card::before,
html.site-aq .feature-box::before,
html.site-aq .cat-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    border: 1px solid transparent;
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.35), rgba(255, 255, 255, 0.05), rgba(212, 175, 55, 0.2)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

html.site-aq .feature-box:hover,
html.site-aq .item-card:hover,
html.site-aq .cat-card:hover,
html.site-aq .d-card:hover,
html.site-aq .box:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow-hard) !important;
}

html.site-aq .nav-links a,
html.site-aq .nav-btn,
html.site-aq .menu-link,
html.site-aq .cat-link,
html.site-aq .sub-nav-btn {
    color: var(--site-text-muted) !important;
}

html.site-aq .nav-links a:hover,
html.site-aq .nav-links a.active,
html.site-aq .nav-btn:hover,
html.site-aq .menu-link:hover,
html.site-aq .cat-link:hover,
html.site-aq .cat-link.active,
html.site-aq .sub-nav-btn.active {
    color: #fff !important;
    border-color: rgba(212, 175, 55, 0.55) !important;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.04)) !important;
}

html.site-aq .logo-area img,
html.site-aq .main-logo,
html.site-aq .char-img,
html.site-aq .item-img {
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.38));
}

html.site-aq .alert {
    border-radius: 12px !important;
    border-width: 1px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

html.site-aq .modal-box,
html.site-aq .modal-content {
    border-radius: 16px !important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    box-shadow: var(--site-shadow-hard) !important;
}

html.site-aq .rank-num,
html.site-aq .badge,
html.site-aq .badge-custom,
html.site-aq .level-badge {
    border-radius: 999px !important;
}

html.site-aq .hero-section .render-left,
html.site-aq .hero-section .render-right {
    animation: siteFloat 4.6s ease-in-out infinite;
}

html.site-aq .hero-section .render-right {
    animation-delay: 0.5s;
}

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

/* Keep layout stable on smaller screens */
@media (max-width: 992px) {
    html.site-aq .market-header,
    html.site-aq .sidebar,
    html.site-aq .top-nav,
    html.site-aq .navbar {
        border-radius: 0 !important;
    }

    html.site-aq .d-card,
    html.site-aq .box,
    html.site-aq .ranking-box,
    html.site-aq .register-card {
        border-radius: 12px !important;
    }
}

@media (max-width: 576px) {
    html.site-aq .btn,
    html.site-aq .btn-elite,
    html.site-aq .btn-register,
    html.site-aq .btn-gold,
    html.site-aq .btn-satin-al,
    html.site-aq .btn-sepet,
    html.site-aq .btn-quick {
        border-radius: 9px !important;
    }
}
