:root {
    --primary: #0062ff;
    --primary-dark: #0046b8;
    --accent: #00c6ff;
    --bg: #0b0f19;
    --bg-card: #151c2c;
    --bg-glass: rgba(21, 28, 44, 0.9);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #222f47;
    --shadow: 0 10px 30px -5px rgba(0,0,0,0.5);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all .25s ease;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px -5px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.page-section { padding: 60px 0; border-top: 1px solid var(--border); }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 12px; }
.d-flex { display: flex; }
.gap-2 { gap: 12px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.hidden { display: none !important; }

/* Navbar */
.navbar {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 1000;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.site-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}
.site-logo:hover { transform: scale(1.05); }
.auth-logo { height: 80px; width: auto; object-fit: contain; }

.nav-links { display: flex; list-style: none; gap: 4px; }
.nav-links a {
    color: var(--text-muted); padding: 8px 14px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .9rem;
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(0,98,255,0.15); color: var(--primary);
}
.nav-right { display: flex; align-items: center; gap: 10px; }

.more-menu-wrapper { position: relative; }
.dropdown-menu {
    position: absolute; top: 48px; right: 0; width: 220px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow);
    padding: 8px 0; display: none; flex-direction: column; z-index: 1100;
}
.dropdown-menu.show { display: flex; }
.dropdown-item {
    padding: 10px 18px; color: var(--text); font-size: 0.9rem; font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.dropdown-item:hover { background: rgba(0,98,255,0.1); color: var(--primary); }

.balance-badge {
    background: linear-gradient(135deg, rgba(0,98,255,0.2), rgba(0,198,255,0.2));
    border: 1px solid rgba(0,98,255,0.4);
    color: var(--primary); padding: 8px 14px; border-radius: 30px;
    font-weight: 700; font-size: .85rem;
    display: flex; align-items: center; gap: 8px;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
    border: none; cursor: pointer; text-decoration: none; transition: var(--transition);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 4px 14px rgba(0,98,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,98,255,0.5); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-icon {
    background: var(--bg-card); border: 1px solid var(--border);
    width: 42px; height: 42px; border-radius: 50%; color: var(--text);
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.btn-sm { padding: 8px 14px; font-size: .8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.hero { padding: 70px 0 50px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,98,255,0.18) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    background: rgba(0,98,255,0.12); color: var(--primary); font-weight: 700;
    padding: 6px 16px; border-radius: 20px; display: inline-flex; gap: 8px;
    font-size: 0.85rem; margin-bottom: 20px; border: 1px solid rgba(0,98,255,0.25);
}
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto 30px; font-size: 1.1rem; }
.hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-header {
    padding: 18px 24px; border-bottom: 1px solid var(--border); font-weight: 700;
    display: flex; gap: 10px; align-items: center; background: rgba(0,98,255,0.03);
}
.card-body { padding: 24px; }

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px;
}
.stat-icon {
    width: 50px; height: 50px; border-radius: 12px;
    background: rgba(0,98,255,0.15); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.stat-card .value { font-size: 1.4rem; font-weight: 800; }
.stat-card .label { font-size: .85rem; color: var(--text-muted); }

.platform-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; font-size: 1.15rem; color: #fff;
    transition: var(--transition); flex-shrink: 0;
    animation: platPulse 2.8s ease-in-out infinite;
}
@keyframes platPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}
.hero-platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-platforms .platform-badge { width: 44px; height: 44px; font-size: 1.25rem; }

.plat-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.plat-tiktok { background: #000; border: 1px solid #444; }
.plat-telegram { background: #0088cc; }
.plat-youtube { background: #ff0000; }
.plat-facebook { background: #1877f2; }
.plat-spotify { background: #1db954; }
.plat-twitch { background: #9146ff; }
.plat-discord { background: #5865f2; }
.plat-kick { background: #53fc18; color: #111; }
.plat-kwai { background: linear-gradient(135deg, #ff4906, #ff7a00); }
.plat-linkedin { background: #0a66c2; }
.plat-reddit { background: #ff4500; }
.plat-threads { background: #000; border: 1px solid #555; }
.plat-twitter { background: #1da1f2; }
.plat-soundcloud { background: #ff5500; }
.plat-snapchat { background: #fffc00; color: #111; }
.plat-pinterest { background: #e60023; }
.plat-likee { background: #ff2d55; }
.plat-default { background: linear-gradient(135deg, var(--primary), var(--accent)); }

.platform-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.plat-filter {
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
    padding: 8px 16px; border-radius: 30px; font-size: .85rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.plat-filter:hover, .plat-filter.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
}

.table-responsive { overflow-x: auto; }
.service-table { width: 100%; border-collapse: collapse; }
.service-table th, .service-table td {
    padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border);
    font-size: .9rem; vertical-align: middle;
}
.service-table th {
    background: rgba(0,98,255,0.04); color: var(--text-muted);
    font-size: 0.75rem; text-transform: uppercase; font-weight: 700;
}
.service-table tr:hover { background: rgba(0,98,255,0.03); }
.badge-tag {
    font-size: 0.72rem; background: rgba(0,98,255,0.15); color: var(--primary);
    padding: 2px 8px; border-radius: 6px; margin-left: 6px; font-weight: 600;
}
.price-tag { font-weight: 800; color: var(--primary); white-space: nowrap; }

.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-canceled, .badge-failed { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .badge-pending { background: #78350f; color: #fef3c7; }
[data-theme="dark"] .badge-processing { background: #1e3a5f; color: #bfdbfe; }
[data-theme="dark"] .badge-completed { background: #064e3b; color: #a7f3d0; }
[data-theme="dark"] .badge-canceled { background: #7f1d1d; color: #fecaca; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .85rem; }
.form-control {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font-size: .9rem;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,98,255,0.2); }
.form-text { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.input-copy-wrapper { display: flex; gap: 8px; }

.alert {
    padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
    font-size: .9rem; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.alert-error { background: rgba(239,68,68,.15); color: #f87171; border: 1px solid rgba(239,68,68,.3); }
.alert-info { background: rgba(0,98,255,.12); color: var(--primary); border: 1px solid rgba(0,98,255,.25); }

.auth-wrapper {
    min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 24px;
}
.auth-card { width: 100%; max-width: 440px; }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center; z-index: 2000;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
    background: var(--bg-card); border-radius: var(--radius); width: 90%; max-width: 480px;
    border: 1px solid var(--border); box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto;
}
.modal-header {
    padding: 18px 24px; border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.modal-body { padding: 24px; }
.modal-service-details {
    background: rgba(0,98,255,0.08); padding: 14px; border-radius: var(--radius-sm); margin-bottom: 18px;
}
.modal-info-pills { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.total-price-box {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg); padding: 12px 16px; border-radius: var(--radius-sm);
    border: 1px dashed var(--border); font-weight: 700; margin-top: 10px;
}
.modal-footer {
    padding: 16px 24px; border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
}

.section-header h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); }

.footer {
    padding: 30px 0; border-top: 1px solid var(--border);
    text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 40px;
}

/* Admin sidebar keep basic */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px; background: var(--bg-card); border-right: 1px solid var(--border);
    padding: 20px 0; position: fixed; height: 100vh; overflow-y: auto;
}
.admin-content { margin-left: 260px; flex: 1; padding: 24px; }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    color: var(--text-muted); font-weight: 500;
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(0,98,255,0.1); color: var(--primary); border-right: 3px solid var(--primary);
}

@media (max-width: 900px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .nav-links, .desktop-only { display: none; }
    .hero h1 { font-size: 2rem; }
    .site-logo { height: 52px; }
    .admin-sidebar { transform: translateX(-100%); }
    .admin-content { margin-left: 0; }
}


/* Logo force size + dropdown polish */
.site-logo {
    height: 70px !important;
    width: auto;
    object-fit: contain;
}
.navbar .container { height: 80px; }
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: rgba(0, 98, 255, 0.1); color: #0062ff; }

/* Category filter wrap - many platforms */
.platform-filters {
    max-height: none;
    overflow: visible;
}
.platform-filters.bottom-filters {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
