@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;
    min-width: 0;
}

.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;
    flex-shrink: 0;
}

.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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-links {
    display: flex !important;
    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);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none !important;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-toggle.active {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger <-> X toggle animation. Targets the three <line> elements inside the
   toggle button's SVG (given class menu-line-1/2/3 — see base.html). Falls back
   gracefully (just no morph) if those classes aren't present on older markup. */
.mobile-menu-toggle svg { overflow: visible; }

.menu-line-1, .menu-line-2, .menu-line-3 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: 12px 12px;
}

.mobile-menu-toggle.active .menu-line-1 {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-line-2 {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-line-3 {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: rgba(10, 15, 25, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: none !important;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    flex-shrink: 0;
}

.mobile-nav-link:hover .mobile-nav-icon {
    background: rgba(14, 165, 233, 0.2);
}

.mobile-menu-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.mobile-footer-text {
    color: #64748b;
    font-size: 0.8rem;
    margin: 0;
}

/* 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;
    max-width: 100%;
    text-align: center;
}

/* 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-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);
    }
}

/* ===== COMPREHENSIVE RESPONSIVE ===== */

/* Tablet: keep the nav inline (Browse Articles / Login / Get Started), just tighten it up */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links { gap: 1.25rem !important; }
    .nav-link { font-size: 0.85rem !important; }
    .nav-title { font-size: 1.15rem !important; }
    .nav-logo { width: 36px !important; height: 36px !important; }
    .btn-nav-primary { padding: 0.5rem 1.1rem !important; font-size: 0.8rem !important; }
}

/* Tablet */
@media (max-width: 1024px) {
    .hero-section .container { padding: 5rem 1.5rem !important; }
    .stats-section .container { padding: 4rem 1.5rem !important; }
    .features-section .container { padding: 4rem 1.5rem !important; }
    .blog-section .container { padding: 4rem 1.5rem !important; }
    .newsletter-section .container { padding: 4rem 1.5rem !important; }
    .section-title { font-size: 2rem !important; }
    .hero-title { font-size: clamp(2rem, 5vw, 3.5rem) !important; }
    .newsletter-title { font-size: 1.75rem !important; }
    .newsletter-card-enhanced { padding: 3rem 1.5rem !important; border-radius: 24px !important; }
    .stats-card { padding: 2rem 1.5rem !important; }
    .stats-value { font-size: 2rem !important; }
    .stats-icon { width: 56px !important; height: 56px !important; font-size: 1.5rem !important; }
    .feature-card-enhanced { padding: 2rem !important; }
    .splash-title { font-size: 2.8rem !important; }
    .splash-logo-ring { width: 180px !important; height: 180px !important; }
    .splash-logo-core { width: 80px !important; height: 80px !important; }
    .splash-logo-icon { width: 44px !important; height: 44px !important; }
    .splash-orbit-dot { width: 36px !important; height: 36px !important; }
}

/* Mobile */
@media (max-width: 768px) {
    html { font-size: 16px; }
    body { overflow-x: hidden; }

    /* Nav switches to hamburger only at true mobile widths now (tablet keeps the inline nav) */
    .nav-links { display: none !important; }
    .mobile-menu-toggle { display: flex !important; }
    .mobile-menu{ display: flex !important; }

    .section-padding { padding: 3rem 0 !important; }
    .container { padding-left: 1rem !important; padding-right: 1rem !important; }
    .container-fluid { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }

    /* Hero */
    .hero-section .container { padding: 4rem 1rem !important; }
    .hero-title { font-size: clamp(1.75rem, 6vw, 2.5rem) !important; line-height: 1.2 !important; }
    .hero-description { font-size: 1rem !important; max-width: 100% !important; }
    .hero-buttons { flex-direction: column !important; align-items: stretch !important; gap: 0.75rem !important; }
    .hero-buttons .btn-gradient,
    .hero-buttons .btn-outline-enhanced { width: 100% !important; justify-content: center !important; }
    .badge-enhanced { font-size: 0.75rem !important; padding: 0.4rem 1rem !important; }

    /* Stats */
    .stats-section .container { padding: 3rem 1rem !important; }
    .stats-card { padding: 1.25rem !important; margin-bottom: 0.75rem !important; }
    .stats-icon { width: 40px !important; height: 40px !important; font-size: 1rem !important; margin-bottom: 0.75rem !important; }
    .stats-value { font-size: 1.5rem !important; }
    .stats-label { font-size: 0.8rem !important; }
    .stats-grid { grid-template-columns: 1fr !important; }

    /* Features */
    .features-section .container { padding: 3rem 1rem !important; }
    .feature-card-enhanced { padding: 1.25rem !important; margin-bottom: 1rem !important; }
    .feature-icon { width: 48px !important; height: 48px !important; font-size: 1.25rem !important; }
    .feature-title { font-size: 1.1rem !important; }
    .feature-desc { font-size: 0.9rem !important; }
    .feature-list { font-size: 0.85rem !important; }
    .feature-link { font-size: 0.9rem !important; }

    /* Blog */
    .blog-section .container { padding: 3rem 1rem !important; }
    .blog-card-enhanced { padding: 1rem !important; margin-bottom: 0.75rem !important; }
    .blog-title { font-size: 0.9rem !important; }
    .blog-category { font-size: 0.65rem !important; padding: 0.25rem 0.75rem !important; }
    .blog-meta { font-size: 0.75rem !important; }

    /* Newsletter */
    .newsletter-section .container { padding: 3rem 1rem !important; }
    .newsletter-form { flex-direction: column !important; }
    .newsletter-input { width: 100% !important; font-size: 0.9rem !important; padding: 0.875rem 1.25rem !important; }
    .newsletter-form .btn-gradient { width: 100% !important; justify-content: center !important; }
    .newsletter-title { font-size: 1.5rem !important; }
    .newsletter-desc { font-size: 0.9rem !important; }
    .newsletter-card-enhanced { padding: 2rem 1rem !important; border-radius: 20px !important; }

    /* Splash */
    .splash-title { font-size: 2.2rem !important; }
    .splash-logo-ring { width: 150px !important; height: 150px !important; margin-bottom: 1.5rem !important; }
    .splash-logo-core { width: 64px !important; height: 64px !important; }
    .splash-logo-icon { width: 36px !important; height: 36px !important; }
    .splash-orbit-dot { width: 30px !important; height: 30px !important; }
    .splash-orbit-dot::before { font-size: 0.55rem !important; bottom: -18px !important; }
    .splash-message-container { height: 3.5rem !important; }
    .splash-message { font-size: 1rem !important; }
    .splash-progress { width: 100px !important; }

    /* Footer */
    .preview-footer { padding: 2rem 0 !important; }
    .footer-brand { justify-content: center !important; }
    .footer-links { justify-content: center !important; flex-wrap: wrap !important; }
    .social-links { justify-content: center !important; margin-top: 1rem !important; }
    .footer-text { text-align: center !important; }
    .footer-brand-name { font-size: 0.95rem !important; }
    .footer-link { font-size: 0.75rem !important; }

    /* Buttons */
    .btn-gradient { padding: 0.875rem 1.75rem !important; font-size: 0.9rem !important; }
    .btn-outline-enhanced { padding: 0.875rem 1.75rem !important; font-size: 0.9rem !important; }
    .btn-nav { padding: 0.75rem 1.25rem !important; font-size: 0.85rem !important; }

    /* Typography */
    .display-3 { font-size: 2rem !important; }
    .display-4 { font-size: 1.75rem !important; }
    .display-5 { font-size: 1.5rem !important; }
    .section-title { font-size: 1.75rem !important; }
    h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; word-wrap: break-word; }

    /* Forms */
    .form-control, .form-select { font-size: 0.9rem !important; }
    .form-label { font-size: 0.8rem !important; }
    textarea.form-control { min-height: 100px !important; }

    /* Tables - card layout on mobile */
    .table-responsive {
        border-radius: 0.5rem !important;
    }
    .data-table {
        font-size: 0.8rem !important;
        width: 100% !important;
    }
    .data-table th,
    .data-table td {
        padding: 0.6rem 0.4rem !important;
        font-size: 0.75rem !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
    .data-table th {
        font-size: 0.7rem !important;
        text-transform: uppercase;
        letter-spacing: 0.03em;
    }

    /* Internal pages typography */
    .content-card-title {
        font-size: 0.95rem !important;
    }
    .table-title {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
    .table-subtitle {
        font-size: 0.7rem !important;
    }
    .btn-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }
    .pagination-custom {
        font-size: 0.75rem !important;
    }
    .page-link-custom {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
    }

    /* Modals */
    .content-card {
        max-width: 100% !important;
        /*margin: 0 0.5rem !important;*/
    }

    /* Cards */
    .content-card { border-radius: 0.75rem !important; }
    .content-card-body { padding: 1rem !important; }
    .content-card-header { padding: 1rem !important; }
    .content-card-title { font-size: 1rem !important; }

    /* Status badges */
    .status-badge { font-size: 0.7rem !important; padding: 0.25rem 0.6rem !important; }

    /* Breadcrumb */
    .breadcrumb-custom { font-size: 0.8rem !important; padding: 0.5rem 0 !important; }

    /* Company list toolbar laptop layout */
    .stats-grid-companies + .content-card .content-card-header .companies-add-btn {
        margin-left: auto !important;
    }

    /* Company list toolbar mobile layout */
    .stats-grid-companies + .content-card .content-card-header > .d-flex.gap-2 {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    .stats-grid-companies + .content-card .content-card-header .filter-bar {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    .stats-grid-companies + .content-card .content-card-header .filter-bar form {
        width: 100% !important;
    }
    .stats-grid-companies + .content-card .content-card-header .search-input {
        width: 100% !important;
    }
    .stats-grid-companies + .content-card .content-card-header .companies-add-btn {
        width: 40px !important;
        height: 40px !important;
        padding: 0 !important;
        margin-left: auto !important;
        justify-content: center !important;
    }
    .stats-grid-companies + .content-card .content-card-header .companies-add-btn-label {
        display: none !important;
    }
    .stats-grid-companies {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    .stats-grid-companies .stat-card {
        padding: 0.75rem 0.5rem !important;
    }
    .stats-grid-companies .stat-card-icon {
        width: 28px !important;
        height: 28px !important;
        margin-bottom: 0.4rem !important;
    }
    .stats-grid-companies .stat-card-value {
        font-size: 1.1rem !important;
    }
    .stats-grid-companies .stat-card-label {
        font-size: 0.65rem !important;
        line-height: 1.2;
    }

    /* Dashboard */
    .page-content { padding: 1rem !important; }
    .top-header { padding: 0.75rem 1rem !important; }
    .header-title-group h2 { font-size: 1.1rem !important; }
    .header-title-group p { font-size: 0.7rem !important; }
    .header-user-info { display: none !important; }
    .header-avatar { width: 32px !important; height: 32px !important; font-size: 0.75rem !important; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .hero-section .container { padding: 3rem 0.75rem !important; }
    .stats-section .container { padding: 2rem 0.75rem !important; }
    .features-section .container { padding: 2rem 0.75rem !important; }
    .blog-section .container { padding: 2rem 0.75rem !important; }
    .newsletter-section .container { padding: 2rem 0.75rem !important; }

    .hero-title { font-size: 1.5rem !important; }
    .hero-description { font-size: 0.9rem !important; }
    .stats-value { font-size: 1.25rem !important; }
    .section-title { font-size: 1.25rem !important; }
    .splash-title { font-size: 1.6rem !important; }
    .splash-logo-ring { width: 120px !important; height: 120px !important; }
    .splash-logo-core { width: 48px !important; height: 48px !important; }
    .splash-logo-icon { width: 26px !important; height: 26px !important; }
    .splash-orbit-dot { width: 22px !important; height: 22px !important; }
    .splash-message-container { height: 2.5rem !important; }
    .splash-message { font-size: 0.85rem !important; }
    .display-3 { font-size: 1.5rem !important; }
    .display-4 { font-size: 1.25rem !important; }
    .display-5 { font-size: 1.1rem !important; }
    .newsletter-title { font-size: 1.1rem !important; }
    .newsletter-card-enhanced { padding: 1.5rem 1rem !important; border-radius: 16px !important; }
    .btn-gradient { padding: 0.75rem 1.25rem !important; font-size: 0.85rem !important; }
    .btn-outline-enhanced { padding: 0.75rem 1.25rem !important; font-size: 0.85rem !important; }
    .glass-card { padding: 1rem !important; }
    .footer-brand-name { font-size: 0.9rem !important; }
    .footer-link { font-size: 0.7rem !important; }
    .status-badge { font-size: 0.6rem !important; padding: 0.2rem 0.4rem !important; }
    .stats-card { padding: 1rem !important; }
    .feature-card-enhanced { padding: 1rem !important; }
}

/* Prevent horizontal scroll */
@media (max-width: 768px) {
    .container, .container-fluid { max-width: 100% !important; }
}

/* Card-style tables on mobile */
@media (max-width: 768px) {
    .table-responsive {
        overflow: visible !important;
    }
    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block !important;
    }
    .data-table thead {
        display: none !important;
    }
    .data-table tr {
        margin-bottom: 0.75rem !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 0.5rem !important;
        background: var(--bg-card) !important;
        padding: 0.75rem !important;
    }
    .data-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.4rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        text-align: right !important;
        gap: 0.5rem !important;
    }
    .data-table td::before {
        content: attr(data-label) !important;
        font-weight: 600 !important;
        color: var(--text-muted) !important;
        text-align: left !important;
        font-size: 0.65rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        flex-shrink: 0 !important;
    }
    .data-table td:last-child {
        border-bottom: none !important;
    }
    .data-table .btn-icon {
        width: 28px !important;
        height: 28px !important;
    }
    .data-table .status-badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* Responsive media */
img, video, iframe { max-width: 100%; height: auto; }

/* Text wrapping */
h1, h2, h3, h4, h5, h6, p, span, div { overflow-wrap: break-word; word-wrap: break-word; }

/* Touch targets */
@media (max-width: 768px) {
    .btn-nav, .btn-gradient, .btn-outline-enhanced, .sidebar-nav-link, .mobile-nav-link,
    .nav-link, .footer-link, .social-link, .mobile-menu-close, .mobile-menu-toggle {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Focus */
*:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* 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);
    }
}

/* ===== ADDITIONAL MOBILE REFINEMENTS (new, additive only) ===== */

/* Nav: keep brand + hamburger on one line on very narrow phones */
@media (max-width: 400px) {
    .nav-title { font-size: 1.05rem !important; max-width: 140px; }
    .nav-logo { width: 36px !important; height: 36px !important; }
    .preview-nav { padding: 1rem 0 !important; }
}

/* Hero: tighten spacing and stop the badge from wrapping awkwardly */
@media (max-width: 480px) {
    .hero-buttons { gap: 0.6rem !important; }
    .badge-enhanced i,
    .hero-badge i { flex-shrink: 0; }
}

/* Stats: on very small phones two columns keep the icons cramped, so single column feels calmer */
@media (max-width: 400px) {
    .stats-section .row.g-4 > [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Blog cards: two-per-row starts to feel tight below ~400px, go full width */
@media (max-width: 400px) {
    .blog-section .row.g-4 > [class*="col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
    .blog-card-enhanced { animation: none; }
}

/* Feature list bullets: prevent icon squish on narrow screens */
@media (max-width: 480px) {
    .feature-list li { align-items: flex-start !important; }
    .feature-list li i { margin-top: 0.15rem; }
}

/* Mobile menu drawer: don't let it exceed the viewport width on very small phones */
@media (max-width: 340px) {
    .mobile-menu { max-width: 100% !important; }
}

/* Splash: guard against overflow of long rotating messages on the smallest phones */
@media (max-width: 360px) {
    .splash-message { font-size: 0.78rem !important; white-space: normal !important; max-width: 90vw; text-align: center; }
    .splash-message-container { height: auto !important; min-height: 3rem; padding: 0 0.5rem; }
}

/* Footer: stack the three footer columns with consistent spacing on mobile */
@media (max-width: 768px) {
    .preview-footer .row.g-3 > [class*="col-"] { text-align: center !important; }
    .preview-footer .d-flex.justify-content-center.gap-3 { flex-wrap: wrap; row-gap: 0.5rem; }
}

/* Prevent any fixed-width decorative background orb from creating horizontal scroll on small screens */
@media (max-width: 768px) {
    .bg-orb, .splash-bg-orb { max-width: 100vw; }
    html, body { overflow-x: hidden; }
}

/* =========================================================
   COMMON EMPTY TABLE STATE
   ========================================================= */

.table-empty-state {
    width: 100%;
    min-height: 220px;
    padding: 3rem 1.5rem !important;
    text-align: center !important;
    vertical-align: middle !important;
    color: var(--text-muted);
    white-space: normal !important;
}

.table-empty-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.table-empty-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 0.5rem;

    border-radius: 14px;

    background: rgba(14, 165, 233, 0.08);
    color: var(--info);
}

.table-empty-icon svg {
    width: 24px;
    height: 24px;
}

.table-empty-title {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.table-empty-text {
    max-width: 420px;

    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;

    word-break: break-word;
}

@media (max-width: 768px) {

    /* =====================================================
       COMMON EMPTY TABLE STATE
       ===================================================== */

    .table-empty-state {
        min-height: 180px !important;
        padding: 2.5rem 1rem !important;

        text-align: center !important;
        white-space: normal !important;
    }

    .table-empty-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .table-empty-title {
        font-size: 0.95rem;
    }

    .table-empty-text {
        max-width: 100%;
        font-size: 0.8rem;
    }

    .table-empty-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .table-empty-icon svg {
        width: 22px;
        height: 22px;
    }
}