/* ===== VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    --accent: #00d4aa;
    --accent-hover: #00b894;
    --purple: #7c3aed;
    --vip: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-tertiary: #9ca3af;
    --text-muted: #6b7280;
    --border: #1f2937;
    --border-light: #374151;
    --error: #ef4444;
    --success: #00d4aa;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-card-hover); }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.block { display: block; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 2.25rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 8px; font-weight: 500;
    font-size: 14px; border: none; cursor: pointer;
    transition: all 0.2s; text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--accent); color: var(--bg-primary); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-light); }
.btn-secondary:hover { background: var(--bg-card-hover); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; color: var(--text-tertiary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-vip { background: linear-gradient(to right, #f59e0b, #d97706); color: var(--bg-primary); font-weight: 700; }
.btn-vip:hover { background: linear-gradient(to right, #d97706, #b45309); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 10px 14px; background: var(--bg-secondary);
    border: 1px solid var(--border-light); border-radius: 8px;
    color: var(--text-secondary); font-size: 14px; transition: all 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,212,170,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form-error { font-size: 13px; color: var(--error); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,10,15,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31,41,55,0.5);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-size: 20px; font-weight: 700;
    background: linear-gradient(to right, var(--accent), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--text-tertiary); padding: 8px 16px; border-radius: 8px; transition: all 0.2s; font-size: 14px; }
.nav a:hover { color: var(--text-primary); }
.nav a.active { color: var(--accent); }
.nav-user { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; padding: 8px 12px; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 8px; }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(31,41,55,0.5);
    padding: 32px 0; margin-top: 64px;
    color: var(--text-muted); font-size: 14px;
}

/* ===== TELEGRAM BANNER (home page) ===== */
.tg-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(34,158,217,0.12) 0%, rgba(34,158,217,0.04) 100%);
    border: 1px solid rgba(34,158,217,0.3);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.tg-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(34,158,217,0.18) 0%, transparent 45%);
    pointer-events: none;
}
.tg-banner:hover {
    border-color: rgba(34,158,217,0.6);
    background: linear-gradient(135deg, rgba(34,158,217,0.18) 0%, rgba(34,158,217,0.06) 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(34,158,217,0.12);
}
.tg-banner-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #229ED9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.tg-banner-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.tg-banner-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.tg-banner-subtitle {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.4;
}
.tg-banner-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #229ED9;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}
.tg-banner:hover .tg-banner-cta {
    background: #1b85b8;
}
@media (max-width: 640px) {
    .tg-banner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 20px 16px;
    }
    .tg-banner-cta { width: 100%; justify-content: center; }
}

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

/* ===== LANG SWITCHER (footer) ===== */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
}
.lang-switcher-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-tertiary);
    font-size: 12px;
}
.lang-switcher-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}
.lang-switcher-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.lang-switcher-link.active {
    color: var(--bg-primary);
    background: var(--accent);
}
.lang-switcher-sep {
    color: var(--border-light);
    font-size: 11px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; transition: all 0.3s;
    text-decoration: none; display: block;
}
.card:hover {
    border-color: rgba(0,212,170,0.5);
    box-shadow: 0 10px 30px rgba(0,212,170,0.05);
    transform: translateY(-4px);
}
.card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 20px; }
.card-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; transition: color 0.2s; }
.card:hover .card-title { color: var(--accent); }
.card-desc { font-size: 14px; color: var(--text-tertiary); }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 20px 16px; }
.card-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* ===== VIP CARD ===== */
.card-vip { border-color: rgba(251,191,36,0.2); }
.card-vip:hover { border-color: rgba(251,191,36,0.5); box-shadow: 0 10px 30px rgba(251,191,36,0.05); }
.card-vip:hover .card-title { color: var(--vip); }
.vip-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(251,191,36,0.9); color: var(--bg-primary);
    padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
}
.new-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,212,170,0.9); color: var(--bg-primary);
    padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 700;
    letter-spacing: 0.5px;
}
.card-price { font-size: 18px; font-weight: 700; color: var(--vip); }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.badge-accent { background: rgba(0,212,170,0.1); color: var(--accent); border: 1px solid rgba(0,212,170,0.2); }
.badge-vip { background: rgba(251,191,36,0.1); color: var(--vip); border: 1px solid rgba(251,191,36,0.2); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }

/* ===== CATEGORY FILTERS ===== */
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; padding-top: 8px; }
.category-btn {
    padding: 10px 20px; border-radius: 12px; font-size: 14px;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-tertiary); cursor: pointer; transition: all 0.2s;
}
.category-btn:hover { border-color: rgba(0,212,170,0.3); color: var(--text-primary); }
.category-btn.active { background: rgba(0,212,170,0.1); border-color: rgba(0,212,170,0.5); color: var(--accent); }

/* ===== GRIDS ===== */
.assets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

/* ===== HERO ===== */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; text-align: center; }
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,212,170,0.05), transparent, rgba(124,58,237,0.05));
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.2);
    color: var(--accent); padding: 8px 16px; border-radius: 999px;
    font-size: 14px; margin-bottom: 24px;
}
.hero-title {
    font-size: 3rem; font-weight: 800; margin-bottom: 16px;
    background: linear-gradient(to right, var(--accent), var(--purple));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.25rem; color: var(--text-tertiary); max-width: 600px; margin: 0 auto 32px; }

/* ===== SEARCH ===== */
.search-box { position: relative; max-width: 500px; margin: 0 auto; }
.search-box.search-full { max-width: 100%; margin: 0 0 32px 0; }
.search-box input {
    width: 100%; padding: 14px 20px 14px 48px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; color: var(--text-primary); font-size: 16px;
    transition: all 0.2s;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,170,0.1); outline: none; }
.search-box input::placeholder { color: var(--text-muted); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* ===== DETAIL PAGE ===== */
.detail-header { margin-bottom: 32px; }
.detail-title { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-tertiary); font-size: 14px; align-items: center; }
.detail-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.detail-content { display: grid; grid-template-columns: 1fr 350px; gap: 32px; }
.detail-description { color: var(--text-secondary); line-height: 1.7; font-size: 15px; white-space: pre-wrap; }
.detail-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; height: fit-content; position: sticky; top: 80px; }
.detail-sidebar h3 { margin-bottom: 16px; }
.detail-info { display: flex; flex-direction: column; gap: 12px; }
.detail-info-row { display: flex; justify-content: space-between; font-size: 14px; }
.detail-info-label { color: var(--text-muted); }
.detail-info-value { color: var(--text-secondary); font-weight: 500; }

/* ===== GALLERY ===== */
.gallery-main {
    position: relative; aspect-ratio: 16/9; background: var(--bg-primary);
    border-radius: 12px; border: 1px solid var(--border); overflow: hidden;
    margin-bottom: 12px; cursor: pointer;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumb {
    width: 96px; height: 64px; border-radius: 8px; border: 2px solid transparent;
    overflow: hidden; cursor: pointer; flex-shrink: 0; opacity: 0.6; transition: all 0.2s;
}
.gallery-thumb:hover { opacity: 0.8; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; box-shadow: 0 0 10px rgba(0,212,170,0.2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.95); display: none;
    align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    padding: 8px; border-radius: 50%; cursor: pointer; z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    padding: 12px; border-radius: 50%; cursor: pointer; z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }

/* ===== REVIEWS ===== */
.reviews-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 32px; }
.reviews-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.review-form { padding: 24px; border-bottom: 1px solid var(--border); }
.review-item { padding: 20px 24px; border-bottom: 1px solid rgba(31,41,55,0.5); }
.review-item:last-child { border-bottom: none; }
.review-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,212,170,0.3), rgba(124,58,237,0.3));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--text-primary);
}
.review-author-name { font-weight: 500; color: var(--text-primary); font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.review-text { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.stars { display: inline-flex; gap: 2px; }
.star-filled { color: #fbbf24; }
.star-empty { color: var(--border-light); }
.star-btn { background: none; border: none; cursor: pointer; padding: 2px; font-size: 20px; transition: transform 0.1s; }
.star-btn:hover { transform: scale(1.2); }
.review-empty { padding: 40px 24px; text-align: center; color: var(--text-muted); }

/* ===== ADMIN LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 256px; background: var(--bg-secondary);
    border-right: 1px solid var(--border); padding: 20px 0;
    position: fixed; top: 0; bottom: 0; overflow-y: auto;
    display: flex; flex-direction: column;
}
.admin-sidebar .logo { display: block; padding: 0 20px; margin-bottom: 32px; font-size: 18px; text-decoration: none; }
.admin-nav { flex: 1; }
.admin-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; color: var(--text-tertiary); font-size: 14px;
    transition: all 0.2s; text-decoration: none;
}
.admin-nav a:hover { color: var(--text-primary); background: var(--bg-card); }
.admin-nav a.active { color: var(--accent); background: rgba(0,212,170,0.1); }
.admin-content { flex: 1; margin-left: 256px; padding: 32px; }
.admin-logout { margin-top: auto; padding: 0 12px; }
.admin-logout a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; color: var(--text-tertiary); border-radius: 8px; transition: all 0.2s;
}
.admin-logout a:hover { color: var(--error); background: rgba(239,68,68,0.1); }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.admin-page-header h1 { font-size: 1.5rem; }

/* ===== ADMIN TABLE ===== */
.table-wrapper { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left; padding: 12px 16px; font-size: 13px;
    font-weight: 500; color: var(--text-muted); text-transform: uppercase;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 12px 16px; font-size: 14px; color: var(--text-secondary); border-bottom: 1px solid rgba(31,41,55,0.5); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-secondary); }
.admin-table .actions { display: flex; gap: 8px; }
.admin-table .thumb { width: 60px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg-secondary); }

/* ===== STAT CARDS ===== */
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.stat-card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.stat-card-icon.accent { background: rgba(0,212,170,0.1); color: var(--accent); }
.stat-card-icon.purple { background: rgba(124,58,237,0.1); color: var(--purple); }
.stat-card-icon.vip { background: rgba(251,191,36,0.1); color: var(--vip); }
.stat-card-icon.blue { background: rgba(59,130,246,0.1); color: #3b82f6; }
.stat-card-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-card-label { font-size: 14px; color: var(--text-tertiary); margin-top: 4px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--text-tertiary); transition: all 0.2s; text-decoration: none; }
.pagination a:hover { background: var(--bg-card); color: var(--text-primary); }
.pagination .active { background: var(--accent); color: var(--bg-primary); font-weight: 600; }
.pagination .disabled { opacity: 0.3; pointer-events: none; }

/* ===== ALERTS & TOAST ===== */
.alert { padding: 16px 20px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-success { background: rgba(0,212,170,0.1); border: 1px solid rgba(0,212,170,0.2); color: var(--accent); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--error); }
.toast {
    position: fixed; top: 20px; right: 20px; z-index: 200;
    padding: 16px 24px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); font-size: 14px;
    transform: translateX(calc(100% + 40px)); transition: transform 0.3s;
    max-width: 400px;
}
.toast.show { transform: translateX(0); }
.toast.toast-success { border-color: rgba(0,212,170,0.3); color: var(--accent); }
.toast.toast-error { border-color: rgba(239,68,68,0.3); color: var(--error); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(0,0,0,0.7); display: none;
    align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px; max-width: 500px; width: 90%;
}
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--text-primary); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ===== LOADING ===== */
.spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--bg-card); border-radius: 8px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.loading-overlay {
    position: absolute; inset: 0; background: rgba(10,10,15,0.7);
    display: flex; align-items: center; justify-content: center; z-index: 10;
    border-radius: 12px;
}

/* ===== UPLOAD ===== */
.upload-area {
    border: 2px dashed var(--border-light); border-radius: 12px;
    padding: 40px; text-align: center; cursor: pointer; transition: all 0.2s;
    color: var(--text-muted);
}
.upload-area:hover { border-color: var(--accent); background: rgba(0,212,170,0.05); }
.upload-area.dragover { border-color: var(--accent); background: rgba(0,212,170,0.1); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.upload-preview-item {
    position: relative; width: 120px; height: 80px;
    border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-remove {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.7); color: #fff; border: none;
    width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
    font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg-primary); padding: 80px 20px 20px;
    display: flex; flex-direction: column; gap: 8px;
    transform: translateX(100%); transition: transform 0.3s;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
    padding: 16px; font-size: 18px; color: var(--text-secondary);
    border-radius: 12px; transition: all 0.2s;
}
.mobile-menu a:hover { background: var(--bg-card); color: var(--text-primary); }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state-icon { margin-bottom: 16px; opacity: 0.5; }
.empty-state-text { font-size: 16px; margin-bottom: 24px; }

/* ===== SECTION ===== */
.section { padding: 48px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 1.5rem; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
    padding: 12px 20px; font-size: 14px; color: var(--text-tertiary);
    border-bottom: 2px solid transparent; cursor: pointer; transition: all 0.2s;
    background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .admin-sidebar { transform: translateX(-100%); z-index: 60; transition: transform 0.3s; }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-content { margin-left: 0; }
    .detail-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 2rem; }
    .hero { padding: 48px 0 32px; }
    .assets-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .detail-content { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .form-row { grid-template-columns: 1fr; }
    .admin-page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    h1 { font-size: 1.75rem; }
}
@media (max-width: 640px) {
    .assets-grid { grid-template-columns: 1fr; }
    .container { padding: 0 12px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .category-filters { gap: 6px; }
    .category-btn { padding: 8px 14px; font-size: 13px; }
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: calc(100vh - 64px); display: flex;
    align-items: center; justify-content: center; padding: 40px 20px;
}
.auth-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 40px; max-width: 480px; width: 100%;
}
.auth-card h1 { text-align: center; margin-bottom: 8px; font-size: 1.5rem; }
.auth-card .subtitle { text-align: center; color: var(--text-tertiary); margin-bottom: 24px; font-size: 14px; }

/* ===== PASSWORD FIELD WITH EYE TOGGLE ===== */
.password-field {
    position: relative;
}
.password-field .form-input {
    padding-right: 44px;
    width: 100%;
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.password-toggle:hover {
    color: var(--accent);
    background: rgba(0,212,170,0.08);
}
.password-toggle svg {
    width: 18px;
    height: 18px;
}

/* ===== REGISTER NOTICE ===== */
.register-notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(239,68,68,0.1) 0%, rgba(239,68,68,0.04) 100%);
    border: 1px solid rgba(239,68,68,0.35);
    border-radius: 10px;
}
.register-notice-icon {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    display: flex; align-items: center; justify-content: center;
}
.register-notice-body { flex: 1; min-width: 0; }
.register-notice-title {
    font-size: 13px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.register-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-secondary);
}
.register-notice-list li {
    padding: 3px 0;
    position: relative;
    padding-left: 14px;
}
.register-notice-list li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: #ef4444;
    font-weight: 700;
}
.register-notice-list strong {
    color: #f87171;
    font-weight: 700;
}
.auth-links { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-links a { color: var(--accent); }
.auth-links a:hover { text-decoration: underline; }

/* ===== IMPORT PAGE ===== */
.import-result { margin-top: 24px; }
.import-item {
    display: flex; gap: 16px; padding: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 12px;
}
.import-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.import-item-info { flex: 1; }
.import-item-title { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }

/* ===== PROMO POPUP ===== */
.promo-overlay {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    padding: 20px; animation: promoFadeIn 0.3s ease;
}

.promo-overlay.hidden { display: none !important; }

.promo-popup {
    position: relative;
    width: min(480px, 100%);
    background: linear-gradient(145deg, #1a1a2e, #12121a);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 80px rgba(0, 212, 170, 0.08);
    animation: promoSlideUp 0.4s ease;
}

.promo-popup-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none; color: var(--text-muted);
    font-size: 24px; cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.promo-popup-close:hover { color: var(--text-primary); }

.promo-popup-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.3);
    border-radius: 999px;
    font-size: 12px; font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.promo-popup-title {
    font-size: 28px; font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #00d4aa, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promo-popup-desc {
    font-size: 14px; line-height: 1.6;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.promo-popup-games {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 8px; margin-bottom: 24px;
}

.promo-game-tag {
    padding: 5px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary);
}

.promo-popup-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0a0a0f;
    font-size: 15px; font-weight: 700;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.promo-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.35);
    color: #0a0a0f;
}

/* ===== PROMO BAR ===== */
.promo-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
    background: linear-gradient(90deg, #1a1a2e, #12121a);
    border-bottom: 1px solid var(--border);
    animation: promoSlideDown 0.3s ease;
}

.promo-bar.hidden { display: none !important; }

.promo-bar-inner {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 1rem;
    font-size: 13px;
}

.promo-bar-icon { font-size: 16px; }

.promo-bar-text {
    flex: 1; color: var(--text-tertiary);
}
.promo-bar-text a {
    color: var(--accent); font-weight: 600;
    border-bottom: 1px solid rgba(0, 212, 170, 0.4);
}
.promo-bar-text a:hover { color: var(--accent-hover); }

.promo-bar-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 18px;
    cursor: pointer; padding: 4px 8px; line-height: 1;
}
.promo-bar-close:hover { color: var(--text-primary); }

body.has-promo-bar { padding-top: 42px; }
body.has-promo-bar .header { top: 42px; }

@keyframes promoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes promoSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes promoSlideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
