:root {
    --bg-deep: #050508;
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #111119;
    --bg-card-hover: #161625;
    --gold: #d4a843;
    --gold-light: #f0d078;
    --gold-dark: #a67c2e;
    --gold-glow: rgba(212, 168, 67, 0.5);
    --text-primary: #e8e6e0;
    --text-secondary: #9a9788;
    --text-muted: #6b6860;
    --border: #252525;
    --border-gold: rgba(212, 168, 67, 0.3);
    --danger: #c0392b;
    --danger-light: #e74c3c;
    --success: #27ae60;
    --success-light: #2ecc71;
    --info: #3498db;
    --warning: #f39c12;
    --radius: 18px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ЗОЛОТАЯ ПЫЛЬ НА ФОНЕ
   ============================================ */
.golden-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.dust-particle {
    position: absolute;
    background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatDust 8s ease-in-out infinite;
    opacity: 0;
}

@keyframes floatDust {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    30% {
        transform: translateY(70vh) translateX(30px) scale(1);
        opacity: 0.6;
    }
    60% {
        transform: translateY(30vh) translateX(-30px) scale(0.7);
        opacity: 0.4;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0.2);
        opacity: 0;
    }
}

/* Сетка на фоне */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(212, 168, 67, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 67, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   КОНТЕЙНЕР
   ============================================ */
.container {
    width: 100%;
    max-width: 1250px;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 28px;
    padding: 25px 30px 35px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8), 
        0 0 0 1px rgba(212, 168, 67, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    z-index: 1;
    margin: 20px 0;
    transition: var(--transition);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-gold);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #1a1a0a, #332b0a);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: var(--gold);
    box-shadow: 0 0 25px var(--gold-glow);
    border: 1px solid rgba(212, 168, 67, 0.4);
    animation: glowPulse 3s ease-in-out infinite;
    overflow: hidden;
    position: relative;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--gold-glow); 
    }
    50% { 
        box-shadow: 0 0 40px rgba(240, 208, 120, 0.7); 
    }
}

.logo-text h1 {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #f0d078, #d4a843, #a67c2e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    display: block;
}

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

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    padding: 11px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    text-decoration: none;
    font-family: var(--font);
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: linear-gradient(135deg, #c49b38, #a67c2e);
    color: #0a0a0f;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(212, 168, 67, 0.4);
    border: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d4a843, #b8862d);
    box-shadow: 0 6px 25px rgba(212, 168, 67, 0.6);
    transform: translateY(-2px);
}

.btn-gold:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(212, 168, 67, 0.08);
    color: var(--gold-light);
}

.btn-outline:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.btn-danger {
    background: rgba(192, 57, 43, 0.15);
    border: 1px solid rgba(192, 57, 43, 0.4);
    color: var(--danger-light);
}

.btn-danger:hover {
    background: rgba(192, 57, 43, 0.3);
    border-color: var(--danger-light);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-danger:focus-visible {
    outline: 2px solid var(--danger-light);
    outline-offset: 2px;
}

.btn-sm {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-buy {
    flex: 1;
    background: linear-gradient(135deg, #c49b38, #8b6914);
    color: #0a0a0f;
    border: none;
    font-weight: 700;
    text-align: center;
    justify-content: center;
}

.btn-buy:hover {
    background: linear-gradient(135deg, #d4a843, #a67c2e);
    box-shadow: 0 4px 15px rgba(212, 168, 67, 0.4);
}

.btn-delete {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.3);
    color: var(--danger-light);
}

.btn-delete:hover {
    background: rgba(192, 57, 43, 0.25);
    border-color: var(--danger-light);
}

/* ============================================
   USER BADGE
   ============================================ */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-gold);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.user-badge:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(212, 168, 67, 0.2);
    background: var(--bg-card-hover);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0f;
    font-size: 0.9rem;
    position: relative;
    flex-shrink: 0;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.stat-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    flex: 1;
    min-width: 110px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--border-gold);
}

.stat-icon {
    width: 38px;
    height: 38px;
    background: rgba(212, 168, 67, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================
   FILTERS
   ============================================ */
.filters-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.filter-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
select, 
input[type="text"], 
input[type="password"], 
input[type="number"], 
input[type="url"],
input[type="email"],
textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 25px;
    padding: 11px 16px;
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    font-family: var(--font);
}

textarea {
    border-radius: 15px;
    padding: 12px 16px;
    resize: vertical;
    min-height: 60px;
    line-height: 1.5;
}

select:hover, 
input:hover, 
textarea:hover {
    border-color: var(--gold);
}

select:focus, 
input:focus, 
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
    background: var(--bg-card-hover);
}

select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    min-width: 150px;
}

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

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Поиск */
.search-input {
    flex: 1;
    min-width: 180px;
    position: relative;
}

.search-input input {
    width: 100%;
    padding-left: 42px;
}

.search-input i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* ============================================
   SERVER TABS
   ============================================ */
.server-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    padding-bottom: 4px;
}

.server-tabs::-webkit-scrollbar {
    height: 3px;
}

.server-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.server-tabs::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.server-tab {
    background: var(--bg-card);
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.server-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), transparent);
    opacity: 0;
    transition: var(--transition);
}

.server-tab:hover::before {
    opacity: 1;
}

.server-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-gold);
}

.server-tab.active {
    background: linear-gradient(135deg, #5c4518, #3d2e0a);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 4px 18px rgba(212, 168, 67, 0.4);
    transform: translateY(-1px);
}

.server-count {
    background: rgba(212, 168, 67, 0.2);
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 0.65rem;
    margin-left: 5px;
    font-weight: 700;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-gold);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.6), 
        0 0 0 1px rgba(212, 168, 67, 0.25);
    background: var(--bg-card-hover);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image-wrapper img {
    transform: scale(1.06);
}

.card-badge-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-light);
    border: 1px solid rgba(212, 168, 67, 0.25);
}

.card-badge-server {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold-dark);
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 0.6rem;
    font-weight: 700;
    color: #0a0a0f;
}

.card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-contact {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-contact i {
    color: var(--gold);
    font-size: 0.7rem;
}

.card-contact a {
    color: var(--gold-light);
    text-decoration: none;
    transition: var(--transition);
    word-break: break-all;
}

.card-contact a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-light);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-price i {
    font-size: 0.9rem;
}

.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.card-author {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #000;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--gold);
    font-size: 1rem;
}

.loading-spinner i {
    margin-right: 8px;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3.5rem;
    color: var(--border);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ccc;
}

.empty-state p {
    font-size: 0.9rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 28px;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal::-webkit-scrollbar {
    width: 4px;
}

.modal::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    padding-bottom: 10px;
    z-index: 1;
}

.modal-header h2 {
    color: var(--gold-light);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-close:hover {
    color: var(--danger-light);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   FORM GROUPS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group select, 
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 25px;
}

.form-group textarea {
    border-radius: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    background: linear-gradient(135deg, #c49b38, #8b6914);
    color: #0a0a0f;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #d4a843, #a67c2e);
    box-shadow: 0 6px 20px rgba(212, 168, 67, 0.5);
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

/* ============================================
   MODAL LINK
   ============================================ */
.modal-link {
    text-align: center;
    margin-top: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.modal-link a {
    color: var(--gold);
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition);
}

.modal-link a:hover {
    color: var(--gold-light);
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 350px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    padding: 14px 22px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: slideInRight 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   PROFILE SECTION
   ============================================ */
.profile-section {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid var(--border-gold);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.profile-avatar-lg {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0f;
    flex-shrink: 0;
}

/* ============================================
   TABLE STYLES (для админ-панели)
   ============================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.admin-table th {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 2px solid var(--border-gold);
    color: var(--gold-light);
    font-weight: 700;
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
}

.admin-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}

.admin-table tr:hover td {
    background: rgba(212, 168, 67, 0.05);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        margin: 10px;
        padding: 20px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 8px;
        border-radius: 20px;
    }
    
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 8px;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .modal {
        padding: 20px;
        max-width: 95%;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .toast {
        font-size: 0.8rem;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        margin: 5px;
        border-radius: 14px;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .server-tab {
        padding: 8px 14px;
        font-size: 0.7rem;
    }
    
    .card-image-wrapper {
        height: 140px;
    }
    
    .card-title {
        font-size: 0.95rem;
    }
    
    .card-price {
        font-size: 1.2rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body::after,
    .golden-dust,
    .toast-container,
    .modal-overlay {
        display: none !important;
    }
    
    .container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}