@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500&display=swap');

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

:root {
    --primary-purple: #8b5cf6;
    --secondary-purple: #a855f7;
    --accent-cyan: #06b6d4;
    --dark-bg: #050508;
    --dark-surface: #0a0a14;
    --dark-surface-2: #111120;
    --dark-surface-3: #1a1a2e;
    --text-primary: #e0e0ff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(6, 182, 212, 0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(139, 92, 246, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.hidden {
    display: none !important;
}

/* Loader */
.loader {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: var(--dark-bg);
    position: relative;
    z-index: 10;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid var(--primary-purple);
    border-right: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
    box-shadow: var(--glow-purple);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Auth Loader */
.auth-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow: hidden;
}

.auth-loader-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 20% 50%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 20%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
        radial-gradient(at 40% 80%, rgba(168, 85, 247, 0.08) 0px, transparent 50%);
    animation: bgPulse 4s ease-in-out infinite;
}

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

.auth-loader-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.auth-loader-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-purple);
    animation: ringRotate 2s linear infinite;
}

.auth-loader-ring.secondary {
    width: 170px;
    height: 170px;
    border-top-color: var(--accent-cyan);
    animation-direction: reverse;
    animation-duration: 1.5s;
}

.auth-loader-ring.tertiary {
    width: 140px;
    height: 140px;
    border-top-color: var(--secondary-purple);
    animation-duration: 2.5s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-loader-ring-inner {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: inherit;
    opacity: 0.5;
    animation: innerRingRotate 1.5s linear infinite reverse;
}

@keyframes innerRingRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-loader-text-container {
    margin-top: 260px;
    text-align: center;
    width: 100%;
}

.auth-loader-status {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    min-height: 24px;
    letter-spacing: 0.5px;
}

.auth-loader-progress {
    width: 100%;
    height: 4px;
    background: var(--dark-surface-3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.auth-loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan), var(--secondary-purple));
    background-size: 200% 100%;
    width: 0%;
    border-radius: 2px;
    animation: progressGlow 2s ease-in-out infinite;
    transition: width 0.3s ease;
}

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

.auth-loader-percentage {
    font-family: 'Roboto Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 12px;
}

.auth-loader-logs {
    margin-top: 30px;
    text-align: left;
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    background: var(--dark-surface-2);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
}

.auth-loader-logs::-webkit-scrollbar {
    width: 4px;
}

.auth-loader-logs::-webkit-scrollbar-track {
    background: var(--dark-surface-3);
}

.auth-loader-logs::-webkit-scrollbar-thumb {
    background: var(--primary-purple);
    border-radius: 2px;
}

.auth-log {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    animation: logFadeIn 0.3s ease;
}

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

.auth-log:last-child {
    color: var(--primary-purple);
    font-weight: 500;
}

@media (max-width: 768px) {
    .auth-loader-content {
        padding: 20px;
    }
    
    .auth-loader-ring {
        width: 150px;
        height: 150px;
    }
    
    .auth-loader-ring.secondary {
        width: 120px;
        height: 120px;
    }
    
    .auth-loader-ring.tertiary {
        width: 90px;
        height: 90px;
    }
    
    .auth-loader-text-container {
        margin-top: 200px;
    }
    
    .auth-loader-status {
        font-size: 14px;
    }
    
    .auth-loader-percentage {
        font-size: 24px;
    }
    
    .auth-log {
        font-size: 12px;
    }
}

/* Home Page */
.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 24px;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.8s ease;
}

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

.home-trollface-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-trollface-section .trollface-ascii {
    font-size: 14px;
    line-height: 1.15;
    transition: all 0.4s ease;
    animation: trollfaceFloat 3s ease-in-out infinite;
}

.home-trollface-section .trollface-ascii:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(139, 92, 246, 1), 0 0 60px rgba(6, 182, 212, 0.8);
}

.home-text {
    font-size: 14px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    text-align: center;
    letter-spacing: 1px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: 1px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
    letter-spacing: 2px;
}

/* Responsive Home */
@media (max-width: 768px) {
    .home-main {
        padding: 32px 16px;
    }
    
    .home-trollface-section .trollface-ascii {
        font-size: 8px;
    }
    
    .home-text {
        font-size: 12px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-trollface-section .trollface-ascii {
        font-size: 6px;
    }
    
    .home-content {
        gap: 24px;
    }
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--dark-surface);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--accent-cyan), transparent);
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { left: -100%; }
    100% { left: 100%; }
}

.login-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.5), transparent, rgba(6, 182, 212, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.trollface-ascii {
    font-family: 'Lucida Console', 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.1;
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8), 0 0 20px rgba(139, 92, 246, 0.5);
    margin-bottom: 20px;
    display: inline-block;
    animation: trollfaceFloat 3s ease-in-out infinite;
    white-space: pre;
    letter-spacing: 0.5px;
}

@keyframes trollfaceFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.login-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Form Elements */
.form-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--dark-surface-2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), var(--glow-purple);
    background: rgba(139, 92, 246, 0.05);
}

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

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
}

/* Captcha */
.captcha-container {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

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

.captcha-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.captcha-question {
    font-family: 'Roboto Mono', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    padding: 16px;
    background: var(--dark-surface-2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    letter-spacing: 2px;
    user-select: none;
}

.captcha-container .form-group {
    margin-bottom: 0;
}

#refresh-captcha {
    padding: 4px 8px;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

#refresh-captcha:hover {
    transform: rotate(180deg);
}

/* Path Options */
.path-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.path-option {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    background: var(--dark-surface-2);
    transition: all 0.3s ease;
}

.path-option:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--dark-surface-3);
}

.path-option input[type="radio"] {
    margin-top: 4px;
    margin-right: 14px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-purple);
    cursor: pointer;
}

.path-option-content {
    flex: 1;
}

.path-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.path-option-url {
    font-size: 13px;
    color: var(--primary-purple);
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 6px;
}

.path-option-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.path-option input[type="radio"]:checked + .path-option-content {
    color: var(--primary-purple);
}

.path-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1), var(--glow-purple);
}

/* URL Preview */
.url-preview {
    background: var(--dark-surface-2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    color: var(--text-primary);
    margin-top: 8px;
}

.url-preview-id {
    color: var(--accent-cyan);
    font-weight: 600;
}

@media (max-width: 768px) {
    .path-option {
        padding: 12px;
    }
    
    .path-option-title {
        font-size: 14px;
    }
    
    .path-option-url {
        font-size: 12px;
    }
    
    .path-option-desc {
        font-size: 12px;
    }
}

/* Buttons */
.btn {
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn:hover,
.btn:active,
.btn:focus {
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(139, 92, 246, 0.5);
}

.btn-outline:hover {
    border-color: var(--primary-purple);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: var(--glow-purple);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-danger:hover {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
    color: white;
    padding: 10px 20px;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Verification Container */
.verification-container {
    margin-top: 16px;
    animation: fadeIn 0.3s ease;
}

.verification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
}

.verification-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--primary-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.verification-text {
    font-size: 13px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-success:hover {
    box-shadow: var(--glow-cyan);
    transform: translateY(-1px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    padding-bottom: 12px;
}

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-tab:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.admin-tab-content {
    animation: fadeIn 0.3s ease;
}

.admin-tab-content.hidden {
    display: none;
}

.btn-text {
    background: transparent;
    color: var(--text-secondary);
    padding: 4px 8px;
    font-size: 28px;
    line-height: 1;
}

.btn-text:hover {
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* Message */
.message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    border: 1px solid;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.message.success {
    background: rgba(6, 182, 212, 0.1);
    color: #67e8f9;
    border-color: rgba(6, 182, 212, 0.3);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
}

.profile-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.profile-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* User Dashboard */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--dark-surface);
    border-right: 1px solid rgba(139, 92, 246, 0.2);
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-content {
    padding: 40px 24px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-purple), var(--accent-cyan), transparent);
}

.sidebar-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 4px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
}

.nav-item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.1));
    border-color: rgba(139, 92, 246, 0.5);
}

.nav-item.active::before {
    height: 50%;
}

.nav-item-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-item-text,
.nav-item.active .nav-item-text {
    color: var(--text-primary);
}

.logout-btn {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 16px 24px;
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    margin-left: 260px;
    padding: 28px;
}

.content-section {
    animation: fadeInUp 0.5s ease;
}

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

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

.page-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

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

.card-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
}

.filter-container {
    max-width: 400px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan));
}

.stat-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.stat-card-header {
    margin-bottom: 16px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-trend-icon {
    color: var(--accent-cyan);
    font-size: 12px;
}

.stat-trend-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
}

th {
    background: var(--dark-surface-2);
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

td {
    font-size: 15px;
    font-weight: 500;
}

a.btn {
    text-decoration: none;
}

a.btn:hover,
a.btn:active,
a.btn:focus {
    text-decoration: none;
}

td a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

td a:hover {
    color: var(--primary-purple);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

tr {
    transition: all 0.2s ease;
}

tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

td .btn {
    margin-right: 10px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--dark-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.3);
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.4s ease;
}

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

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan));
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.modal-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: calc(85vh - 85px);
}

.modal-body pre {
    background: var(--dark-surface-2);
    padding: 18px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 12px;
    line-height: 1.6;
    font-family: 'Roboto Mono', monospace;
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 999;
    background: var(--dark-surface);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hamburger-btn:hover {
    border-color: var(--primary-purple);
    box-shadow: var(--glow-purple);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 150;
    }

    .sidebar.active {
        transform: translateX(0);
    }

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

    .sidebar-content {
        padding: 24px 16px;
    }

    .sidebar-header h2,
    .nav-item-text {
        display: block;
    }

    .sidebar-header h2 {
        font-size: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 75px 12px 12px 12px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .page-header h1 {
        font-size: 24px;
        margin-top: 0;
    }

    .page-subtitle {
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        font-size: 10px;
        min-width: 550px;
    }

    th, td {
        padding: 6px 4px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        padding: 14px;
    }

    .card-header {
        margin-bottom: 14px;
    }

    .card-header h3 {
        font-size: 16px;
    }

    .login-card {
        padding: 24px 16px;
    }

    .trollface-ascii {
        font-size: 6px;
    }

    td .btn {
        margin-right: 3px;
        margin-bottom: 3px;
        padding: 5px 10px;
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

/* Terminal */
.terminal-container {
    background: #0a0a0f;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 92, 246, 0.2);
    overflow: hidden;
}

.terminal-header {
    background: linear-gradient(90deg, #1a1a2e, #16213e);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27ca40;
}

.terminal-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: var(--text-muted);
}

.terminal-body {
    padding: 16px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #00ff88;
}

.terminal-line {
    margin-bottom: 4px;
    word-wrap: break-word;
}

.terminal-prompt {
    color: var(--accent-purple);
    margin-right: 8px;
    font-weight: bold;
}

.terminal-text {
    color: #00ff88;
}

.terminal-text.error {
    color: #ff5555;
}

.terminal-input-container {
    padding: 12px 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f0f17;
}

.terminal-input-container .terminal-prompt {
    flex-shrink: 0;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #00ff88;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
}

#terminal-input::placeholder {
    color: rgba(0, 255, 136, 0.4);
}

    .btn-primary {
        padding: 8px 16px;
        font-size: 12px;
    }

    .logout-btn {
        padding: 14px 16px;
        font-size: 14px;
    }


@media (max-width: 480px) {
    .main-content {
        padding: 70px 12px 12px 12px;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .stat-value {
        font-size: 36px;
    }

    .card {
        padding: 16px;
    }

    th, td {
        padding: 8px 6px;
    }
}
