/**
 * Components CSS - UI Components
 */

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--color-bg-header);
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo-text {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

/* Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-white);
    font-weight: var(--font-medium);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link svg {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    padding: var(--space-sm);
    z-index: var(--z-dropdown);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-dropdown-link:hover {
    background: var(--color-bg);
    color: var(--color-primary);
}

.nav-dropdown-link.active {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    font-weight: 600;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    cursor: pointer;
}

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

/* ==========================================================================
   HERO SECTION - Layered Design
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
}

/* Layer 1: Base gradient background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        #0f0f23 0%,
        #1a1a2e 35%,
        #16213e 65%,
        #0f0f23 100%);
}

/* Layer 2: Ambient light spots */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 35% at 20% 20%, rgba(108, 99, 255, 0.5) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 85% 25%, rgba(200, 243, 29, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 35% 25% at 10% 70%, rgba(33, 155, 157, 0.08) 0%, transparent 50%);
}

/* Layer 3: Subtle texture */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    mix-blend-mode: overlay;
}

/* Casino decorations - Top left cluster */
.hero-decor-left {
    position: absolute;
    left: 0;
    top: var(--header-height);
    width: 400px;
    height: 450px;
    pointer-events: none;
    z-index: 1;
}

/* Large chip */
.hero-decor-left::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    left: -60px;
    top: 20px;
    border: 6px solid rgba(200, 243, 29, 0.25);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 40%, rgba(200, 243, 29, 0.15) 41%, rgba(200, 243, 29, 0.15) 50%, transparent 51%),
        radial-gradient(circle at center, transparent 60%, rgba(255, 255, 255, 0.1) 61%, rgba(255, 255, 255, 0.1) 70%, transparent 71%);
}

/* Card shape */
.hero-decor-left::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 150px;
    left: 130px;
    top: 200px;
    border: 4px solid rgba(200, 243, 29, 0.2);
    border-radius: 12px;
    transform: rotate(-25deg);
    background: linear-gradient(135deg, rgba(200, 243, 29, 0.08) 0%, transparent 100%);
}

/* Casino decorations - Bottom right cluster */
.hero-decor-right {
    position: absolute;
    right: 0;
    bottom: 100px;
    width: 420px;
    height: 380px;
    pointer-events: none;
    z-index: 1;
}

/* Large chip */
.hero-decor-right::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    right: -40px;
    bottom: 30px;
    border: 5px solid rgba(200, 243, 29, 0.22);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 35%, rgba(200, 243, 29, 0.18) 36%, rgba(200, 243, 29, 0.18) 48%, transparent 49%),
        radial-gradient(circle at center, transparent 58%, rgba(255, 255, 255, 0.1) 59%, rgba(255, 255, 255, 0.1) 68%, transparent 69%);
}

/* Diamond suit */
.hero-decor-right::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    right: 150px;
    bottom: 210px;
    border: 4px solid rgba(200, 243, 29, 0.2);
    transform: rotate(45deg);
    background: rgba(200, 243, 29, 0.08);
}

/* Spade suit - top right area */
.hero-decor-spade {
    position: absolute;
    right: 10%;
    top: calc(var(--header-height) + 80px);
    width: 90px;
    height: 105px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.2;
}

.hero-decor-spade::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Cpath d='M50 0 C50 0 0 40 0 70 C0 90 20 100 35 100 C42 100 47 97 50 92 C53 97 58 100 65 100 C80 100 100 90 100 70 C100 40 50 0 50 0 Z M35 102 L50 120 L65 102 C58 105 42 105 35 102 Z' fill='%23C8F31D'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Heart suit - left side middle */
.hero-decor-heart {
    position: absolute;
    left: 6%;
    top: 48%;
    width: 85px;
    height: 78px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    transform: rotate(-12deg);
}

.hero-decor-heart::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M50 90 C50 90 0 50 0 25 C0 5 15 0 25 0 C35 0 45 10 50 20 C55 10 65 0 75 0 C85 0 100 5 100 25 C100 50 50 90 50 90 Z' fill='%23C8F31D'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Club suit - bottom left */
.hero-decor-club {
    position: absolute;
    left: 14%;
    bottom: 150px;
    width: 75px;
    height: 85px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.16;
    transform: rotate(8deg);
}

.hero-decor-club::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 110'%3E%3Ccircle cx='50' cy='25' r='22' fill='%23C8F31D'/%3E%3Ccircle cx='25' cy='55' r='22' fill='%23C8F31D'/%3E%3Ccircle cx='75' cy='55' r='22' fill='%23C8F31D'/%3E%3Cpath d='M40 55 L40 95 L60 95 L60 55 Z' fill='%23C8F31D'/%3E%3Cpath d='M35 95 L50 110 L65 95 Z' fill='%23C8F31D'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Dice - right side */
.hero-decor-dice {
    position: absolute;
    right: 5%;
    top: 40%;
    width: 95px;
    height: 95px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.18;
    transform: rotate(18deg);
}

.hero-decor-dice::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid #C8F31D;
    border-radius: 16px;
    background: rgba(200, 243, 29, 0.05);
}

.hero-decor-dice::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #C8F31D;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: -22px -22px 0 #C8F31D, 22px 22px 0 #C8F31D;
}

/* Scattered chips - center left */
.hero-decor-chips {
    position: absolute;
    left: 2%;
    top: 28%;
    width: 180px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
}

.hero-decor-chips::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 5px solid rgba(200, 243, 29, 0.22);
    border-radius: 50%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, transparent 45%, rgba(200, 243, 29, 0.12) 46%, rgba(200, 243, 29, 0.12) 58%, transparent 59%);
}

.hero-decor-chips::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 4px solid rgba(200, 243, 29, 0.25);
    border-radius: 50%;
    bottom: 0;
    right: 10px;
    background: radial-gradient(circle at center, transparent 40%, rgba(200, 243, 29, 0.15) 41%, rgba(200, 243, 29, 0.15) 55%, transparent 56%);
}

/* Stacked cards - bottom right area */
.hero-decor-cards {
    position: absolute;
    right: 14%;
    bottom: 120px;
    width: 140px;
    height: 110px;
    pointer-events: none;
    z-index: 1;
}

.hero-decor-cards::before {
    content: '';
    position: absolute;
    width: 75px;
    height: 100px;
    border: 4px solid rgba(200, 243, 29, 0.2);
    border-radius: 10px;
    transform: rotate(-12deg);
    left: 0;
    top: 0;
    background: linear-gradient(135deg, rgba(200, 243, 29, 0.08) 0%, transparent 100%);
}

.hero-decor-cards::after {
    content: '';
    position: absolute;
    width: 75px;
    height: 100px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transform: rotate(10deg);
    left: 40px;
    top: -10px;
    background: linear-gradient(135deg, rgba(200, 243, 29, 0.06) 0%, transparent 100%);
}

/* Small accent chip - top right */
.hero-decor-accent {
    position: absolute;
    right: 20%;
    top: calc(var(--header-height) + 35px);
    width: 70px;
    height: 70px;
    border: 4px solid rgba(200, 243, 29, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle at center, transparent 35%, rgba(200, 243, 29, 0.2) 36%, rgba(200, 243, 29, 0.2) 50%, transparent 51%);
}

/* Additional decorations via background SVG on hero-bg */
.hero-decor-extra {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        /* Chip top center */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='rgba(200,243,29,0.18)' stroke-width='4'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='rgba(200,243,29,0.12)' stroke-width='3'/%3E%3C/svg%3E"),
        /* Small diamond left */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Crect x='10' y='10' width='30' height='30' fill='rgba(200,243,29,0.15)' transform='rotate(45 25 25)'/%3E%3C/svg%3E"),
        /* Chip bottom center-left */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='35' fill='none' stroke='rgba(200,243,29,0.2)' stroke-width='4'/%3E%3Ccircle cx='40' cy='40' r='22' fill='none' stroke='rgba(200,243,29,0.12)' stroke-width='3'/%3E%3C/svg%3E"),
        /* Spade small right */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath d='M20 0 C20 0 0 16 0 28 C0 36 8 40 14 40 C17 40 19 39 20 37 C21 39 23 40 26 40 C32 40 40 36 40 28 C40 16 20 0 20 0 Z' fill='rgba(200,243,29,0.15)'/%3E%3C/svg%3E"),
        /* Heart small */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Cpath d='M20 36 C20 36 0 20 0 10 C0 2 6 0 10 0 C14 0 18 4 20 8 C22 4 26 0 30 0 C34 0 40 2 40 10 C40 20 20 36 20 36 Z' fill='rgba(200,243,29,0.12)'/%3E%3C/svg%3E"),
        /* Card outline */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 84'%3E%3Crect x='2' y='2' width='56' height='80' rx='6' fill='none' stroke='rgba(200,243,29,0.15)' stroke-width='3'/%3E%3C/svg%3E"),
        /* Extra chip */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='27' fill='none' stroke='rgba(200,243,29,0.16)' stroke-width='3'/%3E%3C/svg%3E"),
        /* Extra diamond */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='8' y='8' width='24' height='24' fill='rgba(200,243,29,0.12)' transform='rotate(45 20 20)'/%3E%3C/svg%3E");
    background-position:
        28% 12%,
        22% 62%,
        38% 78%,
        72% 52%,
        82% 68%,
        7% 72%,
        55% 25%,
        65% 82%;
    background-size:
        100px 100px,
        55px 55px,
        85px 85px,
        45px 54px,
        50px 45px,
        60px 84px,
        70px 70px,
        50px 50px;
    background-repeat: no-repeat;
}

/* Roulette segment - decorative arc */
.hero-decor-roulette {
    position: absolute;
    left: -80px;
    bottom: 40px;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 1;
    border: 6px solid rgba(200, 243, 29, 0.15);
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-30deg);
}

.hero-decor-roulette::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 4px solid rgba(200, 243, 29, 0.12);
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
}

/* Second roulette arc - right side */
.hero-decor-roulette2 {
    position: absolute;
    right: -60px;
    top: 28%;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 1;
    border: 5px solid rgba(200, 243, 29, 0.14);
    border-radius: 50%;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(20deg);
}

.hero-decor-roulette2::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border-left-color: transparent;
    border-top-color: transparent;
}

/* Small floating chip - top right */
.hero-decor-accent {
    position: absolute;
    right: 15%;
    top: calc(var(--header-height) + 60px);
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

/* Main content wrapper */
.hero-main {
    position: relative;
    z-index: 3;
    padding: calc(var(--header-height) + var(--space-3xl)) 0 0;
}

/* Content panel - visual anchor */
.hero-content {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
}

/* Soft glow behind content */
.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 120%;
    background: radial-gradient(ellipse at center,
        rgba(108, 99, 255, 0.3) 0%,
        rgba(108, 99, 255, 0.15) 30%,
        transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-title {
    font-size: var(--text-4xl);
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
    line-height: var(--leading-tight);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    text-shadow:
        0 0 30px rgba(200, 243, 29, 0.6),
        0 0 60px rgba(200, 243, 29, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Subtle underline accent for highlighted text */
.hero-title span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(200, 243, 29, 0.5), transparent);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
    letter-spacing: 0.015em;
}

/* CTA Section with visual grouping */
.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Premium Primary CTA */
.hero .btn-primary {
    background: linear-gradient(135deg, #C8F31D 0%, #b8e01a 50%, #a8d016 100%);
    color: #0f0f23;
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    border: none;
    border-radius: var(--radius-md);
    box-shadow:
        0 4px 20px rgba(200, 243, 29, 0.45),
        0 2px 6px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    text-shadow: none;
    position: relative;
    overflow: hidden;
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.hero .btn-primary:hover::before {
    left: 100%;
}

.hero .btn-primary:hover {
    background: linear-gradient(135deg, #d8ff40 0%, #C8F31D 50%, #b8e01a 100%);
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(200, 243, 29, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Minimal Secondary CTA */
.hero .btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    box-shadow: none;
    position: relative;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* Gradient separator line */
.hero-divider {
    width: 180px;
    height: 1px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 243, 29, 0.4) 30%,
        rgba(33, 155, 157, 0.4) 70%,
        transparent 100%);
}

/* Trust Signals */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    max-width: fit-content;
    margin: 0 auto;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--text-sm);
    padding: var(--space-xs) 0;
}

.hero-trust-item svg {
    width: 18px;
    height: 18px;
    fill: var(--color-accent);
    flex-shrink: 0;
}

.hero-trust-item span {
    white-space: nowrap;
}

/* Bottom transition zone */
.hero-bottom {
    position: relative;
    z-index: 2;
    height: 120px;
    margin-top: var(--space-2xl);
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(238, 238, 238, 0.05) 30%,
        rgba(238, 238, 238, 0.15) 60%,
        var(--color-bg) 100%);
}

/* Decorative line at transition */
.hero-bottom::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    width: min(80%, 600px);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
}

/* ==========================================================================
   PAGE DECORATIONS (for non-hero pages)
   ========================================================================== */

.page-decor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.5;
}

.page-decor .hero-decor-spade,
.page-decor .hero-decor-heart,
.page-decor .hero-decor-club,
.page-decor .hero-decor-dice,
.page-decor .hero-decor-chips,
.page-decor .hero-decor-cards {
    position: fixed;
}

.page-decor .hero-decor-spade {
    right: 5%;
    top: 15%;
}

.page-decor .hero-decor-heart {
    left: 3%;
    top: 35%;
}

.page-decor .hero-decor-club {
    right: 8%;
    bottom: 30%;
}

.page-decor .hero-decor-dice {
    left: 5%;
    bottom: 20%;
}

.page-decor .hero-decor-chips {
    right: 15%;
    top: 50%;
}

.page-decor .hero-decor-cards {
    left: 10%;
    top: 60%;
}

.page-decor .hero-decor-roulette {
    left: -80px;
    top: 20%;
}

.page-decor .hero-decor-roulette2 {
    right: -60px;
    top: 40%;
}

.page-decor .hero-decor-accent {
    right: 10%;
    top: 25%;
}

.page-decor .hero-decor-extra {
    left: 8%;
    bottom: 25%;
}

.page-decor .hero-decor-left {
    left: -100px;
    top: 30%;
}

.page-decor .hero-decor-right {
    right: -100px;
    top: 50%;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.btn-secondary:hover {
    background: var(--color-text-white);
    color: var(--color-secondary);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--color-text-white);
}

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

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

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

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
    min-height: 36px;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-lg);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: var(--space-lg);
}

.card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: #fff;
}

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

.card-text {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-bg);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Category Card */
/* Category Section Background */
.category-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-3xl) 0 var(--space-4xl);
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

.category-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.category-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.category-glow--1 {
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    top: -10%;
    left: -5%;
    animation: catGlow1 12s ease-in-out infinite alternate;
}

.category-glow--2 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    bottom: 0%;
    right: -5%;
    animation: catGlow2 10s ease-in-out infinite alternate;
}

.category-glow--3 {
    width: 350px;
    height: 350px;
    background: #FF6B6B;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    animation: catGlow3 14s ease-in-out infinite alternate;
}

@keyframes catGlow1 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.12; }
    100% { transform: translate(40px, 30px) scale(1.15); opacity: 0.08; }
}
@keyframes catGlow2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.10; }
    100% { transform: translate(-30px, -20px) scale(1.2); opacity: 0.06; }
}
@keyframes catGlow3 {
    0% { transform: translateX(-50%) scale(0.8); opacity: 0.06; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 0.10; }
}

/* Category Header */
.category-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.category-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.category-header h1 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

/* Category Card */
.category-card {
    --card-accent: #6C63FF;
    --card-accent-to: #8B84FF;
    position: relative;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    display: block;
}

/* Gradient border on hover */
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1.5px;
    background: linear-gradient(135deg, var(--card-accent), var(--card-accent-to), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 3;
}

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

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(var(--color-secondary-rgb), 0.1);
    border-color: transparent;
}

/* Card Image Area */
.category-card-visual {
    position: relative;
    height: 170px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a3e, #0f0f2a);
}

.category-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: saturate(0.7);
}

.category-card:hover .category-card-visual img {
    opacity: 0.55;
    transform: scale(1.1);
    filter: saturate(1);
}

/* Dark overlay on image */
.category-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.3) 0%, rgba(26, 26, 46, 0.95) 85%);
    z-index: 1;
}

/* Colored accent line on top */
.category-card-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-accent), var(--card-accent-to));
    z-index: 2;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-card-visual::before {
    opacity: 1;
    height: 3px;
    box-shadow: 0 0 12px var(--card-accent);
}

/* Icon floating on visual/content border */
.category-card-icon {
    position: absolute;
    top: 144px; /* 170px visual height - 26px (half of 52px icon) */
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--card-accent), var(--card-accent-to));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-card-icon {
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.4),
        0 0 20px color-mix(in srgb, var(--card-accent) 40%, transparent);
    transform: translateX(-50%) translateY(-4px) scale(1.08);
}

.category-card-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    color: #fff;
}

/* Card Content */
.category-card-content {
    padding: calc(var(--space-xl) + 8px) var(--space-xl) var(--space-xl);
    text-align: center;
    position: relative;
    z-index: 1;
}

.category-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease;
}

.category-card:hover .category-card-title {
    color: var(--color-primary);
}

.category-card-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.category-card-count svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-text-muted);
    fill: none;
}

/* Arrow CTA */
.category-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateY(0);
}

.category-card-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-arrow svg {
    transform: translateX(4px);
}

/* Casino Card (for article pages) */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.casino-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md) var(--space-md);
    text-align: center;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.08);
    position: relative;
    border: 1px solid rgba(108, 99, 255, 0.1);
    transition: all var(--transition-base);
    overflow: hidden;
}

.casino-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(200, 243, 29, 0.4);
}

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

.casino-card-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #7c74ff 100%);
    color: var(--color-text-white);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(108, 99, 255, 0.3);
}

/* Top 3 special styling */
.casino-card:nth-child(1) .casino-card-rank {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 3px 12px rgba(255, 165, 0, 0.4);
}

.casino-card:nth-child(2) .casino-card-rank {
    background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
    box-shadow: 0 3px 10px rgba(160, 160, 160, 0.4);
}

.casino-card:nth-child(3) .casino-card-rank {
    background: linear-gradient(135deg, #CD7F32 0%, #B87333 100%);
    box-shadow: 0 3px 10px rgba(184, 115, 51, 0.4);
}

.casino-card-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.casino-card-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.casino-card-name {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: var(--space-xs);
    margin-top: var(--space-md);
}

.casino-card-bonus {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    background: linear-gradient(135deg, rgba(200, 243, 29, 0.1) 0%, rgba(200, 243, 29, 0.05) 100%);
    border-radius: var(--radius-md);
    border: 1px dashed rgba(200, 243, 29, 0.3);
}

.casino-card-rating {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: var(--space-md);
}

.casino-card-rating svg {
    width: 16px;
    height: 16px;
    fill: var(--color-warning);
    filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
}

.casino-card .btn {
    width: 100%;
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, #a8d016 100%);
    border-radius: var(--radius-md);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(200, 243, 29, 0.3);
}

.casino-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 243, 29, 0.4);
}

/* Compact casino card without logo */
.casino-card-compact {
    padding: var(--space-lg) var(--space-md) var(--space-md);
}

.casino-card-compact .casino-card-name {
    font-size: var(--text-base);
    margin-top: var(--space-sm);
}

/* Decorative icon for compact cards */
.casino-card-compact::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='rgba(108,99,255,0.15)'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* ==========================================================================
   NEW CASINO CARDS DESIGN
   ========================================================================== */

/* Casino Cards — 5-column grid */
.casino-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: var(--space-2xl);
}

.cc {
    --cc-accent: var(--color-secondary);
    --cc-bg: #1e1e3a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 22px 14px 18px;
    background: var(--cc-bg);
    border: 1.5px solid color-mix(in srgb, var(--cc-accent) 25%, transparent);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(.25,.46,.45,.94);
    position: relative;
    overflow: hidden;
}

/* Top accent bar */
.cc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cc-accent), color-mix(in srgb, var(--cc-accent) 60%, #fff));
    transition: all 0.3s ease;
}

.cc:hover::before {
    height: 4px;
    box-shadow: 0 0 14px var(--cc-accent);
}

.cc:hover {
    border-color: color-mix(in srgb, var(--cc-accent) 50%, transparent);
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 0 24px color-mix(in srgb, var(--cc-accent) 15%, transparent);
}

/* Accent color + solid opaque bg per card */
.cc:nth-child(5n+1) { --cc-accent: #6C63FF; --cc-bg: #262050; }
.cc:nth-child(5n+2) { --cc-accent: #C8F31D; --cc-bg: #1e2c14; }
.cc:nth-child(5n+3) { --cc-accent: #FF6B6B; --cc-bg: #3a1a22; }
.cc:nth-child(5n+4) { --cc-accent: #00C9A7; --cc-bg: #132a2a; }
.cc:nth-child(5n+5) { --cc-accent: #FFB800; --cc-bg: #302816; }

/* Icon */
.cc-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--cc-accent) 12%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--cc-accent) 25%, transparent);
    transition: all 0.3s ease;
}

.cc-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--cc-accent);
    stroke: var(--cc-accent);
    color: var(--cc-accent);
    transition: all 0.3s ease;
}

.cc:hover .cc-icon {
    background: color-mix(in srgb, var(--cc-accent) 18%, transparent);
    border-color: color-mix(in srgb, var(--cc-accent) 40%, transparent);
    box-shadow: 0 0 16px color-mix(in srgb, var(--cc-accent) 20%, transparent);
    transform: scale(1.08);
}

/* Name */
.cc-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.cc:hover .cc-name {
    color: var(--cc-accent);
}

/* Bonus */
.cc-bonus {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    min-height: 30px;
    display: flex;
    align-items: center;
    padding: 5px 12px;
    background: color-mix(in srgb, var(--cc-accent) 15%, transparent);
    border-radius: 6px;
}

/* Rating */
.cc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cc-rating svg {
    width: 15px;
    height: 15px;
    fill: #FFB800;
}

.cc-rating span {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
}

/* CTA */
.cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 20px;
    background: color-mix(in srgb, var(--cc-accent) 15%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--cc-accent) 30%, transparent);
    color: var(--cc-accent);
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.25s ease;
    margin-top: auto;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cc-btn svg {
    width: 12px;
    height: 12px;
    stroke: var(--cc-accent);
    transition: all 0.25s ease;
}

.cc:hover .cc-btn {
    background: var(--cc-accent);
    border-color: var(--cc-accent);
    color: var(--color-bg);
}

.cc:hover .cc-btn svg {
    stroke: var(--color-bg);
    transform: translateX(3px);
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */

/* ==========================================================================
   CAROUSEL SECTION - Stylish
   ========================================================================== */

.carousel-section {
    padding: var(--space-4xl) 0 var(--space-3xl);
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, var(--color-bg) 0%, #12122a 50%, var(--color-bg) 100%);
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-primary-rgb), 0.25), transparent);
}

.carousel-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--color-secondary-rgb), 0.2), transparent);
}

.carousel-deco {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.carousel-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.carousel-title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: var(--font-bold);
    color: #fff;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

.carousel-title span {
    background: linear-gradient(135deg, var(--color-primary), #a8d010);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.carousel-wrapper {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

/* Static layout (1-4 keywords) */
.carousel-static {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

/* Single row (5-8 keywords) */
.carousel-row {
    display: flex;
    gap: 12px;
    animation: carousel-scroll var(--carousel-speed-row1) linear infinite;
    width: max-content;
    padding: 4px 0;
}

.carousel-row.reverse {
    animation-direction: reverse;
    animation-duration: var(--carousel-speed-row2);
}

.carousel-row.slow {
    animation-duration: var(--carousel-speed-row3);
}

/* Triple row layout (9+ keywords) */
.carousel-triple {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carousel-wrapper:hover .carousel-row {
    animation-play-state: paused;
}

@keyframes carousel-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Keyword Pill - Stylish glassmorphism */
.kw-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

.kw-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.1), transparent 50%, rgba(var(--color-secondary-rgb), 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kw-pill:hover {
    border-color: rgba(var(--color-primary-rgb), 0.5);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.15), 0 0 0 1px rgba(var(--color-primary-rgb), 0.1);
}

.kw-pill:hover::before {
    opacity: 1;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #1a1a2e;
    border-radius: var(--radius-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: var(--text-xl);
    color: #fff;
}

.modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-size: var(--text-sm);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75);
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--color-primary);
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-item:last-child {
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: var(--space-2xl);
}

.pagination-list {
    display: flex;
    gap: var(--space-xs);
}

.pagination-list li a,
.pagination-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-md);
    background: var(--color-bg-card);
    border: 2px solid var(--color-bg-dark);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    transition: all var(--transition-fast);
}

.pagination-list li a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination-current {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: var(--color-text-white) !important;
}

.pagination-ellipsis {
    border: none !important;
    background: transparent !important;
}

/* ==========================================================================
   TAGS
   ========================================================================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background: var(--color-bg);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-light);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

/* ==========================================================================
   TAGS SECTION - Homepage
   ========================================================================== */

.tags-section {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, #1a1a2e 50%, var(--color-bg) 100%);
    position: relative;
}

.tags-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.2), transparent);
}

.tags-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.2), transparent);
}

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

.tag-card {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(108, 99, 255, 0.15);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.tag-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-secondary);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tag-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.2);
    border-color: rgba(200, 243, 29, 0.4);
}

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

.tag-card-featured {
    background: linear-gradient(135deg, #6C63FF 0%, #5a52e0 100%);
    border-color: transparent;
}

.tag-card-featured .tag-card-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.tag-card-featured .tag-card-name {
    color: #fff;
    font-weight: var(--font-semibold);
}

.tag-card-featured .tag-card-count {
    background: rgba(200, 243, 29, 0.9);
    color: #fff;
}

.tag-card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.3);
}

.tag-card-featured::before {
    background: var(--color-primary);
}

.tag-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-md);
    color: #C8F31D;
    flex-shrink: 0;
}

.tag-card-icon svg {
    width: 18px;
    height: 18px;
}

.tag-card-name {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-card-count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 var(--space-sm);
    background: rgba(200, 243, 29, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: #C8F31D;
}

/* ==========================================================================
   ARTICLE CONTENT
   ========================================================================== */

.article-content {
    line-height: var(--leading-relaxed);
}

article header h1 {
    color: #000;
}

.article-content h2 {
    font-size: var(--text-2xl);
    color: #000;
    margin: var(--space-xl) 0 var(--space-md);
}

.article-content h3 {
    font-size: var(--text-xl);
    color: #000;
    margin: var(--space-lg) 0 var(--space-md);
}

.article-content h4 {
    font-size: var(--text-lg);
    color: #000;
    margin: var(--space-md) 0 var(--space-sm);
}

.article-content p {
    margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li {
    margin-bottom: var(--space-sm);
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--color-primary-dark);
}

.article-content table {
    margin: var(--space-lg) 0;
    border: 1px solid var(--color-bg-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-bg-dark);
}

.article-content th {
    background: var(--color-secondary);
    color: var(--color-text-white);
    font-weight: var(--font-semibold);
}

.article-content tr:last-child td {
    border-bottom: none;
}

.article-content tr:nth-child(even) {
    background: var(--color-bg);
}

.article-content blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--color-primary);
    background: var(--color-bg);
    font-style: italic;
}

.article-content img {
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

/* Article inner wrapper */
.article-content .article {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-bg-dark);
}

.article-content .article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Hide duplicate H1s in article content */
.article-content .article h1 {
    display: none;
}

/* Figure and Figcaption */
.article-content figure {
    margin: var(--space-lg) 0;
    padding: 0;
}

.article-content figure img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.article-content figcaption {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-sm);
    font-style: italic;
}

/* Image positioning classes */
.article-content figure.image.left {
    float: left;
    max-width: 45%;
    margin: var(--space-sm) var(--space-lg) var(--space-sm) 0;
}

.article-content figure.image.right {
    float: right;
    max-width: 45%;
    margin: var(--space-sm) 0 var(--space-sm) var(--space-lg);
}

.article-content figure.image.fullwidth {
    width: 100%;
    clear: both;
}

/* Clear floats after images */
.article-content figure.image.left + p,
.article-content figure.image.right + p {
    overflow: hidden;
}

.article-content::after {
    content: '';
    display: table;
    clear: both;
}

/* AIO content wrapper */
.article-content #aio_content {
    overflow: hidden;
}

/* ==========================================================================
   ARTICLE TAGS SECTION
   ========================================================================== */

.article-tags-section {
    margin-top: var(--space-2xl);
    padding: var(--space-xl);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(108, 99, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.article-tags-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary), var(--color-accent));
}

.article-tags-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.article-tags-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #7c74ff 100%);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.25);
}

.article-tags-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.article-tags-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: #fff;
    margin: 0;
}

.article-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.85);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.article-tag::before {
    content: '#';
    margin-right: 4px;
    color: var(--color-primary);
    font-weight: var(--font-bold);
}

.article-tag:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #7c74ff 100%);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.article-tag:hover::before {
    color: var(--color-primary-light);
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.sidebar-widget {
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.sidebar-title {
    font-size: var(--text-lg);
    color: #fff;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: #0a0a1a;
    color: var(--color-text-white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-title {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
}

.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto var(--space-md);
    line-height: var(--leading-relaxed);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-weight: var(--font-medium);
    margin-bottom: var(--space-xs);
    color: rgba(255, 255, 255, 0.9);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: #0f0f23;
    border: 2px solid rgba(108, 99, 255, 0.2);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: var(--color-error);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

.form-success {
    color: var(--color-success);
    font-size: var(--text-sm);
    margin-top: var(--space-xs);
}

.form-optional {
    font-weight: var(--font-normal);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.contact-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-3xl) 0 var(--space-4xl);
    overflow: hidden;
}

/* Background */
.contact-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.contact-glow--1 {
    width: 450px;
    height: 450px;
    background: var(--color-secondary);
    top: -5%;
    right: 10%;
    opacity: 0.07;
}

.contact-glow--2 {
    width: 350px;
    height: 350px;
    background: var(--color-primary);
    bottom: 10%;
    left: -5%;
    opacity: 0.05;
}

/* Header */
.contact-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
    z-index: 1;
}

.contact-header h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.contact-header h1 span {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
    max-width: 460px;
    margin: 0 auto;
}

/* Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-2xl);
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Info sidebar */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-info-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-secondary-light);
    color: var(--color-secondary-light);
}

.contact-info-icon--lime {
    background: rgba(200, 243, 29, 0.1);
}

.contact-info-icon--lime svg {
    stroke: var(--color-primary);
    color: var(--color-primary);
}

.contact-info-icon--teal {
    background: rgba(0, 201, 167, 0.1);
}

.contact-info-icon--teal svg {
    stroke: #00C9A7;
    color: #00C9A7;
    fill: #00C9A7;
}

.contact-info-card h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.contact-info-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
}

.contact-info-note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
    padding: var(--space-md) 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--space-sm);
}

/* Form card */
.contact-form-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.contact-form .form-input,
.contact-form .form-textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    color: #fff;
    font-size: var(--text-base);
    transition: all 0.25s ease;
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    outline: none;
    border-color: rgba(200, 243, 29, 0.4);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(200, 243, 29, 0.06);
}

.contact-form .form-textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

/* Submit button */
.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: var(--text-base);
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
}

.contact-submit svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-bg);
    transition: transform 0.3s ease;
}

.contact-submit:hover {
    background: var(--color-primary-light);
    box-shadow: 0 8px 24px rgba(200, 243, 29, 0.25);
    transform: translateY(-2px);
}

.contact-submit:hover svg {
    transform: translateX(4px);
}

.contact-submit:active {
    transform: translateY(0);
}

/* ==========================================================================
   SUBCATEGORY PAGE
   ========================================================================== */

.subcat-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding: var(--space-3xl) 0 var(--space-4xl);
    overflow: hidden;
}

.subcat-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.subcat-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.subcat-glow--1 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    top: 5%;
    left: -3%;
    opacity: 0.06;
}

.subcat-glow--2 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    bottom: 15%;
    right: -2%;
    opacity: 0.04;
}

/* Header */
.subcat-header {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.subcat-header h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.subcat-header p {
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

/* Article Item */
.article-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Image */
.article-item-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.article-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85);
}

.article-item:hover .article-item-img img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Body */
.article-item-body {
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.article-item-cat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    opacity: 0.7;
}

.article-item-body h2 {
    font-size: var(--text-base);
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.25s ease;
}

.article-item:hover .article-item-body h2 {
    color: var(--color-primary);
}

.article-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all 0.25s ease;
    margin-top: auto;
}

.article-item-link svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-text-muted);
    transition: all 0.25s ease;
}

.article-item:hover .article-item-link {
    color: var(--color-primary);
}

.article-item:hover .article-item-link svg {
    stroke: var(--color-primary);
    transform: translateX(3px);
}

/* Pagination — minimal */
.pagination-arrow {
    display: flex !important;
}

.pagination-arrow svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-text-light);
    transition: stroke 0.2s ease;
}

.pagination-arrow:hover svg {
    stroke: var(--color-primary);
}

.pagination-list li:first-child .pagination-arrow svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */

.stats-section {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding: var(--space-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stat-item {
    color: var(--color-text-white);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--text-base);
    opacity: 0.8;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl);
}

.error-code {
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: var(--font-bold);
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-md);
}

.error-title {
    font-size: var(--text-2xl);
    color: #fff;
    margin-bottom: var(--space-md);
}

.error-text {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* ==========================================================================
   RELATED ARTICLES
   ========================================================================== */

.related-articles {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-bg-dark);
}

.related-title {
    font-size: var(--text-xl);
    color: #fff;
    margin-bottom: var(--space-lg);
}

/* ==========================================================================
   SEO CONTENT
   ========================================================================== */

.seo-content {
    background: #1a1a2e;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-top: var(--space-2xl);
}

.seo-content h2 {
    font-size: var(--text-xl);
    color: #fff;
    margin-bottom: var(--space-md);
}

.seo-content h3 {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.seo-content p {
    color: rgba(255, 255, 255, 0.7);
    line-height: var(--leading-relaxed);
}

.seo-content p + p {
    margin-top: var(--space-md);
}

/* SEO Content in Tags Section */
.seo-content-tags {
    background: transparent;
    padding: 0;
    margin-top: 0;
    margin-bottom: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.seo-content-tags h2 {
    font-size: var(--text-2xl);
    color: #fff;
    margin-bottom: var(--space-lg);
    line-height: var(--leading-tight);
}

.seo-content-tags h3 {
    font-size: var(--text-lg);
    color: #fff;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.seo-content-tags h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.seo-content-tags p {
    color: rgba(255, 255, 255, 0.75);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.seo-content-tags p:last-of-type {
    text-align: center;
    margin-top: var(--space-xl);
    font-weight: var(--font-medium);
    color: #C8F31D;
}

/* ==========================================================================
   PRELOADED CONTENT (Hidden)
   ========================================================================== */

.preloaded-content {
    display: none !important;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-header);
    z-index: calc(var(--z-fixed) + 1);
    padding: var(--space-sm) var(--space-xl) var(--space-xl);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
    display: flex;
    flex-direction: column;
}

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

.mobile-nav-header {
    display: flex;
    justify-content: flex-end;
    padding-bottom: var(--space-md);
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
}

.mobile-nav-close svg {
    width: 24px;
    height: 24px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    color: var(--color-text-white);
    font-weight: var(--font-medium);
    font-size: var(--text-lg);
}

.mobile-nav-link svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
}

.mobile-nav-item.open .mobile-nav-link svg {
    transform: rotate(180deg);
}

.mobile-nav-dropdown {
    display: none;
    padding: 0 var(--space-md) var(--space-md);
}

.mobile-nav-item.open .mobile-nav-dropdown {
    display: block;
}

.mobile-nav-dropdown a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.mobile-nav-dropdown a:hover {
    color: var(--color-primary);
}

.mobile-nav-link.active {
    color: var(--color-primary);
}

.mobile-nav-dropdown a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.mobile-nav-dropdown .mobile-nav-all {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-xs);
    padding-bottom: var(--space-sm);
}

.mobile-nav-dropdown .mobile-nav-all.active {
    color: var(--color-primary);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-fixed);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

/* ==========================================================================
   NOTIFICATIONS
   ========================================================================== */

.notification {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    animation: notificationSlideIn 0.3s ease-out;
}

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

.notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-success .notification-icon {
    background: var(--color-success);
    color: white;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    font-size: var(--text-lg);
    color: var(--color-text-white);
    margin-bottom: var(--space-xs);
}

.notification-content p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.notification-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
}

.notification-close svg {
    width: 18px;
    height: 18px;
}

/* Toast Notification - Fixed position */
.toast-notification {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    animation: toastSlideIn 0.4s ease-out;
    max-width: 90%;
    width: auto;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.toast-notification.toast-hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

.toast-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.toast-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 18px;
    height: 18px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toast-content strong {
    font-size: var(--text-base);
}

.toast-content span {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.toast-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: white;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

.toast-close svg {
    width: 16px;
    height: 16px;
}
