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

/* ============ CSS VARIABLES ============ */
:root {
    --bg-primary: #080811;
    --bg-secondary: #0d0d1a;
    --bg-card: rgba(15, 15, 28, 0.85);
    --bg-card-hover: rgba(22, 22, 40, 0.92);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(0, 245, 212, 0.18);
    --border-glow: rgba(0, 245, 212, 0.4);
    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-cyan: #00f5d4;
    --accent-purple: #9b5de5;
    --accent-pink: #f15bb5;
    --accent-blue: #00bbf9;
    --gradient-main: linear-gradient(90deg, #00f5d4 0%, #9b5de5 100%);
    --gradient-hot: linear-gradient(135deg, #f15bb5, #9b5de5);
    --gradient-cool: linear-gradient(135deg, #00bbf9, #00f5d4);
    --shadow-glow: 0 0 50px rgba(0, 245, 212, 0.2);
    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.7);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Base Form Elements Reset & Dark Theme Fallback */
input, select, textarea, button {
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(10, 10, 22, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
    background: rgba(15, 15, 30, 0.95);
}

option {
    background: #0d0d1a;
    color: #f0f4f8;
}

/* ============ CYBER GRID BACKGROUND ============ */
.bg-cyber-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0, 245, 212, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 245, 212, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #9b5de5, #00f5d4, #f15bb5);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: #000;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 16px;
    text-align: center;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,245,212,0.3);
}

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

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 245, 212, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 245, 212, 0.7);
}

/* ============ ANIMATED BACKGROUND ORBS ============ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}
.bg-gradient-orb.orb-1 {
    width: 650px;
    height: 650px;
    background: var(--accent-cyan);
    top: -200px;
    right: -200px;
    animation: orbFloat1 20s ease-in-out infinite;
}
.bg-gradient-orb.orb-2 {
    width: 550px;
    height: 550px;
    background: var(--accent-purple);
    bottom: -150px;
    left: -150px;
    animation: orbFloat2 25s ease-in-out infinite;
}
.bg-gradient-orb.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-80px, 60px) scale(1.1); }
    66% { transform: translate(40px, -40px) scale(0.9); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -80px) scale(1.15); }
    66% { transform: translate(-40px, 40px) scale(0.85); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.25); }
}

/* ============ MAIN CONTAINER ============ */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ============ AUTH SECTION ============ */
.auth-container {
    width: 100%;
    max-width: 480px;
    animation: fadeInUp 0.8s ease-out;
}

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

.auth-card {
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.auth-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.site-logo-img {
    width: 100px;
    height: 60px;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.4);
    object-fit: cover;
    border: 2px solid rgba(0, 245, 212, 0.4);
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 0 35px rgba(0, 245, 212, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 35px rgba(0, 245, 212, 0.3); }
    50% { box-shadow: 0 0 60px rgba(0, 245, 212, 0.5); }
}

.auth-title {
    text-align: center;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 28px;
}

/* Social Buttons Bar */
.social-links-bar {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.social-btn.discord { background: rgba(88, 101, 242, 0.2); color: #5865F2; border-color: rgba(88, 101, 242, 0.4); }
.social-btn.shop { background: rgba(0, 245, 212, 0.2); color: #00f5d4; border-color: rgba(0, 245, 212, 0.4); }
.social-btn.contact { background: rgba(241, 91, 181, 0.2); color: #f15bb5; border-color: rgba(241, 91, 181, 0.4); }

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.social-btn-sm {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
    text-decoration: none;
}

/* ============ INPUT STYLES ============ */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.input-group textarea {
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.input-group input::placeholder {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(calc(-50% + 10px));
    color: #f59e0b;
    font-size: 16px;
    pointer-events: none;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: #000;
    width: 100%;
    font-weight: 800;
}

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

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-cyan);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ============ SEARCH SECTION ============ */
.search-container {
    width: 100%;
    max-width: 980px;
    animation: fadeInUp 0.8s ease-out;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.header-avatar-box {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.header-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(155, 93, 229, 0.5);
    border: 2px solid var(--accent-purple);
}

.search-header h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 8px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.key-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 20px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
}

/* Rules / Notice Box */
.rules-box {
    background: rgba(14, 14, 28, 0.7);
    border: 1px solid rgba(155, 93, 229, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.rules-header {
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.rules-content {
    white-space: pre-line;
    line-height: 1.6;
}

.search-box {
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.search-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.search-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.search-row .btn {
    height: 48px;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-options {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.search-options .input-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

/* ============ RESULTS SECTION ============ */
.results-container {
    background: var(--bg-card);
    backdrop-filter: blur(28px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.results-header .results-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.results-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-glass);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

.results-stat.highlight {
    background: rgba(0, 245, 212, 0.1);
    color: var(--accent-cyan);
}

.results-body {
    max-height: 500px;
    overflow-y: auto;
    padding: 4px;
}

.result-line-raw {
    padding: 6px 18px;
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    user-select: text;
    cursor: text;
    transition: background 0.15s ease;
}

.result-line-raw:hover {
    background: rgba(0, 245, 212, 0.06);
}

.result-line {
    padding: 10px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255,255,255, 0.02);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-line:hover {
    background: var(--bg-glass-hover);
}

.result-line .line-num {
    color: var(--text-muted);
    font-size: 11px;
    min-width: 40px;
    text-align: right;
}

.result-line .line-content .user-part { color: var(--accent-cyan); }
.result-line .line-content .sep { color: var(--text-muted); }
.result-line .line-content .pass-part { color: var(--accent-purple); }

.custom-site-footer {
    text-align: center;
    margin-top: 30px;
    padding: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ============ LOADING & TOAST ============ */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading-overlay.active { opacity: 1; pointer-events: all; }

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text { color: var(--text-secondary); font-size: 14px; }

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    animation: toastIn 0.4s ease-out;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { background: rgba(0, 245, 212, 0.12); border-color: rgba(0, 245, 212, 0.3); color: var(--accent-cyan); }
.toast.error { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); color: #ef4444; }

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

/* User Bar */
.user-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: rgba(5, 5, 10, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
}

.user-bar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.user-bar .brand-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--gradient-main); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.user-bar .user-actions { display: flex; align-items: center; gap: 12px; }

.btn-logout {
    padding: 6px 14px;
    font-size: 13px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
