/**
 * Components CSS - Rifa Dark Theme
 * Inspired by softivuspro.com/wp/rifa/ lottery design
 * Adapted for casino review site: suomalaisnettikasinot.net
 * Dark purple/magenta palette with gradient accents
 */

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 0, 37, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: var(--z-fixed);
    border-bottom: 1px solid rgba(233, 30, 99, 0.12);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
    background: rgba(15, 0, 37, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.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);
    text-decoration: none;
}

.header-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(233, 30, 99, 0.3));
}

.header-logo-text {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--color-text-white);
    background: linear-gradient(135deg, #fff 0%, #e91e63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    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: rgba(255, 255, 255, 0.85);
    font-weight: var(--font-medium);
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: #fff;
    background: rgba(233, 30, 99, 0.12);
    text-shadow: 0 0 12px rgba(233, 30, 99, 0.5);
}

.nav-link.active {
    color: #fff;
    background: rgba(233, 30, 99, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #e91e63);
    border-radius: 2px;
}

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

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

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #1a0036;
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 12px 12px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 77, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    padding: var(--space-sm) 0;
    z-index: var(--z-dropdown);
    backdrop-filter: blur(20px);
}

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

.nav-dropdown-link {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-dropdown-link:hover {
    color: #fff;
    background: rgba(233, 30, 99, 0.1);
    padding-left: calc(var(--space-lg) + 4px);
}

.nav-dropdown-link.active {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.08);
}

.nav-dropdown-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--color-primary), #e91e63);
    border-radius: 0 3px 3px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e91e63, #7c4dff);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.4);
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #f44786, #9c6fff);
    box-shadow: 0 0 25px rgba(233, 30, 99, 0.5);
    transform: scale(1.05);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}


/* ==========================================================================
   HERO - Simplified for hero-slider
   ========================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #0f0025;
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(15, 0, 37, 0.6) 0%,
        rgba(15, 0, 37, 0.4) 40%,
        rgba(15, 0, 37, 0.8) 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
}

.hero-slide-content h1,
.hero-slide-content h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    line-height: var(--leading-tight);
}

.hero-slide-content p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-xl);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-dots {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 5;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-dot.active,
.hero-dot:hover {
    background: #e91e63;
    border-color: #e91e63;
    box-shadow: 0 0 12px rgba(233, 30, 99, 0.6);
}

.hero-bottom-transition {
    height: 80px;
    background: linear-gradient(180deg, rgba(15, 0, 37, 0.9) 0%, #0f0025 100%);
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

/* Page Decorations (floating icons on inner pages) */
.page-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.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: absolute;
    opacity: 0.04;
    filter: blur(1px);
}

.page-decor .hero-decor-spade {
    top: 15%;
    left: 5%;
    width: 60px;
}

.page-decor .hero-decor-heart {
    top: 30%;
    right: 8%;
    width: 50px;
}

.page-decor .hero-decor-club {
    bottom: 20%;
    left: 10%;
    width: 45px;
}

.page-decor .hero-decor-dice {
    top: 10%;
    right: 15%;
    width: 55px;
}

.page-decor .hero-decor-chips {
    bottom: 30%;
    right: 5%;
    width: 50px;
}

.page-decor .hero-decor-cards {
    top: 50%;
    left: 3%;
    width: 65px;
}

.page-decor .hero-decor-roulette {
    top: 20%;
    right: 3%;
    width: 80px;
}

.page-decor .hero-decor-roulette2 {
    bottom: 15%;
    left: 5%;
    width: 70px;
}

.page-decor .hero-decor-accent {
    top: 40%;
    right: 10%;
    width: 40px;
}

.page-decor .hero-decor-extra {
    bottom: 25%;
    right: 12%;
    width: 50px;
}

.page-decor .hero-decor-left {
    top: 25%;
    left: 2%;
    width: 60px;
}

.page-decor .hero-decor-right {
    top: 35%;
    right: 2%;
    width: 60px;
}


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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition-fast);
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #e91e63 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.35), 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(233, 30, 99, 0.5), 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 30px;
}

.btn-secondary:hover {
    border-color: #e91e63;
    color: #e91e63;
    background: rgba(233, 30, 99, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.15);
}

.btn-accent {
    background: var(--gradient-secondary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--color-secondary-rgb), 0.35), 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--color-secondary-rgb), 0.5), 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #e91e63;
    border: 2px solid #e91e63;
    padding: 12px 30px;
}

.btn-outline:hover {
    background: #e91e63;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.35);
}

.btn-sm {
    padding: 8px 20px;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
}

.btn-lg {
    padding: 18px 42px;
    font-size: var(--text-base);
}


/* ==========================================================================
   CARDS (Article Cards)
   ========================================================================== */

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(233, 30, 99, 0.3);
}

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

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

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

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.6));
    pointer-events: none;
}

.card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: #1a202c;
    margin-bottom: var(--space-sm);
    line-height: var(--leading-tight);
    transition: color var(--transition-fast);
}

.card:hover .card-title {
    color: #e91e63;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-text {
    font-size: var(--text-sm);
    color: #718096;
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    color: #a0aec0;
    padding-top: var(--space-sm);
    border-top: 1px solid #e2e8f0;
}


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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: linear-gradient(145deg, #1e1147 0%, #2a1760 100%);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    text-decoration: none;
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #e91e63, var(--color-secondary-light));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(233, 30, 99, 0.12);
    border-color: rgba(233, 30, 99, 0.3);
}

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

.category-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #e91e63 100%);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    transition: all var(--transition-base);
}

.category-card:hover .category-card-icon {
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.45);
}

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

.category-card-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: var(--space-xs);
}

.category-card-count {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
}


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

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

.casino-card {
    background: linear-gradient(145deg, #1e1147 0%, #231455 100%);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: all var(--transition-base);
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.casino-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.casino-card:hover {
    transform: translateY(-6px);
    box-shadow: 12px 12px 50px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.3);
}

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

.casino-card-rank {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    color: #fff;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.4);
    z-index: 2;
}

/* Gold rank for #1 */
.casino-card:nth-child(1) .casino-card-rank {
    background: linear-gradient(135deg, #f5a623, #ffd700);
    box-shadow: 0 2px 12px rgba(245, 166, 35, 0.5);
    color: #1a0036;
}

/* Silver rank for #2 */
.casino-card:nth-child(2) .casino-card-rank {
    background: linear-gradient(135deg, #b0b8c1, #e0e0e0);
    box-shadow: 0 2px 12px rgba(176, 184, 193, 0.4);
    color: #1a0036;
}

/* Bronze rank for #3 */
.casino-card:nth-child(3) .casino-card-rank {
    background: linear-gradient(135deg, #cd7f32, #e6a05c);
    box-shadow: 0 2px 12px rgba(205, 127, 50, 0.4);
    color: #1a0036;
}

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

.casino-card-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

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

.casino-card-bonus {
    font-size: var(--text-xs);
    color: #fff;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.2), rgba(var(--color-primary-rgb), 0.2));
    border: 1px solid rgba(233, 30, 99, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.casino-card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.casino-card-rating .rating-value {
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: #ffd700;
}

.casino-card .btn {
    width: 100%;
    padding: 10px 16px;
    font-size: var(--text-xs);
}

/* Compact Casino Cards */
.casino-card-compact {
    flex-direction: row;
    text-align: left;
    padding: var(--space-md);
    gap: var(--space-md);
}

/* New Casino Grid (sidebar-style) */
.casino-grid-new {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.casino-card-new {
    background: linear-gradient(145deg, #1e1147 0%, #231455 100%);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    transition: all var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.casino-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.3);
}

.casino-card-new-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(124, 77, 255, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}

.casino-card-new-icon svg {
    width: 24px;
    height: 24px;
    color: #e91e63;
}

.casino-card-new:hover .casino-card-new-icon {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.25) 0%, rgba(124, 77, 255, 0.35) 100%);
}

.casino-card-new-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    width: 100%;
}

.casino-card-new-name {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.casino-card-new-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.casino-card-new-rating svg {
    width: 13px;
    height: 13px;
    color: #ffd700;
    fill: #ffd700;
}

.casino-card-new-rating .rating-value {
    font-size: var(--text-xs);
    color: #ffd700;
    font-weight: var(--font-bold);
    margin-left: 4px;
}

.casino-card-new-bonus {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.casino-card-new-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    padding-top: var(--space-sm);
}

.casino-card-new-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.72rem;
    font-weight: var(--font-semibold);
    color: #fff;
    border-radius: var(--radius-full);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--transition-base);
}

.casino-card-new-btn.btn-play {
    background: var(--gradient-primary);
}

.casino-card-new-btn.btn-register {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
}

.casino-card-new-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}


/* ==========================================================================
   CAROUSEL / KEYWORD PILLS
   ========================================================================== */

.carousel-section {
    padding: 70px 0 60px;
    background: #0a001a;
    overflow: hidden;
    position: relative;
}

.carousel-section::before,
.carousel-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 77, 255, 0.2), transparent);
}

.carousel-section::before { top: 0; }
.carousel-section::after { bottom: 0; }

.carousel-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.carousel-glow-l {
    top: -80px;
    left: -100px;
    background: #7c4dff;
}

.carousel-glow-r {
    bottom: -80px;
    right: -100px;
    background: #e91e63;
}

.carousel-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.carousel-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: var(--font-semibold);
    color: #e91e63;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.carousel-header h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #fff;
}

.carousel-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    position: relative;
    z-index: 1;
}

.carousel-static {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.carousel-row {
    display: flex;
    gap: 10px;
    width: max-content;
    animation: carousel-scroll var(--carousel-speed-row1) linear infinite;
    margin-bottom: 10px;
}

.carousel-row.reverse {
    animation-direction: reverse;
}

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

.carousel-triple {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kw-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
    font-family: inherit;
    font-weight: var(--font-medium);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.kw-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c4dff;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.kw-pill:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.35);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 30, 99, 0.12);
}

.kw-pill:hover .kw-pill-dot {
    background: #e91e63;
    box-shadow: 0 0 8px rgba(233, 30, 99, 0.6);
}

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


/* ==========================================================================
   FEATURED SECTION
   ========================================================================== */

.featured-section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.featured-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.featured-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 0, 37, 0.88) 0%, rgba(26, 0, 54, 0.85) 50%, rgba(15, 0, 37, 0.92) 100%);
}

.featured-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

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

.featured-content p {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-xl);
    line-height: var(--leading-relaxed);
}


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

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 0, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    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.95);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    background: linear-gradient(145deg, #1e1147 0%, #1a0036 100%);
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 12px 12px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 77, 255, 0.1);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.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) var(--space-xl);
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.15) 0%, rgba(var(--color-secondary-rgb), 0.15) 100%);
    border-bottom: 1px solid rgba(124, 77, 255, 0.15);
    flex-shrink: 0;
}

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

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(233, 30, 99, 0.2);
    border-color: rgba(233, 30, 99, 0.4);
    color: #e91e63;
}

.modal-body {
    padding: var(--space-xl);
    overflow-y: auto;
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--leading-relaxed);
    flex: 1;
}

.modal-body h2,
.modal-body h3,
.modal-body h4 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.modal-body p {
    margin-bottom: var(--space-md);
}

.modal-body a {
    color: #e91e63;
    text-decoration: underline;
    text-decoration-color: rgba(233, 30, 99, 0.3);
    text-underline-offset: 2px;
}

.modal-body a:hover {
    text-decoration-color: #e91e63;
}


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

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

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.breadcrumb-item a {
    color: #718096;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: #e91e63;
}

.breadcrumb-item:not(:last-child)::after {
    content: '\203A';
    color: #a0aec0;
    margin-left: var(--space-xs);
    font-size: 1.1em;
}

.breadcrumb-item:last-child {
    color: #2d3748;
    font-weight: var(--font-medium);
}


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

.pagination {
    display: flex;
    justify-content: center;
    padding: var(--space-xl) 0;
}

.pagination-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
    margin: 0;
}

.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);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(30, 17, 71, 0.6);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination-list li a:hover {
    color: #fff;
    background: rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.3);
    transform: translateY(-2px);
}

.pagination-current,
.pagination-list li .pagination-current {
    background: linear-gradient(135deg, var(--color-primary), #e91e63) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.pagination-ellipsis {
    color: rgba(255, 255, 255, 0.4);
    min-width: auto;
    background: transparent !important;
    border: none !important;
}

.pagination-prev,
.pagination-next {
    font-weight: var(--font-bold);
}


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

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

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #fdf2f8;
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: var(--radius-full);
    color: #c2185b;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.tag:hover {
    background: #fce7f3;
    border-color: rgba(233, 30, 99, 0.4);
    color: #e91e63;
    transform: translateY(-1px);
}

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

.tags-section {
    padding: var(--space-3xl) 0;
}

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

.tags-header h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #fff;
    margin-bottom: var(--space-sm);
}

.tags-header p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(124, 77, 255, 0.08);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
}

.tag-pill:hover {
    background: rgba(233, 30, 99, 0.12);
    border-color: rgba(233, 30, 99, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.12);
}

.tag-pill-name {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.tag-pill:hover .tag-pill-name {
    color: #fff;
}

.tag-pill-count {
    font-size: 0.65rem;
    font-weight: var(--font-bold);
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 24px;
    text-align: center;
    transition: all var(--transition-fast);
}

.tag-pill:hover .tag-pill-count {
    background: rgba(233, 30, 99, 0.2);
    color: #e91e63;
}


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

.article-content {
    color: #2d3748;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.article-content h1 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: #1a202c;
    margin-bottom: var(--space-lg);
    line-height: var(--leading-tight);
}

.article-content h2 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #1a202c;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(233, 30, 99, 0.2);
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #e91e63);
}

.article-content h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: #1a202c;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.article-content h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: #2d3748;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

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

.article-content a {
    color: #c2185b;
    text-decoration: underline;
    text-decoration-color: rgba(194, 24, 91, 0.3);
    text-underline-offset: 3px;
    transition: all var(--transition-fast);
}

.article-content a:hover {
    color: #e91e63;
    text-decoration-color: #e91e63;
}

.article-content strong,
.article-content b {
    color: #1a202c;
    font-weight: var(--font-bold);
}

.article-content em,
.article-content i {
    color: #2d3748;
}

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

.article-content ul li {
    position: relative;
    padding-left: var(--space-sm);
    margin-bottom: var(--space-sm);
    list-style: none;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: calc(var(--space-lg) * -1);
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #e91e63);
}

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

.article-content ol li::marker {
    color: #e91e63;
    font-weight: var(--font-bold);
}

.article-content blockquote {
    margin: var(--space-xl) 0;
    padding: var(--space-lg) var(--space-xl);
    background: #f7f2f5;
    border-left: 4px solid #e91e63;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #4a5568;
    font-style: italic;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--space-md) 0;
}

.article-content figure {
    margin: var(--space-xl) 0;
}

.article-content figure.image {
    margin: var(--space-lg) 0;
}

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

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

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

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

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-content thead {
    background: #f7f2f5;
}

.article-content th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: var(--font-bold);
    color: #1a202c;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(233, 30, 99, 0.2);
}

.article-content td {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: var(--text-sm);
}

.article-content tbody tr:hover {
    background: #fdf2f8;
}

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

/* Code */
.article-content code {
    padding: 2px 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: #c2185b;
}

.article-content pre {
    margin: var(--space-xl) 0;
    padding: var(--space-lg);
    background: #1e1147;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.article-content pre code {
    padding: 0;
    background: transparent;
    border: none;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
}

/* Horizontal Rule */
.article-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 30, 99, 0.3), transparent);
    margin: var(--space-2xl) 0;
}

/* Video embeds */
.article-content iframe {
    max-width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(124, 77, 255, 0.15);
}

.article-content .w3 {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: var(--space-xl) 0;
}

.article-content .w3 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-content .org {
    color: var(--color-primary);
    font-weight: var(--font-semibold);
}


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

.article-tags-section {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid #e2e8f0;
}

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

.article-tags-icon {
    width: 24px;
    height: 24px;
    color: #e91e63;
}

.article-tags-icon svg {
    width: 100%;
    height: 100%;
}

.article-tags-title {
    font-size: var(--text-base);
    font-weight: var(--font-bold);
    color: #1a202c;
}

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

.article-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #f7f2f5;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-full);
    color: #4a5568;
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.article-tag:hover {
    background: #fdf2f8;
    border-color: rgba(233, 30, 99, 0.35);
    color: #c2185b;
}


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

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

.sidebar-widget {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: #1a202c;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid rgba(233, 30, 99, 0.2);
    position: relative;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), #e91e63);
}

.sidebar-widget .tag {
    margin-bottom: var(--space-xs);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: #4a5568;
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.sidebar-widget ul li a:hover {
    color: #e91e63;
    padding-left: var(--space-xs);
}


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

.footer {
    background: #06020c;
    color: rgba(255, 255, 255, 0.55);
    padding: 60px 0 0;
    position: relative;
    margin-top: auto;
}

/* Footer grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(233, 30, 99, 0.3));
}

.footer-logo span {
    font-size: 1.15rem;
    font-weight: var(--font-bold);
    color: #fff;
    letter-spacing: 0.01em;
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    max-width: 360px;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.footer-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #e91e63;
    color: #e91e63;
    font-size: 0.7rem;
    font-weight: var(--font-bold);
    flex-shrink: 0;
}

.footer-badge span:last-child {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Columns */
.footer-col {
    padding-top: 4px;
}

.footer-heading {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 14px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: #e91e63;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
    position: relative;
}

.footer-links a:hover {
    color: #e91e63;
    padding-left: 6px;
}

/* Bottom bar */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.28);
    margin: 0;
}


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

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

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    font-size: var(--text-base);
    font-family: inherit;
    color: #fff;
    background: rgba(30, 17, 71, 0.5);
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    outline: none;
}

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

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15), 0 0 20px rgba(233, 30, 99, 0.1);
    background: rgba(30, 17, 71, 0.7);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23e91e63' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-error);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form-success {
    font-size: var(--text-sm);
    color: var(--color-success);
    padding: var(--space-md);
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}


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

.stats-section {
    padding: var(--space-4xl) 0;
    background: #0f0025;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/ref/world-map.png') center / contain no-repeat;
    opacity: 0.03;
    pointer-events: none;
}

.stats-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 300px at 20% 50%, rgba(233, 30, 99, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 80% 50%, rgba(var(--color-secondary-rgb), 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(30, 17, 71, 0.3);
    border: 1px solid rgba(124, 77, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: rgba(30, 17, 71, 0.5);
    border-color: rgba(233, 30, 99, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--color-primary), #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    font-weight: var(--font-medium);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


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

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.error-code {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: var(--font-bold);
    background: linear-gradient(135deg, var(--color-primary), #e91e63, var(--color-secondary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-md);
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(233, 30, 99, 0.3));
}

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

.error-text,
.error-message {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xl);
    max-width: 500px;
    line-height: var(--leading-relaxed);
}


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

.related-articles {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid #e2e8f0;
}

.related-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: #1a202c;
    margin-bottom: var(--space-xl);
    position: relative;
    padding-bottom: var(--space-sm);
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #e91e63);
    border-radius: 3px;
}


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

.seo-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

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

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

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

.seo-content a {
    color: #e91e63;
    text-decoration: underline;
    text-decoration-color: rgba(233, 30, 99, 0.3);
    text-underline-offset: 3px;
}

.seo-content a:hover {
    color: #f48fb1;
    text-decoration-color: #f48fb1;
}

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

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

.seo-content-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.seo-content-tags a {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(30, 17, 71, 0.6);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.seo-content-tags a:hover {
    background: rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.3);
    color: #fff;
}


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

.notification {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(145deg, #1e1147 0%, #231455 100%);
    border: 1px solid rgba(124, 77, 255, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

.notification-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notification-close:hover {
    background: rgba(233, 30, 99, 0.15);
    color: #e91e63;
}

.notification-success {
    border-color: rgba(40, 167, 69, 0.3);
    background: linear-gradient(145deg, rgba(40, 167, 69, 0.1), rgba(30, 17, 71, 0.6));
}

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

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(145deg, #1e1147, #231455);
    border: 1px solid rgba(124, 77, 255, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 12px 12px 50px rgba(0, 0, 0, 0.5);
    z-index: var(--z-tooltip);
    min-width: 300px;
    max-width: 450px;
    animation: toast-slide-in 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    backdrop-filter: blur(12px);
}

.toast-notification.toast-hiding {
    animation: toast-slide-out 0.3s ease forwards;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
}

.toast-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toast-success {
    border-color: rgba(40, 167, 69, 0.35);
}

.toast-success .toast-icon {
    color: var(--color-success);
}

.toast-error {
    border-color: rgba(220, 53, 69, 0.35);
}

.toast-error .toast-icon {
    color: var(--color-error);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}


/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #1a0036 0%, #0f0025 100%);
    z-index: calc(var(--z-modal) + 10);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(124, 77, 255, 0.15);
    box-shadow: -12px 0 50px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

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

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(233, 30, 99, 0.1);
    border: 1px solid rgba(233, 30, 99, 0.2);
    border-radius: var(--radius-md);
    color: #e91e63;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
    background: rgba(233, 30, 99, 0.2);
    box-shadow: 0 0 15px rgba(233, 30, 99, 0.2);
}

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

.mobile-nav-links {
    padding: var(--space-md) 0;
    flex: 1;
}

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

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

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.mobile-nav-link:hover {
    color: #fff;
    background: rgba(233, 30, 99, 0.08);
}

.mobile-nav-link.active {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.06);
    border-left: 3px solid #e91e63;
}

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

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

.mobile-nav-dropdown {
    display: none;
    padding: 0 0 var(--space-sm);
    background: rgba(0, 0, 0, 0.15);
}

.mobile-nav-dropdown a,
.mobile-nav-all {
    display: block;
    padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-2xl);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.mobile-nav-dropdown a:hover,
.mobile-nav-all:hover {
    color: #fff;
    background: rgba(233, 30, 99, 0.06);
}

.mobile-nav-dropdown a.active,
.mobile-nav-all.active {
    color: #e91e63;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 0, 26, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: calc(var(--z-modal) + 5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

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


/* ==========================================================================
   PRELOADED CONTENT
   ========================================================================== */

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


/* ==========================================================================
   SECTION TITLES (dark theme overrides)
   ========================================================================== */

.section-title {
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-header .section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #e91e63);
    margin: var(--space-sm) auto 0;
    border-radius: 3px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.55);
}


/* ==========================================================================
   SCROLLBAR (dark theme)
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a001a;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 77, 255, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.5);
}


/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
    background: rgba(233, 30, 99, 0.35);
    color: #fff;
}

::-moz-selection {
    background: rgba(233, 30, 99, 0.35);
    color: #fff;
}


/* ==========================================================================
   FOCUS STYLES
   ========================================================================== */

:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #e91e63;
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
