: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%);
}

[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%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    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 */
}

/* 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: 30px;
    padding-right: 30px;
}

/* Theme Transition Overlay */
.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));
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 1100px;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    padding: 16px 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);
}

/* На десктопі: ховаємо мобільну версію, показуємо десктопну */
.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);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    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: 16px 20px;
        width: calc(100% - 20px);
        /* 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% - 20px);
        /* 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 h1 {
    font-size: 72px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.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: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.about-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    /* Робить обидві картки однакової висоти */
}

.about-card,
.about-image-card {
    flex: 1;
    /* Розділяє простір 50/50 */
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card {
    padding: 50px;
    text-align: left;
    /* Змінив на ліворуч для кращого вигляду в парі */
}

.about-image-card {
    position: relative;
    overflow: hidden;
    /* Щоб картинка не вилазила за радіус кутів */
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Картинка заповнює контейнер без деформації */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ефекти наведення для обох карток */
.about-card:hover,
.about-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-hover);
    border-color: var(--accent-color);
}

.about-image-card:hover .about-img {
    transform: scale(1.15);
    /* Легкий зум картинки */
}

.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(350px, 1fr));
    gap: 30px;
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.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 20px 60px var(--shadow-hover);
    border-color: var(--accent-color);
}

.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;
}

code {
    background: var(--bg-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--text-primary);
    border: 1px dashed var(--border-color);
    transition: all 0.3s ease;
}

code.copy-text {
    cursor: pointer;
    position: relative;
}

code.copy-text:hover {
    background: var(--accent-hover);
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

code.copy-text:active {
    transform: scale(0.98);
}

/* Team Section */
.team-section {
    margin: 80px 0;
}

.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;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.team-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 64px;
    flex: 1;
    min-width: 250px;
}

.team-category {
    flex: 1;
    min-width: 250px;
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.category-icon {
    font-size: 20px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.team-card {
    flex: 1 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-hover);
    border-color: var(--accent-color);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.member-avatar.has-image {
    background: transparent;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
}

.member-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.member-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* 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;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: var(--accent-hover);
    color: var(--accent-color);
}

/* 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);
}

[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;
}

.stat-value.copy-ip {
    cursor: pointer;
    text-decoration: none;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    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: var(--bg-card);
    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 */
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.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.4);
    padding: 20px;
    border-radius: 16px;
    border: 1px dashed var(--border-color);
}

[data-theme="dark"] .roadmap-item {
    background: rgba(0, 0, 0, 0.2);
}

.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.active {
    display: flex;
    /* animation handled by children for better control */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    /* Removed padding to let children handle it */
    max-width: 800px;
    /* Increased from 600px */
    width: 90%;
    border: 0px solid var(--accent-color);
    /* Added orange border */
    box-shadow: 0 20px 60px var(--shadow-color);
    opacity: 0;
    animation: modalPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.1s;
    overflow: hidden;
}

.member-modal.active .modal-content {
    box-shadow: 0 0 0 1px var(--accent-color),
        0 0 40px rgba(249, 134, 82, 0.4),
        0 20px 60px var(--shadow-color);
}

.member-modal.closing .modal-content {
    animation: modalClose 0.4s cubic-bezier(0.6, 0, 0.8, 0.4) forwards;
}

.member-modal.closing .modal-overlay {
    animation: fadeOut 0.4s ease-out forwards;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-gradient);
    transform: rotate(90deg);
}

.modal-layout {
    display: flex;
    min-height: 450px;
}

.modal-skin-container {
    flex: 0 0 320px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.modal-skin-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    overflow: visible;
    position: relative;
}

.modal-skin-wrapper canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    cursor: grab;
    transition: filter 0.3s ease;
}

.modal-skin-wrapper canvas:hover {
    filter: drop-shadow(0 20px 40px rgba(249, 134, 82, 0.3));
}

.modal-skin-wrapper canvas:active {
    cursor: grabbing;
}

/* 3D Skin Loader */
.skin-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    z-index: 5;
}

.skin-loader p {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.skin-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(249, 134, 82, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skin Error */
.skin-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
    padding: 20px;
}

.skin-error-icon {
    font-size: 48px;
    opacity: 0.7;
}

.skin-error p {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.modal-info-container {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-title h3 {
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-title p {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-bio {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 24px;
    background: rgba(121, 85, 72, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(121, 85, 72, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

[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: 10px;
    align-self: flex-start;
}

.modal-role {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-gradient);
    border-radius: 10px;
    border: none;
    font-size: 12px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px var(--shadow-hover);
    transition: all 0.3s ease;
}

.modal-role.role-supervisor {
    background: linear-gradient(135deg, #8799ae 0%, #6692c5 100%);
}

.modal-role.role-team {
    background: linear-gradient(135deg, #9e6bff 0%, #6239ad 100%);
}

.modal-role.role-makers {
    background: linear-gradient(135deg, #ffb84e 0%, #f5910e 100%);
}

.modal-role.role-innovator {
    background: linear-gradient(135deg, #ff8d64 0%, #c1461a 100%);
}

.modal-role.role-перша-леді {
    background: linear-gradient(135deg, #e1c3ff 0%, #cfa0ff 100%);
}

.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;
    }
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fffca0 0%, #f98652 50%, #a5343a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    animation: pulse 2s infinite ease-in-out;
}

/* Promo Modal Premium Styles */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.promo-modal {
    background: var(--bg-navbar);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.promo-modal-overlay.active .promo-modal {
    transform: scale(1) translateY(0);
}

.promo-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.promo-close:hover {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    transform: rotate(90deg);
}

.promo-header {
    margin-bottom: 20px;
}

.promo-header-icon {
    font-size: 48px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 126, 95, 0.3));
}

.promo-header h3 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 0;
}

.promo-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.promo-code-container {
    background: rgba(249, 134, 82, 0.1);
    border: 2px dashed var(--accent-color);
    border-radius: 16px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-code-container:hover {
    background: rgba(249, 134, 82, 0.15);
    transform: translateY(-2px);
    border-style: solid;
}

.promo-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-color);
}

.copy-icon {
    color: var(--text-secondary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.promo-code-container:hover .copy-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.copy-feedback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-feedback.show {
    opacity: 1;
}

/* 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));
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(165, 52, 58, 0.1);
    border-top-color: var(--accent-color);
    border-left-color: #a5343a;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@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;
    }
}

/* --- 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;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .cabinet-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}