/**
 * WebKatalóg v3.0 PREMIUM
 * Modern Dark Theme with Glassmorphism & Animations
 */

/* =====================================================
   CSS Variables
   ===================================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.5);
    
    /* Secondary */
    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.5);
    
    /* Accent */
    --accent: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.5);
    
    /* Status Colors */
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --danger: #ef4444;
    --danger-light: #f87171;
    --info: #3b82f6;
    
    /* Dark Theme Backgrounds */
    --bg-base: #030712;
    --bg-surface: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.8);
    --bg-elevated: rgba(30, 41, 59, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    /* Text */
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #f59e0b 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
                     radial-gradient(ellipse at 100% 0%, rgba(6, 182, 212, 0.2) 0%, transparent 40%),
                     radial-gradient(ellipse at 0% 100%, rgba(139, 92, 246, 0.2) 0%, transparent 40%);
    
    /* Fonts */
    --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px var(--primary-glow);
    --shadow-glow-sm: 0 0 30px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Layout */
    --container-max: 1400px;
    --header-height: 80px;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-base);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    pointer-events: none;
    z-index: -1;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* =====================================================
   Container & Layout
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: var(--space-8) 0 var(--space-16);
    margin-top: var(--header-height);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1200px) {
    .grid--5 { grid-template-columns: repeat(4, 1fr); }
    .grid--4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .grid--5, .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid--5, .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* =====================================================
   Header - Glassmorphism
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(3, 7, 18, 0.95);
    box-shadow: var(--shadow-lg);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header__logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-glow-sm);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(99, 102, 241, 0.3); }
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.header__link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.header__link:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.header__link--active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
}

/* Header Search */
.header__search {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    margin: 0 var(--space-4);
    transition: all var(--transition-fast);
}

.header__search:focus-within {
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.header__search input {
    width: 200px;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-size: var(--text-sm);
    padding: var(--space-1) var(--space-2);
}

.header__search input::placeholder {
    color: var(--text-muted);
}

.header__search-btn {
    color: var(--text-muted);
    padding: var(--space-1);
    transition: color var(--transition-fast);
}

.header__search-btn:hover {
    color: var(--primary-light);
}

/* Header Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Header Dropdown */
.header__dropdown {
    position: relative;
}

.header__dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
    overflow: hidden;
}

.header__dropdown:hover .header__dropdown-menu,
.header__dropdown.is-open .header__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__dropdown-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    background: rgba(99, 102, 241, 0.05);
}

.header__dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.header__dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.header__dropdown-item--danger {
    color: var(--danger);
}

.header__dropdown-item--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-light);
}

.header__dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-2) 0;
}

.header__user {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text);
}

.header__user:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.header__avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: var(--text-sm);
    color: white;
    position: relative;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (max-width: 1024px) {
    .mobile-toggle { display: flex; }
    .header__nav { display: none; }
    .header__search { display: none; }
}

/* =====================================================
   Hero Section - WOW Effect
   ===================================================== */
.hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-20);
    overflow: hidden;
}

/* Animated Gradient Orbs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.hero::before {
    width: 600px;
    height: 600px;
    background: var(--primary-glow);
    top: -200px;
    left: -100px;
}

.hero::after {
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

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

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    animation: slideDown 0.8s ease;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Title */
.hero__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: slideUp 0.8s ease 0.1s both;
}

.hero__title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto var(--space-10);
    animation: slideUp 0.8s ease 0.2s both;
}

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

/* Hero Search Box */
.hero__search {
    max-width: 650px;
    margin: 0 auto var(--space-12);
    animation: slideUp 0.8s ease 0.3s both;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all var(--transition-base);
}

.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow-sm);
}

.search-form__icon {
    padding: var(--space-3) var(--space-4);
    color: var(--text-muted);
}

.search-form__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: var(--space-4);
    font-size: var(--text-lg);
    color: var(--text);
}

.search-form__input::placeholder {
    color: var(--text-muted);
}

.search-form__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    font-weight: 600;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.search-form__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* Hero Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    animation: slideUp 0.8s ease 0.4s both;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

@media (max-width: 640px) {
    .hero__stats {
        flex-direction: column;
        gap: var(--space-6);
    }
}

/* =====================================================
   Cards - Glassmorphism
   ===================================================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: 600;
}

.card__body {
    padding: var(--space-6);
}

.card__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--bg-glass);
}

/* =====================================================
   Website Card - Premium Design
   ===================================================== */
.website-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.website-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.15);
}

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

/* Verified Badge */
.website-card--verified::after {
    content: '✓';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 28px;
    height: 28px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Premium Card */
.website-card--premium {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.website-card--premium::before {
    background: var(--gradient-gold);
    opacity: 1;
}

/* Featured Card */
.website-card--featured {
    border-color: rgba(99, 102, 241, 0.3);
}

.website-card--featured::before {
    opacity: 1;
}

/* Rank */
.website-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    padding: var(--space-3);
    background: var(--bg-glass);
    border-radius: var(--radius-xl);
}

.rank-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-light);
}

.rank-change {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-top: var(--space-1);
}

.rank-up {
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.rank-down {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

/* Website Logo */
.website-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.website-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.website-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
}

/* Website Content */
.website-content {
    flex: 1;
    min-width: 0;
}

.website-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.website-title a:hover {
    color: var(--primary-light);
}

.website-url {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--secondary);
    margin-bottom: var(--space-3);
    transition: all var(--transition-fast);
}

.website-url:hover {
    color: var(--primary-light);
}

.website-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.website-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.meta-category {
    padding: var(--space-1) var(--space-3);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.meta-category:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Website Actions */
.website-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
}

/* Vote Buttons */
.vote-buttons {
    display: flex;
    gap: var(--space-2);
}

.vote-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.vote-btn:hover {
    transform: scale(1.05);
}

.vote-up:hover,
.vote-up.active {
    color: var(--success);
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.vote-down:hover,
.vote-down.active {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
}

/* =====================================================
   Category Cards
   ===================================================== */
.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--category-color, var(--primary));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.category-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--category-color, var(--primary));
    box-shadow: var(--shadow-md);
}

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

.category-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
    transition: transform var(--transition-bounce);
}

.category-card:hover .category-card__icon {
    transform: scale(1.15) rotate(5deg);
}

.category-card__content { flex: 1; }

.category-card__name {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.category-card__count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

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

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

.btn--secondary:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
}

.btn--success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn--danger {
    background: var(--danger);
    color: white;
}

.btn--warning {
    background: var(--gradient-gold);
    color: #1a1a1a;
}

.btn--outline {
    background: transparent;
    color: var(--primary-light);
    border: 1px solid var(--primary);
}

.btn--outline:hover {
    background: var(--primary);
    color: white;
}

.btn--ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn--ghost:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

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

.btn--icon {
    width: 44px;
    height: 44px;
    padding: 0;
}

/* =====================================================
   Forms
   ===================================================== */
.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .form__row { grid-template-columns: 1fr; }
}

.form__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form__label--required::after {
    content: ' *';
    color: var(--danger);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}

.form__input.error,
.form__textarea.error,
.form__select.error {
    border-color: var(--danger);
}

.form__error {
    font-size: var(--text-xs);
    color: var(--danger);
}

.form__hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

.form__select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    padding-right: var(--space-10);
}

.form__actions {
    display: flex;
    gap: var(--space-3);
    padding-top: var(--space-4);
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    animation: slideIn 0.3s ease;
}

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

.alert__icon { font-size: var(--text-lg); }
.alert__message { flex: 1; }
.alert__close {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.alert__close:hover { opacity: 1; }

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

.alert--danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger-light);
}

.alert--warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert--info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--info);
    color: var(--info);
}

/* =====================================================
   Badges
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge--primary { background: rgba(99, 102, 241, 0.2); color: var(--primary-light); }
.badge--success, .badge--approved { background: rgba(16, 185, 129, 0.2); color: var(--success-light); }
.badge--danger, .badge--rejected { background: rgba(239, 68, 68, 0.2); color: var(--danger-light); }
.badge--warning, .badge--pending { background: rgba(245, 158, 11, 0.2); color: var(--warning); }
.badge--premium { background: var(--gradient-gold); color: #1a1a1a; }
.badge--verified { background: var(--gradient-success); color: white; }

/* Verified & Premium Labels */
.verified-badge,
.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.verified-badge {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}

.verified-badge::before { content: '✓ '; }

.premium-badge {
    background: var(--gradient-gold);
    color: #1a1a1a;
    box-shadow: 0 2px 10px var(--accent-glow);
}

.premium-badge::before { content: '★ '; }

/* =====================================================
   Section Headers
   ===================================================== */
.section {
    margin-bottom: var(--space-16);
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.section__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.section__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--primary-light);
    transition: all var(--transition-fast);
}

.section__link:hover {
    color: var(--text);
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-10) 0;
    margin-bottom: var(--space-8);
}

.page-title {
    font-size: var(--text-3xl);
    font-weight: 800;
}

.page-subtitle {
    color: var(--text-muted);
    margin-top: var(--space-2);
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
}

/* =====================================================
   Tables
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-glass);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

/* =====================================================
   Pagination
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

.pagination__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-3);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.pagination__item:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--primary-light);
}

.pagination__item--active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* =====================================================
   Empty State
   ===================================================== */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
}

.empty-state__icon {
    font-size: 5rem;
    margin-bottom: var(--space-6);
    opacity: 0.5;
}

.empty-state__title {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.empty-state__desc {
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: auto;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer__brand { max-width: 350px; }

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.footer__desc {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer__title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.footer__link:hover {
    color: var(--primary-light);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer__brand {
        grid-column: span 2;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .footer__grid { grid-template-columns: 1fr; }
    .footer__brand { grid-column: span 1; }
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

/* =====================================================
   Auth Pages
   ===================================================== */
.auth-wrapper {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
}

.auth-card__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-card__logo {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-glow-sm);
}

.auth-card__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.auth-card__subtitle {
    color: var(--text-muted);
}

.auth-card__footer {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.auth-card__footer a {
    color: var(--primary-light);
    font-weight: 500;
}

/* =====================================================
   Stars & Rating
   ===================================================== */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: var(--border);
    font-size: var(--text-lg);
}

.star--filled {
    color: var(--warning);
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: var(--space-1);
}

.rating-input input { display: none; }

.rating-input label {
    font-size: var(--text-3xl);
    color: var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--warning);
    transform: scale(1.1);
}

/* =====================================================
   Toast Notifications
   ===================================================== */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    padding: var(--space-4) var(--space-6);
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    animation: toastIn 0.4s var(--transition-bounce);
}

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

.toast--success { border-left: 4px solid var(--success); }
.toast--danger { border-left: 4px solid var(--danger); }
.toast--warning { border-left: 4px solid var(--warning); }
.toast--info { border-left: 4px solid var(--info); }

/* =====================================================
   Loading Spinner
   ===================================================== */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-hover) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =====================================================
   Utilities
   ===================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-primary { color: var(--primary-light) !important; }

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .website-card {
        flex-direction: column;
    }
    
    .website-rank {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--space-3);
        padding: var(--space-3);
    }
    
    .website-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .vote-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
    .header, .footer, .btn, .vote-buttons, body::before {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .card, .website-card {
        border: 1px solid #ddd;
        box-shadow: none;
        backdrop-filter: none;
    }
}

/* =====================================================
   WebKatalóg v4.0 ULTIMATE - Additional Styles
   ===================================================== */

/* Header Notifications */
.header__notif-btn {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header__notif-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.header__notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.header__dropdown-menu--notifications {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.header__notif-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.header__notif-item:hover {
    background: var(--bg-hover);
}

.header__notif-item--unread {
    background: rgba(99, 102, 241, 0.05);
}

.header__notif-item-icon {
    font-size: 1.25rem;
}

.header__notif-item-title {
    font-size: var(--text-sm);
    font-weight: 500;
}

.header__notif-item-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.header__notif-empty {
    padding: var(--space-6);
    text-align: center;
    color: var(--text-muted);
}

.header__dropdown-item--footer {
    text-align: center;
    border-top: 1px solid var(--border);
    font-weight: 500;
}

/* Header User with Level */
.header__avatar {
    position: relative;
}

.header__level-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg-base);
}

.header__user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: var(--space-2);
}

.header__user-name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.header__user-level {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.header__dropdown-header--user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__dropdown-xp {
    font-size: var(--text-xs);
    color: var(--primary-light);
    display: block;
}

.header__streak {
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Hero Section v4 */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 60px) 0 80px;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 15s ease-in-out infinite;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 50%;
    right: -100px;
    animation: float 20s ease-in-out infinite reverse;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    bottom: -100px;
    left: 10%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero__content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: var(--text-xl);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero__subtitle strong {
    color: var(--text);
}

/* Hero Search */
.hero__search {
    display: flex;
    max-width: 600px;
    margin: 0 auto var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2);
    backdrop-filter: blur(10px);
}

.hero__search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
}

.hero__search-input svg {
    color: var(--text-muted);
}

.hero__search-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: var(--text-base);
    padding: var(--space-3) 0;
}

.hero__search-input input::placeholder {
    color: var(--text-muted);
}

.hero__tags {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.hero__tags span {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.hero__tags a {
    padding: var(--space-1) var(--space-3);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.hero__tags a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Hero Stats */
.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-top: var(--space-12);
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Floating Cards */
.hero__floating {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: var(--text-sm);
    font-weight: 500;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card--1 {
    top: 25%;
    left: 5%;
    animation-delay: 0s;
}

.floating-card--2 {
    top: 40%;
    right: 5%;
    animation-delay: 2s;
}

.floating-card--3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 4s;
}

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

/* Benefits Section */
.benefits-section {
    padding: var(--space-20) 0;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-10);
}

.section-header--center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--primary-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: var(--text-lg);
    margin-top: var(--space-3);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.benefit-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-sm);
}

.benefit-card--featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.benefit-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--gradient-primary);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.benefit-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-5);
}

.benefit-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.benefit-card__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.benefits-cta {
    text-align: center;
    margin-top: var(--space-10);
}

/* Featured Section */
.featured-section {
    padding: var(--space-16) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.featured-card {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.featured-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.featured-card__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card__logo span {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-light);
}

.featured-card__name {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.featured-card__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.featured-card__stats {
    display: flex;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.featured-card__rank {
    margin-left: auto;
    font-weight: 700;
    color: var(--primary-light);
}

/* Categories Section */
.categories-section {
    padding: var(--space-20) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.category-card {
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cat-color, var(--primary));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--cat-color, var(--primary));
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.category-card__name {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.category-card__count {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.categories-cta {
    text-align: center;
    margin-top: var(--space-8);
}

/* Main Section Layout */
.main-section {
    padding: var(--space-16) 0;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-8);
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.content-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-5);
}

.content-card__header h2 {
    font-size: var(--text-lg);
    font-weight: 600;
}

.content-card__header a {
    font-size: var(--text-sm);
    color: var(--primary-light);
}

/* Sidebar */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.sidebar-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.sidebar-card__link {
    display: block;
    text-align: center;
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--primary-light);
}

.sidebar-card__text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-3);
}

/* Top List */
.top-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.top-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-glass);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.top-item:hover {
    background: var(--bg-hover);
}

.top-item__rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.top-item__rank--gold {
    background: var(--gradient-gold);
    color: #000;
}

.top-item__logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-item__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-item__logo span {
    font-weight: 600;
    font-size: var(--text-sm);
}

.top-item__info {
    flex: 1;
}

.top-item__name {
    font-weight: 500;
    font-size: var(--text-sm);
    display: block;
}

.top-item__stats {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Sidebar CTA */
.sidebar-card--cta {
    background: var(--gradient-primary);
    border: none;
    text-align: center;
    color: white;
}

.sidebar-cta__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-3);
}

.sidebar-cta__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.sidebar-cta__desc {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-5);
}

/* Badge Preview */
.badge-preview {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
}

.badge-preview span {
    padding: var(--space-2);
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    cursor: help;
}

/* How It Works */
.how-section {
    padding: var(--space-20) 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
}

.step-card {
    flex: 1;
    max-width: 300px;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
}

.step-card__number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
}

.step-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
}

.step-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.step-card__desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.step-arrow {
    font-size: var(--text-2xl);
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: var(--space-20) 0;
}

.cta-box {
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.cta-box h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-box p {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--space-8);
    position: relative;
}

/* Responsive for v4 */
@media (max-width: 1200px) {
    .benefits-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
    }
    
    .hero__floating {
        display: none;
    }
    
    .hero__stats {
        gap: var(--space-6);
    }
    
    .benefits-grid,
    .featured-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .header__user-info {
        display: none;
    }
}

/* Utility Classes */
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.btn--block { display: block; width: 100%; }
.btn--white { background: white; color: var(--primary-dark); }
.btn--white:hover { background: rgba(255,255,255,0.9); }
.btn--xl { padding: var(--space-5) var(--space-8); font-size: var(--text-lg); }
.btn--glow { box-shadow: var(--shadow-glow-sm); }
.btn--glow:hover { box-shadow: var(--shadow-glow); }

/* =====================================================
   LIGHT THEME
   ===================================================== */

.theme-light {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-elevated: #f1f5f9;
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-hover: rgba(0, 0, 0, 0.05);
    
    --text: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.theme-light body {
    background: var(--bg-base);
}

.theme-light body::before {
    opacity: 0.3;
}

.theme-light .header {
    background: rgba(255, 255, 255, 0.9);
}

.theme-light .card,
.theme-light .website-card,
.theme-light .sidebar-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.theme-light .form-control {
    background: var(--bg-elevated);
    border-color: var(--border);
    color: var(--text);
}

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

.theme-light .header__dropdown-menu {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

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

.theme-light .header__dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.theme-light .header__user {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text);
}

.theme-light .header__notif-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.theme-light .form__input,
.theme-light .form__textarea,
.theme-light .form__select {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text);
}

.theme-light .form__input::placeholder,
.theme-light .form__textarea::placeholder {
    color: var(--text-muted);
}

.theme-light .alert {
    border: 1px solid currentColor;
}

.theme-light .website-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-light .table th {
    background: rgba(99, 102, 241, 0.08);
}

.theme-light .table td {
    border-color: rgba(0, 0, 0, 0.08);
}

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

.theme-light code {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-dark);
}

/* Auto theme - follows system preference */
@media (prefers-color-scheme: light) {
    .theme-auto {
        --bg-base: #f8fafc;
        --bg-surface: #ffffff;
        --bg-card: rgba(255, 255, 255, 0.9);
        --bg-elevated: #f1f5f9;
        --bg-glass: rgba(0, 0, 0, 0.02);
        --bg-hover: rgba(0, 0, 0, 0.05);
        --text: #0f172a;
        --text-secondary: #475569;
        --text-muted: #64748b;
        --border: rgba(0, 0, 0, 0.08);
    }
}

/* =====================================================
   THEME TOGGLE
   ===================================================== */

.theme-toggle {
    display: flex;
    gap: var(--space-1);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: var(--bg-hover);
}

.theme-btn.active {
    background: var(--primary);
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* =====================================================
   SOCIAL SHARING
   ===================================================== */

.social-share {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.social-btn--sm {
    width: 32px;
    height: 32px;
    font-size: var(--text-base);
}

.social-btn--lg {
    width: 48px;
    height: 48px;
    font-size: var(--text-xl);
}

.social-btn--facebook {
    background: #1877f2;
    color: white;
}

.social-btn--twitter {
    background: #1da1f2;
    color: white;
}

.social-btn--linkedin {
    background: #0a66c2;
    color: white;
}

.social-btn--telegram {
    background: #0088cc;
    color: white;
}

.social-btn--whatsapp {
    background: #25d366;
    color: white;
}

.social-btn--email {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

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

/* Share Box */
.share-box {
    padding: var(--space-5);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.share-box__title {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Copy Link */
.copy-link {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.copy-link input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text);
}

.copy-link button {
    padding: var(--space-2) var(--space-4);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.copy-link button:hover {
    background: var(--primary-dark);
}

.copy-link button.copied {
    background: var(--success);
}

/* =====================================================
   EMAIL REPORT PREVIEW
   ===================================================== */

.email-preview {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: var(--space-6) auto;
}

.email-preview__header {
    background: var(--gradient-primary);
    padding: var(--space-6);
    color: white;
    text-align: center;
}

.email-preview__body {
    padding: var(--space-6);
    color: #1e293b;
}

.email-preview__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin: var(--space-5) 0;
}

.email-preview__stat {
    text-align: center;
    padding: var(--space-4);
    background: #f8fafc;
    border-radius: var(--radius-lg);
}

.email-preview__stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.email-preview__stat-label {
    font-size: var(--text-sm);
    color: #64748b;
}
