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

:root {
    --bg: #0a0c10;
    --canvas: #0f1117;
    --card-bg: rgba(18, 22, 35, 0.8);
    --card-hover: rgba(25, 35, 55, 0.9);
    --primary: #2563eb;
    --primary-medium: #1d4ed8;
    --primary-dark: #1e3a8a;
    --primary-glow: rgba(37, 99, 235, 0.4);
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    --border: rgba(37, 99, 235, 0.2);
    --border-hover: rgba(37, 99, 235, 0.4);
    --shadow-sm: 0 2px 8px rgba(37, 99, 235, 0.1);
    --shadow-md: 0 12px 34px rgba(37, 99, 235, 0.15);
    --shadow-lg: 0 20px 50px rgba(37, 99, 235, 0.2);
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --fx-curve: cubic-bezier(0.25, 1, 0.5, 1);
    --fx-duration: 0.3s;
    --glow: 0 0 20px rgba(37, 99, 235, 0.3);
    --glow-strong: 0 0 30px rgba(37, 99, 235, 0.5);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    position: relative;
}

/* Cyber Grid Background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

/* Preloader */
.init-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.init-screen.fade-out { 
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    filter: blur(8px);
    transition: all 0.5s var(--fx-curve);
}

.init-content {
    text-align: center;
    max-width: 340px;
    width: 100%;
}

.init-logo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(var(--glow));
    animation: cyberPulse 2s infinite;
}

@keyframes cyberPulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--primary-glow);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 30px var(--primary-glow);
        transform: scale(1.05);
    }
}

.init-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
}

.init-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow);
}

.progress-container {
    width: 100%;
    padding: 0 1.5rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 3px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
    box-shadow: var(--glow);
}

.progress-percent {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.4rem;
}

.progress-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar with Cyber Theme */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    position: fixed;
    inset: 0 right auto;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(37, 99, 235, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

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

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header .logo i {
    font-size: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(var(--glow));
}

.sidebar-header .logo h1 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.sidebar-header .logo h1 span {
    color: var(--accent);
}

.sidebar.collapsed .sidebar-header .logo h1 {
    display: none;
}

.sidebar-collapse-btn {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sidebar-collapse-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--glow);
}

.sidebar-user {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.sidebar.collapsed .sidebar-user .user-info {
    display: none;
}

.user-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 5px 0;
}

.user-info p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 5px 0;
}

.user-info p i {
    color: var(--primary);
    margin-right: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.8rem;
}

.sidebar-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
}

.sidebar.collapsed .sidebar-section-title {
    display: none;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.sidebar-item:hover {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
    padding-left: 1.2rem;
    border-color: var(--border);
}

.sidebar-item.active {
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary);
    font-weight: 700;
    border-color: var(--border);
    box-shadow: var(--glow);
}

.sidebar-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar.collapsed .sidebar-item span {
    display: none;
}

.sidebar.collapsed .sidebar-item {
    justify-content: center;
    padding: 0.75rem 0;
}

.sidebar-badge {
    margin-left: auto;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid var(--border);
    color: var(--primary);
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 700;
}

.sidebar-footer {
    padding: 1.2rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
}

.sidebar-version {
    font-size: 0.7rem;
    color: var(--text-light);
    font-family: 'JetBrains Mono', monospace;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
    max-width: calc(100% - var(--sidebar-width));
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
    max-width: calc(100% - var(--sidebar-collapsed-width));
}

/* Tab Content */
.tab-content {
    display: none;
    animation: cyberReveal 0.5s var(--fx-curve) forwards;
}

.tab-content.active {
    display: block;
}

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

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

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

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

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

/* API Grid */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.api-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

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

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

.api-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.api-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.api-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.api-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.api-badge {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Changelog */
.changelog-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.changelog-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.changelog-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.changelog-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.changelog-version {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.changelog-date {
    color: var(--text-light);
    font-size: 0.7rem;
    margin: 4px 0 0.8rem 0;
}

.changelog-content {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.changelog-content ul {
    margin-top: 8px;
    padding-left: 20px;
}

.changelog-content li {
    margin: 5px 0;
}

/* Demo */
.demo-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.demo-controls {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.demo-select, .param-input input, .param-field input {
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.demo-select:focus, .param-input input:focus {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.demo-select {
    min-width: 180px;
    cursor: pointer;
}

.param-input {
    flex: 2;
    min-width: 200px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-medium));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.demo-response {
    padding: 1.5rem;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.response-header i {
    cursor: pointer;
    transition: color 0.2s;
}

.response-header i:hover {
    color: var(--primary);
}

.demo-response pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    color: #60a5fa;
}

/* Docs */
.doc-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.doc-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.endpoint-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.endpoint-header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.2);
}

.endpoint-header:hover {
    background: rgba(37, 99, 235, 0.05);
}

.method {
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    min-width: 60px;
    text-align: center;
}

.method.get {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
}

.endpoint-body {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--fx-duration);
}

.endpoint-card.expanded .endpoint-body {
    max-height: 600px;
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border);
}

.endpoint-body h4 {
    font-size: 0.8rem;
    margin: 0.8rem 0 0.5rem 0;
    color: var(--text);
}

.params-list {
    list-style: none;
    margin-bottom: 1rem;
}

.params-list li {
    font-size: 0.8rem;
    margin: 5px 0;
    color: var(--text-muted);
}

.params-list code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.example-code {
    display: block;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    margin: 0.5rem 0;
    overflow-x: auto;
}

.test-this-btn {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.test-this-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    backdrop-filter: blur(20px);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
    color: var(--text);
}

.auth-input {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
    background: rgba(10, 12, 16, 0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.auth-input:focus {
    border-color: var(--primary);
    box-shadow: var(--glow);
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
}

.auth-info {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ============ OTP SECTION STYLES ============ */

#otpSection {
    margin-top: 20px;
    padding: 15px;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border);
}

#otpCode {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
}

#otpCode:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
    outline: none;
}

#otpTimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--warning);
    margin: 12px 0;
    padding: 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.otp-buttons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.otp-buttons button {
    flex: 1;
}

#verifyOtpBtn {
    background: linear-gradient(135deg, var(--success), #059669);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#verifyOtpBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

#resendOtpBtn {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid var(--border);
    color: var(--primary);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#resendOtpBtn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

#resendOtpBtn:active {
    transform: translateY(0);
}

.otp-note {
    text-align: center;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.otp-note i {
    color: var(--primary);
    margin-right: 5px;
}

/* Buttons */
.login-btn, .logout-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-medium));
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.8);
    color: white;
}

.logout-btn:hover {
    background: #ef4444;
    transform: translateY(-2px);
}

/* Loading & Toast */
.loading-spinner {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.loading-spinner i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(20px);
    color: var(--text);
    animation: slideIn 0.3s var(--fx-curve) forwards;
}

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

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

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

/* WhatsApp Popup Card */
.whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-popup.hide {
    display: none;
}

.whatsapp-card {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(37, 211, 102, 0.2);
    animation: slideUp 0.4s ease;
}

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

.whatsapp-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.whatsapp-close:hover {
    color: #fff;
}

.whatsapp-icon {
    font-size: 4.5rem;
    color: #25D366;
    margin-bottom: 1rem;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(37, 211, 102, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(37, 211, 102, 0.8);
    }
}

.whatsapp-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
}

.whatsapp-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.whatsapp-benefits {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.whatsapp-benefits span {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.whatsapp-benefits span i {
    font-size: 0.75rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 0.8rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-later {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 0.7rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
    width: 100%;
}

.whatsapp-later:hover {
    border-color: #25D366;
    color: #25D366;
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar {
        left: calc(var(--sidebar-width) * -1);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
        padding: 1.5rem;
    }
    
    .mobile-menu-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, var(--primary), var(--primary-medium));
        color: white;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2000;
        cursor: pointer;
        box-shadow: var(--glow);
    }
    
    .dashboard-stats, .api-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-controls {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .whatsapp-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .whatsapp-icon {
        font-size: 3.5rem;
    }
    
    .whatsapp-card h3 {
        font-size: 1.2rem;
    }
    
    .whatsapp-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .otp-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    #otpCode {
        font-size: 1rem;
        letter-spacing: 4px;
        padding: 10px;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

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

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}
