/* ===== TOOLLIYO PREMIUM DESIGN SYSTEM ===== */
/* Modern, Dark-Indigo Theme with Glassmorphism */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* === CSS Variables === */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --success: #10b981;
    --success-light: #34d399;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --info: #3b82f6;

    --bg-dark: #0f0f23;
    --bg-darker: #070714;
    --bg-card: rgba(15, 15, 35, 0.8);
    --bg-card-hover: rgba(25, 25, 55, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-navbar: rgba(7, 7, 20, 0.85);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #c084fc;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.3);

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
    --gradient-card: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    --gradient-hero: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 40%, #312e81 70%, #1e1b4b 100%);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --shadow-glow-hover: 0 0 40px rgba(99, 102, 241, 0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Navbar Offset */
    --navbar-height: 100px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
}

img {
    max-width: 100%;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* === Container Override === */
.container,
.container-fluid {
    position: relative;
    z-index: 1;
}

/* ===========================
   NAVBAR
   =========================== */
.navbar {
    background: var(--bg-navbar) !important;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(7, 7, 20, 0.95) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary) !important;
    background: var(--bg-glass-hover);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.navbar .btn-get-started {
    background: var(--gradient-primary);
    color: #fff !important;
    border: none;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 2px 12px var(--primary-glow);
}

.navbar .btn-get-started:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.navbar-toggler {
    border: 1px solid var(--border-color) !important;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* User Points Badge */
.points-badge {
    background: var(--gradient-accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

.points-badge i {
    font-size: 0.7rem;
}

/* Dropdown */
.dropdown-menu {
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-secondary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-glass-hover) !important;
    color: var(--text-primary) !important;
}

.dropdown-item i {
    width: 20px;
    margin-right: 8px;
    color: var(--primary-light);
}

.dropdown-divider {
    border-color: var(--border-color) !important;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    letter-spacing: 0.2px;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 12px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--primary-glow);
}

.btn-outline-primary {
    background: transparent !important;
    border: 1.5px solid var(--primary) !important;
    color: var(--primary-light) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-success {
    background: var(--gradient-success) !important;
    border: none !important;
    color: #fff !important;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--text-primary) !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.btn-accent {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    color: #fff;
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-xl {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* ===========================
   CARDS — Glassmorphism
   =========================== */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.card-header {
    background: var(--bg-glass) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary);
    font-weight: 600;
}

.card-body {
    color: var(--text-secondary);
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid var(--border-color) !important;
}

.card-title {
    color: var(--text-primary);
    font-weight: 700;
}

.card-text {
    color: var(--text-secondary);
}

/* Stat Card */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.primary::before {
    background: var(--gradient-primary);
}

.stat-card.success::before {
    background: var(--gradient-success);
}

.stat-card.accent::before {
    background: var(--gradient-accent);
}

.stat-card.info::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.stat-card .stat-icon.primary {
    background: var(--gradient-primary);
}

.stat-card .stat-icon.success {
    background: var(--gradient-success);
}

.stat-card .stat-icon.accent {
    background: var(--gradient-accent);
}

.stat-card .stat-icon.info {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   FORMS
   =========================== */
.form-control,
.form-select {
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    transition: var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.form-text {
    color: var(--text-muted) !important;
    font-size: 0.8rem;
}

.form-check-input {
    background-color: var(--bg-input);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ===========================
   ALERTS
   =========================== */
.alert {
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    backdrop-filter: blur(10px);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--success-light) !important;
    border-left: 4px solid var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15) !important;
    color: var(--danger-light) !important;
    border-left: 4px solid var(--danger);
}

.alert-info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #93c5fd !important;
    border-left: 4px solid var(--info);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--accent-light) !important;
    border-left: 4px solid var(--warning);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ===========================
   BADGES
   =========================== */
.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.badge.bg-primary {
    background: var(--primary) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-warning {
    background: var(--accent) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background: var(--danger) !important;
}

.badge.bg-secondary {
    background: rgba(100, 116, 139, 0.3) !important;
    color: var(--text-secondary) !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

/* ===========================
   LIST GROUP
   =========================== */
.list-group-item {
    background: transparent !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
    transition: var(--transition-fast);
}

.list-group-item:hover,
.list-group-item-action:hover {
    background: var(--bg-glass-hover) !important;
    color: var(--text-primary) !important;
}

/* ===========================
   TABLE
   =========================== */
.table {
    color: var(--text-secondary);
    --bs-table-bg: transparent;
}

.table thead th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0.75rem;
}

.table tbody td {
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--bg-glass-hover);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
    background: var(--gradient-hero);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}

.hero-stat .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-stat .stat-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.15);
    border: 1px solid var(--border-color);
}

/* Floating elements in hero */
.floating-badge {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 2;
}

.floating-badge.badge-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: 20%;
    left: -5%;
    animation-delay: 1.5s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===========================
   SECTION STYLES
   =========================== */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   FEATURE CARDS
   =========================== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.feature-card .feature-icon.primary {
    background: var(--gradient-primary);
}

.feature-card .feature-icon.success {
    background: var(--gradient-success);
}

.feature-card .feature-icon.accent {
    background: var(--gradient-accent);
}

.feature-card .feature-icon.info {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.feature-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   PRICING CARDS
   =========================== */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 16px;
    right: -35px;
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.3rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-hover);
    border-color: var(--border-hover);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.pricing-card .plan-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.pricing-card .plan-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card .plan-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.pricing-card .plan-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card .plan-features li i {
    color: var(--success);
    font-size: 0.85rem;
}

.pricing-card .plan-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.5;
}

.pricing-card .plan-features li.disabled i {
    color: var(--text-muted);
}

/* ===========================
   AUTH PAGES
   =========================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gradient-hero);
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    padding: 2.5rem;
}

.auth-card .auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-card .auth-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.auth-card .auth-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-card .auth-logo {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

/* ===========================
   DASHBOARD
   =========================== */
.dashboard-welcome {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-welcome h2 {
    font-size: 1.75rem;
    font-weight: 800;
}

.dashboard-welcome .welcome-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dashboard-welcome .user-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    object-fit: cover;
}

/* Progress Card */
.progress-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.progress-bar-custom {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-custom .progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-fill.primary {
    background: var(--gradient-primary);
}

.progress-fill.success {
    background: var(--gradient-success);
}

.progress-fill.accent {
    background: var(--gradient-accent);
}

/* Quick Action Cards */
.quick-action {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none !important;
}

.quick-action:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-glow);
}

.quick-action .action-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.quick-action .action-text h6 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.quick-action .action-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===========================
   SPIN WHEEL
   =========================== */
.spin-wheel-container {
    text-align: center;
    padding: 2rem;
}

.wheel-wrapper {
    position: relative;
    display: inline-block;
    margin: 1.5rem 0;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 2rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

#spinWheel {
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.3), 0 0 80px rgba(99, 102, 241, 0.1);
    border: 4px solid var(--primary);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

#spinWheel.spinning {
    animation: none;
}

.spin-btn {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.spin-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 30px var(--primary-glow);
}

.spin-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.spin-result {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: none;
}

.spin-result.won {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-light);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.site-footer .footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
}

.site-footer .footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.7;
}

.site-footer h6 {
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links li {
    margin-bottom: 0.6rem;
}

.site-footer .footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.site-footer .footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.site-footer .social-links a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ===========================
   EBOOK CARDS
   =========================== */
.ebook-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.ebook-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}

.ebook-card .ebook-cover {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.ebook-card .ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.ebook-card:hover .ebook-cover img {
    transform: scale(1.06);
}

.ebook-card .ebook-cover .ebook-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.ebook-card .ebook-cover .ebook-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    color: var(--accent-light);
    font-weight: 700;
    font-size: 0.9rem;
}

.ebook-card .ebook-body {
    padding: 1.25rem;
}

.ebook-card .ebook-body h5 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.ebook-card .ebook-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===========================
   QUIZ CARDS
   =========================== */
.quiz-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-hover);
}

.quiz-card .difficulty-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.quiz-card .difficulty-indicator.beginner {
    background: var(--success);
}

.quiz-card .difficulty-indicator.intermediate {
    background: var(--warning);
}

.quiz-card .difficulty-indicator.advanced {
    background: var(--danger);
}

.quiz-card .quiz-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
}

.quiz-card .quiz-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===========================
   CERTIFICATE VIEW
   =========================== */
.certificate-card {
    background: linear-gradient(145deg, rgba(99, 102, 241, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.certificate-card::before,
.certificate-card::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-radius: 50%;
}

.certificate-card::before {
    top: -30px;
    left: -30px;
}

.certificate-card::after {
    bottom: -30px;
    right: -30px;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

/* ===========================
   UTILITIES
   =========================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--accent-light) !important;
}

.text-muted-custom {
    color: var(--text-muted) !important;
}

.bg-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.border-glow {
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.glow-text {
    text-shadow: 0 0 20px var(--primary-glow);
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: auto;
        padding: 4rem 0 3rem;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .section {
        padding: 3rem 0;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }
}
/* ===========================
   LEGACY TOOLS CATEGORY FIXES
   =========================== */
.tool-card .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition) !important;
}

.tool-card .card:hover {
    border-color: var(--border-hover) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-5px);
}

.tool-card .card-body {
    background: transparent !important;
    padding: 2rem !important;
}

.tool-card .card-title, 
.tool-card h5, 
.tool-card h2, 
.tool-card .h4 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}

.tool-card .card-text, 
.tool-card p {
    color: var(--text-muted) !important;
}

.tool-card i.text-white {
    box-shadow: var(--shadow-sm);
}

div.container[style*="padding-top: 3rem"] > h1.text-gradient {
    margin-bottom: 3rem !important;
}

/* ===========================
   GLOBAL BOOTSTRAP OVERRIDES
   (For Legacy Tools Dark Theme)
   =========================== */
.text-muted { color: var(--text-muted) !important; }
.bg-white, .bg-light { background-color: var(--bg-card) !important; }
.card { 
    background-color: var(--bg-card) !important; 
    color: var(--text-primary); 
    border-color: var(--border-color) !important; 
}
.card-header { 
    background-color: var(--bg-surface) !important; 
    color: var(--text-primary) !important; 
    border-bottom-color: var(--border-color) !important; 
}
.list-group-item {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
