/* ============================================
   GEN SITE — Dark Neon Blue Theme
   ============================================ */

:root {
    --bg-black: #05070d;
    --bg-dark: #0a0f1a;
    --bg-card: #0d1520;
    --bg-hover: #111a28;
    --neon-blue: #00d4ff;
    --neon-blue-dark: #0088aa;
    --neon-blue-glow: rgba(0, 212, 255, 0.4);
    --text-white: #ffffff;
    --text-grey: #8b95a5;
    --text-dim: #4a5568;
    --border: #1a2538;
    --border-bright: #00d4ff33;
    --success: #00ff88;
    --error: #ff3355;
    --warning: #ffaa00;
}

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

html, body {
    background: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    pointer-events: none;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 50px 50px, 50px 50px; }
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.4;
}

.bg-glow-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-blue);
    top: -200px;
    left: -100px;
    animation: float1 15s ease-in-out infinite;
}

.bg-glow-2 {
    width: 600px;
    height: 600px;
    background: #0055ff;
    bottom: -300px;
    right: -200px;
    animation: float2 20s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 80px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-120px, -60px); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo-icon {
    color: var(--neon-blue);
    font-size: 24px;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px var(--neon-blue-glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.logo-text {
    background: linear-gradient(90deg, var(--neon-blue), #00aaff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-user {
    color: var(--text-grey);
    font-size: 14px;
    font-weight: 500;
}

.nav-logout {
    color: var(--neon-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--neon-blue);
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-logout:hover {
    background: var(--neon-blue);
    color: var(--bg-black);
    box-shadow: 0 0 20px var(--neon-blue-glow);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    position: relative;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-blue), #0088ff);
    color: var(--bg-black);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ghost {
    background: transparent;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.btn-ghost:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
}

.btn-tiny {
    background: transparent;
    border: none;
    color: var(--text-grey);
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-tiny:hover {
    color: var(--error);
    background: rgba(255, 51, 85, 0.1);
}

.btn-arrow {
    transition: transform 0.25s;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash {
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--bg-card);
    border-left: 3px solid var(--neon-blue);
    color: var(--text-white);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.flash-error {
    border-left-color: var(--error);
    background: linear-gradient(90deg, rgba(255, 51, 85, 0.15), var(--bg-card));
}

.flash-success {
    border-left-color: var(--success);
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15), var(--bg-card));
}

.flash-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.flash-error .flash-dot {
    background: var(--error);
    box-shadow: 0 0 10px var(--error);
}

.flash-success .flash-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.landing-hero {
    text-align: center;
    padding: 80px 20px 60px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-bright);
    border-radius: 100px;
    color: var(--neon-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease-out;
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon-blue), #0088ff, #00d4ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px var(--neon-blue-glow);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-grey);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.6s ease-out 0.3s both;
}

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

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 212, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    position: relative;
}

.feature-card p {
    color: var(--text-grey);
    font-size: 13px;
    position: relative;
}

/* ============================================
   LANDING INFO
   ============================================ */
.landing-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px auto;
    max-width: 700px;
}

.info-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.info-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--neon-blue);
    margin-bottom: 4px;
    text-shadow: 0 0 30px var(--neon-blue-glow);
}

.info-label {
    color: var(--text-grey);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.landing-footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-grey);
    font-size: 14px;
}

.landing-footer a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 160px);
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px var(--neon-blue-glow);
}

.auth-header h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-grey);
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    padding: 14px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.25s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px var(--neon-blue-glow);
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-hint {
    color: var(--text-dim);
    font-size: 12px;
}

.form-error {
    padding: 12px;
    background: rgba(255, 51, 85, 0.1);
    border-left: 3px solid var(--error);
    border-radius: 6px;
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-grey);
    font-size: 14px;
}

.auth-footer a {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   VERIFY PAGE
   ============================================ */
.verify-card {
    max-width: 500px;
}

.step-indicator {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.step-dot {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: all 0.3s;
}

.step-dot.active {
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue-glow);
}

.step-dot.done {
    background: var(--success);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.verify-success-box {
    padding: 16px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.success-check {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--success);
    color: var(--bg-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.verify-success-box p {
    color: var(--success);
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.dash-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(90deg, var(--text-white), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dash-sub {
    color: var(--text-grey);
    font-size: 14px;
}

.dash-sub strong {
    color: var(--neon-blue);
}

.dash-stats {
    display: flex;
    gap: 12px;
}

.stat-box {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    min-width: 110px;
}

.stat-label {
    display: block;
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-green {
    color: var(--success);
}

/* ============================================
   GENERATOR CARDS
   ============================================ */
.gen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.gen-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.gen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.gen-card:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.15);
}

.gen-card:hover::before {
    opacity: 1;
}

.gen-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.gen-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--border-bright);
    flex-shrink: 0;
}

.gen-info {
    flex: 1;
}

.gen-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gen-counter {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.counter-current {
    color: var(--neon-blue);
    font-weight: 700;
    font-size: 15px;
    text-shadow: 0 0 15px var(--neon-blue-glow);
}

.counter-max {
    color: var(--text-dim);
    font-size: 13px;
}

.gen-progress {
    height: 4px;
    background: var(--bg-dark);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), #0088ff);
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--neon-blue-glow);
}

.gen-btn {
    width: 100%;
}

/* ============================================
   GEN RESULTS
   ============================================ */
.gen-results {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    animation: fadeUp 0.3s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.results-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-grey);
    font-weight: 600;
}

.results-list {
    background: var(--bg-black);
    padding: 12px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 12px;
    color: var(--success);
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.results-actions {
    display: flex;
    gap: 8px;
}

.results-actions .btn {
    flex: 1;
}

.gen-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(255, 51, 85, 0.1);
    border-left: 3px solid var(--error);
    border-radius: 6px;
    color: var(--error);
    font-size: 13px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-grey);
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-white);
}

/* ============================================
   BLACKLIST PAGE
   ============================================ */
.blacklist-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.blacklist-card {
    text-align: center;
    max-width: 500px;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 51, 85, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 51, 85, 0.15);
}

.blacklist-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.blacklist-card h1 {
    font-size: 32px;
    color: var(--error);
    margin-bottom: 12px;
}

.blacklist-card p {
    color: var(--text-grey);
    margin-bottom: 8px;
}

.blacklist-sub {
    font-size: 13px;
    color: var(--text-dim);
}

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

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

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .hero-title {
        font-size: 48px;
    }

    .dash-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-stats {
        width: 100%;
    }

    .stat-box {
        flex: 1;
    }

    .gen-grid {
        grid-template-columns: 1fr;
    }

    .landing-info {
        grid-template-columns: 1fr;
    }

    .flash-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ============================================
   DEVTOOLS WARNING PAGE
   ============================================ */
.devtools-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    overflow: hidden;
}

.devtools-warning {
    text-align: center;
    max-width: 560px;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 51, 85, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(255, 51, 85, 0.25);
    animation: warningShake 0.5s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes warningShake {
    0% { transform: translateX(-8px); }
    25% { transform: translateX(8px); }
    50% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.devtools-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: warningPulse 1s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 51, 85, 0.8));
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.devtools-warning h1 {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--error);
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(255, 51, 85, 0.6);
}

.devtools-sub {
    color: var(--text-grey);
    font-size: 15px;
    margin-bottom: 32px;
}

.devtools-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-black);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 12px;
    text-align: left;
}

.devtools-label {
    color: var(--text-dim);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.devtools-value {
    color: var(--neon-blue);
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 13px;
    font-weight: 600;
}

.devtools-warning-text {
    margin-top: 32px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--error);
    animation: warningFlash 1.5s ease-in-out infinite;
}

@keyframes warningFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.devtools-small {
    margin-top: 20px;
    color: var(--text-dim);
    font-size: 12px;
    line-height: 1.6;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-body {
    overflow-x: hidden;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ---------- Sidebar ---------- */
.admin-sidebar {
    width: 240px;
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 2px;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-grey);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.admin-nav-item:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--text-white);
}

.admin-nav-item.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    font-weight: 600;
}

.admin-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--neon-blue);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--neon-blue);
}

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

.admin-sidebar-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.admin-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(255, 51, 85, 0.1);
    border: 1px solid rgba(255, 51, 85, 0.3);
    color: var(--error);
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.admin-logout-btn:hover {
    background: rgba(255, 51, 85, 0.2);
    border-color: var(--error);
}

/* ---------- Main ---------- */
.admin-main {
    flex: 1;
    padding: 32px 40px;
    max-width: calc(100vw - 240px);
    overflow-x: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.admin-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--text-white), var(--neon-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.admin-subtitle {
    color: var(--text-grey);
    font-size: 14px;
}

.admin-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 100px;
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
}

.admin-user-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: pulse 2s ease-in-out infinite;
}

.admin-flash-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.admin-flash-container .flash {
    position: relative;
    animation: slideIn 0.3s ease-out;
}

/* ---------- Stat Cards ---------- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.admin-stat-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-2px);
}

.admin-stat-card:hover::before {
    opacity: 1;
}

.admin-stat-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--neon-blue);
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 20px var(--neon-blue-glow);
}

.admin-stat-label {
    color: var(--text-grey);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ---------- Section Cards ---------- */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.admin-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section-sub {
    color: var(--text-grey);
    font-size: 13px;
    margin-bottom: 20px;
}

/* ---------- Forms ---------- */
.admin-form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.admin-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px var(--neon-blue-glow);
}

.admin-form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: 'SF Mono', 'Consolas', monospace;
}

/* ---------- Table ---------- */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

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

.admin-table thead {
    background: var(--bg-dark);
}

.admin-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 11px;
    color: var(--text-grey);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-white);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.03);
}

.admin-table code {
    font-family: 'SF Mono', 'Consolas', monospace;
    color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-error {
    background: rgba(255, 51, 85, 0.15);
    color: var(--error);
    border: 1px solid rgba(255, 51, 85, 0.3);
}

.badge-warning {
    background: rgba(255, 170, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

.badge-info {
    background: rgba(0, 212, 255, 0.15);
    color: var(--neon-blue);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ---------- Tabs ---------- */
.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.admin-tab {
    padding: 12px 20px;
    color: var(--text-grey);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.admin-tab:hover {
    color: var(--text-white);
}

.admin-tab.active {
    color: var(--neon-blue);
    border-bottom-color: var(--neon-blue);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 16px;
    }

    .admin-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
    }

    .admin-nav-item {
        padding: 10px 14px;
        white-space: nowrap;
    }

    .admin-nav-item.active::before {
        display: none;
    }

    .admin-main {
        max-width: 100%;
        padding: 20px;
    }

    .admin-form-row {
        flex-direction: column;
    }

    .admin-form-group {
        width: 100%;
    }
}

/* ============================================
   LUCIDE ICONS
   ============================================ */
.lucide,
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Small inline (inside text) */
.lucide-sm {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

/* Large (feature cards, hero) */
.lucide-lg {
    width: 32px;
    height: 32px;
}

/* XL (big section icons) */
.lucide-xl {
    width: 48px;
    height: 48px;
}

/* Neon glow variant */
.lucide-glow {
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px var(--neon-blue-glow));
}

/* Icon + text alignment helper */
.icon-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Icon inside buttons (already inline) */
.btn .lucide {
    width: 16px;
    height: 16px;
}

/* Sidebar nav icons */
.admin-nav-item .lucide {
    width: 18px;
    height: 18px;
    color: inherit;
}

.admin-nav-item.active .lucide {
    filter: drop-shadow(0 0 6px var(--neon-blue-glow));
}

/* Field labels */
.form-group label .lucide {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 4px;
}

/* ============================================
   ICON SIZING FIX
   ============================================ */

/* Feature cards — big icons */
.feature-icon svg,
.feature-icon .lucide {
    width: 40px !important;
    height: 40px !important;
    stroke-width: 1.8;
}

/* Feature card layout */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 12px var(--neon-blue-glow));
    margin-bottom: 20px;
    min-height: 48px;
}

/* Hero zap */
.hero-badge svg,
.hero-badge .lucide {
    width: 16px !important;
    height: 16px !important;
    vertical-align: -3px;
    margin-right: 4px;
}

/* Auth card icon (lock etc) */
.auth-icon svg,
.auth-icon .lucide {
    width: 48px !important;
    height: 48px !important;
    stroke-width: 1.5;
}

/* Sidebar nav icons */
.admin-nav-item svg,
.admin-nav-item .lucide {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2;
}

/* Buttons */
.btn svg,
.btn .lucide {
    width: 16px !important;
    height: 16px !important;
}

/* Section headers */
.admin-section-title svg,
.admin-section-title .lucide {
    width: 22px !important;
    height: 22px !important;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 8px var(--neon-blue-glow));
}

/* Stat cards */
.admin-stat-icon svg,
.admin-stat-icon .lucide {
    width: 32px !important;
    height: 32px !important;
    color: var(--neon-blue);
    filter: drop-shadow(0 0 10px var(--neon-blue-glow));
}

/* Inline in text */
.flash svg,
.flash .lucide,
label svg,
label .lucide {
    width: 14px !important;
    height: 14px !important;
    vertical-align: -2px;
    margin-right: 4px;
}

/* Blacklist warning */
.blacklist-icon svg,
.blacklist-icon .lucide {
    width: 80px !important;
    height: 80px !important;
    color: var(--error);
    filter: drop-shadow(0 0 20px rgba(255, 51, 85, 0.6));
}

/* Devtools warning */
.devtools-icon svg,
.devtools-icon .lucide {
    width: 80px !important;
    height: 80px !important;
    color: var(--warning);
    filter: drop-shadow(0 0 20px rgba(255, 170, 0, 0.6));
}

/* Neon blue for all section headers */
.admin-section-title {
    color: var(--text-white);
}

/* ============================================
   LIVE STOCK BADGE
   ============================================ */
.stock-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--neon-blue);
    font-weight: 600;
    transition: all 0.3s;
}

.stock-badge svg,
.stock-badge .lucide {
    width: 14px !important;
    height: 14px !important;
    color: var(--neon-blue);
}

.stock-num {
    font-size: 15px;
    font-weight: 800;
    text-shadow: 0 0 12px var(--neon-blue-glow);
}

.stock-label {
    color: var(--text-grey);
    font-size: 12px;
    font-weight: 500;
}

.stock-badge.stock-empty {
    background: rgba(255, 51, 85, 0.08);
    border-color: rgba(255, 51, 85, 0.35);
    color: var(--error);
}

.stock-badge.stock-empty svg,
.stock-badge.stock-empty .lucide {
    color: var(--error);
}

.stock-badge.stock-empty .stock-num {
    color: var(--error);
    text-shadow: 0 0 12px rgba(255, 51, 85, 0.5);
}
