@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0a0b10;
    --bg-card: rgba(18, 20, 32, 0.45);
    --bg-card-hover: rgba(22, 25, 43, 0.7);
    --bg-header: rgba(10, 11, 16, 0.8);
    --border-color: rgba(255, 255, 255, 0.04);
    --border-hover: rgba(var(--color-accent-rgb), 0.35);
    --text-primary: #ffffff;
    --text-secondary: #9499ab;
    --color-accent: #00aeff;
    --color-accent-rgb: 0, 174, 255;
    --color-success: #10b981;
    --shadow-glow: 0 0 40px rgba(var(--color-accent-rgb), 0.25);
    --transition-speed: 0.4s;
    --card-glow: rgba(var(--color-accent-rgb), 0.15);
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-main) !important;
    min-height: 100%;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-main) !important;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(168, 85, 247, 0.03) 0%, transparent 40%) !important;
    background-attachment: fixed !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 120px;
}

/* Dynamic Ambient Glow Spots in Background */
body::before, body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    filter: blur(140px);
    opacity: 0.15;
    animation: pulseGlow 12s infinite alternate;
}

body::before {
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 80%);
    top: -200px;
    left: 20%;
}

body::after {
    background: radial-gradient(circle, #a855f7 0%, transparent 80%);
    bottom: -200px;
    right: 10%;
    animation-delay: 6s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.15) translate(40px, 30px); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-20px, -40px); opacity: 0.12; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-accent-rgb), 0.4);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

.container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Floating Navigation */
.header {
    background-color: var(--bg-header);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.03);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-accent);
}

.logo span {
    color: var(--color-accent);
}

.navbar-wrapper ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.navbar-wrapper ul li a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-speed);
}

.navbar-wrapper ul li a:hover,
.navbar-wrapper ul li.active a {
    color: var(--text-primary);
}

.navbar-wrapper ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar-wrapper ul li a:hover::after,
.navbar-wrapper ul li.active a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-vk {
    height: 40px;
    padding: 0 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-speed);
}

.btn-vk:hover {
    background: var(--color-accent);
    color: #000;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.navbar-mobile {
    display: none;
    color: var(--text-primary);
    font-size: 20px;
    padding: 8px;
}

/* Immersive AAA Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.08) 0%, rgba(20, 10, 40, 0.15) 100%), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 75%, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 5;
}

.hero-badge {
    background: rgba(var(--color-accent-rgb), 0.06);
    border: 1px solid rgba(var(--color-accent-rgb), 0.15);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}

.online-pill {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.online-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    z-index: 5;
    background: linear-gradient(135deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

/* Centered hero adjustments (Wiki / Support) */
.hero-banner[style*="text-align: center"] .hero-badge {
    display: inline-flex;
    margin: 0 auto 20px auto;
}

.hero-banner[style*="text-align: center"] .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    position: relative;
    z-index: 5;
}

.btn {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 700;
    border-radius: 16px;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.btn-hero {
    height: 52px;
    padding: 0 32px;
    background: var(--color-accent);
    color: #000;
    border: none;
    font-size: 15px;
    box-shadow: 0 10px 30px rgba(var(--color-accent-rgb), 0.3);
    gap: 12px;
    border-radius: 100px;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(var(--color-accent-rgb), 0.5);
    filter: brightness(1.05);
}

.server-btn:not(.active):hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-1px);
}

/* Widescreen Hero Image character with blending gradient */
.hero-character {
    position: absolute;
    right: 48px;
    bottom: -1px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
    z-index: 2;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%), linear-gradient(to left, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%), linear-gradient(to left, rgba(0,0,0,1) 80%, rgba(0,0,0,0) 100%);
}

.hero-character img {
    height: 92%;
    max-height: 310px;
    object-fit: contain;
    animation: floatCharacter 6s ease-in-out infinite;
}

@keyframes floatCharacter {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Stats Row */
.stats-section {
    margin-top: 40px;
    margin-bottom: 64px;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.stat-card {
    background: rgba(18, 20, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--color-accent-rgb), 0.25);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(var(--color-accent-rgb), 0.06);
    border: 1px solid rgba(var(--color-accent-rgb), 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Tab Links redesign */
.tabs-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 40px;
}

.tabs .tab-links {
    display: flex;
    gap: 10px;
    list-style: none;
    flex-wrap: wrap;
}

.tabs .tab-links > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.01);
    transition: all var(--transition-speed);
}

.tabs .tab-links > li.active > a {
    background: rgba(var(--color-accent-rgb), 0.08);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.1);
}

.tabs .tab-links > li > a:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.tabs-wrapper .block-right .btn {
    font-size: 13px;
    height: 44px;
    padding: 0 20px;
    border-radius: 14px;
}

.tabs-wrapper .block-right .btn:hover {
    border-color: var(--border-hover);
}

/* Category description text */
.tab-list > .tab-id {
    display: none;
}

.tab-list > .tab-id.active {
    display: block;
}

.category-text {
    margin-bottom: 36px;
}

.category-text .panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 18px 24px;
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Ultra-Premium AAA Item Cards */
.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 28px;
}

.item-id {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Card diagonal sheen/shine transition */
.item-id::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.item-id:hover::before {
    left: 150%;
}

.item-id:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-10px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5), 
        0 0 35px var(--card-glow);
}

.item-id .image {
    width: 88px;
    height: 88px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin-bottom: 28px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.item-id:hover .image {
    transform: scale(1.12) rotate(2deg) translateY(-4px);
}

.item-id .title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.item-id .price {
    font-size: 14px;
    font-weight: 800;
    color: #000;
    background: var(--color-accent);
    padding: 10px 24px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    border: none;
    box-shadow: 0 4px 15px rgba(var(--color-accent-rgb), 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.item-id:hover .price {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(var(--color-accent-rgb), 0.6);
}

.item-id .price i {
    font-size: 11px;
    color: #000;
}

.item-id .discount {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    animation: discountPulse 2s infinite alternate;
}

@keyframes discountPulse {
    0% { transform: scale(1); box-shadow: none; }
    100% { transform: scale(1.03); box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
}

/* Recent Purchases Section */
.payments {
    margin-top: 72px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
}

.blockname {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.payment-id.window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.payment-id.window .image {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.payment-id.window .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-id.window .player {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-id.window .amount {
    background: rgba(255, 255, 255, 0.05);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

/* Checkout Modal UI */
.modal {
    position: fixed;
    display: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(3, 4, 7, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
}

.modal > .wrapper {
    display: flex;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
    height: 100%;
}

.modal > .wrapper > .modal-content {
    background-color: #0d0e15;
    border: 1px solid var(--border-color);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    padding: 36px;
    width: 100%;
    border-radius: 32px;
}

.modal-header {
    font-size: 20px;
    font-weight: 800;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.modal-body {
    padding: 28px 0 0 0;
}

.modal-split {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .modal-split {
        flex-direction: column;
    }
}

.modal-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-right {
    flex: 1;
    border-left: 1px solid var(--border-color);
    padding-left: 32px;
}

@media (max-width: 768px) {
    .modal-right {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 28px;
    }
}

/* Forms input elements */
.input-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-block label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-block input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 100%;
    height: 50px;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-speed);
    outline: none;
}

.input-block input:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 20px rgba(var(--color-accent-rgb), 0.15);
}

.payment-selection {
    display: flex;
    flex-direction: column;
}

.payment-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-method {
    display: block;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.method-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.payment-method input[type="radio"]:checked + .method-card {
    background: rgba(var(--color-accent-rgb), 0.06);
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 15px rgba(var(--color-accent-rgb), 0.15);
}

/* Modal Buttons in Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.modal-footer button {
    height: 48px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.modal-footer #submitBtn {
    background: var(--color-accent);
    color: #000;
    border: none;
    box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), 0.25);
}

.modal-footer #submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(var(--color-accent-rgb), 0.45);
}

.modal-footer .btn-clear {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.modal-footer .btn-clear:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.02);
}

/* Accordion FAQ UI */
.faq-section {
    margin-top: 72px;
    border-top: 1px solid var(--border-color);
    padding-top: 48px;
    margin-bottom: 40px;
}

.faq-section .blockname {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color var(--transition-speed);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    padding: 20px 28px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-question i {
    color: var(--color-accent);
    font-size: 13px;
    transition: transform var(--transition-speed);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding: 0 28px 20px 28px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Floating background items */
#interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1; /* Float items behind text and content */
    overflow: hidden;
}

.bg-item {
    position: absolute;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    /* Rotation and movement are animated in JS + CSS */
}

/* Centered Promo Countdown pill */
.promo-timer {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--color-accent-rgb), 0.05);
    border: 1px solid rgba(var(--color-accent-rgb), 0.15);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
    gap: 14px;
}

.promo-text {
    font-weight: 800;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.time-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.time-box span {
    font-variant-numeric: tabular-nums;
}

.time-box small {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Toast purchases alerts */
.purchase-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(13, 14, 21, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    max-width: 320px;
}

.purchase-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.purchase-toast .avatar {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.purchase-toast-info .toast-title {
    font-size: 11px;
    color: var(--text-secondary);
}

.purchase-toast-info .toast-desc {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Widescreen Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 56px 0;
    margin-top: 96px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 12px;
}

.footer-copy {
    max-width: 650px;
    line-height: 1.8;
}

.footer-contacts {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 600;
    transition: color var(--transition-speed);
}

.contact-value:hover {
    color: var(--color-accent);
}

/* Scroll Fade in classes */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   WINTER HOLIDAY THEME OVERLAYS & EFFECTS
   ========================================================================= */
body.new-year {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(239, 68, 68, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 100% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 0%, rgba(var(--color-accent-rgb), 0.08) 0%, transparent 50%);
}

/* Santa Hat on First Letter of Logo / Title */
body.new-year .hat-letter {
    position: relative;
    display: inline-block;
}

body.new-year .logo .hat-letter {
    color: var(--color-accent) !important;
    -webkit-text-fill-color: var(--color-accent) !important;
}

body.new-year .hero-title .hat-letter {
    background: linear-gradient(to bottom, #ffffff 60%, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

body.new-year .hat-letter::before {
    content: '';
    position: absolute;
    background-image: url('../img/head.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
}

/* Adjust hat sizes and positions for different sections */
body.new-year .logo .hat-letter::before {
    top: -8px; /* Perfectly sits on E */
    left: 1px; /* Centered on E */
    width: 22px;
    height: 18px;
    transform: rotate(-12deg); /* Slightly less tilted for a cuter look */
}

body.new-year .hero-title .hat-letter::before {
    top: -20px; /* Perfectly adjusted height */
    left: -2px; /* Centered on E, moved away from N */
    width: 48px; /* Slightly smaller to prevent overlapping N */
    height: 38px;
    transform: rotate(-14deg); /* Beautiful cozy tilt */
}

/* Festive Glowing Christmas Garlands */
.garland-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: space-around;
    z-index: 10;
    pointer-events: none;
}

.lightbulb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation-duration: 1.2s;
    animation-iteration-count: infinite;
}

.lightbulb:nth-child(5n+1) { background: #ef4444; animation-name: flash-red; }
.lightbulb:nth-child(5n+2) { background: #10b981; animation-name: flash-green; }
.lightbulb:nth-child(5n+3) { background: #3b82f6; animation-name: flash-blue; }
.lightbulb:nth-child(5n+4) { background: #eab308; animation-name: flash-gold; }
.lightbulb:nth-child(5n+5) { background: #a855f7; animation-name: flash-purple; }

@keyframes flash-red {
    0%, 100% { background: #ef4444; box-shadow: none; }
    50% { background: #ff7f7f; box-shadow: 0 0 12px #ef4444, 0 0 24px #ef4444; }
}

@keyframes flash-green {
    0%, 100% { background: #10b981; box-shadow: none; }
    50% { background: #6ee7b7; box-shadow: 0 0 12px #10b981, 0 0 24px #10b981; }
}

@keyframes flash-blue {
    0%, 100% { background: #3b82f6; box-shadow: none; }
    50% { background: #93c5fd; box-shadow: 0 0 12px #3b82f6, 0 0 24px #3b82f6; }
}

@keyframes flash-gold {
    0%, 100% { background: #eab308; box-shadow: none; }
    50% { background: #fef08a; box-shadow: 0 0 12px #eab308, 0 0 24px #eab308; }
}

@keyframes flash-purple {
    0%, 100% { background: #a855f7; box-shadow: none; }
    50% { background: #d8b4fe; box-shadow: 0 0 12px #a855f7, 0 0 24px #a855f7; }
}

/* Festive cards adjustments in Winter */
body.new-year .item-id:hover {
    border-color: rgba(var(--color-accent-rgb), 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5), 
        0 0 35px rgba(var(--color-accent-rgb), 0.15);
}

/* Snowflake falling effect container */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1.2rem;
    pointer-events: none;
    opacity: 0.8;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-20px) rotate(0deg); opacity: 0.8; }
    100% { transform: translateY(105vh) rotate(360deg); opacity: 0.2; }
}

/* Responsive viewport settings */
@media (max-width: 992px) {
    .hero-title { font-size: 42px; }
    .hero-character { display: none; }
}

@media (max-width: 768px) {
    .header { width: calc(100% - 24px); top: 12px; }
    .navbar { height: 60px; padding: 0 16px; }
    .navbar-wrapper { display: none; }
    .navbar-mobile { display: block; }
    .hero-banner { padding: 48px 24px; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px auto; }
    .hero-badge { margin: 0 auto 16px auto; }
    .hero-header-row { justify-content: center; }
    .tabs-wrapper { flex-direction: column; align-items: stretch; }
    .tabs-wrapper .block-right { display: none; }
    .tabs .tab-links { justify-content: center; }
}