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

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1525;
    --bg-card: #151e32;
    --bg-input: #1a2540;
    --border-color: #1e3a5f;
    --accent: #00d4ff;
    --accent-secondary: #0099ff;
    --accent-glow: rgba(0, 212, 255, 0.4);
    --text-primary: #e0f0ff;
    --text-secondary: #88b0d0;
    --text-muted: #4a6b8a;
    --success: #00ffaa;
    --warning: #ffaa00;
    --danger: #ff4466;
    --font-main: 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Consolas', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.5);
    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { 
    scroll-behavior: smooth; 
}

body { 
    font-family: var(--font-main); 
    background: var(--bg-primary); 
    color: var(--text-primary); 
    min-height: 100vh; 
    line-height: 1.6; 
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb:hover { 
    background: var(--accent); 
}

/* ======================== NAVBAR ======================== */
.navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    background: rgba(10,14,26,0.95); 
    backdrop-filter: blur(20px); 
    border-bottom: 1px solid var(--border-color); 
    padding: 0 24px; 
    height: 64px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.nav-brand { 
    font-size: 1.4rem; 
    font-weight: 700; 
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.logo-icon { 
    width: 36px; 
    height: 36px; 
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 18px; 
    box-shadow: 0 0 20px var(--accent-glow); 
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    list-style: none; 
}

.nav-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    padding: 8px 16px; 
    border-radius: var(--radius-sm); 
    font-size: 0.9rem; 
    font-weight: 500; 
    transition: var(--transition); 
    position: relative; 
    white-space: nowrap; 
}

.nav-links a:hover { 
    color: var(--text-primary); 
    background: rgba(0,212,255,0.1); 
    transform: translateY(-1px); 
}

.nav-links a.active { 
    color: var(--accent); 
    background: rgba(0,212,255,0.15); 
    box-shadow: 0 0 15px rgba(0,212,255,0.2); 
}

.nav-links a.active::after { 
    content: ''; 
    position: absolute; 
    bottom: -1px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 60%; 
    height: 2px; 
    background: var(--accent); 
    border-radius: 1px; 
    box-shadow: 0 0 10px var(--accent); 
}

.nav-user { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.user-badge { 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.badge-admin { 
    background: rgba(255,68,102,0.15); 
    color: var(--danger); 
    border: 1px solid rgba(255,68,102,0.3); 
}

.badge-user { 
    background: rgba(0,212,255,0.1); 
    color: var(--accent); 
    border: 1px solid rgba(0,212,255,0.2); 
}

.user-name { 
    font-size: 0.9rem; 
    color: var(--text-primary); 
    font-weight: 500; 
}

.hamburger { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    cursor: pointer; 
    padding: 8px; 
    z-index: 1001; 
}

.hamburger span { 
    width: 24px; 
    height: 2px; 
    background: var(--text-primary); 
    border-radius: 2px; 
    transition: var(--transition); 
}

/* ======================== MAIN CONTENT ======================== */
.main-content { 
    margin-top: 64px; 
    min-height: calc(100vh - 64px); 
    padding: 32px 24px; 
    max-width: 1200px; 
    margin-left: auto; 
    margin-right: auto; 
}

.page { 
    display: none; 
    animation: pageIn 0.4s cubic-bezier(0.4,0,0.2,1); 
}

.page.active { 
    display: block; 
}

@keyframes pageIn { 
    from { 
        opacity: 0; 
        transform: translateY(16px) scale(0.98); 
    } 
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    } 
}

/* ======================== CARDS ======================== */
.card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    padding: 24px; 
    margin-bottom: 20px; 
    transition: var(--transition); 
    position: relative; 
    overflow: hidden; 
}

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

.card:hover { 
    border-color: rgba(0,212,255,0.3); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 32px rgba(0,212,255,0.12); 
}

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

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

.card-title { 
    font-size: 1.2rem; 
    font-weight: 600; 
}

/* ======================== GRID SYSTEM ======================== */
.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 20px; 
}

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

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
}

/* ======================== STAT CARDS ======================== */
.stat-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    padding: 20px; 
    text-align: center; 
    transition: var(--transition); 
}

.stat-card:hover { 
    border-color: rgba(0,212,255,0.3); 
    transform: translateY(-3px); 
    box-shadow: 0 12px 24px rgba(0,212,255,0.15); 
}

.stat-value { 
    font-size: 2.2rem; 
    font-weight: 700; 
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    font-family: var(--font-mono); 
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1); 
}

@keyframes popIn { 
    from { 
        transform: scale(0.6); 
        opacity: 0; 
    } 
    to { 
        transform: scale(1); 
        opacity: 1; 
    } 
}

.stat-label { 
    font-size: 0.85rem; 
    color: var(--text-secondary); 
    margin-top: 4px; 
}

/* ======================== BUTTONS ======================== */
.btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    padding: 10px 20px; 
    border: none; 
    border-radius: var(--radius-sm); 
    font-size: 0.9rem; 
    font-weight: 600; 
    cursor: pointer; 
    transition: var(--transition); 
    font-family: var(--font-main); 
    text-decoration: none; 
    white-space: nowrap; 
    position: relative; 
    overflow: hidden; 
}

.btn::after { 
    content: ''; 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    width: 0; 
    height: 0; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.3); 
    transform: translate(-50%, -50%); 
    transition: width 0.5s, height 0.5s; 
}

.btn:active::after { 
    width: 300px; 
    height: 300px; 
}

.btn-primary { 
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); 
    color: #000; 
    box-shadow: 0 4px 15px rgba(0,212,255,0.3); 
}

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

.btn-danger { 
    background: linear-gradient(135deg, var(--danger), #ff2244); 
    color: #fff; 
    box-shadow: 0 4px 15px rgba(255,68,102,0.3); 
}

.btn-success { 
    background: linear-gradient(135deg, var(--success), #00cc88); 
    color: #000; 
}

.btn-warning { 
    background: linear-gradient(135deg, var(--warning), #cc8800); 
    color: #000; 
}

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

.btn-outline:hover { 
    border-color: var(--accent); 
    color: var(--accent); 
    background: rgba(0,212,255,0.05); 
}

.btn-sm { 
    padding: 6px 12px; 
    font-size: 0.8rem; 
}

.btn-block { 
    width: 100%; 
    justify-content: center; 
}

/* ======================== FORMS ======================== */
.form-group { 
    margin-bottom: 16px; 
}

.form-group label { 
    display: block; 
    font-size: 0.85rem; 
    color: var(--text-secondary); 
    margin-bottom: 6px; 
    font-weight: 500; 
}

.form-control { 
    width: 100%; 
    padding: 12px 16px; 
    background: var(--bg-input); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    color: var(--text-primary); 
    font-size: 0.95rem; 
    font-family: var(--font-main); 
    transition: var(--transition); 
    outline: none; 
}

.form-control:focus { 
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(0,212,255,0.15); 
    transform: translateY(-1px); 
}

.form-error { 
    font-size: 0.8rem; 
    color: var(--danger); 
    margin-top: 4px; 
    display: none; 
}

.form-error.visible { 
    display: block; 
    animation: fadeIn 0.3s; 
}

select.form-control { 
    cursor: pointer; 
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2388b0d0' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); 
    background-repeat: no-repeat; 
    background-position: right 12px center; 
    padding-right: 36px; 
}

/* ======================== TABLES ======================== */
.table-wrapper { 
    overflow-x: auto; 
    border-radius: var(--radius); 
    border: 1px solid var(--border-color); 
}

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

thead { 
    background: rgba(0,212,255,0.05); 
}

th { 
    padding: 14px 16px; 
    text-align: left; 
    font-size: 0.8rem; 
    font-weight: 600; 
    color: var(--text-secondary); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    border-bottom: 1px solid var(--border-color); 
}

td { 
    padding: 12px 16px; 
    font-size: 0.9rem; 
    border-bottom: 1px solid rgba(30,58,95,0.3); 
}

tr { 
    transition: background 0.2s; 
    position: relative; 
}

tr::before { 
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 0; 
    bottom: 0; 
    width: 3px; 
    background: var(--accent); 
    transform: scaleY(0); 
    transition: transform 0.3s; 
}

tr:hover::before { 
    transform: scaleY(1); 
}

tr:hover td { 
    background: rgba(0,212,255,0.04); 
}

/* ======================== STATUS BADGES ======================== */
.status { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.status-active { 
    background: rgba(0,255,170,0.1); 
    color: var(--success); 
    border: 1px solid rgba(0,255,170,0.2); 
    animation: pulseGlow 2s infinite; 
}

.status-expired { 
    background: rgba(255,170,0,0.1); 
    color: var(--warning); 
    border: 1px solid rgba(255,170,0,0.2); 
}

.status-banned { 
    background: rgba(255,68,102,0.1); 
    color: var(--danger); 
    border: 1px solid rgba(255,68,102,0.2); 
}

.status-unused { 
    background: rgba(136,176,208,0.1); 
    color: var(--text-secondary); 
    border: 1px solid rgba(136,176,208,0.2); 
}

@keyframes pulseGlow { 
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0,255,170,0.2); 
    } 
    50% { 
        box-shadow: 0 0 12px rgba(0,255,170,0.5); 
    } 
}

.status-dot { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: currentColor; 
}

/* ======================== HERO SECTION ======================== */
.hero { 
    text-align: center; 
    padding: 80px 20px; 
}

.hero-title { 
    font-size: 3rem; 
    font-weight: 800; 
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary), #00ccff); 
    background-size: 200% auto; 
    -webkit-background-clip: text; 
    background-clip: text; 
    color: transparent; 
    animation: shimmer 3s ease infinite; 
    margin-bottom: 16px; 
}

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

.hero-subtitle { 
    font-size: 1.15rem; 
    color: var(--text-secondary); 
    max-width: 600px; 
    margin: 0 auto 32px; 
}

.hero-buttons { 
    display: flex; 
    gap: 16px; 
    justify-content: center; 
    flex-wrap: wrap; 
}

/* ======================== AUTH PAGES ======================== */
.auth-container { 
    max-width: 420px; 
    margin: 60px auto; 
    animation: slideUp 0.5s ease; 
}

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

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

.auth-header h2 { 
    font-size: 1.8rem; 
    margin-bottom: 8px; 
}

.auth-header p { 
    color: var(--text-secondary); 
}

.auth-footer { 
    text-align: center; 
    margin-top: 24px; 
    color: var(--text-secondary); 
}

.auth-footer a { 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.2s; 
}

.auth-footer a:hover { 
    color: var(--accent-secondary); 
    text-decoration: underline; 
}

/* ======================== LICENSE KEY DISPLAY ======================== */
.license-key-display { 
    font-family: var(--font-mono); 
    font-size: 1.3rem; 
    font-weight: 600; 
    color: var(--accent); 
    background: var(--bg-input); 
    border: 1px dashed var(--accent); 
    border-radius: var(--radius-sm); 
    padding: 16px; 
    text-align: center; 
    letter-spacing: 2px; 
    user-select: all; 
    margin: 12px 0; 
    box-shadow: 0 0 20px rgba(0,212,255,0.1); 
    animation: popIn 0.4s; 
}

/* ======================== AI MODULE ======================== */
.ai-log { 
    background: var(--bg-primary); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    padding: 16px; 
    max-height: 400px; 
    overflow-y: auto; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
    line-height: 1.8; 
}

.ai-log-entry { 
    padding: 2px 0; 
    animation: fadeIn 0.3s ease; 
    border-bottom: 1px dashed rgba(30,58,95,0.2); 
    margin-bottom: 4px; 
}

.warning { 
    color: var(--warning); 
} 

.danger { 
    color: var(--danger); 
} 

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

.info { 
    color: var(--text-secondary); 
}

.ai-accuracy-bar { 
    height: 8px; 
    background: var(--bg-input); 
    border-radius: 4px; 
    overflow: hidden; 
    margin-top: 8px; 
}

.ai-accuracy-fill { 
    height: 100%; 
    background: linear-gradient(90deg, var(--accent), var(--success)); 
    border-radius: 4px; 
    transition: width 1s cubic-bezier(0.34,1.56,0.64,1); 
    box-shadow: 0 0 10px rgba(0,212,255,0.3); 
}

.ai-model-info { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px; 
    background: var(--bg-input); 
    border-radius: var(--radius-sm); 
    margin-top: 12px; 
}

.ai-model-version { 
    font-family: var(--font-mono); 
    font-size: 0.8rem; 
    color: var(--accent); 
    background: rgba(0,212,255,0.1); 
    padding: 4px 8px; 
    border-radius: 4px; 
    border: 1px solid rgba(0,212,255,0.2); 
}

/* ======================== CHARTS ======================== */
.chart-container { 
    padding: 16px; 
}

.chart-bar-group { 
    display: flex; 
    align-items: flex-end; 
    gap: 12px; 
    height: 160px; 
    padding-top: 16px; 
}

.chart-bar-wrapper { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    height: 100%; 
    justify-content: flex-end; 
}

.chart-bar { 
    width: 100%; 
    max-width: 48px; 
    border-radius: 4px 4px 0 0; 
    background: linear-gradient(to top, var(--accent), rgba(0,212,255,0.3)); 
    transition: height 1s cubic-bezier(0.34,1.56,0.64,1); 
    min-height: 4px; 
    box-shadow: 0 0 10px rgba(0,212,255,0.2); 
}

.chart-bar-label { 
    font-size: 0.7rem; 
    color: var(--text-muted); 
    margin-top: 6px; 
}

.chart-bar-value { 
    font-size: 0.7rem; 
    color: var(--text-secondary); 
    margin-bottom: 4px; 
    font-family: var(--font-mono); 
}

/* ======================== CHECK RESULT ======================== */
.check-result { 
    text-align: center; 
    padding: 40px; 
    display: none; 
    animation: fadeIn 0.4s; 
}

.check-result.visible { 
    display: block; 
}

.check-icon { 
    font-size: 4rem; 
    margin-bottom: 16px; 
    animation: bounceIn 0.5s; 
}

@keyframes bounceIn { 
    0% { 
        transform: scale(0); 
    } 
    50% { 
        transform: scale(1.2); 
    } 
    100% { 
        transform: scale(1); 
    } 
}

.check-result h3 { 
    font-size: 1.5rem; 
    margin-bottom: 8px; 
}

.check-details { 
    margin-top: 20px; 
    text-align: left; 
    max-width: 400px; 
    margin-left: auto; 
    margin-right: auto; 
}

.check-detail-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0; 
    border-bottom: 1px solid rgba(30,58,95,0.3); 
}

.check-detail-row .label { 
    color: var(--text-secondary); 
    font-size: 0.85rem; 
}

.check-detail-row .value { 
    font-weight: 600; 
    font-family: var(--font-mono); 
    font-size: 0.85rem; 
    color: var(--accent); 
}

/* ======================== MODAL ======================== */
.modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.8); 
    backdrop-filter: blur(8px) brightness(0.7); 
    z-index: 2000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 24px; 
}

.modal-overlay.active { 
    display: flex; 
    animation: fadeIn 0.3s; 
}

.modal { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius); 
    padding: 32px; 
    max-width: 550px; 
    width: 100%; 
    max-height: 90vh; 
    overflow-y: auto; 
    animation: modalPop 0.35s cubic-bezier(0.34,1.56,0.64,1); 
    box-shadow: 0 0 40px rgba(0,212,255,0.15); 
}

@keyframes modalPop { 
    from { 
        opacity: 0; 
        transform: scale(0.92) translateY(15px); 
    } 
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    } 
}

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

.modal-close { 
    background: none; 
    border: none; 
    color: var(--text-secondary); 
    font-size: 1.5rem; 
    cursor: pointer; 
    padding: 4px 8px; 
    border-radius: 4px; 
    transition: var(--transition); 
}

.modal-close:hover { 
    color: var(--text-primary); 
    background: rgba(255,255,255,0.05); 
    transform: rotate(90deg); 
}

/* ======================== TOAST NOTIFICATIONS ======================== */
.toast-container { 
    position: fixed; 
    top: 80px; 
    right: 24px; 
    z-index: 3000; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.toast { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    padding: 14px 20px; 
    min-width: 300px; 
    max-width: 420px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1); 
    box-shadow: var(--shadow); 
    backdrop-filter: blur(10px); 
    border-left: 4px solid; 
}

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

@keyframes toastIn { 
    from { 
        opacity: 0; 
        transform: translateX(100%) scale(0.9); 
    } 
    to { 
        opacity: 1; 
        transform: translateX(0) scale(1); 
    } 
}

@keyframes toastOut { 
    to { 
        opacity: 0; 
        transform: translateX(100%) scale(0.9); 
    } 
}

.toast-icon { 
    font-size: 1.2rem; 
    flex-shrink: 0; 
}

.toast-success { 
    border-left-color: var(--success); 
}

.toast-error { 
    border-left-color: var(--danger); 
}

.toast-warning { 
    border-left-color: var(--warning); 
}

.toast-info { 
    border-left-color: var(--accent); 
}

/* ======================== NEWS & CHANGELOG ======================== */
.news-item { 
    padding: 20px; 
    border-bottom: 1px solid rgba(30,58,95,0.3); 
    transition: background 0.2s; 
}

.news-item:hover { 
    background: rgba(0,212,255,0.02); 
}

.news-item:last-child { 
    border-bottom: none; 
}

.news-date { 
    font-size: 0.8rem; 
    color: var(--text-muted); 
    font-family: var(--font-mono); 
    margin-bottom: 4px; 
}

.news-title { 
    font-size: 1.1rem; 
    font-weight: 600; 
    margin-bottom: 8px; 
    color: var(--text-primary); 
}

.news-text { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    line-height: 1.6; 
}

.changelog-tag { 
    display: inline-block; 
    padding: 2px 8px; 
    border-radius: 4px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-right: 8px; 
}

.tag-feature { 
    background: rgba(0,212,255,0.15); 
    color: var(--accent); 
    border: 1px solid rgba(0,212,255,0.2); 
}

.tag-fix { 
    background: rgba(0,255,170,0.15); 
    color: var(--success); 
    border: 1px solid rgba(0,255,170,0.2); 
}

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

.tag-design { 
    background: rgba(138,43,226,0.15); 
    color: #9b59b6; 
    border: 1px solid rgba(138,43,226,0.2); 
}

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

.empty-state .icon { 
    font-size: 3rem; 
    margin-bottom: 16px; 
    opacity: 0.5; 
    animation: float 3s ease-in-out infinite; 
}

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

/* ======================== SEARCH & FILTERS ======================== */
.search-filters { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap; 
    padding: 12px; 
    background: var(--bg-input); 
    border-radius: var(--radius-sm); 
    margin-bottom: 16px; 
}

.search-filter { 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    color: var(--text-secondary); 
    user-select: none; 
    transition: color 0.2s; 
}

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

.search-filter input[type="checkbox"] { 
    width: 16px; 
    height: 16px; 
    cursor: pointer; 
    accent-color: var(--accent); 
}

.search-results { 
    max-height: 400px; 
    overflow-y: auto; 
    border: 1px solid var(--border-color); 
    border-radius: var(--radius-sm); 
}

.search-result-item { 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
    padding: 12px 16px; 
    border-bottom: 1px solid rgba(30,58,95,0.3); 
    cursor: pointer; 
    transition: all 0.2s; 
}

.search-result-item:hover { 
    background: rgba(0,212,255,0.05); 
    transform: translateX(4px); 
}

.search-result-item:last-child { 
    border-bottom: none; 
}

.search-result-type { 
    font-size: 1.5rem; 
    flex-shrink: 0; 
}

.search-result-content { 
    flex: 1; 
    min-width: 0; 
}

.search-result-title { 
    font-weight: 600; 
    color: var(--text-primary); 
    margin-bottom: 4px; 
}

.search-result-desc { 
    font-size: 0.85rem; 
    color: var(--text-secondary); 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* ======================== AUDIT & WEBHOOK ======================== */
.badge-action { 
    display: inline-block; 
    padding: 4px 10px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    font-family: var(--font-mono); 
}

.checkbox-label { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    font-size: 0.95rem; 
    color: var(--text-primary); 
    padding: 8px 0; 
    transition: color 0.2s; 
}

.checkbox-label:hover { 
    color: var(--accent); 
}

.checkbox-label input[type="checkbox"] { 
    width: 18px; 
    height: 18px; 
    cursor: pointer; 
    accent-color: var(--accent); 
}

/* ======================== UTILITY CLASSES ======================== */
.text-center { 
    text-align: center; 
} 

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

.text-success { 
    color: var(--success); 
} 

.text-danger { 
    color: var(--danger); 
} 

.text-warning { 
    color: var(--warning); 
}

.mt-16 { 
    margin-top: 16px; 
} 

.mt-24 { 
    margin-top: 24px; 
} 

.mb-16 { 
    margin-bottom: 16px; 
} 

.mb-24 { 
    margin-bottom: 24px; 
} 

.gap-12 { 
    gap: 12px; 
}

.flex { 
    display: flex; 
} 

.flex-wrap { 
    flex-wrap: wrap; 
} 

.items-center { 
    align-items: center; 
} 

.justify-between { 
    justify-content: space-between; 
}

.hidden { 
    display: none !important; 
}

/* ======================== REDUCED MOTION ======================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { 
        animation-duration: 0.01ms !important; 
        animation-iteration-count: 1 !important; 
        transition-duration: 0.01ms !important; 
    }
}

/* ======================== RESPONSIVE DESIGN ======================== */
@media(max-width:768px) {
    .hamburger { 
        display: flex; 
    }
    
    .nav-links { 
        position: fixed; 
        top: 64px; 
        left: 0; 
        right: 0; 
        bottom: 0; 
        background: rgba(10,14,26,0.98); 
        flex-direction: column; 
        padding: 24px; 
        gap: 8px; 
        transform: translateX(100%); 
        transition: var(--transition); 
        overflow-y: auto; 
    }
    
    .nav-links.open { 
        transform: translateX(0); 
    }
    
    .grid-2, .grid-3, .grid-4 { 
        grid-template-columns: 1fr; 
    }
    
    .hero-title { 
        font-size: 2rem; 
    } 
    
    .hero { 
        padding: 40px 20px; 
    } 
    
    .main-content { 
        padding: 20px 16px; 
    }
}