/* ============================================
   UniLearn PREMIUM UI - Super VIP Design
   ============================================ */

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

:root {
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(255,255,255,0.3);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.06);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-cool: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-dark: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 50%, #2d1b69 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, #667eea33 0px, transparent 50%),
                     radial-gradient(at 80% 0%, #f093fb22 0px, transparent 50%),
                     radial-gradient(at 0% 50%, #4facfe22 0px, transparent 50%),
                     radial-gradient(at 80% 50%, #fee14022 0px, transparent 50%),
                     radial-gradient(at 0% 100%, #667eea22 0px, transparent 50%);
    --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.15);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.06);
    --shadow-card-hover: 0 8px 40px rgba(102, 126, 234, 0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

[data-theme="dark"] {
    --glass-bg: rgba(30,30,60,0.8);
    --glass-border: rgba(255,255,255,0.08);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.2), 0 4px 16px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 8px 40px rgba(102, 126, 234, 0.25);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--gradient-mesh), var(--bg, #f5f7ff);
    background-attachment: fixed;
}

[data-theme="dark"] body {
    background: var(--gradient-mesh), #0a0a1a;
}

/* === GLASSMORPHISM === */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-dark {
    background: rgba(15,15,35,0.85);
    backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.06);
}

/* === PREMIUM NAV === */
.premium-nav {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.08);
    box-shadow: 0 1px 24px rgba(102, 126, 234, 0.06);
}

[data-theme="dark"] .premium-nav {
    background: rgba(10,10,26,0.9);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: inherit;
}

.nav-link:hover::before { opacity: 0.08; }
.nav-link:hover { color: #667eea; transform: translateY(-1px); }

.nav-link.active {
    background: linear-gradient(135deg, rgba(102,126,234,0.12), rgba(118,75,162,0.08));
    color: #667eea;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* === LOGO === */
.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 1.25rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
}

.logo-mark::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% { transform: translateX(-100%) rotate(45deg); }
    50% { transform: translateX(100%) rotate(45deg); }
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

/* === HERO === */
.hero-premium {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gradient-dark);
    padding: 80px 56px;
    color: white;
}

.hero-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 60% 80%, rgba(79, 172, 254, 0.2) 0%, transparent 40%);
    animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.hero-premium::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s ease infinite;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.8;
    line-height: 1.7;
    max-width: 560px;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.hero-btn-ghost {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.hero-btn-ghost:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Floating shapes in hero */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* === STAT CARDS (in hero) === */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    font-weight: 400;
    margin-top: 2px;
}

/* === PREMIUM CARDS === */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(102, 126, 234, 0.2);
}

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

/* === COURSE CARDS === */
.course-card-premium {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.course-card-premium:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-card-hover);
}

.course-thumb-premium {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
}

.course-thumb-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card-premium:hover .course-thumb-premium img {
    transform: scale(1.08);
}

.course-thumb-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.course-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.course-badge-free {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.course-badge-sale {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.course-badge-hot {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
}

.course-info-premium {
    padding: 20px;
}

.course-info-premium h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.course-price-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.course-price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-price-old {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 8px;
}

/* === FEATURE CARDS === */
.feature-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:nth-child(1)::before { background: var(--gradient-primary); }
.feature-card:nth-child(2)::before { background: var(--gradient-accent); }
.feature-card:nth-child(3)::before { background: var(--gradient-cool); }
.feature-card:nth-child(4)::before { background: var(--gradient-warm); }

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}

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

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

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 20px;
    background: inherit;
    opacity: 0.2;
    filter: blur(8px);
}

/* === STAT CARDS (Dashboard) === */
.stat-card-premium {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.stat-card-premium::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.06;
}

.stat-card-premium:nth-child(1)::after { background: #667eea; }
.stat-card-premium:nth-child(2)::after { background: #10b981; }
.stat-card-premium:nth-child(3)::after { background: #f59e0b; }
.stat-card-premium:nth-child(4)::after { background: #ef4444; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
}

/* === PREMIUM BUTTONS === */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-premium:hover::before { opacity: 1; }

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: inherit;
}

.btn-glass:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

/* === XP BAR === */
.xp-bar-premium {
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.xp-bar-premium .fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 8px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.xp-bar-premium .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === LEVEL BADGE === */
.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.08));
    border: 1px solid rgba(102,126,234,0.15);
    font-weight: 700;
    font-size: 0.75rem;
    color: #667eea;
}

/* === STREAK BADGE === */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245,158,11,0.1), rgba(239,68,68,0.08));
    border: 1px solid rgba(245,158,11,0.15);
    font-weight: 700;
    font-size: 0.75rem;
    color: #f59e0b;
}

/* === STREAK CALENDAR === */
.streak-calendar-premium {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.streak-day-premium {
    aspect-ratio: 1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s;
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid transparent;
}

.streak-day-premium.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
    border-color: transparent;
}

.streak-day-premium.today {
    border-color: #667eea;
    border-width: 2px;
}

.streak-day-premium.active.today {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2), 0 2px 12px rgba(102, 126, 234, 0.3);
}

/* === SECTION TITLE === */
.section-title-premium {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title-premium .icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* === INPUT PREMIUM === */
.input-premium {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}

.input-premium:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: white;
}

[data-theme="dark"] .input-premium:focus {
    background: rgba(30,30,60,0.9);
}

/* === TABLE PREMIUM === */
.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-premium th {
    padding: 14px 18px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    border-bottom: 2px solid var(--glass-border);
}

.table-premium td {
    padding: 16px 18px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: background 0.2s;
}

[data-theme="dark"] .table-premium td {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.table-premium tbody tr:hover td {
    background: rgba(102, 126, 234, 0.03);
}

/* === BADGES === */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.badge-info {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

/* === TOAST PREMIUM === */
.toast-premium {
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: toastSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.toast-error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

.toast-info {
    background: rgba(102, 126, 234, 0.95);
    color: white;
}

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

/* === AUTH PAGE PREMIUM === */
.auth-premium {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.auth-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(240, 147, 251, 0.2) 0%, transparent 40%);
}

.auth-card-premium {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(40px) saturate(200%);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.5);
}

[data-theme="dark"] .auth-card-premium {
    background: rgba(20,20,45,0.95);
    border: 1px solid rgba(255,255,255,0.05);
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(102, 126, 234, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(102, 126, 234, 0.4); }

/* === ANIMATIONS === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-fade-in { animation: fadeIn 0.4s ease; }

.stagger-1 { animation-delay: 0.1s; animation-fill-mode: both; }
.stagger-2 { animation-delay: 0.2s; animation-fill-mode: both; }
.stagger-3 { animation-delay: 0.3s; animation-fill-mode: both; }
.stagger-4 { animation-delay: 0.4s; animation-fill-mode: both; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-premium { padding: 48px 28px; }
    .hero-title { font-size: 2rem; letter-spacing: -1px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 1.5rem; }
}

/* === PLYR CUSTOM === */
.plyr { --plyr-color-main: #667eea; border-radius: var(--radius-lg); overflow: hidden; }
.plyr--video .plyr__controls { background: linear-gradient(transparent, rgba(0,0,0,0.7)); }

/* === CERTIFICATE PREMIUM === */
.certificate-premium {
    background: linear-gradient(135deg, #fefce8, #fef3c7, #fde68a);
    border: 4px solid #d97706;
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.certificate-premium::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: calc(var(--radius-xl) - 8px);
    pointer-events: none;
}

[data-theme="dark"] .certificate-premium {
    background: linear-gradient(135deg, #1c1917, #292524, #44403c);
    border-color: #b45309;
}

/* === USER AVATAR === */
.avatar-premium {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
    font-family: 'Space Grotesk', sans-serif;
    transition: transform 0.3s;
}

.avatar-premium:hover { transform: scale(1.1); }

/* === DROPDOWN PREMIUM === */
.dropdown-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 64px rgba(0,0,0,0.12);
    padding: 8px;
    min-width: 240px;
    animation: fadeUp 0.2s ease;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}

/* === PROGRESS RING === */
.progress-ring { transform: rotate(-90deg); }
.progress-ring-circle {
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
