/* ============================================
   SkorPadu - Main Stylesheet
   Modern, Clean, Fast
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #6C3CE1;
    --primary-dark: #5228B8;
    --primary-light: #8B5CF6;
    --primary-glow: rgba(108, 60, 225, 0.3);
    --secondary: #00D4AA;
    --secondary-dark: #00B893;
    --accent: #FF6B35;
    --accent-light: #FF8A5C;

    --bg-dark: #0A0E1A;
    --bg-card: #111827;
    --bg-card-hover: #1A2332;
    --bg-surface: #0F1629;
    --bg-gradient: linear-gradient(135deg, #0A0E1A 0%, #1A1040 50%, #0A0E1A 100%);

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(108, 60, 225, 0.4);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --container-max: 1280px;
    --container-narrow: 960px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Utility Classes ---- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(108, 60, 225, 0.15);
    border: 1px solid rgba(108, 60, 225, 0.3);
    border-radius: var(--radius-full);
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* ---- Background Effects ---- */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(108, 60, 225, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 60, 225, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.bg-glow-purple {
    background: var(--primary);
}

.bg-glow-green {
    background: var(--secondary);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-links a:hover {
    color: var(--text-primary);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Unified Dropdown System (sp-dropdown) ── */
.sp-dropdown {
    position: relative;
}

/* Trigger button */
.sp-dd-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-family: inherit;
}
.sp-dd-trigger > i:first-child {
    color: var(--primary-light);
    font-size: 1rem;
}
.sp-dd-trigger:hover,
.sp-dropdown.open .sp-dd-trigger {
    background: rgba(108,60,225,0.12);
    border-color: rgba(108,60,225,0.45);
    box-shadow: 0 0 0 3px rgba(108,60,225,0.08);
}

/* Chevron */
.sp-dd-chevron {
    font-size: 0.62rem;
    color: var(--text-secondary);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    margin-left: 2px;
}
.sp-dropdown.open .sp-dd-chevron { transform: rotate(180deg); }

/* User avatar inside trigger */
.sp-dd-avatar {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
}
.sp-dd-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown panel */
.sp-dd-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 246px;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.65), 0 0 0 1px rgba(108,60,225,0.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.2s, transform 0.22s cubic-bezier(.4,0,.2,1), visibility 0s 0.22s;
    z-index: 2000;
}
.sp-dropdown.open .sp-dd-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.2s, transform 0.22s cubic-bezier(.4,0,.2,1), visibility 0s 0s;
}

/* Panel header (logged-in user info) */
.sp-dd-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
}
.sp-dd-header-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.sp-dd-header-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}
.sp-dd-header-role {
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Separator */
.sp-dd-sep {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 4px;
}

/* Menu item */
.sp-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
    cursor: pointer;
    font-size: 0.85rem;
}
.sp-dd-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}
.sp-dd-item-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
}
.sp-dd-item-icon.ic-purple { background: rgba(108,60,225,0.16); color: var(--primary-light); }
.sp-dd-item-icon.ic-green  { background: rgba(0,212,170,0.14);  color: var(--secondary); }
.sp-dd-item-icon.ic-yellow { background: rgba(245,158,11,0.14); color: #F59E0B; }
.sp-dd-item-icon.ic-blue   { background: rgba(59,130,246,0.14); color: #60A5FA; }
.sp-dd-item-icon.ic-red    { background: rgba(239,68,68,0.12);  color: #ef4444; }
.sp-dd-item-label {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}
.sp-dd-item-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 1px;
    line-height: 1.3;
}
/* Danger item (log out) */
.sp-dd-item-danger .sp-dd-item-label { color: #f87171; }
.sp-dd-item-danger:hover { background: rgba(239,68,68,0.08); }

/* ── Auth panel (guest / not logged-in) ── */
.sp-dd-auth-panel {
    min-width: 264px;
    padding: 10px;
}
.sp-dd-auth-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 2px 8px 10px;
}
.sp-dd-cta-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.18s;
    margin-bottom: 6px;
    border: 1.5px solid transparent;
    color: var(--text-primary);
}
.sp-dd-cta-item:last-child { margin-bottom: 0; }
.sp-dd-cta-login {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.08);
}
.sp-dd-cta-login:hover {
    background: rgba(108,60,225,0.1);
    border-color: rgba(108,60,225,0.35);
    color: var(--text-primary);
}
.sp-dd-cta-register {
    background: linear-gradient(135deg, rgba(108,60,225,0.18), rgba(0,212,170,0.1));
    border-color: rgba(108,60,225,0.3);
}
.sp-dd-cta-register:hover {
    background: linear-gradient(135deg, rgba(108,60,225,0.28), rgba(0,212,170,0.18));
    border-color: rgba(108,60,225,0.55);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(108,60,225,0.2);
}
.sp-dd-cta-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.sp-dd-cta-login .sp-dd-cta-icon {
    background: rgba(108,60,225,0.15);
    color: var(--primary-light);
}
.sp-dd-cta-register .sp-dd-cta-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.sp-dd-cta-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}
.sp-dd-cta-sub {
    font-size: 0.71rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Backward compat */
.navbar-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
}
.navbar-user-info i { color: var(--primary-light); }

/* Mobile-only user section inside menu (hidden on desktop) */
.navbar-mobile-user {
    display: none;
}

/* Desktop: hide hero TV icon (mobile only) */
.hero-tv-icon {
    display: none;
}

/* Hero title row (flex on mobile) */
.hero-title-row h1 {
    flex: 1;
}

/* Hamburger */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(108, 60, 225, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-gradient);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.15), transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08), transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: var(--radius-full);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Hero Visual (Right Side) */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.3s both;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.hero-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hero-card-header h4 {
    font-size: 1rem;
    font-weight: 700;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-full);
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.live-badge .live-dot {
    width: 6px;
    height: 6px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.match-preview {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 12px;
}

.match-preview-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.match-team {
    text-align: center;
    flex: 1;
}

.match-team-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.match-team-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.match-score {
    text-align: center;
    min-width: 80px;
}

.match-score-display {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.match-score-time {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

.match-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Floating elements on hero */
.hero-float {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}

.hero-float-1 {
    top: 20px;
    right: -30px;
    animation-delay: 0s;
}

.hero-float-2 {
    bottom: 40px;
    left: -20px;
    animation-delay: 1.5s;
}

.hero-float i {
    margin-right: 6px;
    color: var(--secondary);
}

.hero-float span {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: var(--bg-surface);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    background: rgba(108, 60, 225, 0.1);
    color: var(--primary-light);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.category-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-card));
    transition: transform var(--transition-slow);
}

.category-card:hover .category-card-bg {
    transform: scale(1.05);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
}

.category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: white;
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.category-card p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.category-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.category-type-badge.sukan { background: rgba(108, 60, 225, 0.8); color: white; }
.category-type-badge.akademik { background: rgba(0, 212, 170, 0.8); color: var(--bg-dark); }
.category-type-badge.esukan { background: rgba(255, 107, 53, 0.8); color: white; }
.category-type-badge.outdoor { background: rgba(34, 197, 94, 0.8); color: white; }

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.category-tab:hover {
    border-color: var(--primary-light);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.4);
}

.category-tab i {
    font-size: 0.85rem;
}

/* Category Panels */
.category-panel {
    display: none;
}

.category-panel.active {
    display: grid;
}

/* ============================================
   DEMO / HOW IT WORKS SECTION
   ============================================ */
.howit-works {
    background: var(--bg-surface);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 48px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0.3;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    transition: all var(--transition-normal);
}

.step-number span {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-card:hover .step-number {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Video Demo */
.demo-video-wrapper {
    margin-top: 60px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
    position: relative;
    aspect-ratio: 16/9;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.demo-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 0 40px rgba(108, 60, 225, 0.4);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 60px rgba(108, 60, 225, 0.6);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 2rem;
    color: var(--primary-light);
    opacity: 0.5;
    margin-bottom: 12px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-stars {
    color: #FBBF24;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    gap: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
}

.testimonial-author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.testimonial-author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   LIVE TOURNAMENTS SECTION
   ============================================ */
.tournaments {
    background: var(--bg-surface);
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tournament-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.tournament-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.tournament-card-banner {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-surface));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tournament-card-banner i {
    font-size: 3rem;
    opacity: 0.3;
}

.tournament-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-live {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-upcoming {
    background: rgba(0, 212, 170, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.status-registration {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tournament-card-body {
    padding: 24px;
}

.tournament-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tournament-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tournament-card-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-card-meta i {
    color: var(--primary-light);
    width: 16px;
}

.tournament-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.tournament-teams-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   TRUST / FEATURES SECTION  
   ============================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.trust-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.trust-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(108, 60, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--primary-light);
}

.trust-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.trust-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 50%;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-box p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.cta-buttons .btn-accent {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    padding: 16px 40px;
    font-size: 1.05rem;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .navbar-brand {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .features-grid,
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .navbar-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 80px 40px;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-links.active {
        display: flex;
    }
    
    .navbar-links a {
        font-size: 1.3rem;
    }
    
    .navbar-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hide desktop user/logout on mobile – inside hamburger menu instead */
    .navbar-actions {
        display: none;
    }

    /* Mobile user section inside hamburger menu */
    .navbar-mobile-user {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid var(--border);
        width: 100%;
    }

    .navbar-mobile-user-info {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--text-secondary);
        font-size: 0.95rem;
        font-weight: 600;
    }

    .navbar-mobile-user-info i {
        color: var(--primary-light);
    }

    /* Hero title row: h1 beside TV icon */
    .hero-title-row {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        text-align: left;
    }

    .hero-tv-icon {
        display: flex;
        flex-shrink: 0;
        align-items: flex-start;
        padding-top: 6px;
    }

    .hero-tv-screen {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 10px 10px;
        width: 88px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        box-shadow: var(--shadow-md);
    }

    .hero-tv-screen > i {
        font-size: 1.5rem;
        color: var(--primary-light);
    }

    .hero-tv-score {
        font-size: 1rem;
        font-weight: 900;
        color: var(--text-primary);
        letter-spacing: 0.02em;
    }

    .hero-tv-meta {
        font-size: 0.6rem;
        color: var(--text-muted);
    }

    /* Smaller h1 on mobile */
    .hero h1 {
        font-size: clamp(1.45rem, 5.5vw, 1.9rem);
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid,
    .tournament-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid::before {
        display: none;
    }
    
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-box {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ============================================
   LOADING SPINNER 
   ============================================ */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}
