:root {
    --bg-primary: #e8e2d9;

    --bg-secondary: #dcd4c9;
    --bg-card: #f5f2ed;

    --bg-navbar: #f5f2ed;
    --bg-footer: #f9f3e863;

    --text-primary: #1a1614;
    --text-secondary: #453e3a;
    --text-muted: #6d645e;

    --accent-color: #f98652;
    --accent-gradient: linear-gradient(135deg, #f98652 0%, #d84315 100%);
    --accent-highlight: #ffccbc;
    --accent-hover: rgba(216, 67, 21, 0.15);

    --border-color: rgba(0, 0, 0, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.12);
    --shadow-hover: rgba(249, 134, 82, 0.3);

    --floating-gradient: radial-gradient(circle, rgba(249, 134, 82, 0.08) 0%, transparent 70%);
    --sponsor-text: #000000;
    /* Deep charcoal for light theme */
}

[data-theme="dark"] {
    /* Dark Theme: Warm Charcoal (No Redness) */
    --bg-primary: #1c1917;
    /* Warm Black */
    --bg-secondary: #292524;
    /* Warm Dark Grey */
    --bg-card: rgba(41, 37, 36, 0.85);
    --bg-navbar: rgba(28, 25, 23, 0.95);
    --bg-footer: #1c1917;

    --text-primary: #e7e5e4;
    /* Warm White */
    --text-secondary: #a8a29e;
    /* Warm Light Grey */
    --text-muted: #78716c;
    /* Warm Grey */

    --accent-gradient: linear-gradient(135deg, #f98652 0%, #a5343a 100%);
    --accent-highlight: #fffca0;
    --accent-color: #f98652;
    --accent-hover: rgba(249, 134, 82, 0.15);

    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(249, 134, 82, 0.15);

    --floating-gradient: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    --sponsor-text: #ffffff;
    /* Brilliant white for dark theme */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    animation: pageFadeIn 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

.content {
    flex: 1 0 auto;
    padding-top: 140px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: clamp(16px, 4vw, 30px);
    padding-right: clamp(16px, 4vw, 30px);
    width: 100%;
}

@media (max-width: 768px) {
    .content {
        padding-top: 90px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.3;
}

.theme-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    mix-blend-mode: normal;
    pointer-events: none;
}

.theme-transition-overlay.active {
    animation: themeExpand 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes themeExpand {
    0% {
        opacity: 0.3;
        clip-path: circle(0% at var(--x) var(--y));
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        clip-path: circle(150% at var(--x) var(--y));
    }
}

/* Site Version Transition Overlay */
.version-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at center, #1b203b 0%, #0d1021 100%);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: 'Outfit', 'Manrope', sans-serif;
}

.version-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.version-loader-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(249, 134, 82, 0.2);
    border-top-color: #f98652;
    border-right-color: #ff9d6c;
    border-radius: 50%;
    animation: versionSpinner 0.75s linear infinite;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(249, 134, 82, 0.3);
}

@keyframes versionSpinner {
    to {
        transform: rotate(360deg);
    }
}

.version-transition-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #ffda99 50%, #f98652 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: calc(100% - 60px);
    max-width: 1140px;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 16px clamp(15px, 3vw, 30px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
}

.navbar.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 126, 95, 0.3));
}

.navbar-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(255, 126, 95, 0.5));
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    background: var(--accent-hover);
    color: var(--accent-color);
}

.nav-links a.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.cabinet-btn {
    margin-left: auto;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(249, 134, 82, 0.1);
    border: 1px solid var(--accent-color);
    position: relative;
}

.global-chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b30;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
    pointer-events: none;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.global-chat-badge i {
    font-size: 10px;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* На десктопі: ховаємо мобільну версію, показуємо десктопну */
.cabinet-btn-mobile {
    display: none !important;
}

.cabinet-btn-desktop {
    display: flex;
}

.cabinet-btn:hover {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--shadow-hover);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--accent-gradient);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px var(--accent-hover);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon-wrapper {
    position: relative;
    width: 24px;
    height: 24px;
}

.sun-icon,
.moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Single Floating Edge-Peek Version Switcher (V1) */
.floating-version-toggle {
    position: fixed;
    bottom: 110px;
    right: 0;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 16px 0 7px;
    background: linear-gradient(135deg, rgba(249, 134, 82, 0.95), rgba(255, 107, 107, 0.95));
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-right: none;
    border-radius: 22px 0 0 22px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: -4px 6px 20px rgba(249, 134, 82, 0.35), inset 0 1px rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: translateX(calc(100% - 44px));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    outline: none;
    text-decoration: none;
}

.floating-version-toggle:hover,
.floating-version-toggle:focus-visible {
    transform: translateX(0);
    box-shadow: -6px 8px 25px rgba(249, 134, 82, 0.5), inset 0 1px rgba(255, 255, 255, 0.6);
}

.floating-version-toggle .version-tab-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.floating-version-toggle .version-tab-text {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
}

/* Mobile version toggle inside menu */
.version-mobile-item {
    width: 100%;
    margin-top: 6px;
}

.version-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(249, 134, 82, 0.2), rgba(255, 107, 107, 0.2));
    border: 1px solid rgba(249, 134, 82, 0.4);
    color: var(--text-color, #ffffff) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.version-btn-mobile:hover,
.version-btn-mobile:active {
    background: var(--accent-gradient, linear-gradient(135deg, #f98652, #ff6b6b));
    color: #ffffff !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    margin-left: auto;
    width: 40px;
    height: 40px;
}

.hamburger-menu span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
        width: calc(100% - 40px);
        gap: 10px;
        left: 50%;
        transform: translateX(-50%) translateY(0);
    }

    .navbar.hidden {
        transform: translateX(-50%) translateY(-120px);
    }

    .navbar.visible {
        transform: translateX(-50%) translateY(0);
    }

    .hamburger-menu {
        display: flex;
        order: 2;
    }

    .logo-link {
        order: 1;
    }

    /* Ховаємо десктопну версію кнопки кабінету */
    .cabinet-btn-desktop {
        display: none !important;
    }

    /* Мобільне меню - тепер включає кнопку кабінету */
    .nav-links {
        position: fixed;
        top: 85px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: calc(100% - 40px);
        /* 10px відступ з кожного боку */
        max-width: 500px;
        background: var(--bg-navbar);
        backdrop-filter: blur(20px);
        border-radius: 18px;
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 8px 32px var(--shadow-color);
        border: 1px solid var(--border-color);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        padding: 14px 20px;
        justify-content: flex-start;
        font-size: 16px;
    }

    /* Мобільна версія кнопки кабінету всередині меню */
    .cabinet-btn-mobile {
        display: none !important;
        /* За замовчуванням схована */
        position: static;
        width: 100%;
        margin: 15px 0 0 0;
        padding: 14px 20px;
        font-size: 16px;
        justify-content: center;
        order: 10;
        box-shadow: none;
        background: rgba(249, 134, 82, 0.05) !important;
        border: 1px solid var(--accent-color) !important;
        color: var(--text-primary) !important;
        border-radius: 12px;
    }

    /* Показуємо мобільну версію тільки коли меню активне */
    .nav-links.active .cabinet-btn-mobile {
        display: flex !important;
    }

    .theme-toggle {
        order: 3;
    }

    /* Overlay для закриття меню */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    /* Stable parent for particles */
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    letter-spacing: -2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    line-height: 1.3;
    position: relative;
    z-index: 10;
    /* Above particles */
}

@media (max-width: 768px) {
    .hero {
        padding: 50px 15px 40px;
    }

    .hero-title-wrapper {
        height: 80px;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    @media (max-width: 480px) {
        .hero-title-wrapper {
            height: 60px;
        }

        .hero h1 {
            font-size: 34px;
        }
    }
}

.typing-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 5;
}

.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 0.9em;
    background: var(--accent-color);
    margin-left: 2px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: 5;
    position: relative;
}

.typing-cursor.active {
    opacity: 1;
}

/* Sponsor Particles */
.sponsor-particle {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--sponsor-text);
    pointer-events: none;
    z-index: 1;
    /* Behind the text */
    letter-spacing: 0.05em;
    opacity: 0;
    white-space: nowrap;
    text-transform: lowercase;
    animation: sponsorFly 12s linear forwards;
    /* Very slow linear glide */
}

@keyframes sponsorFly {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.9);
    }

    15% {
        opacity: 0.5;
        /* Appear early near/on the text */
        transform: translate(calc(var(--tx) * 0.15), calc(var(--ty) * 0.15)) scale(1);
    }

    85% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1.05);
    }
}

@media (max-width: 768px) {
    .sponsor-particle {
        font-size: 10px;
    }
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
/* About Section */
.about-section {
    margin: 30px 0;
    /* Reduced from 60px */
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.about-container {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.about-card {
    flex: 2;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    padding: 30px 40px;
    /* Smaller padding */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image-card {
    flex: 1;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    min-height: 280px;
    /* Reduced height */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.about-image-card img {
    pointer-events: none;
}

.collage-modal-overlay {
    user-select: none;
    -webkit-user-select: none;
}

.collage-stack img {
    pointer-events: none;
}

/* ── Promo Flip Scene - Tight layout ── */
.promo-flip-scene {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Smaller gaps */
    padding: 15px;
    perspective: 900px;
}

.promo-flip-label {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* standard version */
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    z-index: 2;
    text-align: center;
    width: 100%;
}

/* 3D spinning card deck - Centered front card with right-leaning fan */
.promo-cards-3d {
    position: relative;
    width: 160px;
    height: 200px;
    transform-style: preserve-3d;
    animation: promo-deck-float 6s ease-in-out infinite;
    /* Manual nudge left to balance the fanning cards on the right */
    margin-left: -55px;
}

@keyframes promo-deck-float {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(4deg) translateY(0px);
    }

    50% {
        transform: rotateY(-15deg) rotateX(4deg) translateY(-8px);
    }
}

.promo-card-3d {
    position: absolute;
    width: 160px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.promo-card-3d--1 {
    transform: translateZ(0px);
    /* Exactly in the center */
    z-index: 3;
}

.promo-card-3d--2 {
    transform: translateZ(-15px) translateX(15px) rotate(5deg);
    z-index: 2;
    opacity: 0.9;
}

.promo-card-3d--3 {
    transform: translateZ(-30px) translateX(30px) rotate(10deg);
    z-index: 1;
    opacity: 0.8;
}

/* Each card subtly pulses its depth */
@keyframes promo-card-spin {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(0.9);
    }
}

.promo-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Blurred gradient overlay on top of each photo */
.promo-card-blur-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: linear-gradient(160deg,
            rgba(20, 10, 30, 0.15) 0%,
            rgba(255, 126, 95, 0.08) 100%);
}

/* Hover: tilt more and blur less */
.about-image-card:hover .promo-cards-3d {
    animation-play-state: paused;
    transform: rotateY(-24deg) rotateX(8deg) scale(1.05);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-image-card:hover .promo-card-blur-overlay {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: linear-gradient(160deg, rgba(20, 10, 30, 0.05) 0%, rgba(255, 126, 95, 0.04) 100%);
    transition: all 0.5s ease;
}

/* Subtle text hint below the cards */
.promo-subtle-hint {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.85;
    margin: 5px 0 0;
    transition: all 0.3s ease;
    z-index: 2;
    user-select: none;
    position: relative;
}

.about-image-card:hover .promo-subtle-hint {
    opacity: 1;
    color: var(--accent-color);
    letter-spacing: 0.15em;
}

/* Hover effects for both about cards */
.about-card:hover,
.about-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--accent-color);
    z-index: 10;
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.about-card h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-card p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Адаптивність для планшетів та телефонів */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        /* Складаємо один під одного */
    }

    .about-image-card {
        height: 300px;
        /* Фіксована висота для картинки на мобільних */
    }

    .about-card {
        text-align: center;
        padding: 35px 25px;
    }
}

/* Server Info */
.server-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

@media (max-width: 768px) {
    .server-info {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }
}

.info-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--accent-color);
    z-index: 10;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 32px;
}

.info-header h3 {
    font-size: 24px;
    color: var(--text-primary);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Version / IP Tags - Modern & Clean */
code.version-tag {
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    width: 100%;
}

code.version-tag:hover {
    border-color: var(--accent-color);
    background: var(--bg-card);
    transform: scale(1.02) translateY(-2px);
    /* Removed large shadow */
    letter-spacing: 0.5px;
}

/* New IP Copy Box (Replaces simple code class) */
.copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Subtle Shimmer Effect */
.copy-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.08),
            transparent);
    transition: 0.6s;
    pointer-events: none;
}

.copy-box:hover::after {
    left: 150%;
}

.copy-box:hover {
    border-color: var(--accent-color);
    background: var(--bg-card);
    transform: translateY(-2px);
    /* Removed large shadow as requested */
}

.copy-box .ip-text {
    flex: 1;
    background: none;
    padding: 0;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.copy-icon-animate {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.copy-icon-animate i {
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-muted);
}

.icon-check {
    position: absolute;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    color: var(--accent-color) !important;
    /* Changed from green to accent */
}

/* Hover Effects */
.copy-box:hover .icon-copy {
    animation: iconGentleRotate 4s linear infinite;
    color: var(--accent-color);
}

@keyframes iconGentleRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Copied State Styling */
.copy-box.copied {
    border-color: var(--accent-color);
    background: var(--bg-card);
    animation: copied-pulse 0.4s ease-out;
}

@keyframes copied-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
        border-width: 2px;
    }

    100% {
        transform: scale(1);
    }
}

.copy-box.copied .icon-copy {
    opacity: 0;
    transform: scale(0) rotate(360deg);
}

.copy-box.copied .icon-check {
    opacity: 1;
    transform: scale(1.1) rotate(0deg);
}

.copy-box.copied .ip-text {
    color: var(--accent-color);
    /* Changed from green to accent */
}

.copy-box:active {
    transform: scale(0.98);
}

code {
    background: var(--bg-primary);
    padding: 10px 14px;
    border-radius: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* --- Team Section Redesign (Premium iPhone Style) --- */
.team-section {
    padding: 100px 0;
    position: relative;
    z-index: 5;
}

.section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

.team-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: stretch;
    /* All columns have same height */
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Column wrapper for vertical grouping */
.team-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 30px;
    grid-column: span 1;
    height: 100%;
}

.team-category {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 28px 22px 18px 22px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: visible;
}

@supports not (backdrop-filter: blur(25px)) {
    .team-category {
        background: #f8f8f8;
    }
}

[data-theme="dark"] .team-category {
    background: rgba(41, 37, 36, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@supports not (backdrop-filter: blur(25px)) {
    [data-theme="dark"] .team-category {
        background: #292524;
    }
}

@media (min-width: 769px) {
    .team-group-vertical {
        height: 390px;
    }

    .team-container .team-category {
        height: 390px;
        padding: 28px 9px 18px 16px;
        /* Standard fixed height for single categories */
    }

    .team-group-vertical .team-category {
        height: calc(50% - 15px);
        /* Share the vertical space equally */
    }
}

.team-category:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px var(--shadow-hover);
}

[data-theme="dark"] .team-category:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* --- Category Specific 3D Themes (Minimalist Wealthy Style) --- */
.category-supervisor {
    --cat-color: #6692c5;
    --cat-bg: rgba(102, 146, 197, 0.1);
}

.category-lady {
    --cat-color: #c5a8e2;
    --cat-bg: rgba(235, 215, 255, 0.1);
}

.category-innovator {
    --cat-color: #ff8d64;
    --cat-bg: rgba(255, 141, 100, 0.1);
}

.category-team {
    --cat-color: #9e6bff;
    --cat-bg: rgba(158, 107, 255, 0.1);
}

.category-makers {
    --cat-color: #f5910e;
    --cat-bg: rgba(245, 145, 14, 0.1);
}

.category-supervisor .team-grid,
.category-lady .team-grid {
    justify-content: center;
    overflow-y: hidden;
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

.category-title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 32px;
    /* Fixed height for all badges to be identical */
    padding: 0 16px;
    /* Padding only horizontally */
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 13px;
    /* Force single line */
    max-width: 90%;
    overflow: hidden;
    z-index: 10;
    box-sizing: border-box;
    /* Crucial for fixed height */
}

[data-theme="dark"] .category-title {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.team-category:hover .category-title {
    background: var(--cat-color);
    transform: translate(-50%, -55%) scale(1.05);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category-icon {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    color: var(--text-primary);
    transition: all 0.4s ease;
}

/* Maintain NATURAL emoji colors while giving 3D depth to the pill */
.category-icon span {
    display: inline-flex;
    align-items: center;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.team-category:hover .category-icon {
    transform: scale(1.05);
    -webkit-text-fill-color: #fff;
    /* White text on hover for contrast */
    color: #fff;
    filter: drop-shadow(0 0 8px var(--cat-color));
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Increased gap to prevent overlap on hover */
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px 10px 8px;
    justify-content: flex-start;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 12px, black calc(100% - 12px), transparent 100%);
}

/* Custom premium scrollbar for team member list */
.team-grid::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.team-grid::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

[data-theme="dark"] .team-grid::-webkit-scrollbar-track {
    background: transparent;
}

.team-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    transition: background 0.3s ease;
}

[data-theme="dark"] .team-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
}

.team-grid::-webkit-scrollbar-thumb:hover {
    background: var(--cat-color);
}

.team-grid.empty-state {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    /* Sufficient height to be 'in the middle' */
}

.team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
}

[data-theme="dark"] .team-card {
    background: rgba(255, 255, 255, 0.02);
}

.team-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--cat-color);
    transform: translateX(4px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px var(--cat-color);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.member-avatar.has-image {
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .member-avatar img {
    transform: scale(1.1);
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.member-info p {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.8;
}

/* Dynamic Island Style Accent Bar */
.team-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 0 0 10px 10px;
    opacity: 0.3;
    transition: all 0.4s ease;
}

.team-category:hover::before {
    width: 80px;
    opacity: 1;
    height: 5px;
}

/* Responsive Team */
@media (max-width: 1200px) {
    .team-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .team-container {
        grid-template-columns: 1fr;
    }
}

/* Info Section */
.info-section {
    margin: 80px 0 100px;
    animation: fadeInUp 0.8s ease-out 0.9s backwards;
}

.info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-block {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-hover);
}

.block-title {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



/* Footer */
.footer {
    flex-shrink: 0;
    background: var(--bg-footer);
    color: var(--text-secondary);
    padding: 30px 0 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}



.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px 20px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-link {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link.disabled {
    color: var(--text-muted);
    opacity: 0.5;
    cursor: default;
}

.footer-link.disabled:hover {
    color: var(--text-muted);
    transform: none;
}

.footer-link.disabled::before {
    display: none;
}

.footer-bottom {
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 30px;
}

.footer-logo {
    width: 60px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(249, 134, 82, 0.3));
}

.footer-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 3px 10px rgba(249, 134, 82, 0.5));
}

.footer-text-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-text-content p {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0;
}

.footer-disclaimer {
    opacity: 0.7;
    font-size: 10px;
}

.footer-icon {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 6px;
    font-style: normal;
    color: var(--text-primary);
    opacity: 0.9;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-column {
        text-align: center;
        align-items: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* Member Modal */
.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* --- Info Dashboard Styles --- */
.info-dashboard {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
    animation: fadeInUp 0.8s ease-out;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 20px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.input-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

/* Status Card */
.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    box-shadow: 0 15px 35px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.status-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px var(--shadow-hover);
    border-color: var(--accent-color);
}

.status-indicator {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #ffeb3b;
    /* Default Loading Yellow */
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 235, 59, 0.6);
    transition: all 0.5s ease;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #ffeb3b;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
    opacity: 0;
    z-index: 1;
}

@keyframes pulse-status {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-content {
    width: 100%;
    z-index: 2;
}

.status-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    letter-spacing: -0.5px;
}

.status-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

@media (max-width: 480px) {
    .stat-item:has(.copy-ip) {
        min-width: 100%;
    }

    .stat-item {
        min-width: 120px;
        padding: 10px 15px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-value.copy-ip {
        font-size: 14px;
    }

    .status-content h2 {
        font-size: 20px;
    }

    .page-title {
        font-size: 32px;
    }
}

[data-theme="dark"] .stat-item {
    background: rgba(0, 0, 0, 0.2);
}

.stat-item:hover {
    background: var(--bg-primary);
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
}

.fb-text-pop {
    color: var(--accent-color);
    transition: all 0.3s ease;
    display: inline-block;
}

.feedback-btn-item {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.feedback-btn-item:hover .fb-text-pop {
    transform: scale(1.05);
    /* Slight pop effect */
}


.stat-value.copy-ip {
    cursor: pointer;
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 18px;
}

/* Fix width for IP container to prevent jumping */
.stat-item:has(.copy-ip) {
    cursor: pointer;
    min-width: 250px;
    /* Ensure enough space for IP and message */
}

.stat-item:has(.copy-ip):hover .stat-value.copy-ip {
    filter: brightness(1.2);
}

.stat-item.copied {
    border-color: var(--accent-color) !important;
    background: rgba(249, 134, 82, 0.15) !important;
    transform: translateY(-3px);
    /* Keep hover state */
}

.stat-item.copied .stat-value {
    /* Keep partially transparent gradient logic or just solid accent */
    color: var(--accent-color) !important;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.status-bg-icon {
    position: absolute;
    right: -30px;
    bottom: -50px;
    font-size: 200px;
    opacity: 0.05;
    transform: rotate(-15deg);
    pointer-events: none;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.status-card:hover .status-bg-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.08;
}

/* Status States */
.status-indicator.online .status-dot {
    background: #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.status-indicator.online .pulse-ring {
    border-color: #4caf50;
}

.status-indicator.offline .status-dot {
    background: #f44336;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.6);
}

.status-indicator.offline .pulse-ring {
    border-color: #f44336;
}

.status-indicator.starting .status-dot {
    background: #ff9800;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.6);
}

.status-indicator.starting .pulse-ring {
    border-color: #ff9800;
}

/* Map Card */
.map-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-hover);
    border-color: var(--accent-color);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.map-header h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.map-link-btn {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
}

.map-link-btn:hover {
    background: var(--accent-color);
    color: white;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    background: #000;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .map-container {
        height: 350px;
    }
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .social-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.social-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    /* Prevents flex items from overflowing */
}

.social-card:hover {
    transform: translateY(-5px);
    background: var(--bg-primary);
    /* Slight brighten */
    border-color: var(--accent-color);
}

.social-icon img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon img {
    transform: scale(1.1) rotate(5deg);
}

.social-text h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-text p {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-card:hover .social-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Resources Grid */
/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid .resource-card:last-child {
        grid-column: span 2;
        /* Center the last item on tablet if 3 items */
    }
}

@media (min-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .resources-grid .resource-card:last-child {
        grid-column: span 1;
    }
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Ensure clickable above decorations */
}

[data-theme="dark"] .resource-card {
    background: rgba(0, 0, 0, 0.2);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .resource-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.resource-icon {
    font-size: 48px;
    margin-bottom: 20px;
    background: var(--bg-primary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: inset 0 0 20px var(--shadow-color);
}

.resource-content h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.resource-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.resource-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    /* Simple default */
    color: var(--text-primary);
    /* Simple text */
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 20;
    /* distinct z-index for buttons */
    cursor: pointer;
    box-shadow: none;
}

.resource-btn:hover {
    background: var(--accent-gradient);
    /* Premium on hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-hover);
    border-color: transparent;
}

/* Remove specific override since base is now gradient */
/* Remove specific override since base is now gradient */
/* .resource-card.donate .resource-btn removed as it was empty */

.resource-card.donate .resource-btn:hover {
    box-shadow: 0 5px 20px var(--accent-hover);
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.roadmap-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme="dark"] .roadmap-item {
    background: rgba(0, 0, 0, 0.2);
}

.roadmap-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .roadmap-item:hover {
    background: rgba(0, 0, 0, 0.3);
}

.roadmap-status {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--accent-hover);
    color: var(--accent-color);
    margin-bottom: 10px;
}

.roadmap-item h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.roadmap-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Member Modal Redesign (Premium iPhone Style) --- */
.member-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    animation: modalOverlayFadeIn 0.5s ease-out forwards;
}

.member-modal.closing .modal-overlay {
    animation: modalOverlayFadeOut 0.5s ease-in forwards;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: 40px;
    padding: 0;
    max-width: 850px;
    width: 92%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0;
    /* HIGH-END SPRING ANIMATION */
    animation: modalSpringIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: center center;
    perspective: 1000px;
}

[data-theme="dark"] .modal-content {
    background: rgba(30, 27, 23, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 50px 120px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.member-modal.closing .modal-content {
    animation: modalSpringOut 0.5s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes modalSpringIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(100px) rotateX(-20deg);
        filter: blur(15px);
    }

    60% {
        opacity: 1;
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
        filter: blur(0);
    }
}

@keyframes modalSpringOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0) rotateX(0);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(60px) rotateX(15deg);
        filter: blur(10px);
    }
}

@keyframes modalOverlayFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes modalOverlayFadeOut {
    to {
        opacity: 0;
    }
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}

[data-theme="dark"] .modal-close {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.05);
}

.modal-close:hover {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.1);
    border-color: transparent;
}

.modal-close i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-layout {
    display: flex;
    min-height: 500px;
}

.modal-skin-container {
    flex: 0 0 380px;
    background: radial-gradient(circle at center, rgba(249, 134, 82, 0.15), transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    /* Expanded view area */
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .modal-skin-container {
    border-color: rgba(255, 255, 255, 0.05);
    background: radial-gradient(circle at center, rgba(249, 134, 82, 0.1), transparent 80%);
}

.modal-skin-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.modal-skin-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    cursor: grab;
    transition: transform 0.3s ease;
    outline: none;
}

.modal-info-container {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header {
    margin-bottom: 30px;
}

.modal-title h3 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.modal-title p {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 24px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

[data-theme="dark"] .modal-bio {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.modal-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.modal-role {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: none;
}

[data-theme="dark"] .modal-role {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.modal-role.role-supervisor {
    background: linear-gradient(135deg, rgba(135, 153, 174, 0.2), rgba(102, 146, 197, 0.2));
    border-color: #6692c5;
    color: #6692c5;
}

.modal-role.role-team {
    background: linear-gradient(135deg, rgba(158, 107, 255, 0.2), rgba(98, 57, 173, 0.2));
    border-color: #9e6bff;
    color: #9e6bff;
}

.modal-role.role-makers {
    background: linear-gradient(135deg, rgba(255, 184, 78, 0.2), rgba(245, 145, 14, 0.2));
    border-color: #f5910e;
    color: #f5910e;
}

.modal-role.role-innovator {
    background: linear-gradient(135deg, rgba(255, 141, 100, 0.2), rgba(193, 70, 26, 0.2));
    border-color: #ff8d64;
    color: #ff8d64;
}

.modal-role.role-перша-леді {
    background: linear-gradient(135deg, rgba(225, 195, 255, 0.2), rgba(207, 160, 255, 0.2));
    border-color: #cfa0ff;
    color: #cfa0ff;
}

.modal-role:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- Premium iPhone-Style 3D Loader --- */
.skin-loader-premium {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 100;
    pointer-events: none;
    animation: loaderFadeIn 0.3s ease-out;
}

.loader-shimmer {
    width: 60px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .loader-shimmer {
    background: rgba(255, 255, 255, 0.1);
}

.loader-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            var(--accent-color),
            transparent);
    animation: shimmerSlide 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.skin-loader-premium span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.8;
    animation: pulseLoader 2s infinite ease-in-out;
}

@keyframes shimmerSlide {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulseLoader {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.98);
    }

    50% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes loaderFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive fixes for modal */
@media (max-width: 850px) {
    .modal-skin-container {
        flex: 0 0 350px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

.modal-role:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
    }

    .modal-skin-container {
        flex: 0 0 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .modal-info-container {
        padding: 25px;
    }

    .modal-content {
        max-width: 90%;
    }

    .modal-title h3 {
        font-size: 28px;
    }
}


/* Floating Elements */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: var(--floating-gradient);
    pointer-events: none;
    animation: float 20s infinite ease-in-out;
    transition: background 0.6s ease;
}

.floating-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.floating-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -10s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}



/* Collage Modal — full rewrite */
.collage-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, backdrop-filter 0.5s ease, background 0.5s ease;
}

.collage-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(14px);
}

/* Sync text and blur fade-out with card retreat */
.collage-modal-overlay.closing {
    opacity: 0;
    backdrop-filter: blur(0px);
    background: rgba(0, 0, 0, 0);
    transition: opacity 0.6s ease, backdrop-filter 0.6s ease, background 0.6s ease;
}

.collage-modal-overlay.closing .collage-title,
.collage-modal-overlay.closing .collage-hint {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

/* Entering Animation */
/* Entering Animation */
.collage-modal-overlay.launching .collage-stack {
    animation: cards-fly-in 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Closing Animation: fly back into trigger */
.collage-modal-overlay.closing .collage-stack {
    animation: cards-fly-out 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes cards-fly-in {
    0% {
        transform: var(--fly-origin, translateY(300px) scale(0.2));
        opacity: 0;
        filter: blur(10px);
    }

    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        filter: blur(0px);
    }
}

@keyframes cards-fly-out {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
        filter: blur(0px);
    }

    100% {
        transform: var(--fly-origin, translateY(300px) scale(0.2));
        opacity: 0;
        filter: blur(10px);
    }
}

.collage-title {
    font-size: 28px;
    color: #ff4d6d;
    font-weight: 700;
    font-family: 'Georgia', serif;
    font-style: italic;
    text-align: center;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(255, 77, 109, 0.45);
    flex-shrink: 0;
    user-select: none;
    margin: 0;
}

.collage-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2010;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collage-close:hover {
    background: rgba(255, 69, 58, 0.5);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 69, 58, 0.4);
}

.collage-close:active {
    transform: scale(0.95);
}

.collage-close i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stack container - Centered */
.collage-stack {
    position: relative;
    width: 280px;
    height: 370px;
    flex-shrink: 0;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card base — JS controls all transforms */
.collage-card {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.collage-card.is-dragging {
    cursor: grabbing;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.collage-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    -webkit-user-drag: none;
}

.collage-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 48px 20px 18px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 18px 18px;
}

.collage-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    user-select: none;
    margin: 10px 0 0 0;
    position: relative;
    z-index: 2005;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Cursor pointer for the trigger */
#promoTrigger {
    cursor: pointer !important;
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 10;
}

#promoTrigger * {
    pointer-events: none;
}

#promoTrigger:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(255, 126, 95, 0.2));
}



@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.92);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes modalClose {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
        filter: blur(3px);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        width: 95%;
        padding: 12px 20px;
    }

    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .theme-toggle {
        width: 42px;
        height: 42px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

    .about-card {
        padding: 35px 25px;
    }

    .about-card h2 {
        font-size: 26px;
    }

    .about-card p {
        font-size: 16px;
    }

    .server-info {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }

    .team-container {
        flex-direction: column;
    }

    .team-grid {
        flex-direction: column;
    }

    .info-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .modal-content {
        padding: 30px 25px;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== NEW MINIMALIST FOOTER ===== */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 0;
    flex-shrink: 0;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 18px clamp(16px, 3vw, 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* Brand / title image */
.footer-brand {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    /* Reduced gap */
}

.footer-title-img {
    height: 44px;
    /* Slightly smaller logo */
    width: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 126, 95, 0.3));
    transition: filter 0.4s ease, transform 0.3s ease;
}

.footer-title-img:hover {
    filter: drop-shadow(0 0 12px rgba(255, 126, 95, 0.5));
    transform: scale(1.03);
}

.footer-creator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.85;
    letter-spacing: 0.1px;
    transition: opacity 0.3s ease;
    text-transform: lowercase;
    /* Lowercase as requested */
    display: block;
    line-height: 1;
}

.empty-list-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    /* Refined size, but with spacing it looks better */
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.5;
    letter-spacing: 0.8px;
    text-transform: lowercase;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    pointer-events: none;
    user-select: none;
    animation: emptyStateMinimal 4s ease-in-out infinite;
    position: relative;
    padding: 60px 0;
}

.empty-list-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--cat-color) 0%, transparent 70%);
    opacity: 0.04;
    pointer-events: none;
    animation: glowMinimal 6s ease-in-out infinite;
}

@keyframes emptyStateMinimal {

    0%,
    100% {
        opacity: 0.35;
        transform: translateY(0);
        letter-spacing: 0.8px;
        color: var(--text-muted);
    }

    50% {
        opacity: 0.75;
        transform: translateY(-8px);
        letter-spacing: 1.5px;
        color: var(--cat-color);
        /* Subtle color breathe */
    }
}

@keyframes glowMinimal {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.03;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0.07;
    }
}

.footer-brand:hover .footer-creator {
    opacity: 0.9;
}

/* Vertical divider */
.footer-divider-v {
    width: 1px;
    height: 50px;
    background: var(--border-color);
    flex-shrink: 0;
    opacity: 0.6;
}

/* Navigation links — 4-column × 2-row grid, grouped in the center */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    row-gap: 4px;
    column-gap: clamp(25px, 5vw, 60px);
    align-items: start;
    justify-content: center;
    justify-items: start;
}

.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    white-space: nowrap;
    position: relative;
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav-link i {
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--accent-color);
}

.footer-nav-link:hover::after {
    width: 100%;
}

.footer-nav-link:hover i {
    opacity: 1;
    color: var(--accent-color);
    transform: translateY(-1px);
}

.footer-nav-disabled {
    opacity: 0.75;
    cursor: default;
    pointer-events: none;
}

/* Mobile: icon-only compact row */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        align-items: center;
        padding: 16px 20px 20px;
        gap: 14px;
    }

    .footer-divider-v {
        display: none;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 100%;
        max-width: 340px;
    }

    .footer-nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 10px;
        background: transparent;
        /* Kill all text — font-size:0 hides text nodes that span can't target */
        font-size: 0 !important;
        white-space: nowrap;
        transition: background 0.2s ease;
    }

    .footer-nav-link:hover {
        background: rgba(255, 126, 95, 0.1);
    }

    /* Restore icon size only */
    .footer-nav-link i {
        font-size: 17px !important;
        opacity: 0.7;
        margin: 0;
        transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
    }

    .footer-nav-link:hover i {
        opacity: 1;
        color: var(--accent-color);
        transform: translateY(-2px);
    }

    /* Hide span text labels */
    .footer-nav-link span {
        display: none !important;
    }

    .footer-title-img {
        height: 34px;
    }
}

/* --- Server Detail Modal (Beautiful Plaque) --- */
.server-modal-overlay {
    position: fixed;

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.server-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.server-modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 600px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy subtle effect */
    overflow: hidden;
}

.server-modal-overlay.active .server-modal-content {
    transform: scale(1) translateY(0);
}

.server-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.server-modal-close:hover {
    background: var(--accent-color);
    color: white;
    transform: rotate(90deg);
}

.server-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.server-modal-header h3 {
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.server-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 8px #4caf50;
    animation: pulse 2s infinite;
}

.server-modal-grid {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.modal-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.player-column {
    border-right: 1px solid var(--border-color);
    max-width: 350px;
    background: rgba(0, 0, 0, 0.02);
}

.chat-column {
    flex: 2;
    background: var(--bg-primary);
    position: relative;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-count-badge {
    background: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.player-list-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling for list */
.player-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.player-list-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.player-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
    margin-bottom: 4px;
}

.player-list-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .player-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.player-head {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.player-name {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-primary);
}

.player-list-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Chat Styling */
.chat-display {
    flex: 1;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 15px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

[data-theme="dark"] .chat-display {
    background: rgba(0, 0, 0, 0.2);
}

.chat-message {
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
    word-break: break-word;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3px 0;
}

.chat-time {
    color: var(--text-muted);
    font-size: 11px;
    margin-right: 6px;
    opacity: 0.6;
    font-family: 'JetBrains Mono', monospace;
}

.chat-player-name {
    font-weight: 700 !important;
    color: #f98652 !important;
    /* Force Orange */
}

.chat-separator {
    color: #666;
    /* Dark Gray */
    margin: 0 5px;
    font-size: 12px;
}

.chat-content {
    color: #ffffff !important;
    /* Force White */
    font-weight: 400;
}

.system-message .chat-content {
    color: #aaa !important;
    /* Light Grey for System */
    font-style: italic;
}

/* Chat Input */
.chat-input-area {
    display: flex;
    gap: 10px;
}

.chat-input-field {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.chat-input-field:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.05);
}

.chat-send-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness for Modal */
@media (max-width: 768px) {
    .server-modal-content {
        width: 95%;
        height: 90vh;
        flex-direction: column;
        overflow-y: auto;
    }

    .server-modal-grid {
        flex-direction: column;
        overflow: visible;
    }

    .player-column {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 200px;
        /* Limit height on mobile */
    }

    .chat-column {
        flex: 1;
        min-height: 300px;
    }
}

/* ===== LOGIN MODAL ===== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    border: 2px solid var(--accent-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-overlay.active .login-modal {
    transform: scale(1) translateY(0);
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.login-close-btn:hover {
    background: var(--accent-hover);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.login-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-description {
    background: rgba(249, 134, 82, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.login-description strong {
    color: var(--accent-color);
    font-weight: 600;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.login-input {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.login-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 134, 82, 0.1);
}

.login-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

/* Code input with # prefix */
.code-input-wrapper {
    position: relative;
}

.code-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
    pointer-events: none;
}

.login-input.code-input {
    padding-left: 30px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.login-submit-btn {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.login-submit-btn:active {
    transform: translateY(0);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== ERROR NOTIFICATIONS ===== */
.error-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--bg-card);
    border-left: 4px solid #e63946;
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.error-icon {
    font-size: 24px;
    color: #e63946;
    flex-shrink: 0;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.error-content {
    flex: 1;
}

.error-title {
    font-size: 16px;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 5px;
}

.error-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.error-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.error-close:hover {
    background: rgba(230, 57, 70, 0.1);
    color: #e63946;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-modal {
        padding: 30px 20px;
        width: 95%;
        max-width: none;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .error-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ===== PERSONAL CABINET STYLES ===== */
.cabinet-content {
    padding-top: 120px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 80px;
}

/* Cabinet Header */
.cabinet-header {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cabinet-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gradient);
}

.cabinet-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.cabinet-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--accent-gradient);
    box-shadow: 0 8px 24px rgba(249, 134, 82, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cabinet-avatar:hover {
    transform: scale(1.05) rotate(2deg);
}

.cabinet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-user-info {
    flex: 1;
}

.cabinet-user-info h1 {
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.cabinet-tag-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-primary);
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    max-width: 300px;
    transition: all 0.3s ease;
}

.cabinet-tag-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 134, 82, 0.1);
}

.tag-at {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.cabinet-tag-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.cabinet-tag-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.tag-edit-icon {
    color: var(--text-muted);
    font-size: 14px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.cabinet-tag-container:hover .tag-edit-icon {
    opacity: 1;
    color: var(--accent-color);
}

/* Main Grid */
.cabinet-main-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
}

/* Cabinet Cards */
.cabinet-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 30px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cabinet-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cabinet-card:hover::before {
    opacity: 1;
}

.cabinet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    border-color: var(--accent-color);
}

.cabinet-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.cabinet-card-header i {
    font-size: 20px;
    color: var(--accent-color);
}

.cabinet-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Skin Card */
.skin-card {
    height: fit-content;
}

.cabinet-skin-viewer {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(249, 134, 82, 0.05) 0%, rgba(216, 67, 21, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cabinet-skin-viewer canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Right Column */
.cabinet-right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Bio Card */
.cabinet-bio-textarea {
    width: 100%;
    min-height: 150px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    line-height: 1.6;
}

.cabinet-bio-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 134, 82, 0.1);
}

.cabinet-bio-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.bio-char-count {
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Date Card */
.cabinet-date-input {
    width: 100%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.cabinet-date-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(249, 134, 82, 0.1);
}

/* Stats Card */
.cabinet-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cabinet-stats-grid .stat-item {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.cabinet-stats-grid .stat-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.cabinet-stats-grid .stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.cabinet-stats-grid .stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Save Animation */
@keyframes saveSuccess {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.saving {
    animation: saveSuccess 0.5s ease-in-out;
}

/* Mobile Responsiveness for Cabinet */
@media (max-width: 1200px) {
    .cabinet-main-grid {
        grid-template-columns: 1fr;
    }

    .skin-card {
        order: 2;
    }

    .cabinet-right-column {
        order: 1;
    }
}

@media (max-width: 768px) {
    .cabinet-content {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .cabinet-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .cabinet-avatar {
        width: 100px;
        height: 100px;
    }

    .cabinet-user-info h1 {
        font-size: 28px;
    }

    .cabinet-tag-container {
        max-width: 100%;
    }

    .cabinet-card {
        padding: 20px;
    }

    .cabinet-skin-viewer {
        height: 350px;
    }

    .cabinet-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Cabinet Notifications */
.cabinet-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--bg-card);
    border-left: 4px solid #2a9d8f;
    border-radius: 12px;
    padding: 20px 24px;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cabinet-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.cabinet-notification.error {
    border-left-color: #e63946;
}

.cabinet-notification i {
    font-size: 24px;
    flex-shrink: 0;
    animation: notificationIcon 0.5s ease-in-out;
}

@keyframes notificationIcon {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.notification-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Mobile Bottom Floating Nav — тільки для нової версії сайту (d:\KP\New). */
/* На старій версії сайту навігація — гамбургер (.hamburger / #hamburgerMenu). */
.mobile-bottom-nav,
.mobile-bottom-item,
.mobile-bottom-icon,
.mobile-bottom-label {
    display: none !important;
}

@media (max-width: 680px) {

    .floating-version-toggle,
    .floating-version-toggle-v2 {
        bottom: 24px !important;
    }
}