/* ═══════════════════════════════════════
   MARK: CLICKBAIT — Admin Panel Theme
   Neon Dark Cyber Dashboard
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #08080f;
    --bg-secondary: #0e0e1a;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;
    --bg-panel: rgba(14, 14, 26, 0.95);
    --bg-input: rgba(20, 20, 40, 0.8);
    --neon-cyan: #00f0ff;
    --neon-lime: #a0ff00;
    --neon-yellow: #ffe600;
    --neon-violet: #b44aff;
    --neon-pink: #ff2a6d;
    --neon-orange: #ff6a00;
    --neon-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #8888aa;
    --text-muted: #555577;
    --font-display: 'Orbitron', monospace;
    --font-ui: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 0.15s ease;
    --transition-med: 0.3s ease;
    --radius: 10px;
    --radius-sm: 6px;
    --sidebar-w: 220px;
}

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

html,
body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

/* ═══ SCREENS ═══ */
.screen {
    display: none;
    width: 100%;
    height: 100%;
}

.screen.active {
    display: flex;
}

/* ═══ AUTH SCREEN ═══ */
#authScreen {
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0e0e2a 0%, #08080f 70%);
}

.auth-container {
    text-align: center;
}

.auth-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.auth-title .colon {
    color: var(--neon-pink);
}

.auth-title .accent {
    color: var(--neon-cyan);
}

.auth-subtitle {
    font-family: var(--font-ui);
    color: var(--text-muted);
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 40px;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-med);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-cyan);
}

.btn-google:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-error {
    margin-top: 20px;
    color: var(--neon-pink);
    font-size: 14px;
}

.hidden {
    display: none !important;
}

/* ═══ DENIED SCREEN ═══ */
#deniedScreen {
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #1a0a0a 0%, #08080f 70%);
}

.denied-container {
    text-align: center;
}

.denied-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.denied-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--neon-pink);
    letter-spacing: 4px;
    text-shadow: 0 0 30px rgba(255, 42, 109, 0.4);
    margin-bottom: 12px;
}

.denied-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 8px;
}

.denied-email {
    color: var(--text-muted);
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 24px;
}

/* ═══ MAIN APP LAYOUT ═══ */
#mainApp {
    flex-direction: row;
}

/* ═══ SIDEBAR ═══ */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
}

.sidebar-brand {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.brand-m {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.brand-rest {
    color: var(--text-secondary);
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    text-align: left;
    width: 100%;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(0, 240, 255, 0.06);
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
}

.nav-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.3);
}

.admin-name {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-ui);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-signout {
    width: 100%;
    padding: 8px;
    background: transparent;
    border: 1px solid rgba(255, 42, 109, 0.2);
    border-radius: var(--radius-sm);
    color: var(--neon-pink);
    font-family: var(--font-ui);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-signout:hover {
    background: rgba(255, 42, 109, 0.1);
}

/* ═══ CONTENT AREA ═══ */
.content {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 28px 32px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* ═══ KPI GRID ═══ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.kpi-grid.kpi-small {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 18px 16px;
    transition: var(--transition-med);
}

.kpi-card:hover {
    border-color: rgba(0, 240, 255, 0.15);
}

.kpi-label {
    font-family: var(--font-ui);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.kpi-value.pink {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 42, 109, 0.15);
}

.kpi-value.lime {
    color: var(--neon-lime);
    text-shadow: 0 0 10px rgba(160, 255, 0, 0.15);
}

.kpi-value.gold {
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.15);
}

.kpi-value.violet {
    color: var(--neon-violet);
    text-shadow: 0 0 10px rgba(180, 74, 255, 0.15);
}

/* ═══ CARDS ═══ */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    padding: 20px;
    flex: 1;
}

.card-title {
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.dashboard-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

/* ═══ TOOLBAR ═══ */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.toolbar-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-fast);
    min-width: 160px;
}

.search-input:focus {
    border-color: rgba(0, 240, 255, 0.3);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-select {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-select option {
    background: var(--bg-secondary);
}

/* ═══ BUTTONS ═══ */
.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 240, 255, 0.05));
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: var(--radius-sm);
    color: var(--neon-cyan);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.btn-secondary {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-ui);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-danger {
    padding: 10px 20px;
    background: rgba(255, 42, 109, 0.1);
    border: 1px solid rgba(255, 42, 109, 0.3);
    border-radius: var(--radius-sm);
    color: var(--neon-pink);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-danger:hover {
    background: rgba(255, 42, 109, 0.2);
}

.btn-success {
    padding: 10px 20px;
    background: rgba(160, 255, 0, 0.1);
    border: 1px solid rgba(160, 255, 0, 0.3);
    border-radius: var(--radius-sm);
    color: var(--neon-lime);
    font-family: var(--font-ui);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* ═══ DATA TABLE ═══ */
.data-table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 10px 12px;
    font-family: var(--font-ui);
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: nowrap;
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.015);
}

.data-table tr {
    cursor: pointer;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

.badge-active {
    background: rgba(160, 255, 0, 0.1);
    color: var(--neon-lime);
    border: 1px solid rgba(160, 255, 0, 0.2);
}

.badge-blocked {
    background: rgba(255, 42, 109, 0.1);
    color: var(--neon-pink);
    border: 1px solid rgba(255, 42, 109, 0.2);
}

.badge-deleted {
    background: rgba(85, 85, 119, 0.2);
    color: var(--text-muted);
    border: 1px solid rgba(85, 85, 119, 0.3);
}

.badge-used {
    background: rgba(180, 74, 255, 0.1);
    color: var(--neon-violet);
    border: 1px solid rgba(180, 74, 255, 0.2);
}

/* ═══ PAGINATION ═══ */
.pagination {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    justify-content: center;
}

.page-btn {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}

.page-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ═══ MODALS ═══ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    padding: 28px;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.08) transparent;
}

.modal-sm {
    width: 420px;
    max-width: 90vw;
}

.modal-wide {
    width: 700px;
    max-width: 95vw;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 16px;
}

.confirm-input-wrap {
    margin-bottom: 10px;
}

.confirm-input-wrap .search-input {
    width: 100%;
}

/* ═══ USER DETAIL ═══ */
.user-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.user-detail-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
}

.user-detail-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.user-detail-email {
    font-size: 13px;
    color: var(--text-muted);
}

.user-detail-uid {
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    background: var(--bg-card);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-ui);
    margin-bottom: 4px;
}

.detail-value {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--neon-cyan);
}

.detail-value.pink {
    color: var(--neon-pink);
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ═══ SHARE ═══ */
.share-code-display {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.share-code {
    flex: 1;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--neon-cyan);
    text-align: center;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    letter-spacing: 3px;
}

.share-link-display {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.share-link-display .search-input {
    flex: 1;
}

.btn-copy {
    padding: 8px 14px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--radius-sm);
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.share-btn {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-btn:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

.share-btn.telegram {
    border-color: rgba(0, 136, 204, 0.3);
}

.share-btn.whatsapp {
    border-color: rgba(37, 211, 102, 0.3);
}

.share-btn.viber {
    border-color: rgba(121, 72, 221, 0.3);
}

/* ═══ RECENT LIST ═══ */
.recent-list {
    min-height: 100px;
}

.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 13px;
}

.recent-item-label {
    color: var(--text-secondary);
}

.recent-item-value {
    color: var(--text-muted);
    font-size: 12px;
}

/* ═══ EMPTY STATE ═══ */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ═══ SKELETON ═══ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
    height: 20px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* ═══ TOAST ═══ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    animation: toastIn 0.3s ease;
    max-width: 360px;
}

.toast-success {
    background: rgba(160, 255, 0, 0.12);
    border: 1px solid rgba(160, 255, 0, 0.3);
    color: var(--neon-lime);
}

.toast-error {
    background: rgba(255, 42, 109, 0.12);
    border: 1px solid rgba(255, 42, 109, 0.3);
    color: var(--neon-pink);
}

.toast-info {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        min-width: 60px;
    }

    .sidebar-brand {
        font-size: 18px;
        padding: 0 8px 16px;
    }

    .brand-rest {
        display: none;
    }

    .nav-item {
        padding: 12px 8px;
        justify-content: center;
        font-size: 0;
    }

    .nav-icon {
        font-size: 20px;
        margin: 0;
    }

    .content {
        padding: 20px 16px;
    }

    .admin-name {
        display: none;
    }

    .dashboard-row {
        flex-direction: column;
    }

    .kpi-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    .sidebar {
        width: 50px;
        min-width: 50px;
    }

    .content {
        padding: 14px 10px;
    }
}

/* ═══ BATCH IMPORT ═══ */
.batch-import-section {
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
}

.batch-import-toggle {
    padding: 10px 14px;
    font-family: var(--font-ui);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    letter-spacing: 1px;
}

.batch-import-body {
    padding: 0 14px 14px;
}

.batch-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 8px;
}