:root {
    /* LO-FI DISCORD THEME */
    --bg-base: #0f0e13;
    --bg-card: rgba(22, 20, 30, 0.45);
    --bg-card-hover: rgba(30, 27, 45, 0.6);
    --border-color: rgba(85, 80, 110, 0.15);
    --text-main: #f0f0f5;
    --text-muted: #9593a4;

    /* Brand Colors */
    --accent: #5865F2;
    /* Discord Blurple */
    --accent-hover: #4752C4;
    --accent-glow: rgba(88, 101, 242, 0.4);

    /* Roblox Colors */
    --rbx-accent: #e2231a;
    --rbx-accent-hover: #c41e17;
    --rbx-accent-glow: rgba(226, 35, 26, 0.4);

    /* Minecraft Colors */
    --mc-accent: #4CAF50;
    --mc-accent-hover: #388E3C;
    --mc-accent-glow: rgba(76, 175, 80, 0.4);

    /* Telegram Colors */
    --tg-accent: #0088cc;
    --tg-accent-hover: #006da3;
    --tg-accent-glow: rgba(0, 136, 204, 0.4);

    /* Instagram Colors */
    --ig-accent: #E1306C;
    --ig-accent-hover: #C13584;
    --ig-accent-glow: rgba(225, 48, 108, 0.4);

    /* TikTok Colors */
    --tt-accent: #00f2fe;
    --tt-accent-hover: #00c6d1;
    --tt-accent-glow: rgba(0, 242, 254, 0.4);

    --success: #57F287;
    --danger: #ED4245;
    --warning: #FEE75C;

    /* Effects */
    --glass-blur: blur(16px);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.3);

    --font-sans: 'Space Grotesk', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --sidebar-w: 260px;
    --border-radius: 12px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
}

/* ────────────────────────────────────────────────────────
   AMBIENT BACKGROUND 
──────────────────────────────────────────────────────── */
.ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a1829 0%, #0f0e13 100%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate linear;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #5865F2;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #57F287;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    opacity: 0.15;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: #9b59b6;
    top: 40%;
    left: 40%;
    animation-delay: -10s;
    opacity: 0.1;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}


/* ────────────────────────────────────────────────────────
   GLASSMORPHISM UTILS 
──────────────────────────────────────────────────────── */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.mono {
    font-family: var(--font-mono);
}


/* ────────────────────────────────────────────────────────
   SCREENS 
──────────────────────────────────────────────────────── */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.4s ease;
}

.screen.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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


/* ────────────────────────────────────────────────────────
   LOGIN PAGE 
──────────────────────────────────────────────────────── */
#screen-login {
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #5865F2, #9b59b6);
}

.login-logo {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    filter: blur(20px);
    opacity: 0.3;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.login-subtitle {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
}

.input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow), inset 0 0 5px rgba(255,255,255,0.05);
    background: rgba(0, 0, 0, 0.6);
}

.login-error {
    color: var(--danger);
    font-size: 13px;
    margin-top: 15px;
    text-align: center;
    min-height: 20px;
}

.login-hint {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
}


/* ────────────────────────────────────────────────────────
   BUTTONS 
──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(1px) scale(0.98);
}

.btn-glow {
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: var(--danger);
    border: 1px solid var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background: #d32f2f;
    border-color: #d32f2f;
}

.btn-warning {
    background: #007bff;
    border: 1px solid #007bff;
    color: #ffffff;
}

.btn-warning:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    width: auto;
}

.btn-lg {
    padding: 18px 32px;
    font-size: 16px;
    letter-spacing: 1px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ────────────────────────────────────────────────────────
   APP LAYOUT 
──────────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    padding: 24px;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    padding: 24px;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.brand-icon {
    font-size: 24px;
    background: rgba(88, 101, 242, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px; /* Space for scrollbar */
}

/* Custom scrollbar for nav-group */
.nav-group::-webkit-scrollbar {
    width: 6px;
}
.nav-group::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.nav-group::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.nav-group::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: left;
}

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

.nav-item.active {
    color: white;
    background: var(--accent);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-icon {
    font-size: 18px;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: auto;
}

.license-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding: 0 16px;
}

.license-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
}

.nav-logout:hover {
    color: var(--danger);
    background: rgba(237, 66, 69, 0.05);
}

/* Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar for content */
.content::-webkit-scrollbar {
    width: 6px;
}
.content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}


/* ────────────────────────────────────────────────────────
   TABS & HEADERS
──────────────────────────────────────────────────────── */
.tab {
    display: none;
    flex: 1;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
    padding-bottom: 40px; /* Safe space at the bottom */
}

.tab.active {
    display: flex;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.tab-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tab-desc-sm {
    color: var(--text-muted);
    font-size: 14px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-pill.running .status-dot {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.5s infinite;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


/* ────────────────────────────────────────────────────────
   DASHBOARD STATS
──────────────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.stat-icon-hits {
    color: var(--success);
    background: rgba(87, 242, 135, 0.1);
}

.stat-icon-taken {
    color: var(--danger);
    background: rgba(237, 66, 69, 0.1);
}

.stat-icon-rps {
    color: var(--warning);
    background: rgba(254, 231, 92, 0.1);
}

.stat-icon-errors {
    color: var(--text-muted);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 2px;
}

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

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 0;
}

/* Progress Ring */
.progress-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 30px;
    width: 100%;
}

.progress-ring-wrap {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.progress-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-pct {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.progress-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Loop Animation */
@keyframes pulse-loop {
    0% { transform: scale(1); filter: drop-shadow(0 0 4px currentColor); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 15px currentColor); }
    100% { transform: scale(1); filter: drop-shadow(0 0 4px currentColor); }
}

.loop-active .progress-ring {
    animation: pulse-loop 2s infinite ease-in-out;
}

.loop-active .progress-pct {
    font-size: 24px;
    color: currentColor;
    text-shadow: 0 0 8px currentColor;
}

.meta-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.meta-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
}

.meta-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    font-family: var(--font-mono);
    color: white;
}

/* Hits Feed */
.hits-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.hits-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 8px;
}

.hits-list::-webkit-scrollbar {
    width: 6px;
}

.hits-list::-webkit-scrollbar-track {
    background: transparent;
}

.hits-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.hit-item {
    background: rgba(87, 242, 135, 0.05);
    border: 1px solid rgba(87, 242, 135, 0.15);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.hit-name {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--success);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.hits-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    gap: 10px;
}

.hits-empty-icon {
    font-size: 32px;
    opacity: 0.5;
}

/* Target Bar */
.target-bar {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.target-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.target-name {
    color: white;
    font-size: 15px;
}


/* ────────────────────────────────────────────────────────
   SNIPER TAB (Discord Focus)
──────────────────────────────────────────────────────── */
.sniper-hero {
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.sniper-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(88, 101, 242, 0.05), transparent 60%);
    pointer-events: none;
}

.sniper-icon-big {
    font-size: 72px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

.sniper-engine-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sniper-engine-desc {
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 40px;
    font-size: 15px;
}

.sniper-actions {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sniper-info {
    display: flex;
    justify-content: space-around;
    padding: 24px;
}

.info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

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

.info-value {
    font-size: 20px;
    font-weight: 700;
}


/* ────────────────────────────────────────────────────────
   LISTS & TEXTAREAS
──────────────────────────────────────────────────────── */
.textarea-card {
    flex-grow: 1;
    margin-bottom: 20px;
    min-height: 0;
    display: flex;
}

.code-textarea {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 20px;
    resize: none;
    outline: none;
    line-height: 1.6;
}

.code-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.code-textarea::-webkit-scrollbar {
    width: 6px;
}
.code-textarea::-webkit-scrollbar-track {
    background: transparent;
}
.code-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.code-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-row {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.btn-row .btn {
    width: auto;
    min-width: 140px;
}

.count-pill {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.count-pill span {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}


/* ────────────────────────────────────────────────────────
   RESULTS TAB
──────────────────────────────────────────────────────── */
.results-wrap {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
}

.result-platform {
    margin-bottom: 30px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.result-platform-name {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.result-count {
    font-size: 13px;
    color: var(--text-muted);
}

.result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-tag {
    background: rgba(87, 242, 135, 0.1);
    border: 1px solid rgba(87, 242, 135, 0.2);
    color: var(--success);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.result-tag:hover {
    background: rgba(87, 242, 135, 0.2);
    transform: translateY(-2px);
}

.result-tag.copied {
    background: var(--success);
    color: #000;
}


/* ────────────────────────────────────────────────────────
   SETTINGS
──────────────────────────────────────────────────────── */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.settings-section {
    padding: 24px;
}

.settings-title {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.setting-row {
    margin-bottom: 20px;
}

.setting-row label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

input[type=range] {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-glow);
}

.range-val {
    font-family: var(--font-mono);
    min-width: 40px;
    text-align: right;
}

#btn-save-settings {
    width: 100%;
}


/* ────────────────────────────────────────────────────────
   TOASTS
──────────────────────────────────────────────────────── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
    animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--accent);
}

.toast-exit {
    animation: toastOut 0.3s ease forwards;
}

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

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(50px);
    }
}


/* ────────────────────────────────────────────────────────
   ROBLOX THEME OVERRIDES
──────────────────────────────────────────────────────── */

/* Roblox progress ring */
.rbx-ring {
    stroke: var(--rbx-accent) !important;
    filter: drop-shadow(0 0 6px var(--rbx-accent-glow)) !important;
}

/* Roblox running status pill */
.status-pill.rbx-running .status-dot {
    background: var(--rbx-accent);
    box-shadow: 0 0 8px var(--rbx-accent);
    animation: pulse 1.5s infinite;
}

/* Roblox hit items */
.rbx-hit-item {
    background: rgba(226, 35, 26, 0.05) !important;
    border: 1px solid rgba(226, 35, 26, 0.15) !important;
}

/* Roblox primary button */
.rbx-btn-primary {
    background: var(--rbx-accent) !important;
    color: white;
    box-shadow: 0 4px 15px var(--rbx-accent-glow);
}

.rbx-btn-primary:hover {
    background: var(--rbx-accent-hover) !important;
    transform: translateY(-1px);
}

/* Roblox nav active */
.nav-item.active[data-tab="roblox-dashboard"],
.nav-item.active[data-tab="roblox-sniper"] {
    background: var(--rbx-accent) !important;
    box-shadow: 0 4px 12px var(--rbx-accent-glow) !important;
}

/* Roblox accent stat card */
.rbx-accent-card .stat-value {
    color: var(--rbx-accent);
}


/* ────────────────────────────────────────────────────────
   WEBHOOK MODE TOGGLE
──────────────────────────────────────────────────────── */
.webhook-mode-toggle {
    display: flex;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.mode-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.mode-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.mode-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 10px var(--accent-glow);
}


/* ────────────────────────────────────────────────────────
   MINECRAFT THEME
──────────────────────────────────────────────────────── */
.mc-ring { stroke: var(--mc-accent) !important; filter: drop-shadow(0 0 6px var(--mc-accent-glow)) !important; }
.status-pill.mc-running .status-dot { background: var(--mc-accent); box-shadow: 0 0 8px var(--mc-accent); animation: pulse 1.5s infinite; }
.mc-hit-item { background: rgba(76, 175, 80, 0.05) !important; border: 1px solid rgba(76, 175, 80, 0.15) !important; }
.mc-btn-primary { background: var(--mc-accent) !important; color: white; box-shadow: 0 4px 15px var(--mc-accent-glow); }
.mc-btn-primary:hover { background: var(--mc-accent-hover) !important; transform: translateY(-1px); }
.nav-item.active[data-tab="mc-dashboard"],
.nav-item.active[data-tab="mc-sniper"] { background: var(--mc-accent) !important; box-shadow: 0 4px 12px var(--mc-accent-glow) !important; }
.mc-accent-card .stat-value { color: var(--mc-accent); }


/* ────────────────────────────────────────────────────────
   TELEGRAM THEME
──────────────────────────────────────────────────────── */
.tg-ring { stroke: var(--tg-accent) !important; filter: drop-shadow(0 0 6px var(--tg-accent-glow)) !important; }
.status-pill.tg-running .status-dot { background: var(--tg-accent); box-shadow: 0 0 8px var(--tg-accent); animation: pulse 1.5s infinite; }
.tg-hit-item { background: rgba(0, 136, 204, 0.05) !important; border: 1px solid rgba(0, 136, 204, 0.15) !important; }
.tg-btn-primary { background: var(--tg-accent) !important; color: white; box-shadow: 0 4px 15px var(--tg-accent-glow); }
.tg-btn-primary:hover { background: var(--tg-accent-hover) !important; transform: translateY(-1px); }
.nav-item.active[data-tab="tg-dashboard"],
.nav-item.active[data-tab="tg-sniper"] { background: var(--tg-accent) !important; box-shadow: 0 4px 12px var(--tg-accent-glow) !important; }
.tg-accent-card .stat-value { color: var(--tg-accent); }


/* ────────────────────────────────────────────────────────
   TOGGLE SWITCH
──────────────────────────────────────────────────────── */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .toggle-slider {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

input:checked + .toggle-slider::before {
    transform: translateX(20px);
}


/* ────────────────────────────────────────────────────────
   INSTAGRAM THEME
──────────────────────────────────────────────────────── */
.ig-ring { stroke: var(--ig-accent) !important; filter: drop-shadow(0 0 6px var(--ig-accent-glow)) !important; }
.status-pill.ig-running .status-dot { background: var(--ig-accent); box-shadow: 0 0 8px var(--ig-accent); animation: pulse 1.5s infinite; }
.ig-hit-item { background: rgba(225, 48, 108, 0.05) !important; border: 1px solid rgba(225, 48, 108, 0.15) !important; }
.ig-btn-primary { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; color: white; box-shadow: 0 4px 15px var(--ig-accent-glow); border: none; }
.ig-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-item.active[data-tab="ig-dashboard"],
.nav-item.active[data-tab="ig-sniper"] { background: var(--ig-accent) !important; box-shadow: 0 4px 12px var(--ig-accent-glow) !important; }
.ig-accent-card .stat-value { color: var(--ig-accent); }


/* ────────────────────────────────────────────────────────
   TIKTOK THEME
──────────────────────────────────────────────────────── */
.tt-ring { stroke: var(--tt-accent) !important; filter: drop-shadow(0 0 6px var(--tt-accent-glow)) !important; }
.status-pill.tt-running .status-dot { background: var(--tt-accent); box-shadow: 0 0 8px var(--tt-accent); animation: pulse 1.5s infinite; }
.tt-hit-item { background: rgba(0, 242, 254, 0.05) !important; border: 1px solid rgba(0, 242, 254, 0.15) !important; }
.tt-btn-primary { background: linear-gradient(45deg, #00f2fe 0%, #4facfe 100%) !important; color: #000; font-weight: 700; box-shadow: 0 4px 15px var(--tt-accent-glow); border: none; }
.tt-btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-item.active[data-tab="tt-dashboard"],
.nav-item.active[data-tab="tt-sniper"] { background: var(--tt-accent) !important; color: #000 !important; box-shadow: 0 4px 12px var(--tt-accent-glow) !important; }
.nav-item.active[data-tab="tt-dashboard"] svg,
.nav-item.active[data-tab="tt-sniper"] svg { stroke: #000 !important; }
.tt-accent-card .stat-value { color: var(--tt-accent); }

/* ────────────────────────────────────────────────────────
   SHOP & ADMIN
────────────────────────────────────────────────────────── */
.admin-only {
    display: none;
}

body.show-admin .admin-only {
    display: flex;
}

/* Hide premium elements by default */
.premium-only {
    display: none !important;
}

/* Show premium elements when user has plan */
body.has-plan .premium-only,
body.show-admin .premium-only {
    display: flex !important;
}

/* Hide shop for premium users */
body.has-plan .shop-only {
    display: none !important;
}

body.show-admin .admin-only {
    display: flex;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.shop-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.shop-card-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.shop-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.shop-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: var(--text-main);
    letter-spacing: 1px;
}

.shop-card-content p {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.shop-variants {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.variant-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.variant-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.variant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.variant-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.variant-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.variant-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.variant-stock {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stock-empty {
    color: var(--danger);
    font-weight: 700;
}

.btn-shop {
    padding: 6px 12px;
    font-size: 12px;
    background: linear-gradient(45deg, #10b981 0%, #059669 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.btn-shop:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ────────────────────────────────────────────────────────
   RESPONSIVE (MOBILE)
──────────────────────────────────────────────────────── */

/* Hide mobile header by default */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 900px) {
    body {
        overflow: hidden; /* Avoid double scrollbars */
        height: 100dvh;
    }

    .mobile-header {
        display: flex;
        background: rgba(10, 10, 15, 0.8) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    }

    .app-layout {
        flex-direction: column;
        padding: 60px 0 0 0; /* Header height only */
        gap: 0;
        height: 100dvh !important;
        width: 100vw !important;
        overflow: hidden;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100%;
        z-index: 1200;
        background: rgba(15, 15, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        border-radius: 0;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }

    .sidebar.active {
        left: 0;
    }

    .content {
        padding: 12px;
        height: 100%;
        width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
    }

    .tab.active {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        padding-bottom: 80px; /* Space for mobile scrolling */
    }

    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .tab-title {
        font-size: 22px;
    }

    .textarea-card {
        flex: 1 !important; /* GROW TO FILL ALL SPACE */
        min-height: 180px !important;
        height: auto !important;
        margin-bottom: 10px !important;
    }

    .code-textarea {
        font-size: 13px !important;
        height: 100% !important;
        padding: 12px;
    }

    .btn-row {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .btn-row .btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 14px !important;
    }

    .glass-card {
        padding: 16px !important;
        border-radius: 12px;
    }

    .stat-value {
        font-size: 20px !important;
    }

    .stat-label {
        font-size: 10px !important;
    }

    .stat-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .dash-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .meta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .meta-label {
        font-size: 9px;
    }

    .meta-value {
        font-size: 12px;
    }

    .settings-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr !important;
    }

    .meta-grid {
        grid-template-columns: 1fr !important;
    }
}

.discord-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    text-decoration: none;
    z-index: 1000;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
    cursor: pointer;
}

.discord-btn svg {
    width: 38px;
    height: 38px;
    fill: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: all 0.2s ease;
}

.discord-btn span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.discord-btn:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.discord-btn:hover svg {
    transform: scale(1.1) translateY(-2px);
    fill: var(--accent-hover);
    filter: drop-shadow(0 0 14px var(--accent-glow));
}

.discord-btn:hover span {
    opacity: 1;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .discord-btn {
        top: 15px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
    }
    .discord-btn svg {
        width: 24px;
        height: 24px;
    }
    .discord-btn span {
        display: none;
    }
}

.auth-buttons-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.create-account-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.create-account-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 10px var(--accent-glow);
}

.create-account-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

@media (max-width: 768px) {
    .auth-buttons-container {
        top: 15px;
        bottom: auto;
        right: 60px; /* Keep away from sidebar toggle */
        gap: 6px;
    }
    .create-account-btn {
        padding: 6px 10px;
        font-size: 9px;
    }
    .create-account-btn svg {
        display: none; /* Save space on mobile header */
    }
}
