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

:root {
    --bg-deep: #050a14;
    --bg-card: #0E1B2E;
    --bg-card-secondary: #13243A;
    --border-color: #1F4E61;
    --primary: #0D9488;
    --primary-hover: #14b8a6;
    --accent: #99F6E0;
    --text-white: #FFFFFF;
    --text-secondary: #C6CFDA;
    --text-muted: #8B97A8;
    --text-muted-light: #C0CAD8;
    --input-bg: #122033;
    --input-border: #1F4E61;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #0ea5e9;
    --gradient-start: #0D9488;
    --gradient-mid: #0ea5e9;
    --gradient-end: #6366f1;
}

/* Light Theme Overrides */
.light-theme,
.light-theme body,
.light-theme .dashboard-wrapper,
.light-theme .app-layout {
    --bg-deep: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-secondary: #F1F5F9;
    --border-color: #E2E8F0;
    --text-white: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --input-bg: #FFFFFF;
    --input-border: #E2E8F0;
    --accent: #6366F1;
}

.light-theme {
    background-color: var(--bg-deep);
    color: var(--text-secondary);
}

.light-theme .dashboard-sidebar,
.light-theme .sidebar {
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
}

.light-theme .dashboard-sidebar .sidebar-logo,
.light-theme .sidebar .sidebar-logo {
    border-bottom: 1px solid var(--border-color);
}

.light-theme .dashboard-sidebar .sidebar-logo-text,
.light-theme .sidebar .sidebar-logo-text {
    color: var(--text-white);
}

.light-theme .dashboard-sidebar .sidebar-nav-link,
.light-theme .sidebar .sidebar-nav-link {
    color: var(--text-secondary);
}

.light-theme .dashboard-sidebar .sidebar-nav-link:hover,
.light-theme .sidebar .sidebar-nav-link:hover {
    background-color: #EEF2FF;
    color: #6366F1;
}

.light-theme .dashboard-sidebar .sidebar-nav-link.active,
.light-theme .sidebar .sidebar-nav-link.active {
    background-color: #EEF2FF;
    color: #6366F1;
}

.light-theme .dashboard-sidebar .sidebar-section-title,
.light-theme .sidebar .sidebar-section-title {
    color: var(--text-muted);
}

.light-theme .dashboard-header,
.light-theme .top-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .dashboard-header-username,
.light-theme .header-title-group h2,
.light-theme .header-user-name {
    color: var(--text-white);
}

.light-theme .dashboard-header-greeting,
.light-theme .header-title-group p,
.light-theme .header-user-role {
    color: var(--text-muted);
}

.light-theme .dashboard-content,
.light-theme .page-content {
    background-color: var(--bg-deep);
}

.light-theme .content-card,
.light-theme .form-card,
.light-theme .stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.light-theme .content-card-header,
.light-theme .form-card-header {
    border-bottom: 1px solid var(--border-color);
}

.light-theme .content-card-title,
.light-theme .form-card-title {
    color: var(--text-white);
}

.light-theme .data-table th {
    background-color: var(--bg-deep);
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.light-theme .data-table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.light-theme .data-table tbody tr:hover {
    background-color: var(--bg-deep);
}

.light-theme .table-title {
    color: var(--text-white);
}

.light-theme .table-subtitle {
    color: var(--text-muted);
}

.light-theme .form-control,
.light-theme .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-white);
}

.light-theme .form-control:focus,
.light-theme .form-select:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.light-theme .form-label {
    color: var(--text-white);
}

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

.light-theme .btn-outline-custom {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.light-theme .btn-outline-custom:hover {
    background-color: var(--bg-deep);
    border-color: #6366F1;
    color: #6366F1;
}

.light-theme .header-icon-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.light-theme .header-icon-btn:hover {
    background-color: var(--bg-deep);
    color: #6366F1;
    border-color: #6366F1;
}

.light-theme .header-avatar {
    background: linear-gradient(135deg, #6366F1, #0ea5e9);
}

.light-theme .dropdown-menu {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.light-theme .dropdown-item {
    color: var(--text-secondary);
}

.light-theme .dropdown-item:hover {
    background-color: var(--bg-deep);
    color: var(--text-white);
}

.light-theme .dropdown-divider {
    border-color: var(--border-color);
}

.light-theme .breadcrumb-custom {
    color: var(--text-muted);
}

.light-theme .breadcrumb-custom a {
    color: var(--text-secondary);
}

.light-theme .breadcrumb-custom a:hover {
    color: #6366F1;
}

.light-theme .breadcrumb-custom .current {
    color: var(--text-white);
}

.light-theme .detail-label {
    color: var(--text-secondary);
}

.light-theme .detail-value {
    color: var(--text-white);
}

.light-theme .pagination-custom .page-link-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.light-theme .pagination-custom .page-link-custom:hover {
    background-color: #EEF2FF;
    border-color: #6366F1;
    color: #6366F1;
}

.light-theme .pagination-custom .page-link-custom.active {
    background: linear-gradient(135deg, #6366F1, #0ea5e9);
    border-color: transparent;
    color: white;
}

.light-theme .search-input {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-white);
}

.light-theme .search-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.light-theme .search-input::placeholder {
    color: var(--text-muted);
}

.light-theme .filter-select {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-secondary);
}

.light-theme .filter-select:focus {
    border-color: #6366F1;
}

.light-theme .stat-card-value {
    color: var(--text-white);
}

.light-theme .stat-card-label {
    color: var(--text-muted);
}

.light-theme .info-card {
    background: #EFF6FF;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.light-theme .info-card i {
    color: #6366F1;
}

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

.light-theme .info-card-text strong {
    color: var(--text-white);
}

.light-theme .btn-primary-custom {
    background: linear-gradient(135deg, #6366F1 0%, #0ea5e9 100%);
}

.light-theme .btn-primary-custom:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.light-theme .gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-theme .btn-nav-primary {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.light-theme .btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
    color: white;
}

.light-theme .nav-link {
    color: var(--text-secondary);
}

.light-theme .nav-link:hover {
    color: var(--text-white);
}

.light-theme .nav-link::after {
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
}

.light-theme .preview-nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.light-theme .nav-title {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-theme .nav-logo {
    background: linear-gradient(135deg, #6366F1 0%, #0ea5e9 50%, #10B981 100%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.light-theme .preview-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.light-theme .footer-brand-name {
    color: var(--text-white);
}

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

.light-theme .social-link {
    color: var(--text-muted);
}

.light-theme .social-link:hover {
    color: var(--primary);
}

.light-theme .section-padding {
    padding: 3rem 0;
}

.light-theme .hero-title {
    font-size: 2.5rem;
}

}

.light-theme .newsletter-form {
    flex-direction: column;
}

.light-theme .btn-subscribe {
    width: 100%;
}

.light-theme .blog-card-enhanced {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(14, 165, 233, 0.03) 100%);
    border: 1px solid var(--border-color);
}

.light-theme .blog-card-enhanced:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 30px rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(14, 165, 233, 0.04) 100%);
}

.light-theme .newsletter-card-enhanced {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(14, 165, 233, 0.06) 50%, rgba(20, 184, 166, 0.06) 100%);
    border: 1px solid var(--border-color);
}

.light-theme .newsletter-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-white);
}

.light-theme .newsletter-input:focus {
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.light-theme .newsletter-input::placeholder {
    color: var(--text-muted);
}

.light-theme .stats-icon {
    color: var(--text-secondary);
}

.light-theme .stats-value {
    color: var(--text-white);
}

.light-theme .stats-label {
    color: var(--text-muted);
}

.light-theme .feature-icon {
    color: var(--text-secondary);
}

.light-theme .feature-title {
    color: var(--text-white);
}

.light-theme .feature-desc {
    color: var(--text-muted);
}

.light-theme .feature-list {
    color: var(--text-secondary);
}

.light-theme .feature-link {
    color: var(--primary);
}

.light-theme .feature-link:hover {
    color: var(--primary-hover);
}

.light-theme .blog-title {
    color: var(--text-white);
}

.light-theme .blog-meta {
    color: var(--text-muted);
}

.light-theme .blog-category {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.light-theme .newsletter-title {
    color: var(--text-white);
}

.light-theme .newsletter-desc {
    color: var(--text-muted);
}

.light-theme .btn-outline-enhanced {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.light-theme .btn-outline-enhanced:hover {
    background: var(--bg-deep);
    border-color: #6366F1;
    color: var(--text-white);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-secondary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-3, .display-4, .display-5 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Primary Gradient */
.primary-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
}

/* Glass Card */
.glass-card {
    background: rgba(14, 27, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Enhanced Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    border: none;
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
    color: white;
}

.btn-gradient::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;
}

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

.btn-outline-enhanced {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.btn-outline-enhanced:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
    color: var(--text-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(14, 165, 233, 0.15);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.btn-icon.warning:hover {
    background: rgba(234, 179, 8, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* Background decorative lines */
.bg-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 163, 255, 0.15), transparent);
    z-index: -1;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
    overflow: hidden;
}

#splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.splash-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.35) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.splash-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 60%;
    animation: floatOrb 14s ease-in-out infinite;
}

.splash-bg-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
    bottom: 10%;
    left: 20%;
    animation: floatOrb 18s ease-in-out infinite reverse;
}

.splash-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.splash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: splashFloat 8s ease-in-out infinite;
}

.splash-particle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.splash-particle:nth-child(2) { top: 60%; left: 70%; animation-delay: 2s; }
.splash-particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 4s; }
.splash-particle:nth-child(4) { top: 30%; left: 80%; animation-delay: 1s; }
.splash-particle:nth-child(5) { top: 70%; left: 50%; animation-delay: 3s; }
.splash-particle:nth-child(6) { top: 10%; left: 60%; animation-delay: 5s; }
.splash-particle:nth-child(7) { top: 50%; left: 10%; animation-delay: 2.5s; }
.splash-particle:nth-child(8) { top: 40%; left: 90%; animation-delay: 4.5s; }

@keyframes splashFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-40px) scale(1.6); opacity: 0.9; }
}

.splash-logo-wrapper {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.splash-logo-ring {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-core {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.splash-logo-icon {
    width: 56px;
    height: 56px;
    color: var(--text-white);
    position: relative;
    z-index: 2;
    animation: logoSpin 20s linear infinite;
    filter: drop-shadow(0 0 24px rgba(14, 165, 233, 0.5));
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.4) 0%, rgba(99, 102, 241, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    animation: logoPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.splash-logo-orbit {
    position: absolute;
    inset: 0;
    animation: orbitSpin 12s linear infinite;
    z-index: 1;
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.splash-orbit-dot {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.splash-orbit-dot::before {
    content: attr(data-label);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted-light);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.splash-orbit-ring {
    position: absolute;
    inset: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: orbitSpin 25s linear infinite reverse;
    pointer-events: none;
}

.orbit-publisher { top: 0; left: 50%; margin-left: -22px; }
.orbit-advertiser { bottom: 10%; right: 0; }
.orbit-blog { bottom: 10%; left: 0; }

.splash-orbit-dot:hover {
    transform: scale(1.2);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.4);
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(14, 165, 233, 0.3);
}

.splash-title span {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-message-container {
    height: 4rem;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-message {
    position: absolute;
    left: 50%;
    white-space: nowrap;
    color: var(--text-muted-light);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    filter: blur(8px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.splash-message.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    filter: blur(0);
}

.splash-progress {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.splash-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    border-radius: 3px;
    animation: progressFill 2.5s ease-in-out infinite;
}

@keyframes progressFill {
    0% { width: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { width: 100%; opacity: 0; }
}

/* Background orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: floatOrb 20s ease-in-out infinite;
}

.bg-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    animation: floatOrb 25s ease-in-out infinite reverse;
}

.bg-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatOrb 18s ease-in-out infinite 5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* Navigation */
.preview-nav {
    position: relative;
    z-index: 10;
    padding: 1.25rem 0;
    backdrop-filter: blur(20px);
    background: rgba(5, 10, 20, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.nav-logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s;
}

.nav-logo:hover::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.nav-title {
    font-weight: 800;
    font-size: 1.35rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover {
    color: #f1f5f9;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

/* Section spacing */
.section-padding {
    padding: 5rem 0;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-mid) 50%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

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

/* Section tag */
.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

/* Badge */
.badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Stats section */
.stats-section {
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.stats-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stats-container {
    position: relative;
    z-index: 2;
}

.stats-card {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, #6366f1, transparent);
    opacity: 0.6;
}

.stats-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(14, 165, 233, 0.2);
}

.stats-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    color: #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.1);
}

.stats-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.stats-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero section */
.hero-section {
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.hero-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 25px rgba(14, 165, 233, 0.35);
}

.btn-hero-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;
}

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

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.45);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(14, 165, 233, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Features section */
.features-section {
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.features-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
    color: #14b8a6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Feature card */
.feature-card-enhanced {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #6366f1, #14b8a6);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card-enhanced:hover {
    transform: translateY(-12px) scale(1.01);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(14, 165, 233, 0.2);
}

.feature-card-enhanced:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-icon-advertiser {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0.05) 100%);
    color: #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.feature-icon-publisher {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2) 0%, rgba(20, 184, 166, 0.05) 100%);
    color: #14b8a6;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.15);
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-list li i {
    color: #14b8a6;
    font-size: 0.85rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.15);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.feature-link:hover {
    gap: 0.75rem;
    color: #38bdf8;
}

/* Blog section */
.blog-section {
    position: relative;
    z-index: 5;
    padding: 4rem 0;
}

.blog-category {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.8rem;
}

.blog-meta i {
    color: #0ea5e9;
    transition: transform 0.3s ease;
}

.blog-card-enhanced {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
}

.blog-card-enhanced:nth-child(2) { animation-delay: 1s; }
.blog-card-enhanced:nth-child(3) { animation-delay: 2s; }
.blog-card-enhanced:nth-child(4) { animation-delay: 3s; }

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

.blog-card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #0ea5e9, #6366f1);
    transition: height 0.4s ease;
    border-radius: 0 0 3px 0;
}

.blog-card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(14, 165, 233, 0.15);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    animation-play-state: paused;
}

.blog-card-enhanced:hover::before {
    height: 100%;
}

.blog-card-enhanced:hover .blog-meta i {
    transform: translateX(4px);
}

/* Newsletter card */
.newsletter-card-enhanced {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(20, 184, 166, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.newsletter-card-enhanced::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    animation: rotateGlow 15s linear infinite;
}

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

.newsletter-content {
    position: relative;
    z-index: 2;
}

/* Newsletter section */
.newsletter-section {
    position: relative;
    z-index: 5;
    padding: 4rem 0;
}

.newsletter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.newsletter-title span {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #f1f5f9;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: #64748b;
}

.newsletter-input:focus {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.btn-subscribe {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

/* Footer */
.preview-footer {
    position: relative;
    z-index: 5;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
}

.footer-brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #f1f5f9;
}

.footer-text {
    color: #64748b;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #f1f5f9;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
    color: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

/* Placeholder visibility on dark inputs */
.form-control::placeholder {
    color: #7B8FA8;
    opacity: 1;
}

/* Preview Banner */
.preview-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideInRight 0.5s ease-out;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .btn-subscribe {
        width: 100%;
    }
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    min-width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-logo {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 50%, #14b8a6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.3);
    flex-shrink: 0;
}

.sidebar-logo-text {
    font-weight: 700;
    color: var(--text-white);
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.sidebar-nav {
    flex-grow: 1;
    width: 100%;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-nav-link i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
}

.sidebar-nav-link:hover i {
    opacity: 1;
}

.sidebar-nav-link.active {
    background-color: rgba(79, 163, 255, 0.12);
    color: var(--accent);
    font-weight: 600;
}

.sidebar-nav-link.active i {
    opacity: 1;
    color: var(--accent);
}

.sidebar-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, #0ea5e9, #6366f1);
    border-radius: 0 4px 4px 0;
}

/* Sidebar User Section */
.sidebar-user {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.sidebar-user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.sidebar-user-dropdown:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.sidebar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sidebar-user-info {
    flex-grow: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-user-chevron {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Dashboard Header */
.dashboard-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
}

.dashboard-header-title {
    margin-bottom: 0;
}

.dashboard-header-greeting {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.dashboard-header-username {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0;
}

.dashboard-header-dropdown {
    position: relative;
}

.dashboard-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.dashboard-header-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.dashboard-header-dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.dashboard-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 240px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    z-index: 1000;
}

.dashboard-dropdown-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.dashboard-dropdown-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.875rem;
}

.dashboard-dropdown-email {
    color: var(--text-muted);
    font-size: 0.75rem;
    word-break: break-all;
}

.dashboard-dropdown-role {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    background-color: #13243A;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.15s ease;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.dashboard-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
}

.dashboard-dropdown-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.5rem 0;
}

.dashboard-dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

/* Dashboard Main Content */
.dashboard-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.dashboard-content::-webkit-scrollbar {
    width: 6px;
}

.dashboard-content::-webkit-scrollbar-track {
    background: transparent;
}

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

.dashboard-content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Card Hover Effects */
.card-hover-lift {
    transition: all 0.3s ease;
}

.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Quiz Page */
.quiz-page {
    min-height: calc(100vh - 200px);
}

.quiz-hero {
    animation: fadeInUp 0.6s ease-out;
}

.quiz-topic-card {
    display: block;
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.8) 0%, rgba(19, 36, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.quiz-topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quiz-topic-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(14, 165, 233, 0.15);
}

.quiz-topic-card:hover::before {
    opacity: 1;
}

.quiz-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.quiz-topic-card:hover .quiz-card-icon {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.quiz-empty {
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.6), rgba(19, 36, 58, 0.6));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 4rem 2rem;
}

.quiz-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.quiz-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Quiz Play */
.quiz-play-container {
    max-width: 48rem;
    margin: 0 auto;
}

.quiz-header {
    animation: fadeInUp 0.5s ease-out;
}

.quiz-progress-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.quiz-question-card {
    animation: fadeInUp 0.7s ease-out;
}

.quiz-option-label {
    display: block;
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.8) 0%, rgba(19, 36, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.quiz-option-label:hover {
    border-color: rgba(14, 165, 233, 0.4);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(19, 36, 58, 0.8) 100%);
    transform: translateX(4px);
}

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

.quiz-option-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quiz-nav-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.quiz-nav-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.quiz-nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
    color: white;
}

.quiz-nav-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.quiz-nav-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
    color: white;
}

.quiz-nav-btn-secondary {
    background-color: var(--bg-card-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.quiz-nav-btn-secondary:hover {
    border-color: var(--primary);
    color: var(--text-white);
}

/* Quiz Result */
.quiz-result-container {
    max-width: 48rem;
    margin: 0 auto;
}

.quiz-result-header {
    animation: fadeInUp 0.6s ease-out;
}

.quiz-stats-grid {
    animation: fadeInUp 0.7s ease-out;
}

.quiz-stat-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.8) 0%, rgba(19, 36, 58, 0.8) 100%);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.quiz-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.3);
}

.quiz-stat-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.quiz-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.quiz-certificate-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.quiz-share-dropdown {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.5rem 0;
}

.quiz-share-dropdown .dropdown-item {
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.quiz-share-dropdown .dropdown-item:hover {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--text-white);
}

.quiz-share-dropdown .dropdown-item i {
    width: 16px;
    height: 16px;
}

.quiz-actions {
    animation: fadeInUp 0.9s ease-out;
}

.quiz-form-card {
    background: linear-gradient(135deg, rgba(14, 27, 46, 0.9) 0%, rgba(19, 36, 58, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    animation: fadeInUp 0.7s ease-out;
}

.quiz-input {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.quiz-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
}

.quiz-info-card {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    animation: fadeInUp 0.5s ease-out;
}

.quiz-attempt-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
}

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