/* ================================================
   Hytale Monitoring - Main Stylesheet
   Color scheme: Hytale Teal/Blue (#0088CC to #00AAFF)
   ================================================ */

:root {
    --primary-color: #2ec4a4;
    --primary-dark: #1fa987;
    --primary-light: #57d8bd;
    --accent-green: #55FF55;
    --bg-dark: #0a0a0a;
    --bg-gradient-start: #000000;
    --bg-gradient-end: #0088CC;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.72);
    --text-light-muted: rgba(255, 255, 255, 0.65);
    --success-color: #00AA00;
    --danger-color: #FF5555;
    --warning-color: #FFAA00;
    --info-color: #55FFFF;
}

/* Yandex ads */
.ad-slot {
    margin: 0;
}

.ad-slot.is-filled {
    margin: 20px 0;
}

.ad-slot.is-empty {
    display: none;
}

.ad-card {
    border-radius: 16px;
    overflow: hidden;
}

.ad-slot:not(.is-filled) .ad-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.ad-card-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.ad-slot.is-filled .ad-card-body {
    padding: 16px;
}

.ad-card-body .ya-ad-slot {
    width: 100%;
}

.ad-slot--list-inline,
.ad-slot--sidebar,
.ad-slot--footer {
    margin: 0;
}

.ad-slot--list-inline.is-filled,
.ad-slot--sidebar.is-filled,
.ad-slot--footer.is-filled {
    margin: 0;
}

.server-card-ad {
    display: block;
}

.server-card-ad .ad-card {
    width: 100%;
}

.server-card-list .server-card-ad .ad-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

html:not([data-theme="light"]) .server-card-list .server-card-ad .ad-card {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.ad-card--sidebar .ad-card-body {
    padding: 0;
}

.ad-slot.is-filled .ad-card--sidebar .ad-card-body {
    padding: 12px;
}

.ad-strip {
    margin-top: 24px;
    padding: 12px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ad-strip.is-empty {
    display: none;
}

[data-theme="light"] .ad-strip {
    border-top-color: rgba(15, 23, 42, 0.08);
}

.ad-strip-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 992px) {
    .ad-strip-row {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .ad-strip-row .ad-slot {
        flex: 0 0 88%;
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .ad-slot.is-filled {
        margin: 16px 0;
    }

    .ad-slot.is-filled .ad-card-body {
        padding: 12px;
    }
}

/* ================================================
   Light Theme Variables
   ================================================ */
[data-theme="light"] {
    --bg-dark: #f1f4f8;
    --glass-bg: rgba(255, 255, 255, 0.96);
    --glass-border: rgba(15, 23, 42, 0.08);
    --primary-color: #2ec4a4;
    --primary-dark: #1fa987;
    --primary-light: #57d8bd;
    --text-light: #1f2937;
    --text-muted: rgba(31, 41, 55, 0.72);
    --text-light-muted: rgba(31, 41, 55, 0.6);
    --info-color: var(--primary-dark);
}

/* Light theme - fix text-light on light background */
[data-theme="light"] .lead.text-light,
[data-theme="light"] .text-light {
    color: rgba(33, 37, 41, 0.75) !important;
}

[data-theme="light"] .text-white {
    color: var(--text-light) !important;
}

[data-theme="light"] .lead.text-light.opacity-75 {
    color: rgba(33, 37, 41, 0.6) !important;
}

/* Light theme: keep text readable on dark cards/tables */
[data-theme="light"] .card.bg-dark,
[data-theme="light"] .table-dark {
    color: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .card.bg-dark .text-white,
[data-theme="light"] .card.bg-dark .text-light,
[data-theme="light"] .table-dark .text-white,
[data-theme="light"] .table-dark .text-light {
    color: rgba(248, 250, 252, 0.95) !important;
}

[data-theme="light"] .card.bg-dark .text-light-muted,
[data-theme="light"] .table-dark .text-light-muted {
    color: rgba(248, 250, 252, 0.72) !important;
}

[data-theme="light"] .card.bg-dark pre,
[data-theme="light"] .card.bg-dark code {
    color: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] body {
    background:
        radial-gradient(900px 500px at 12% -10%, rgba(0, 136, 204, 0.08), transparent 60%),
        radial-gradient(900px 500px at 88% 8%, rgba(85, 255, 85, 0.06), transparent 60%),
        #f3f5f9;
}

[data-theme="light"] .blob-container {
    background: #f4f6f9;
}

/* Blobs on light theme - balance green and blue blobs */
[data-theme="light"] .blob-1 {
    background: radial-gradient(circle, rgba(0, 136, 204, 0.25) 0%, rgba(0, 170, 255, 0) 70%) !important;
    opacity: 0.35 !important;
}

[data-theme="light"] .blob-2 {
    background: radial-gradient(circle, rgba(85, 255, 85, 0.3) 0%, rgba(85, 255, 85, 0) 70%) !important;
    opacity: 0.35 !important;
}

[data-theme="light"] .blob-3 {
    background: radial-gradient(circle, rgba(0, 170, 255, 0.2) 0%, rgba(0, 170, 255, 0) 70%) !important;
    opacity: 0.3 !important;
}

[data-theme="light"] .navbar,
[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .navbar-dark .navbar-brand,
[data-theme="light"] .navbar-dark .nav-link {
    color: var(--text-light) !important;
}

[data-theme="light"] .navbar-toggler {
    border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .navbar-toggler-icon {
    filter: invert(1) brightness(0.2);
}

[data-theme="light"] .glass-card,
[data-theme="light"] .card.glass-card {
    background: #ffffff;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden !important;
}

/* Ensure auth-card with glass-card gets same styling - override base .glass-card */
[data-theme="light"] .card.glass-card.auth-card,
[data-theme="light"] .glass-card.auth-card {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    overflow: hidden !important;
}

[data-theme="light"] .card.glass-card .card-body {
    border-radius: 20px;
    overflow: hidden;
}

[data-theme="light"] .card.glass-card .table-responsive {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

/* Optimize table-responsive for smooth scrolling */
.table-responsive {
    /* Enable hardware acceleration for smooth scrolling */
    transform: translateZ(0);
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    /* Prevent flickering during scroll */
    backface-visibility: hidden;
    /* Use contain for better isolation */
    contain: layout style paint;
    /* Optimize scrolling performance */
    overscroll-behavior: contain;
}

/* Optimize table rows inside table-responsive for performance */
.table-responsive .server-table tbody tr {
    /* Ensure rows are composited on their own layer */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* Isolate each row for better performance */
    contain: layout style paint;
}

[data-theme="light"] .card.glass-card .table thead:first-child tr:first-child th:first-child {
    border-top-left-radius: 20px;
}

[data-theme="light"] .card.glass-card .table thead:first-child tr:first-child th:last-child {
    border-top-right-radius: 20px;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .form-control::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus {
    background: #ffffff;
    color: #1a1a1a;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.15);
}

[data-theme="light"] .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .dropdown-item {
    color: #1a1a1a;
}

[data-theme="light"] .dropdown-item:hover,
[data-theme="light"] .dropdown-item.active {
    background: rgba(0, 170, 255, 0.1);
    color: var(--primary-color);
}

/* ================================================
   Base Styles
   ================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #0a0a0a;
    color: var(--text-light);
    font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
    position: relative;
}

/* ================================================
   Animated Background with Blobs
   ================================================ */

.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: #0a0a0a;
}

.blob-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.008;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: blob-float 20s infinite ease-in-out;
}

/* Main blob - centered at top */
.blob-1 {
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.5) 0%, rgba(0, 170, 255, 0) 70%);
    top: -450px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

/* Subtle accent blobs */
.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(85, 255, 85, 0.18) 0%, rgba(85, 255, 85, 0) 70%);
    bottom: -100px;
    left: 10%;
    animation-delay: -7s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.15) 0%, rgba(0, 170, 255, 0) 70%);
    top: 60%;
    right: 10%;
    animation-delay: -14s;
}

@keyframes blob-float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

/* ================================================
   Navigation
   ================================================ */

.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    margin: 1rem auto 0;
    width: 100%;
    border-radius: 16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive width matching Bootstrap containers */
@media (min-width: 576px) {

    .navbar,
    .footer {
        max-width: 540px;
    }
}

@media (min-width: 768px) {

    .navbar,
    .footer {
        max-width: 720px;
    }
}

@media (min-width: 992px) {

    .navbar,
    .footer {
        max-width: 960px;
    }

    /* Ensure nav items don't wrap on medium-large screens */
    .navbar-nav {
        flex-wrap: nowrap;
    }

    .navbar-nav .nav-item {
        flex-shrink: 0;
    }

    .nav-link {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {

    .navbar,
    .footer {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {

    .navbar,
    .footer {
        max-width: 1320px;
    }
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-light) !important;
    display: flex;
    align-items: center;
}

.navbar-brand .brand-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-brand .brand-text-short {
    display: none;
}

.navbar-brand i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light) !important;
    background: var(--glass-bg);
}

/* Prevent text wrapping in navbar navigation */
.navbar-nav {
    flex-wrap: nowrap;
}

.navbar-nav .nav-item {
    flex-shrink: 0;
}

/* Override Bootstrap nav-pills active state to use primary color */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--text-muted);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: var(--glass-bg);
    color: var(--text-light);
}

.dropdown-divider {
    border-color: var(--glass-border);
}

/* ================================================
   Main Content
   ================================================ */

.main-content {
    padding-top: 120px;
    padding-bottom: 50px;
}

/* Enable scroll for sidebar (personal account) */
.main-content .col-md-3 {
    overflow: visible;
}

.dashboard-sidebar-scroll {
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    overflow-x: visible;
    padding: 0.75rem 1rem 1.25rem;
}

.hero-section {
    padding: 2rem 0;
}

.hero-section h1 {
    text-shadow: 0 4px 20px rgba(46, 196, 164, 0.3);
}

/* Hytale word highlight with gradient */
.hytale-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    padding: 0.15em 0.4em;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.2);
}

[data-theme="light"] .hytale-highlight {
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.3);
}

.hero-section h1 .hytale-highlight {
    color: #fff;
}

[data-theme="light"] .hero-section h1 .hytale-highlight {
    color: #fff;
}

/* Remove highlight from footer */
.footer .hytale-highlight {
    background: none !important;
    color: inherit !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: inherit !important;
}

/* ================================================
   Glass Card Design
   ================================================ */

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Disable backdrop-filter on glass-card containing tables to prevent flickering during scroll */
.glass-card .table-responsive,
.glass-card .table,
.glass-card table {
    /* Force hardware acceleration and isolate scrolling */
    transform: translateZ(0);
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
}

/* Completely disable backdrop-filter when table is present to prevent flickering during scroll */
.glass-card:has(.table-responsive),
.glass-card:has(.table),
.glass-card:has(table) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Use solid background instead for better performance */
    background: rgba(10, 10, 10, 0.95) !important;
}

/* Fallback for browsers that don't support :has() */
.glass-card.with-table {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Use solid background instead for better performance */
    background: rgba(10, 10, 10, 0.95) !important;
}

[data-theme="light"] .glass-card.with-table,
[data-theme="light"] .glass-card:has(.table-responsive),
[data-theme="light"] .glass-card:has(.table),
[data-theme="light"] .glass-card:has(table) {
    background: rgba(255, 255, 255, 0.98) !important;
}

.glass-card.language-picker-card {
    overflow: visible;
}

[data-theme="light"] .glass-card.language-picker-card {
    overflow: visible !important;
}

/* Server form cards - consistent sizing */
.card.glass-card:first-of-type {
    margin-bottom: 1rem;
}

.card.glass-card.language-picker-card {
    margin-top: 0;
}

.server-form-body {
    padding: 1.75rem;
    padding-bottom: 1.25rem;
}

.server-form-body h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.server-form-body .mb-4:last-child {
    margin-bottom: 1rem !important;
}

.server-form-body .d-flex.gap-2 {
    margin-top: 1rem;
    margin-bottom: 0;
}

.glass-card.language-picker-card {
    margin-bottom: 0;
}

.glass-card.simple-card {
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.06);
}

/* SEO blocks (index page) */
.seo-section .card-body {
    padding: 22px 24px;
}

.seo-section-header {
    max-width: 860px;
    margin: 0 auto 18px;
}

.seo-section-header.seo-center {
    text-align: center;
}

.seo-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.seo-section-subtitle {
    color: var(--text-light-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.seo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
}

.seo-mini-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.seo-mini-title {
    font-weight: 600;
    color: #f8fafc;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.seo-mini-text {
    color: var(--text-light-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.seo-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(0, 136, 204, 0.2);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex: 0 0 44px;
    box-shadow: 0 6px 14px rgba(0, 136, 204, 0.2);
}

.seo-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
}

.seo-mode-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 170px;
    text-align: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.seo-mode-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 136, 204, 0.35);
    box-shadow: 0 12px 28px rgba(0, 136, 204, 0.18);
}

.seo-mode-card:focus-visible,
.seo-mini-card:focus-visible,
.seo-step-card:focus-visible {
    outline: 2px solid rgba(0, 136, 204, 0.6);
    outline-offset: 3px;
}

.seo-mode-title {
    font-weight: 600;
    color: #ffffff;
}

.seo-mode-desc {
    color: var(--text-light-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.seo-steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto;
}

.seo-step-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 108px;
}

.seo-step-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(0, 136, 204, 0.2);
    color: var(--primary-color);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
}

.seo-step-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.seo-step-text {
    margin: 0;
    color: var(--text-light-muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.seo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 1200px) {
    .seo-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .seo-feature-grid,
    .seo-steps-grid {
        grid-template-columns: 1fr;
    }
    .seo-section-header {
        text-align: left;
    }
}

[data-theme="light"] .seo-mini-card,
[data-theme="light"] .seo-mode-card,
[data-theme="light"] .seo-step-card {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .seo-mini-title,
[data-theme="light"] .seo-mode-title,
[data-theme="light"] .seo-step-title {
    color: #0f172a;
}

/* Fix banner image overflow in server cards */
.card.glass-card .card-img-top {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card.glass-card .card-img-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Override .glass-card for light theme auth-card */
[data-theme="light"] .glass-card.auth-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.glass-card:hover {
    border-color: rgba(0, 136, 204, 0.3);
    box-shadow: 0 12px 40px rgba(0, 136, 204, 0.15);
}

.glass-card.simple-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

/* Filters bar */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

.filter-field {
    flex: 1 1 180px;
    min-width: 0;
}

.filter-field.search {
    flex: 1.4 1 260px;
}

.filter-input-group .input-group-text {
    border-radius: 14px 0 0 14px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-light-muted);
    padding: 0 14px;
}

.filter-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-light);
    padding: 0 14px;
    box-shadow: none;
}

.filter-control:focus {
    border-color: rgba(0, 136, 204, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.18);
    background: var(--glass-bg);
    color: var(--text-light);
}

.filters-action {
    flex: 0 0 160px;
}

.filters-apply {
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

[data-theme="light"] .filters-bar .filter-control,
[data-theme="light"] .filters-bar .input-group-text {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: #e5e7eb;
}

[data-theme="light"] .filters-bar .filter-control:focus {
    border-color: rgba(0, 136, 204, 0.6);
    color: #0f172a;
    background: #ffffff;
}

[data-theme="light"] .filters-apply {
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.2);
}

/* Tags collapsing */
.tags-bar {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 15px;
}

.tags-bar-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 2px;
}

.tags-bar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    flex: 1 1 auto;
    align-items: center;
}

.tags-bar-count {
    color: var(--text-light-muted);
    font-size: 0.9rem;
    white-space: nowrap;
    align-self: flex-start;
    margin-top: 4px;
}

.tags-bar .tag-chip {
    margin: 0;
}

.tags-bar .tag-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tags-bar .tag-filter-label {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tags-bar .tag-checkbox:checked + .tag-filter-label {
    border-color: rgba(0, 136, 204, 0.5);
    background: rgba(0, 136, 204, 0.18);
    color: #e6f6ff;
}

.tags-bar .tag-filter-label:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.tags-more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    align-items: center;
    flex: 0 0 auto;
}

.tags-more.is-open {
    flex: 1 1 100%;
    margin-top: 6px;
}

.tags-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tags-more-toggle:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

/* Support requisites */
.support-requisites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.support-requisites-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.support-requisites-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.support-requisites-value {
    font-weight: 600;
    color: var(--text-light);
}

.support-requisites-value a {
    color: inherit;
}

.support-requisites-value a:hover {
    color: var(--primary-color);
}

[data-theme="light"] .support-requisites-item {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .support-requisites-value {
    color: #1f2937;
}

.support-contacts {
    display: grid;
    gap: 10px;
}

.support-contacts-item {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.support-contacts-item i {
    color: var(--primary-color);
}

.support-contacts-item a {
    color: var(--text-light);
}

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

[data-theme="light"] .support-contacts-item {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    color: #1f2937;
}

.documents-card .documents-section {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.documents-card .documents-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.documents-card .text-light-muted {
    color: rgba(255, 255, 255, 0.75);
}

.tags-more-toggle i {
    transition: transform 0.2s ease;
}

.tags-more.is-open .tags-more-toggle i {
    transform: rotate(180deg);
}

.tags-more-panel {
    display: none;
    flex-wrap: wrap;
    gap: 8px 10px;
    order: 1;
    flex: 1 1 auto;
}

.tags-more.is-open .tags-more-panel {
    display: flex;
}

.tags-more-toggle {
    order: 2;
}

[data-theme="light"] .tags-bar {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .tags-bar-icon {
    background: transparent;
    color: #667085;
}

[data-theme="light"] .tags-bar .tag-filter-label,
[data-theme="light"] .tags-more-toggle {
    border-color: transparent;
    background: transparent;
    color: #475467;
}

[data-theme="light"] .tags-bar-count {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .tags-bar .tag-checkbox:checked + .tag-filter-label {
    border-color: rgba(0, 136, 204, 0.35);
    background: rgba(0, 136, 204, 0.12);
    color: #0b4d6b;
}

[data-theme="light"] .tags-more-toggle:hover,
[data-theme="light"] .tags-bar .tag-filter-label:hover {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
    color: #344054;
}

/* Hover эффект для auth-card - тусклая приятная обводка */
.auth-card:hover,
.glass-card.auth-card:hover,
.card.glass-card.auth-card:hover {
    border-color: rgba(0, 136, 204, 0.3);
    box-shadow: 0 12px 40px rgba(0, 136, 204, 0.15);
    transform: none !important;
}

.glass-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-light);
    font-weight: 600;
}

.glass-card .card-footer {
    background: transparent;
    border-top: 1px solid var(--glass-border);
}

/* ================================================
   Server Table
   ================================================ */

.server-table {
    color: var(--text-light);
    width: 100%;
}

.server-table thead th {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.server-table tbody tr,
table.server-table tbody tr,
.table.server-table tbody tr,
.table-hover.server-table tbody tr,
.server-table tbody tr.server-row,
.server-table tbody tr.server-row-banner {
    background: var(--glass-bg) !important;
    /* Removed backdrop-filter from rows to prevent flickering on scroll - parent .glass-card already has it */
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: table-row !important;
    transform-origin: center;
    position: relative;
    /* Optimize for smooth scrolling */
    will-change: background-color, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.server-table tbody tr:last-child {
    border-bottom: none;  /* Remove bottom border from last row */
}

.server-table tbody tr:hover:not(.server-row-banner) {
    background: rgba(0, 136, 204, 0.1);
}

/* Light theme refinements */
[data-theme="light"] .glass-card .card-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .glass-card .card-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .server-table {
    color: #1f2937;
}

[data-theme="light"] .server-table thead th {
    background: #f3f5f9;
    color: #6b7280;
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .server-table tbody tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .server-table tbody tr:hover:not(.server-row-banner) {
    background: rgba(0, 136, 204, 0.07);
}

/* Hover effect for banner rows - lighter overlay */
.server-table tbody tr.server-row-banner:hover {
    opacity: 0.95;
}

/* Hover lift effect for server rows */
.server-table tbody tr.server-row,
.server-table tbody tr.server-row-banner {
    position: relative;
    top: 0;
}

.server-table tbody tr.server-row:hover,
.server-table tbody tr.server-row-banner:hover {
    top: -2px;
    z-index: 5;
}

.server-table tbody tr.server-row:hover td,
.server-table tbody tr.server-row-banner:hover td {
    transform: none;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.server-table tbody tr.server-row td,
.server-table tbody tr.server-row-banner td {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    transform-origin: center;
}

/* Apply border-radius to first and last cells in server rows */
.server-table tbody tr.server-row td:first-child,
.server-table tbody tr.server-row-banner td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.server-table tbody tr.server-row td:last-child,
.server-table tbody tr.server-row-banner td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.server-table-responsive {
    overflow-x: hidden !important;
    overflow-y: hidden;
    width: 100%;
}

/* Убираем горизонтальный скролл у таблицы серверов */
.server-table-responsive .server-table {
    width: 100%;
    table-layout: auto;
    margin: 0;
}

/* Fix table rows for dark theme - override Bootstrap defaults */
html:not([data-theme="light"]) .server-table tbody tr {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .table-responsive .server-table tbody tr {
    background-color: transparent !important;
    background: transparent !important;
}

html:not([data-theme="light"]) .table.server-table tbody tr {
    background-color: transparent !important;
    background: transparent !important;
}

/* Более специфичные правила для переопределения Bootstrap table-hover */
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .table.table-hover tbody tr:hover {
    background-color: rgba(0, 136, 204, 0.1) !important;
    background: rgba(0, 136, 204, 0.1) !important;
}

/* Dashboard tables (e.g. payments) - dark theme */
html:not([data-theme="light"]) .dashboard-table {
    color: var(--text-light) !important;
}

/* Payments table header (Transaction History) - dark theme */
html:not([data-theme="light"]) .payments-table thead th {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-light-muted) !important;
    border-color: var(--glass-border) !important;
}

html:not([data-theme="light"]) .dashboard-table thead th {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--text-light) !important;
    border-color: var(--glass-border) !important;
}

html:not([data-theme="light"]) .dashboard-table tbody tr {
    background-color: transparent !important;
    background: transparent !important;
    border-color: var(--glass-border) !important;
}

html:not([data-theme="light"]) .dashboard-table tbody tr:hover {
    background-color: rgba(0, 136, 204, 0.1) !important;
    background: rgba(0, 136, 204, 0.1) !important;
}

/* Переопределить Bootstrap default table styles */
html:not([data-theme="light"]) .table tbody tr {
    background-color: transparent !important;
    border-color: var(--glass-border) !important;
}

html:not([data-theme="light"]) .table.table-hover tbody tr {
    background-color: transparent !important;
}

/* Максимально агрессивные правила для переопределения Bootstrap table styles на темной теме */
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr,
html:not([data-theme="light"]) .table.table-hover tbody tr.server-row,
html:not([data-theme="light"]) .table-responsive .table.table-hover.server-table tbody tr,
html:not([data-theme="light"]) .table-responsive .table.table-hover tbody tr.server-row,
html:not([data-theme="light"]) .card .table-responsive .table.table-hover.server-table tbody tr,
html:not([data-theme="light"]) .card .table-responsive .table.table-hover tbody tr.server-row,
html:not([data-theme="light"]) .card.glass-card .table-responsive .table.table-hover.server-table tbody tr,
html:not([data-theme="light"]) .card.glass-card .table-responsive .table.table-hover tbody tr.server-row,
html:not([data-theme="light"]) .main-content .card .table-responsive .table.table-hover.server-table tbody tr,
html:not([data-theme="light"]) .main-content .card .table-responsive .table.table-hover tbody tr.server-row {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--text-light) !important;
    border-color: transparent !important;
}

/* Переопределить Bootstrap для всех td внутри строк */
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr td,
html:not([data-theme="light"]) .table.table-hover tbody tr.server-row td,
html:not([data-theme="light"]) .table-responsive .table.table-hover.server-table tbody tr td,
html:not([data-theme="light"]) .table-responsive .table.table-hover tbody tr.server-row td {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--text-light) !important;
    border-color: transparent !important;
}

/* Убедиться, что даже при hover фон остается прозрачным (кроме hover эффекта) */
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr:not(:hover),
html:not([data-theme="light"]) .table-responsive .table.table-hover.server-table tbody tr:not(:hover),
html:not([data-theme="light"]) .card .table-responsive .table.table-hover.server-table tbody tr:not(:hover) {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

/* КРИТИЧЕСКОЕ ПРАВИЛО: Переопределить ВСЕ возможные комбинации Bootstrap table классов */
html:not([data-theme="light"]) table.table tbody tr,
html:not([data-theme="light"]) table.table-hover tbody tr,
html:not([data-theme="light"]) .table tbody tr,
html:not([data-theme="light"]) .table-hover tbody tr {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

/* Переопределить для всех возможных вложенностей */
html:not([data-theme="light"]) * .table tbody tr,
html:not([data-theme="light"]) * .table-hover tbody tr,
html:not([data-theme="light"]) * .server-table tbody tr {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

.server-table td,
.server-table tbody tr td,
table.server-table td,
.table.server-table td,
.server-table td:first-child,
.server-table td:nth-child(2),
.server-table td:nth-child(3),
.server-table td:nth-child(4),
.server-table td:nth-child(5),
.server-table td:nth-child(6) {
    padding: 0.75rem 1.25rem !important;
    vertical-align: middle !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
}

/* Ограничить содержимое ячеек, чтобы оно не растягивало строку */
.server-table td > * {
    max-height: 96px !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* Ограничить flex-контейнеры внутри ячеек */
.server-table td .d-flex {
    max-height: 96px !important;
    height: auto !important;
    overflow: hidden !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* Ограничить высоту текстовых элементов */
.server-table td h6,
.server-table td .server-name {
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.server-table td small,
.server-table td .server-address-copy {
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.server-table td .server-desc {
    max-height: 1.2em !important;
    line-height: 1.2em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    margin: 0 !important;
    display: block !important;
}

/* Дополнительное ограничение для всех элементов внутри ячеек */
.server-table td .d-flex,
.server-table td .server-avatar,
.server-table td .server-name,
.server-table td .server-address-copy {
    max-height: 96px;
    overflow: hidden;
}

.server-row {
    cursor: pointer;
}

/* Server row with banner background */
.server-row-banner,
tr.server-row-banner,
.server-table tbody tr.server-row-banner {
    position: relative;
    overflow: hidden !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
    box-sizing: border-box !important;
    display: table-row !important;
}

/* Баннер только на второй ячейке */
.server-row-banner td:first-child {
    /* Баннер не применяется к первой ячейке */
    background-image: none !important;
}

.server-row-banner td:nth-child(2) {
    position: relative;
    z-index: 1;
    vertical-align: middle;
    height: 96px !important;
    max-height: 96px !important;
    overflow: hidden;
}

/* Псевдоэлемент с баннером - под текстом */
.server-row-banner td:nth-child(2)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    background-image: var(--banner-gradient, none), var(--banner-url, none);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
    opacity: var(--banner-opacity, 0.4);
    pointer-events: none;
}

/* Содержимое ячейки поверх баннера */
.server-row-banner td:nth-child(2) > * {
    position: relative;
    z-index: 1;
}

/* Остальные ячейки без баннера */
.server-row-banner td:not(:first-child):not(:nth-child(2)) {
    position: relative;
    z-index: 2;
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    vertical-align: middle;
    height: 96px !important;
    max-height: 96px !important;
    overflow: hidden;
}

/* Rank Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--glass-bg);
}

.rank-badge.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.rank-badge.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: #000;
}

.rank-badge.top-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: #fff;
}

/* Server Avatar */
.server-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.server-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Аватарка-градиент для пользователей без фото (email, TG без photo) */
.user-avatar-gradient {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}
.user-avatar-gradient--sm {
    width: 24px;
    height: 24px;
    font-size: 12px;
}
.user-avatar-gradient--md {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.server-name {
    color: var(--text-light);
    font-weight: 600;
}

.server-desc {
    max-width: 300px;
    line-height: 1.3;
}

/* ================================================
   Status Badges
   ================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.online {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.offline {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-badge.unknown {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

[data-theme="light"] .status-badge {
    background: #eef2f7;
    color: #6b7280;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .status-badge.online {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .status-badge.offline,
[data-theme="light"] .status-badge.unknown {
    background: #eef2f7;
    color: #6b7280;
    border-color: rgba(15, 23, 42, 0.12);
}

.status-badge.large {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Ping Badges */
.ping-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ping-badge.excellent {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.ping-badge.good {
    background: rgba(40, 167, 69, 0.15);
    color: #5cb85c;
}

.ping-badge.medium {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.ping-badge.poor {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Region Badge */
.region-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

/* Votes Count */
.votes-count {
    color: var(--primary-color);
    font-weight: 600;
}

.players-count {
    color: var(--info-color);
}

/* ================================================
   Server Detail Page
   ================================================ */

.server-banner {
    position: relative;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-top: -20px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
}

.banner-title {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.server-banner.banner-dark .banner-title {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.server-banner.banner-light .banner-title {
    color: #111827 !important;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.55);
}

.server-banner.banner-light .banner-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85), transparent);
}

[data-theme="light"] .server-banner.no-banner .banner-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

[data-theme="light"] .server-banner.no-banner {
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .server-banner.no-banner .banner-overlay {
    background: linear-gradient(to top, rgba(226, 232, 240, 0.65), transparent);
}

[data-theme="light"] .server-banner.no-banner .banner-title {
    color: #0f172a !important;
    text-shadow: 0 2px 6px rgba(255, 255, 255, 0.6);
}

.server-avatar-large {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border: 3px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.server-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Connection Box */
.connection-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.connection-box .form-control {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-family: monospace;
    font-size: 1.1rem;
}

[data-theme="light"] .connection-box {
    background: #f6f8fb;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .connection-box .form-control {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #1f2937;
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    font-size: 0.8rem;
    color: var(--text-light-muted);
    transition: all 0.2s ease;
}

[data-theme="light"] .tag-badge {
    background: #f5f7fb;
    border-color: rgba(15, 23, 42, 0.1);
    color: #4b5563;
}

.tag-badge:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Server Description */
.server-description {
    margin-top: 1rem;
}

.description-content {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    line-height: 1.7;
}

.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4,
.description-content h5,
.description-content h6 {
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.description-content h1:first-child,
.description-content h2:first-child,
.description-content h3:first-child {
    margin-top: 0;
}

.description-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.description-content a {
    color: var(--primary-color);
}

.description-content code {
    background: rgba(0, 136, 204, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    color: var(--primary-light);
}

.description-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

.description-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    margin-left: 0;
    color: var(--text-muted);
}

[data-theme="light"] .description-content {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .description-content p,
[data-theme="light"] .description-content h1,
[data-theme="light"] .description-content h2,
[data-theme="light"] .description-content h3,
[data-theme="light"] .description-content h4,
[data-theme="light"] .description-content h5,
[data-theme="light"] .description-content h6 {
    color: #1f2937;
}

[data-theme="light"] .description-content code {
    background: rgba(0, 136, 204, 0.12);
    color: var(--primary-dark);
}

[data-theme="light"] .description-content pre {
    background: #eef2f7;
}

[data-theme="light"] .description-content blockquote {
    color: #6b7280;
}

/* Stats */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-light);
}

.votes-highlight {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Vote Card */
.vote-card .card-body {
    padding: 2rem;
}

.vote-count .display-4 {
    line-height: 1;
}

/* ================================================
   Stat Cards
   ================================================ */

.stat-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    opacity: 0.8;
}

.stat-card h3 {
    color: var(--text-light);
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.stat-card .card-body {
    padding: 2rem 1rem;
}

/* ================================================
   Forms
   ================================================ */

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(0, 170, 255, 0.3);
    background: rgba(0, 170, 255, 0.06);
}

.form-control:focus,
.form-select:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.section-label {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section-label.small {
    text-transform: uppercase;
    font-size: 0.7rem;
}

.form-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.language-picker {
    position: relative;
}

.language-picker-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
}

.language-picker-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: var(--text-light);
    border-radius: 14px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.language-picker-control:hover {
    border-color: rgba(0, 170, 255, 0.3);
    background: rgba(0, 170, 255, 0.06);
}

.language-picker-control.is-invalid {
    border-color: var(--danger-color);
}

.language-picker-control i {
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.language-picker.is-open .language-picker-control i {
    transform: rotate(180deg);
}

.language-picker-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(8, 12, 16, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.language-picker-search {
    position: relative;
    margin-bottom: 0.5rem;
}

.language-picker-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.language-picker-search-input {
    width: 100%;
    padding-left: 2.25rem;
}

.language-picker-multi {
    margin: 0.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.language-picker-multi .form-check-label {
    color: var(--text-light);
    font-weight: 500;
}

.language-picker-multi .form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.language-picker-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 230px;
    overflow-y: auto;
    padding-right: 2px;
}

.language-picker-option {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.language-picker-option:hover {
    background: rgba(0, 170, 255, 0.12);
    border-color: rgba(0, 170, 255, 0.3);
}

.language-picker-option.is-selected {
    background: rgba(0, 170, 255, 0.2);
    border-color: var(--primary-color);
}

.language-picker-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

[data-theme="light"] .language-picker-control {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--text-light);
}

[data-theme="light"] .language-picker-panel {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .language-picker-multi .form-check-input {
    background-color: #ffffff;
    border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .language-picker-option:hover {
    background: rgba(0, 136, 204, 0.12);
    border-color: rgba(0, 136, 204, 0.3);
}

[data-theme="light"] .language-picker-multi {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

/* Ensure all card headers have light text */
.card-header,
.card-header h4,
.card-header h5 {
    color: var(--text-light);
}

/* Fix section headers in forms */
h5 {
    color: var(--text-light);
}

.input-group-text {
    background: rgba(0, 136, 204, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
}

.is-invalid {
    border-color: var(--danger-color) !important;
}

.invalid-feedback {
    color: var(--danger-color);
}

/* File input styling */
.form-control[type="file"] {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.15);
}

[data-theme="light"] .form-control[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

[data-theme="light"] .form-control[type="file"]::file-selector-button:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

/* ================================================
   Buttons
   ================================================ */

.btn-primary {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

[data-theme="light"] .btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 136, 204, 0.25);
}

[data-theme="light"] .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #ffffff;
}

.btn-outline-primary {
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-outline-primary {
    background: #ffffff;
    border-color: rgba(0, 136, 204, 0.3);
    color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .btn-outline-primary:hover {
    background: rgba(0, 136, 204, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-dark);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--text-light);
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    color: var(--primary-light);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-outline-danger {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    color: var(--danger-color);
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-outline-danger:hover {
    background: rgba(255, 85, 85, 0.15);
    border-color: var(--danger-color);
    color: #ffaaaa;
    box-shadow: 0 8px 24px rgba(255, 85, 85, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Disabled Boost to Top button - glassmorphism style */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dashboard server card button group - improved glassmorphism */
.dashboard .btn-group .btn-outline-primary,
.card.glass-card .btn-group .btn-outline-primary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard .btn-group .btn-outline-primary:hover,
.card.glass-card .btn-group .btn-outline-primary:hover {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 136, 204, 0.15));
    border-color: var(--primary-color);
    color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.2);
}

.dashboard .btn-group .btn-outline-danger,
.card.glass-card .btn-group .btn-outline-danger {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--danger-color);
    color: var(--danger-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard .btn-group .btn-outline-danger:hover,
.card.glass-card .btn-group .btn-outline-danger:hover {
    background: linear-gradient(135deg, rgba(255, 85, 85, 0.2), rgba(255, 68, 68, 0.15));
    border-color: var(--danger-color);
    color: #ffaaaa;
    box-shadow: 0 4px 12px rgba(255, 85, 85, 0.2);
}

/* Liquid Glass buttons - oval style like navbar */
.btn-liquid-glass,
a.btn-liquid-glass,
button.btn-liquid-glass {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24px !important;
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-liquid-glass::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 170, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), 
                height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.btn-liquid-glass:hover::before {
    width: 200%;
    height: 200%;
}

.btn-liquid-glass:hover,
a.btn-liquid-glass:hover,
button.btn-liquid-glass:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-light) !important;
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

/* Убираем hover эффект с овала, когда внутри есть отдельные кнопки */
.btn-liquid-glass.btn-edit-promote:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transform: none !important;
}

.btn-liquid-glass:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
}

.btn-liquid-glass i {
    position: relative;
    z-index: 1;
}

.btn-liquid-glass.btn-edit-promote {
    padding: 0.5rem 1.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.25rem !important;
    min-width: auto !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.btn-liquid-glass.btn-edit-promote:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.btn-icon-inner {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    z-index: 2 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
}

.btn-icon-inner i {
    font-size: 1rem !important;
}

.btn-icon-inner:hover {
    background: rgba(0, 170, 255, 0.2) !important;
    color: var(--primary-light) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 0 4px rgba(0, 170, 255, 0.1) !important;
}

.btn-icon-inner:active {
    transform: scale(0.95) !important;
    background: rgba(0, 170, 255, 0.3) !important;
}

/* Edit button - separate circle, teal/blue */
.btn-edit-circle,
a.btn-edit-circle,
button.btn-edit-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(46, 196, 164, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(46, 196, 164, 0.35) !important;
    color: var(--primary-color) !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-edit-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(46, 196, 164, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), 
                height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.btn-edit-circle:hover::before {
    width: 200%;
    height: 200%;
}

.btn-edit-circle:hover,
a.btn-edit-circle:hover,
button.btn-edit-circle:hover {
    background: rgba(46, 196, 164, 0.25) !important;
    border-color: rgba(46, 196, 164, 0.5) !important;
    color: var(--primary-light) !important;
    box-shadow: 0 8px 24px rgba(46, 196, 164, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.btn-edit-circle:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.25);
}

.btn-edit-circle i {
    position: relative;
    z-index: 1;
}

/* Delete button - separate circle, dull red */
.btn-delete-circle,
button.btn-delete-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(139, 69, 69, 0.15) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(139, 69, 69, 0.35) !important;
    color: #aa6666 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.35s cubic-bezier(0.28, 0.11, 0.32, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(139, 69, 69, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-delete-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 69, 69, 0.25);
    transform: translate(-50%, -50%);
    transition: width 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), 
                height 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.btn-delete-circle:hover::before {
    width: 200%;
    height: 200%;
}

.btn-delete-circle:hover,
button.btn-delete-circle:hover {
    background: rgba(139, 69, 69, 0.25) !important;
    border-color: rgba(139, 69, 69, 0.5) !important;
    color: #cc7777 !important;
    box-shadow: 0 8px 24px rgba(139, 69, 69, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

.btn-delete-circle:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(139, 69, 69, 0.25);
}

.btn-delete-circle i {
    position: relative;
    z-index: 1;
}

/* ================================================
   Alerts
   ================================================ */

.alert {
    border-radius: 12px;
    border: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Fix alert-info links - remove blue color and underline */
.alert-info a,
.alert a {
    color: var(--text-light) !important;
    text-decoration: none !important;
}

.alert-info a:hover,
.alert a:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* ================================================
   Pagination
   ================================================ */

.pagination {
    justify-content: center;
    gap: 0.25rem;
}

.page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 8px !important;
    padding: 0.5rem 0.875rem;
    margin: 0 2px;
}

.page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    background: transparent;
    border-color: var(--glass-border);
    color: var(--text-muted);
    opacity: 0.5;
}

/* ================================================
   Footer
   ================================================ */

.footer {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin: 2rem auto 3rem;
    width: 100%;
    border-radius: 16px;
    padding: 3rem 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.footer h5,
.footer h6 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 136, 204, 0.3);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    min-height: auto;
    display: block;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.footer a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer ul {
    margin: 0;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 1;
    margin: 2rem 0;
}

.footer hr {
    border-color: var(--glass-border);
}

/* ================================================
   Server Card (My Servers)
   ================================================ */

.server-card {
    transition: all 0.3s ease;
    transform-origin: center;
}

.server-card:hover {
    z-index: 10;
}

/* Карточки серверов в дашборде */
.dashboard .card.glass-card,
.col-md-6 .card.glass-card,
.col-lg-4 .card.glass-card {
    transition: box-shadow 0.3s ease;
    position: relative;
}

/* Premium card colors for dashboard cards */
.card.glass-card.server-card-color-green {
    border: 2px solid #10B981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
}

.card.glass-card.server-card-color-blue {
    border: 2px solid #3B82F6 !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%) !important;
}

.card.glass-card.server-card-color-red {
    border: 2px solid #EF4444 !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.4) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%) !important;
}

.card.glass-card.server-card-color-gold {
    border: 2px solid #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.4) !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.03) 100%) !important;
}

.dashboard .card.glass-card:hover,
.col-md-6 .card.glass-card:hover,
.col-lg-4 .card.glass-card:hover {
    z-index: 10;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ================================================
   reCAPTCHA
   ================================================ */

.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* ================================================
   Responsive Adjustments
   ================================================ */

@media (max-width: 991.98px) {
    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0.5rem;
    }

    .navbar-toggler {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        order: 3;
    }

    .navbar-brand .brand-text-full {
        display: none;
    }

    .navbar-brand .brand-text-short {
        display: inline;
    }

    .navbar-collapse {
        background: rgba(10, 10, 10, 0.94);
        border: 1px solid var(--glass-border);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
        padding: 1rem;
        border-radius: 12px;
        margin-top: 1rem;
    }

    [data-theme="light"] .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }

    .navbar-collapse .navbar-nav {
        gap: 0.25rem;
        width: 100%;
    }

    .navbar-collapse .nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.6rem 0.75rem !important;
    }

    .navbar-collapse .navbar-nav + .navbar-nav {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--glass-border);
    }

    .navbar-collapse .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0.35rem;
        box-shadow: none;
    }

    .server-banner {
        height: 200px;
    }

    .server-avatar-large {
        width: 70px;
        height: 70px;
    }

    .banner-content h1 {
        font-size: 1.5rem;
    }
}

/* Medium screens (tablets, 768px - 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .navbar {
        padding: 0.6rem 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    .navbar-nav {
        flex-wrap: nowrap;
    }

    .navbar-nav .nav-item {
        flex-shrink: 0;
    }

    .dropdown-toggle::after {
        margin-left: 0.35rem;
    }
}

/* 480px (Small phones) */
@media (min-width: 480px) and (max-width: 767.98px) {
    .navbar {
        width: calc(100% - 1rem);
        padding: 0.5rem 0.75rem;
        margin: 0.5rem auto 0;
        border-radius: 12px;
    }

    .footer {
        padding: 1.25rem 0.75rem;
        margin: 1.25rem auto 0.5rem;
        border-radius: 12px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.9rem;
    }
}

/* 375px (Very small phones - iPhone SE) */
@media (max-width: 479.98px) {
    .navbar {
        width: calc(100% - 0.75rem);
        padding: 0.5rem 0.5rem;
        margin: 0.5rem auto 0;
        border-radius: 12px;
    }

    .footer {
        padding: 1rem 0.75rem;
        margin: 1rem auto 0.5rem;
        border-radius: 12px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand i {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    .lead {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem !important;
    }

    .glass-card {
        border-radius: 12px;
    }
}

@media (max-width: 767.98px) {
    .main-content {
        padding-top: 80px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .server-table thead {
        display: none;
    }

    .server-table tbody tr {
        display: block;
        padding: 1rem;
        margin-bottom: 1rem;
        background: var(--glass-bg) !important;
        background-color: var(--glass-bg) !important;
        border-radius: 12px;
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* Убедиться, что на мобильных строкаи темные на темной теме */
    html:not([data-theme="light"]) .server-table tbody tr {
        background: var(--glass-bg) !important;
        background-color: var(--glass-bg) !important;
    }

    .server-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--glass-border);
        height: 96px !important;
        min-height: 96px !important;
        max-height: 96px !important;
        box-sizing: border-box;
    }

    .server-table td:last-child {
        border-bottom: none;
    }

    .server-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
    }

    .server-banner {
        height: 180px;
        margin-top: -10px;
    }

    .banner-content {
        padding: 1rem;
    }

    .server-avatar-large {
        width: 60px;
        height: 60px;
    }
}

/* ================================================
   Scrollbar Styling
   ================================================ */

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ================================================
   Selection Color
   ================================================ */

::selection {
    background: var(--primary-color);
    color: #fff;
}

/* ================================================
   Utilities
   ================================================ */

.text-primary {
    color: var(--primary-color) !important;
}

/* Fix alert-info links - remove blue color and underline */
.alert-info a,
.alert a.text-primary {
    color: var(--text-light) !important;
    text-decoration: none !important;
}

.alert-info a:hover,
.alert a.text-primary:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Light muted text for better contrast */
.text-light-muted {
    color: var(--text-light-muted) !important;
}

/* Counters bar (servers / with plugin / online) — subtle bg and rounding, theme-aware */
.counters-bar > span {
    border-radius: 0.5rem;
    padding: 0.25rem 0.6rem;
}
html:not([data-theme="light"]) .counters-bar > span {
    background: rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .counters-bar > span {
    background: rgba(15, 23, 42, 0.06);
}

/* Online indicator dot - blinking green dot */
.online-indicator-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    margin-right: 6px;
    vertical-align: middle;
    animation: blink-online 1.5s ease-in-out infinite;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.6);
}

@keyframes blink-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* ================================================
   Star Rating
   ================================================ */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #4a4a4a;
    transition: color 0.2s;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #ffc107;
}

/* Colored Tags */
.tag-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.8em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 24px;
    border: 1px solid;
    margin: 0.15em;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tag-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Comments */
.comment-item {
    border-left: 3px solid var(--primary-color);
    transition: background 0.2s;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* Comment author name color fix for dark theme */
html:not([data-theme="light"]) .comment-item strong,
html:not([data-theme="light"]) .comment-item .comment-author,
html:not([data-theme="light"]) .comment-item .d-flex strong {
    color: var(--text-light) !important;
}

/* Comment content color fix for dark theme */
html:not([data-theme="light"]) .comment-item p,
html:not([data-theme="light"]) .comment-item .comment-content {
    color: var(--text-light) !important;
}

.comments-list {
    max-height: 600px;
    overflow-y: auto;
}

/* Server Cards Grid (Alternative Layout) */
.server-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.server-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.server-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.server-card-banner {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
}

.server-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-card-avatar {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid var(--glass-bg);
    background: var(--glass-bg);
    overflow: hidden;
}

.server-card-body {
    padding: 40px 20px 20px;
}

.server-card-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.server-card-stat {
    text-align: center;
}

.server-card-stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.server-card-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* New list cards */
.server-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.server-card-list .server-card {
    display: grid;
    grid-template-columns: 32% minmax(0, 1fr) 190px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 150px;
    align-items: stretch;
}

html:not([data-theme="light"]) .server-card-list .server-card {
    background: rgba(22, 22, 24, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.server-card-list .server-card:link,
.server-card-list .server-card:visited,
.server-card-list .server-card:hover,
.server-card-list .server-card:active {
    text-decoration: none !important;
    color: inherit !important;
}

.server-card-list .server-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

html:not([data-theme="light"]) .server-card-list .server-card:hover {
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

.server-card-list .server-card:focus,
.server-card-list .server-card:focus-visible {
    outline: none;
}

.server-card-list .server-card-media {
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(15, 23, 42, 0.08);
    min-height: 150px;
}

.server-card-list .server-card-banner {
    flex: 1 1 auto;
    background-image: var(--banner-url, linear-gradient(135deg, #1f2937, #0f172a));
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.server-card-list .server-card-media.no-banner {
    background-image: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

html:not([data-theme="light"]) .server-card-list .server-card-media {
    border-right-color: rgba(255, 255, 255, 0.08);
}

html:not([data-theme="light"]) .server-card-list .server-card-banner {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.server-card-list .banner-address {
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

html:not([data-theme="light"]) .server-card-list .banner-address {
    background: rgba(20, 20, 22, 0.92);
    color: #e5e7eb;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

html:not([data-theme="light"]) .server-card-list .server-card-media.no-banner {
    background-image: linear-gradient(135deg, #0f172a, #0b1220);
}

.server-card-list .server-card-media::after {
    display: none;
}

.server-card-list .server-card-media .rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.75rem;
}

.server-card-list .rank-stack {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.server-card-list .votes-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

html:not([data-theme="light"]) .server-card-list .votes-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.server-card-list .server-card-main {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    color: #0f172a;
    min-width: 0;
}

html:not([data-theme="light"]) .server-card-list .server-card-main {
    color: #f8fafc;
    background: rgba(24, 24, 26, 0.9);
}

.server-card-list .server-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.server-card-list .server-card-title {
    flex: 1 1 auto;
    min-width: 0;
}

.server-card-list .server-card-title h5 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.02rem;
}

.server-card-list .server-card-address {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html:not([data-theme="light"]) .server-card-list .server-card-address {
    color: #cbd5f5;
}

.server-card-list .server-card-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #3b4252;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

html:not([data-theme="light"]) .server-card-list .server-card-desc {
    color: #d9e0ef;
}

.server-card-list .status-badge {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: 18px;
    font-weight: 700;
}

html:not([data-theme="light"]) .server-card-list .status-badge {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}

.server-card-list .server-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.server-card-list .meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    font-weight: 600;
    font-size: 0.78rem;
}

html:not([data-theme="light"]) .server-card-list .meta-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.server-card-list .server-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 24px;
    overflow: hidden;
}

.server-card-list .server-card-tags .tag-chip {
    background: rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #0f172a;
    font-size: 0.74rem;
    padding: 4px 9px;
    border-radius: 999px;
    line-height: 1.2;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px);
}

html:not([data-theme="light"]) .server-card-list .server-card-tags .tag-chip {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.server-card-list .server-card-actions {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    background: transparent;
    border-left: 1px solid rgba(15, 23, 42, 0.04);
    min-width: 170px;
    text-align: right;
    box-sizing: border-box;
    overflow: hidden;
}

html:not([data-theme="light"]) .server-card-list .server-card-actions {
    background: transparent;
    border-left-color: rgba(255, 255, 255, 0.08);
}

.server-card-list .votes-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    min-width: 0;
    justify-content: center;
}

html:not([data-theme="light"]) .server-card-list .votes-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

/* Status with votes in one line */
.server-card-list .status-with-votes {
    display: inline-flex;
    align-items: stretch;
    gap: 8px;
    align-self: flex-end;
    max-width: 100%;
}

.server-card-list .rating-details-trigger {
    align-self: flex-end;
    margin-top: 4px;
}

.server-card-list .rating-details-trigger small {
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.server-card-list .rating-details-trigger:hover small {
    color: var(--primary-color) !important;
}

.server-card-list .votes-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.82rem;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.server-card-list .votes-inline i {
    color: #fbbf24;
}

html:not([data-theme="light"]) .server-card-list .votes-inline {
    background: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

html:not([data-theme="light"]) .server-card-list .votes-inline i {
    color: #fbbf24;
}

.server-card-list .votes-inline.rating-details-trigger:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Game Modes Section */
.game-mode-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.game-mode-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

html:not([data-theme="light"]) .game-mode-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

html:not([data-theme="light"]) .game-mode-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.game-mode-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.game-mode-icon i {
    display: inline-block;
}

.server-card-list .action-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.04);
    border: none;
    font-weight: 700;
    color: #0f172a;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    height: 100%;
    min-width: 0;
}

html:not([data-theme="light"]) .server-card-list .action-status {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #e7edf8;
}

.server-card-list .action-status .status-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    max-width: 10px;
    max-height: 10px;
    border-radius: 999px;
    display: inline-block;
    background: #6b7280;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
    flex: 0 0 10px;
}

.server-card-list .action-status.online .status-dot {
    background: #2ec4a4;
    box-shadow: 0 0 0 4px rgba(46, 196, 164, 0.25);
}

.server-card-list .action-status.offline .status-dot,
.server-card-list .action-status.unknown .status-dot {
    background: #9ca3af;
    box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.15);
}

.server-card-list .action-status.unknown .status-dot {
    display: none;
}

.server-card-list .view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2ec4a4, #1fa987);
    color: #fff;
    font-weight: 700;
    font-size: 0.84rem;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none !important;
    align-self: stretch;
    width: 100%;
}

.server-card-list .server-card:hover .view-button {
    transform: translateX(2px);
    box-shadow: 0 10px 24px rgba(31, 169, 135, 0.24);
}

@media (max-width: 992px) {
    .server-card-list .server-card {
        grid-template-columns: 1fr;
    }

    .server-card-list .server-card-media {
        min-height: 180px;
        border-right: none;
    }

    .server-card-list .server-card-actions {
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    html:not([data-theme="light"]) .server-card-list .server-card-actions {
        border-top-color: rgba(255, 255, 255, 0.08);
    }
}
/* Tag Filter Buttons */
.tag-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.25em 0.75em;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.tag-filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-color: var(--tag-color, var(--primary-color));
}

.tag-filter-btn.active {
    background: var(--tag-color, var(--primary-color));
    color: #fff;
    border-color: var(--tag-color, var(--primary-color));
}

/* Improved Pagination */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin: 0 2px;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    color: var(--text-muted);
}

/* Tags selection with checkboxes */
.tags-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.tags-selection .form-check {
    margin: 0;
}

.tags-selection .form-check-input {
    cursor: pointer;
}

.tags-selection .form-check-label {
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    color: var(--text-light);
    transition: all 0.2s ease;
    user-select: none;
}

.tags-selection .form-check-input:checked+.form-check-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.tags-selection .form-check-label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.tags-selection .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

[data-theme="light"] .tags-selection {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .tags-selection .form-check-label {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}

[data-theme="light"] .tags-selection .form-check-input:checked+.form-check-label {
    color: #fff;
}

/* Tags selection on main page */
.tags-selection-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}



/* Compact Tag Styles */
.tags-selection-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Small gap for compact layout */
}

.tags-selection-main .form-check {
    margin: 0;
    padding: 0;
}

.tags-selection-main .tag-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tags-selection-main .tag-filter-label {
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    /* Compact padding */
    font-size: 0.85rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    /* Less rounded for compact look */
    color: var(--text-light);
    /* Default text color */
    transition: all 0.2s ease;
    user-select: none;
    display: inline-flex;
    align-items: center;
}

/* Hover state - border color matches tag color */
.tags-selection-main .tag-filter-label:hover {
    border-color: var(--tag-color);
    color: var(--text-light);
    /* Keep text readable */
    transform: translateY(-1px);
}

/* Selected state */
.tags-selection-main .tag-checkbox:checked+.tag-filter-label {
    background-color: var(--tag-color);
    border-color: var(--tag-color);
    color: #fff;
    /* White text on colored background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Darker Glass Background (dark theme only) */
html:not([data-theme="light"]) {
    --glass-bg: rgba(255, 255, 255, 0.05);
}

/* Light Theme Fixes */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] .navbar-brand,
[data-theme="light"] .card-header {
    color: #212529 !important;
    /* Dark text for headers */
}

/* Auth Card - Dark Theme (default) */
html:not([data-theme="light"]) .auth-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .card-body {
    background: transparent !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .card-title,
html:not([data-theme="light"]) .auth-card h2,
html:not([data-theme="light"]) .auth-card h3,
html:not([data-theme="light"]) .auth-card h4,
html:not([data-theme="light"]) .auth-card h5,
html:not([data-theme="light"]) .auth-card h6 {
    color: var(--text-light) !important;
}

/* Card title color fix for dark theme */
html:not([data-theme="light"]) .card .card-title,
html:not([data-theme="light"]) .card.glass-card .card-title,
html:not([data-theme="light"]) .card.glass-card h6.card-title,
html:not([data-theme="light"]) .card-body .card-title,
html:not([data-theme="light"]) .card-body h6.card-title {
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .form-control,
html:not([data-theme="light"]) .auth-card .form-select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .form-control:focus,
html:not([data-theme="light"]) .auth-card .form-select:focus {
    background: rgba(0, 0, 0, 0.4) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .form-label {
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .text-primary {
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

html:not([data-theme="light"]) .auth-card .text-primary:hover {
    color: var(--primary-light) !important;
    text-decoration: underline !important;
}

html:not([data-theme="light"]) .auth-card .text-light-muted {
    color: var(--text-light-muted) !important;
}

html:not([data-theme="light"]) .auth-card .btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

html:not([data-theme="light"]) .auth-card .btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* Убедиться, что body и контейнеры тоже темные на странице авторизации */
html:not([data-theme="light"]) body {
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .main-content {
    background-color: transparent !important;
}

/* Дополнительные стили для auth-card - убедиться что все элементы темные */
html:not([data-theme="light"]) .auth-card * {
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-card .text-light-muted,
html:not([data-theme="light"]) .auth-card small {
    color: var(--text-light-muted) !important;
}

html:not([data-theme="light"]) .auth-card hr {
    border-color: var(--glass-border) !important;
}

html:not([data-theme="light"]) .auth-card .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}

html:not([data-theme="light"]) .auth-card .btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

/* Дополнительные правила для страницы авторизации - темная тема */
html:not([data-theme="light"]) body {
    background-color: var(--bg-dark) !important;
    background-color: var(--bg-dark) !important;
    color: var(--text-light) !important;
}

html:not([data-theme="light"]) .auth-page .container,
html:not([data-theme="light"]) .auth-page .blob-container {
    background-color: transparent !important;
}

html:not([data-theme="light"]) .auth-card.glass-card {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
}

/* Убедиться, что blob-container на странице авторизации темный */
html:not([data-theme="light"]) .blob-container {
    background-color: transparent !important;
}

/* Auth Card Fixes for Light Theme - must override .glass-card base styles */
[data-theme="light"] .auth-card,
[data-theme="light"] .card.glass-card.auth-card,
[data-theme="light"] .auth-card.glass-card,
[data-theme="light"] .glass-card.auth-card,
[data-theme="light"] .card.auth-card.glass-card {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    color: #212529 !important;
}

[data-theme="light"] .auth-card .card-body,
[data-theme="light"] .card.glass-card.auth-card .card-body {
    border-radius: 20px;
    overflow: hidden;
}

[data-theme="light"] .auth-card .form-control,
[data-theme="light"] .auth-card .form-select {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a1a !important;
}

/* Custom Form Select Styling */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 8px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    /* Space for arrow */
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
    transition: all 0.2s ease;
}

.form-select:hover,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 136, 204, 0.25);
    background-color: rgba(255, 255, 255, 0.05);
}

.form-select option {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px;
}

/* Light Theme Selects */
[data-theme="light"] .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 12px 12px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #212529;
}

[data-theme="light"] .form-select option {
    background-color: #fff;
    color: #333;
}

/* ================================================
   Statistics Chart Styles
   ================================================ */

.online-chart {
    position: relative;
    height: 300px;
    width: 100%;
}

#onlineChart {
    max-height: 300px;
}

/* Chart container styling */
.card-body canvas {
    background: transparent;
}

/* Period switcher buttons */
.btn-group[role="group"] .btn-outline-primary.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-group[role="group"] .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-group[role="group"] .btn-outline-primary:hover {
    background: rgba(0, 170, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Light theme chart adjustments */
[data-theme="light"] #onlineChart {
    filter: brightness(0.95);
}

[data-theme="light"] .btn-group[role="group"] .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="light"] .btn-group[role="group"] .btn-outline-primary.active {
    background: var(--primary-color);
    color: #fff;
}

/* Modal scroll fix - only block body scroll when modal is open */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Ensure modals are above all content */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    z-index: 1056 !important;
}

.modal-content {
    pointer-events: auto;
}

/* ================================================
   КРИТИЧЕСКИЕ ПРАВИЛА: Переопределение Bootstrap table на темной теме
   Эти правила должны быть в конце файла для максимального приоритета
   ================================================ */

/* Переопределить ВСЕ возможные варианты Bootstrap table на темной теме */
html:not([data-theme="light"]) table.table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) table.table-hover tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table-hover tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive table.table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive .table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive .table-hover tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive .table.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive .table.table-hover.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card .table-responsive .table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card .table-responsive .table-hover tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card .table-responsive .table.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card .table-responsive .table.table-hover.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card.glass-card .table-responsive .table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card.glass-card .table-responsive .table-hover tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card.glass-card .table-responsive .table.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .card.glass-card .table-responsive .table.table-hover.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .main-content .card .table-responsive .table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .main-content .card .table-responsive .table-hover tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .main-content .card .table-responsive .table.server-table tbody tr:not(.server-row-banner),
html:not([data-theme="light"]) .main-content .card .table-responsive .table.table-hover.server-table tbody tr:not(.server-row-banner) {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--text-light) !important;
}

/* Переопределить для всех td элементов (кроме баннерных строк) */
html:not([data-theme="light"]) .table tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table-hover tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table.server-table tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table-responsive .table tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table-responsive .table-hover tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table-responsive .table.server-table tbody tr:not(.server-row-banner) td,
html:not([data-theme="light"]) .table-responsive .table.table-hover.server-table tbody tr:not(.server-row-banner) td {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--text-light) !important;
}

/* Переопределить hover эффект (только при наведении) */
html:not([data-theme="light"]) .table.table-hover tbody tr:hover {
    background-color: rgba(0, 136, 204, 0.1) !important;
    background: rgba(0, 136, 204, 0.1) !important;
}

/* Убедиться, что строки без hover прозрачные (кроме баннерных) */
html:not([data-theme="light"]) .table.table-hover tbody tr:not(:hover):not(.server-row-banner),
html:not([data-theme="light"]) .table.table-hover.server-table tbody tr:not(:hover):not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive .table.table-hover tbody tr:not(:hover):not(.server-row-banner),
html:not([data-theme="light"]) .table-responsive .table.table-hover.server-table tbody tr:not(:hover):not(.server-row-banner) {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
}

/* ФИНАЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ: Использовать максимально возможную специфичность */
html:not([data-theme="light"]) body .main-content .container .card.glass-card .card-body .table-responsive table.table.table-hover.server-table.mb-0 tbody tr.server-row:not(.server-row-banner),
html:not([data-theme="light"]) body .main-content .container .card.glass-card .card-body .table-responsive table.table.table-hover.server-table.mb-0 tbody tr:not(.server-row-banner) {
    background-color: transparent !important;
    background: transparent !important;
    background-image: none !important;
    color: var(--text-light) !important;
}

/* Баннеры устанавливаются через JavaScript - inline стили имеют приоритет */

/* ================================================
   Parallax Effect при скролле для Dashboard элементов
   ================================================ */

.parallax-card,
.balance-card-parallax,
.server-card-parallax,
.premium-card-parallax {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Balance card - отступ сверху */
.balance-card-parallax {
    margin-top: 1.5rem !important;
}

/* Отключить параллакс на мобильных устройствах */
@media (max-width: 768px) {
    .parallax-card,
    .balance-card-parallax,
    .server-card-parallax,
    .premium-card-parallax {
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}

/* ================================================
   iOS Style Promote Popup
   ================================================ */

.ios-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ios-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.ios-popup-container {
    width: 100%;
    max-width: 1000px;
    max-height: 92vh;
    background: var(--glass-bg);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--glass-border);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(100%) scale(0.96) rotateX(5deg);
    transform-origin: bottom center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ios-popup-overlay.active .ios-popup-container {
    transform: translateY(0) scale(1) rotateX(0deg);
    opacity: 1;
}

.ios-popup-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 92vh;
}

.ios-popup-header {
    padding: 1.25rem 1.75rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: transparent;
    animation: headerFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s backwards;
    gap: 1rem;
}

.ios-popup-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ios-popup-title {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ios-popup-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.ios-popup-title {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.ios-popup-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.ios-popup-close::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ios-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.ios-popup-close:hover::before {
    opacity: 1;
}

.ios-popup-close:active {
    transform: scale(0.92) rotate(90deg);
    transition: transform 0.15s ease;
}

.ios-popup-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    display: flex;
    gap: 1.75rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.section-column-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ios-popup-body::-webkit-scrollbar {
    width: 6px;
}

.ios-popup-body::-webkit-scrollbar-track {
    background: transparent;
}

.ios-popup-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.ios-popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.server-list-container {
    flex: 0 0 420px;
    min-width: 0;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.server-item {
    animation: serverItemFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.server-item:nth-child(1) { animation-delay: 0.1s; }
.server-item:nth-child(2) { animation-delay: 0.15s; }
.server-item:nth-child(3) { animation-delay: 0.2s; }
.server-item:nth-child(4) { animation-delay: 0.25s; }
.server-item:nth-child(5) { animation-delay: 0.3s; }
.server-item:nth-child(6) { animation-delay: 0.35s; }
.server-item:nth-child(7) { animation-delay: 0.4s; }
.server-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes serverItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.package-option {
    animation: packageOptionFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.package-option:nth-child(1) { animation-delay: 0.2s; }
.package-option:nth-child(2) { animation-delay: 0.3s; }
.package-option:nth-child(3) { animation-delay: 0.4s; }

@keyframes packageOptionFadeIn {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.server-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    cursor: pointer;
    outline: none;
}

.server-item:focus-visible {
    outline: 2px solid #00B8FF;
    outline-offset: 2px;
}

.server-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.server-item:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(255, 255, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.server-item:hover::before {
    left: 100%;
}

.server-item.standard {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.server-item.boost {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.15),
                0 0 0 1px rgba(0, 170, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.server-item.premium {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
}

.server-item.premium::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 170, 0, 0.5) 0%, 
        rgba(255, 200, 0, 0.4) 50%, 
        rgba(255, 170, 0, 0.5) 100%);
    opacity: 0;
    animation: premiumGlow 2s ease-in-out infinite;
    z-index: -1;
    filter: blur(12px);
}

@keyframes premiumGlow {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 20px rgba(255, 170, 0, 0.3), 0 0 40px rgba(255, 170, 0, 0.2);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 30px rgba(255, 170, 0, 0.5), 0 0 60px rgba(255, 170, 0, 0.3);
    }
}

.server-item.user-server {
    background: rgba(0, 184, 255, 0.12);
    border: 2px solid #00B8FF;
    box-shadow: 0 6px 24px rgba(0, 184, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: userServerPulse 3s ease-in-out infinite;
}

@keyframes userServerPulse {
    0%, 100% {
        box-shadow: 0 6px 24px rgba(0, 184, 255, 0.25),
                    inset 0 1px 0 rgba(255, 255, 255, 0.15);
        border-color: #00B8FF;
    }
    50% {
        box-shadow: 0 8px 32px rgba(0, 184, 255, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: #1A8CD8;
    }
}

.server-item.user-server.boost {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 28px rgba(0, 170, 255, 0.25),
                0 0 0 1px rgba(0, 170, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.server-item.user-server.premium {
    background: rgba(212, 175, 55, 0.12);
    border: 2px solid #D4AF37;
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
}

.server-item.user-server.premium::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 20px;
    background: linear-gradient(135deg, 
        rgba(255, 170, 0, 0.6) 0%, 
        rgba(255, 200, 0, 0.5) 50%, 
        rgba(255, 170, 0, 0.6) 100%);
    opacity: 0;
    animation: premiumGlow 2s ease-in-out infinite;
    z-index: -1;
    filter: blur(14px);
}

.server-item.moving {
    z-index: 10;
    position: relative;
    transition: transform 0.7s cubic-bezier(0.32, 0.72, 0, 1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Ensure other servers don't get overlapped during animation */
.server-list .server-item:not(.moving) {
    position: relative;
    z-index: 1;
}

.server-item-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 2px 8px rgba(0, 0, 0, 0.15);
}

.server-item:hover .server-item-number {
    transform: scale(1.08) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 
                0 4px 12px rgba(0, 0, 0, 0.2),
                0 0 16px rgba(0, 170, 255, 0.2);
}

.server-item.boost .server-item-number {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.3) 0%, rgba(0, 170, 255, 0.2) 100%);
    color: var(--primary-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 16px rgba(0, 170, 255, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.15);
}

.server-item.premium .server-item-number {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.2) 100%);
    color: #D4AF37;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
                0 0 20px rgba(212, 175, 55, 0.35),
                0 2px 8px rgba(0, 0, 0, 0.15);
    animation: premiumNumberGlow 2s ease-in-out infinite;
}

@keyframes premiumNumberGlow {
    0%, 100% {
        box-shadow: 0 0 16px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 24px rgba(212, 175, 55, 0.5);
    }
}

.server-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.375rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.server-item:hover .server-item-icon {
    transform: scale(1.12) rotate(8deg);
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2) 0%, rgba(0, 170, 255, 0.12) 100%);
    border-color: rgba(0, 170, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.server-item-info {
    flex: 1;
    min-width: 0;
}

.server-item-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.2rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.server-item-address {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.package-selection {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-option {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 1.125rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(0) scale(1);
    outline: none;
}

.package-option:focus-visible {
    outline: 2px solid #00B8FF;
    outline-offset: 2px;
}

.package-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

.package-option::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 0%, rgba(0, 170, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.package-option:hover::before {
    left: 100%;
}

.package-option:hover::after {
    opacity: 1;
}

.package-option:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(26, 140, 216, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.package-option.selected {
    background: rgba(0, 184, 255, 0.18);
    border: 2.5px solid #00B8FF;
    box-shadow: 0 12px 32px rgba(0, 184, 255, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    animation: selectedPackageGlow 2s ease-in-out infinite;
}

@keyframes selectedPackageGlow {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(0, 184, 255, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: #00B8FF;
    }
    50% {
        box-shadow: 0 16px 40px rgba(0, 184, 255, 0.45),
                    inset 0 1px 0 rgba(255, 255, 255, 0.25);
        border-color: #1A8CD8;
    }
}

.package-option.selected.boost {
    background: rgba(0, 184, 255, 0.2);
    border: 2.5px solid #00B8FF;
    box-shadow: 0 14px 36px rgba(0, 184, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: selectedBoostGlow 2.5s ease-in-out infinite;
}

@keyframes selectedBoostGlow {
    0%, 100% {
        box-shadow: 0 14px 36px rgba(0, 184, 255, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: #00B8FF;
    }
    50% {
        box-shadow: 0 18px 44px rgba(0, 184, 255, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.25);
        border-color: #1A8CD8;
    }
}

.package-option.selected.premium {
    background: rgba(212, 175, 55, 0.15);
    border: 2.5px solid #D4AF37;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.package-option.selected.premium::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 18px;
    background: linear-gradient(135deg, 
        rgba(255, 170, 0, 0.4) 0%, 
        rgba(255, 200, 0, 0.3) 50%, 
        rgba(255, 170, 0, 0.4) 100%);
    opacity: 0;
    animation: premiumPackageGlow 2.5s ease-in-out infinite;
    z-index: -1;
    filter: blur(12px);
}

@keyframes premiumPackageGlow {
    0%, 100% {
        opacity: 0.4;
        box-shadow: 0 0 30px rgba(255, 170, 0, 0.4), 0 0 60px rgba(255, 170, 0, 0.2);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 40px rgba(255, 170, 0, 0.6), 0 0 80px rgba(255, 170, 0, 0.3);
    }
}

.package-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.package-option.selected.premium .package-icon,
.package-option.selected.boost .package-icon {
    width: 52px;
    height: 52px;
    font-size: 1.625rem;
}

.package-option:hover .package-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.3);
}

.package-option.selected .package-icon {
    transform: scale(1.12);
    animation: selectedIconPulse 1.8s ease-in-out infinite;
}

@keyframes selectedIconPulse {
    0%, 100% {
        transform: scale(1.12);
    }
    50% {
        transform: scale(1.16);
    }
}

.package-icon.boost-icon {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.25) 0%, rgba(0, 170, 255, 0.15) 100%);
    color: var(--primary-light);
    border-color: rgba(0, 170, 255, 0.3);
    box-shadow: 0 0 16px rgba(0, 170, 255, 0.2);
}

.package-option.selected.boost .package-icon {
    box-shadow: 0 0 28px rgba(0, 170, 255, 0.45),
                0 4px 20px rgba(0, 170, 255, 0.25);
    animation: selectedIconPulse 1.8s ease-in-out infinite, boostIconGlow 2s ease-in-out infinite;
}

@keyframes boostIconGlow {
    0%, 100% {
        box-shadow: 0 0 28px rgba(0, 170, 255, 0.45),
                    0 4px 20px rgba(0, 170, 255, 0.25);
    }
    50% {
        box-shadow: 0 0 36px rgba(0, 170, 255, 0.6),
                    0 6px 24px rgba(0, 170, 255, 0.35);
    }
}

.package-icon.premium-icon {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: premiumIconGlow 2s ease-in-out infinite;
}

@keyframes premiumIconGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    }
}

.package-option.selected.premium .package-icon {
    animation: premiumIconGlow 2s ease-in-out infinite, premiumIconPulse 1.5s ease-in-out infinite;
}

@keyframes premiumIconPulse {
    0%, 100% {
        transform: scale(1.08);
    }
    50% {
        transform: scale(1.12);
    }
}

.package-info {
    flex: 1;
}

.package-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.2rem 0;
    letter-spacing: -0.01em;
}

.package-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8125rem;
    margin: 0;
}

.package-price {
    color: #00B8FF;
    font-weight: 700;
    font-size: 1.0625rem;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.ios-popup-footer {
    padding: 1.5rem;
    border-top: none;
    flex-shrink: 0;
    background: transparent;
    animation: footerFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s backwards;
}

@keyframes footerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#promoteSubmitBtn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.0625rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

#promoteSubmitBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

#promoteSubmitBtn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

#promoteSubmitBtn:hover::before {
    left: 100%;
}

#promoteSubmitBtn:hover::after {
    opacity: 1;
}

#promoteSubmitBtn:hover:not(:disabled) {
    background: #0099FF;
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 24px rgba(0, 136, 255, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#promoteSubmitBtn:active:not(:disabled) {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#promoteSubmitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transform: none;
}

html[data-theme="light"] #promoteSubmitBtn:disabled {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

/* Promote popup — light theme: читаемость на белом */
html[data-theme="light"] .promote-package-card {
    border-color: rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.9);
}
html[data-theme="light"] .promote-package-card:hover {
    border-color: var(--primary-color);
    background: rgba(46, 196, 164, 0.08);
}
html[data-theme="light"] .promote-package-card.selected {
    border-color: var(--primary-color);
    background: rgba(46, 196, 164, 0.12);
}
html[data-theme="light"] .promote-package-card .promote-package-name,
html[data-theme="light"] .promote-package-card .promote-package-price {
    color: #0f172a;
}
html[data-theme="light"] .promote-package-card .promote-package-desc {
    color: #475569;
}
html[data-theme="light"] .promote-preview-card {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.95);
}
html[data-theme="light"] .promote-preview-card .promote-preview-card-title {
    color: #0f172a;
}
html[data-theme="light"] .promote-preview-card .promote-preview-card-address {
    color: #64748b;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .ios-popup-container {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
    }
    
    .ios-popup-header {
        padding: 1.5rem;
    }
    
    .ios-popup-body {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .server-list-container {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .ios-popup-footer {
        padding: 1.5rem;
    }
    
    .package-option {
        padding: 1.25rem;
    }
    
    .package-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
}

/* Rating Tooltip */
.rating-tooltip {
    position: fixed;
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(5px);
}

.rating-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.rating-tooltip-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.rating-tooltip-content .text-light-muted {
    color: var(--text-light-muted);
}

.rating-tooltip-content .text-white {
    color: var(--text-light);
}

.rating-tooltip-content .text-primary {
    color: var(--primary-color);
}

/* ================================================
   New Promote Popup (Glassmorphism Design)
   ================================================ */

.promote-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1rem;
}

.promote-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.promote-popup-container {
    width: 100%;
    max-width: 900px;
    height: calc(100vh - 80px);
    max-height: 90vh;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                0 4px 16px rgba(0, 136, 204, 0.1);
    transform: scale(0.94);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

html:not([data-theme="light"]) .promote-popup-container {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 4px 16px rgba(0, 136, 204, 0.15);
}

.promote-popup-overlay.active .promote-popup-container {
    transform: scale(1);
    opacity: 1;
}

/* Scroll Container for iPhone-style pages */
.promote-popup-scroll-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
}

.promote-popup-scroll-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.promote-popup-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* iPhone-style Pages */
.promote-popup-page {
    width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.promote-popup-header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
    border-bottom: 1px solid var(--glass-border);
}

html:not([data-theme="light"]) .promote-popup-header {
    border-bottom-color: var(--glass-border);
}

.promote-popup-title-wrapper {
    flex: 1;
    min-width: 0;
}

.promote-popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

html:not([data-theme="light"]) .promote-popup-title {
    color: var(--text-light);
}

.promote-popup-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html:not([data-theme="light"]) .promote-popup-subtitle {
    color: var(--text-muted);
}

.promote-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    outline: none;
}

html:not([data-theme="light"]) .promote-popup-close {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    color: var(--text-muted);
}

.promote-popup-close:hover {
    background: rgba(46, 196, 164, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.05) rotate(90deg);
    color: var(--primary-color);
}

html:not([data-theme="light"]) .promote-popup-close:hover {
    background: rgba(46, 196, 164, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.promote-popup-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Preview Section */
.promote-preview-section {
    padding: 0.75rem 1rem;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.promote-preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html:not([data-theme="light"]) .promote-preview-label {
    color: var(--text-muted);
}

.promote-preview-container {
    flex: 0 0 auto;
    height: 280px;
    max-height: 280px;
    overflow: hidden;
    padding: 0.5rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
    /* Adaptive sizing based on container */
    min-height: 200px;
}

/* Adaptive preview container sizing */
@media (min-width: 1440px) {
    .promote-preview-container {
        height: 350px;
        max-height: 350px;
    }
}

@media (min-width: 1920px) {
    .promote-preview-container {
        height: 420px;
        max-height: 420px;
    }
}

@media (min-width: 2560px) {
    .promote-preview-container {
        height: 560px;
        max-height: 560px;
    }
}

/* Use viewport-based sizing for better responsiveness */
@container (min-width: 800px) {
    .promote-preview-container {
        height: clamp(280px, 35vh, 420px);
        max-height: clamp(280px, 35vh, 420px);
    }
}

@container (min-width: 1200px) {
    .promote-preview-container {
        height: clamp(350px, 40vh, 560px);
        max-height: clamp(350px, 40vh, 560px);
    }
}

.promote-preview-container::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.promote-preview-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html:not([data-theme="light"]) .promote-preview-container {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.promote-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    min-width: 0;
    width: 100%;
}

/* Preview Server Card (Mini Version) */
.promote-preview-card {
    display: grid;
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr) minmax(70px, 25%);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    opacity: 0.6;
    will-change: transform, opacity;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: min(220px, 42vh);
    box-sizing: border-box;
}

.promote-preview-card.animating-blur {
    opacity: 0.4;
    filter: blur(2px);
}

html:not([data-theme="light"]) .promote-preview-card {
    background: rgba(30, 30, 35, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.promote-preview-card.user-server {
    opacity: 1;
    border-width: 2px;
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(46, 196, 164, 0.2);
    z-index: 10;
}

.promote-preview-card.user-server.flying {
    z-index: 100;
    will-change: transform, top, scale, box-shadow;
    opacity: 1 !important;
    filter: none !important;
}

.promote-preview-card.user-server.preview-hover {
    z-index: 50;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.promote-preview-card.user-server.highlight-pulse {
    animation: highlightPulse 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(46, 196, 164, 0.2);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 12px 32px rgba(46, 196, 164, 0.4),
                    0 0 0 2px rgba(46, 196, 164, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(46, 196, 164, 0.2);
    }
}

html:not([data-theme="light"]) .promote-preview-card.user-server {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.promote-preview-card.user-server.standard {
    border-color: var(--glass-border);
    background: var(--glass-bg);
}

html:not([data-theme="light"]) .promote-preview-card.user-server.standard {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.promote-preview-card.user-server.boost {
    border-color: #00AAFF;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 170, 255, 0.1) 100%);
    box-shadow: 0 8px 24px rgba(0, 170, 255, 0.3),
                0 0 0 2px rgba(0, 170, 255, 0.2);
    animation: boostGlow 2s ease-in-out infinite;
}

html:not([data-theme="light"]) .promote-preview-card.user-server.boost {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(0, 170, 255, 0.15) 100%);
    box-shadow: 0 8px 24px rgba(0, 170, 255, 0.4),
                0 0 0 2px rgba(0, 170, 255, 0.3);
}

@keyframes boostGlow {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 170, 255, 0.3),
                    0 0 0 2px rgba(0, 170, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 32px rgba(0, 170, 255, 0.5),
                    0 0 0 3px rgba(0, 170, 255, 0.4);
    }
}

.promote-preview-card.user-server.premium {
    border-color: #FFAA00;
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 170, 0, 0.1) 100%);
    box-shadow: 0 12px 32px rgba(255, 170, 0, 0.4),
                0 0 0 2px rgba(255, 170, 0, 0.5);
    animation: premiumGlow 2.5s ease-in-out infinite;
}

html:not([data-theme="light"]) .promote-preview-card.user-server.premium {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 170, 0, 0.15) 100%);
    box-shadow: 0 12px 32px rgba(255, 170, 0, 0.5),
                0 0 0 2px rgba(255, 170, 0, 0.6);
}

@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(255, 170, 0, 0.4),
                    0 0 0 2px rgba(255, 170, 0, 0.5);
    }
    50% {
        box-shadow: 0 16px 40px rgba(255, 170, 0, 0.6),
                    0 0 0 3px rgba(255, 170, 0, 0.7);
    }
}

.promote-preview-card-media {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: clamp(50px, 10vh, 100px);
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

html:not([data-theme="light"]) .promote-preview-card-media {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-right-color: rgba(255, 255, 255, 0.08);
}

.promote-preview-card-banner {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.promote-preview-card-banner {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.promote-preview-card-main {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.promote-preview-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.promote-preview-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.promote-preview-online {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.promote-preview-online i {
    font-size: 0.5rem;
    color: var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

html:not([data-theme="light"]) .promote-preview-online {
    color: var(--text-muted);
}

.promote-preview-tags {
    display: inline-flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.promote-preview-tag {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(46, 196, 164, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(46, 196, 164, 0.2);
}

html:not([data-theme="light"]) .promote-preview-tag {
    background: rgba(46, 196, 164, 0.15);
    color: var(--primary-light);
    border-color: rgba(46, 196, 164, 0.3);
}

.promote-preview-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html:not([data-theme="light"]) .promote-preview-card-title {
    color: var(--text-light);
}

.promote-preview-card-address {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

html:not([data-theme="light"]) .promote-preview-card-address {
    color: var(--text-muted);
}

.promote-preview-card-actions {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    border-left: 1px solid var(--glass-border);
    min-width: 140px;
}

html:not([data-theme="light"]) .promote-preview-card-actions {
    border-left-color: var(--glass-border);
}

.promote-preview-card-actions .promote-preview-badge {
    align-self: flex-start;
    margin-bottom: auto;
}

.promote-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: scale(0) rotate(-8deg);
    animation: badgeAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: scale(0) rotate(-8deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.promote-preview-badge.standard {
    background: var(--glass-bg);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.promote-preview-badge.boost {
    background: linear-gradient(135deg, #00AAFF, #0088CC);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.4);
}

.promote-preview-badge.premium {
    background: linear-gradient(135deg, #FFAA00, #FF8800);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 170, 0, 0.5),
                0 0 10px rgba(85, 255, 85, 0.3);
    animation: badgeAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, premiumBadgePulse 2s ease-in-out infinite;
}

.promote-preview-badge i {
    font-size: 0.875rem;
}

@keyframes premiumBadgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes previewCardBounce {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.04) translateY(-8px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

@keyframes priceUpdate {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.promote-preview-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promote-preview-view-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.3);
}

/* Package Selection */
.promote-packages-section {
    padding: 0.5rem 1rem 0.75rem;
    flex-shrink: 0;
}

.promote-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Boost Period Selection - Old style (kept for compatibility, will be removed) */
.boost-period-selection {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
    display: none; /* Hide old implementation */
}

/* Boost Period Selection - Inline Buttons in Description Area */
.boost-card-with-period {
    position: relative;
    overflow: hidden;
}

.boost-card-with-period.selected {
    padding-bottom: 0.5rem;
}

.boost-card-with-period .promote-package-body {
    position: relative;
    min-height: 3.5rem;
}

.boost-card-with-period .boost-desc-text {
    display: block;
    transition: opacity 0.3s ease;
}

.boost-card-with-period.selected .boost-desc-text {
    display: none;
}

.boost-period-selection-inline {
    display: none;
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-bottom: 0;
    animation: fadeInPeriod 0.3s ease;
}

.boost-card-with-period.selected .boost-period-selection-inline {
    display: block;
}

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

.boost-period-buttons {
    display: flex;
    gap: 0.375rem;
    justify-content: center;
    align-items: stretch;
    margin: 0;
}

.boost-period-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.625rem 0.5rem;
    min-width: 0;
    background: rgba(0, 170, 255, 0.08);
    border: 2px solid rgba(0, 170, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    height: auto;
}

html:not([data-theme="light"]) .boost-period-btn {
    background: rgba(0, 170, 255, 0.12);
    border-color: rgba(0, 170, 255, 0.4);
}

.boost-period-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 136, 204, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.boost-period-btn:hover {
    border-color: #00AAFF;
    background: rgba(0, 170, 255, 0.15);
    transform: translateY(-2px) translateZ(10px) rotateX(5deg);
    box-shadow: 0 6px 16px rgba(0, 170, 255, 0.3),
                0 0 20px rgba(0, 170, 255, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html:not([data-theme="light"]) .boost-period-btn:hover {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 6px 16px rgba(0, 170, 255, 0.4),
                0 0 20px rgba(0, 170, 255, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.boost-period-btn:hover::before {
    opacity: 1;
}

.boost-period-btn.active {
    border-color: #00AAFF;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.25), rgba(0, 136, 204, 0.15));
    transform: translateY(-1px) translateZ(15px) rotateX(0deg);
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.4),
                0 0 30px rgba(0, 170, 255, 0.3),
                inset 0 2px 4px rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

html:not([data-theme="light"]) .boost-period-btn.active {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.3), rgba(0, 136, 204, 0.2));
    box-shadow: 0 8px 20px rgba(0, 170, 255, 0.5),
                0 0 30px rgba(0, 170, 255, 0.4),
                inset 0 2px 4px rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.boost-period-btn:active {
    transform: translateY(-1px) translateZ(5px) rotateX(2deg);
}

.boost-period-btn-days {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #00AAFF;
    line-height: 1.1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.boost-period-btn.active .boost-period-btn-days {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.boost-period-btn-price {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(0, 170, 255, 0.8);
    line-height: 1.1;
    transition: all 0.3s ease;
    white-space: nowrap;
}

html:not([data-theme="light"]) .boost-period-btn-price {
    color: rgba(0, 170, 255, 0.9);
}

.boost-period-btn.active .boost-period-btn-price {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Old styles for compatibility */
.boost-period-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.boost-period-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.boost-period-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: none; /* Hide old cards */
}

.boost-period-days {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.boost-period-price {
    font-size: 0.875rem;
    color: #3B82F6;
    font-weight: 600;
}

/* Server Card Promotion Borders */
.server-card-boost {
    border: 2px solid #3B82F6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

.server-card-boost-free {
    /* Free boost: NO VISUAL HIGHLIGHTING AT ALL! Just sorting priority. */
    /* Commenting out styles completely - free boost is invisible to users */
}

.server-card-premium {
    border: 2px solid #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.4) !important;
}

/* Premium card colors - standalone (highest priority) */
.server-card-color-green {
    border: 2px solid #10B981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4) !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
}

.server-card-color-blue {
    border: 2px solid #3B82F6 !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.4) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.03) 100%) !important;
}

.server-card-color-red {
    border: 2px solid #EF4444 !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.4) !important;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%) !important;
}

.server-card-color-gold {
    border: 2px solid #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.4) !important;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.03) 100%) !important;
}

/* Premium card colors with premium class (backward compatibility) */
.server-card-color-green.server-card-premium {
    border-color: #10B981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.4) !important;
}

.server-card-color-blue.server-card-premium {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.4) !important;
}

.server-card-color-red.server-card-premium {
    border-color: #EF4444 !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.4) !important;
}

.server-card-color-gold.server-card-premium {
    border-color: #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.4) !important;
}

html:not([data-theme="light"]) .server-card-boost {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4) !important;
}

html:not([data-theme="light"]) .server-card-boost-free {
    /* Dark theme: NO highlighting for free boost */
}

html:not([data-theme="light"]) .server-card-premium {
    border-color: #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.5) !important;
}

/* Dark theme - standalone colors (highest priority) */
html:not([data-theme="light"]) .server-card-color-green {
    border-color: #10B981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.5) !important;
}

html:not([data-theme="light"]) .server-card-color-blue {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.5) !important;
}

html:not([data-theme="light"]) .server-card-color-red {
    border-color: #EF4444 !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.5) !important;
}

html:not([data-theme="light"]) .server-card-color-gold {
    border-color: #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.5) !important;
}

/* Dark theme - with premium class (backward compatibility) */
html:not([data-theme="light"]) .server-card-color-green.server-card-premium {
    border-color: #10B981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.5) !important;
}

html:not([data-theme="light"]) .server-card-color-blue.server-card-premium {
    border-color: #3B82F6 !important;
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.5) !important;
}

html:not([data-theme="light"]) .server-card-color-red.server-card-premium {
    border-color: #EF4444 !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.5) !important;
}

html:not([data-theme="light"]) .server-card-color-gold.server-card-premium {
    border-color: #FBBF24 !important;
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.5) !important;
}

.promote-package-card {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    transform: none !important;
}

html:not([data-theme="light"]) .promote-package-card {
    background: var(--glass-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promote-package-card:hover {
    transform: none !important;
    box-shadow: 0 8px 20px rgba(46, 196, 164, 0.2);
    border-color: var(--primary-color);
    background: rgba(46, 196, 164, 0.05);
}

html:not([data-theme="light"]) .promote-package-card:hover {
    box-shadow: 0 8px 20px rgba(46, 196, 164, 0.3);
    background: rgba(46, 196, 164, 0.08);
}

.promote-package-card.selected {
    border-color: var(--primary-color);
    background: rgba(46, 196, 164, 0.1);
    box-shadow: 0 8px 24px rgba(46, 196, 164, 0.2),
                0 0 0 1px rgba(46, 196, 164, 0.3);
    transform: none !important;
}

html:not([data-theme="light"]) .promote-package-card.selected {
    background: rgba(46, 196, 164, 0.15);
    box-shadow: 0 8px 24px rgba(46, 196, 164, 0.3),
                0 0 0 1px rgba(46, 196, 164, 0.4);
}

.promote-package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.promote-package-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(46, 196, 164, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

html:not([data-theme="light"]) .promote-package-icon {
    background: rgba(46, 196, 164, 0.15);
}

.promote-package-card.selected .promote-package-icon {
    background: var(--primary-color);
    color: #fff;
    transform: none !important;
}

.promote-package-icon.boost-icon {
    background: rgba(0, 170, 255, 0.1);
    color: #00AAFF;
}

html:not([data-theme="light"]) .promote-package-icon.boost-icon {
    background: rgba(0, 170, 255, 0.15);
}

.promote-package-card.selected .promote-package-icon.boost-icon {
    background: linear-gradient(135deg, #00AAFF, #0088CC);
    color: #fff;
}


.promote-package-icon.premium-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
}

html:not([data-theme="light"]) .promote-package-icon.premium-icon {
    background: rgba(251, 191, 36, 0.15);
}

.promote-package-card.selected .promote-package-icon.premium-icon {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #fff;
    animation: premiumIconPulse 1.5s ease-in-out infinite;
}

@keyframes premiumIconPulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.15);
    }
}

.promote-package-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

html:not([data-theme="light"]) .promote-package-price {
    color: var(--text-light);
}

.promote-package-card.selected .promote-package-price {
    color: var(--primary-color);
}

.promote-package-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.promote-package-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

html:not([data-theme="light"]) .promote-package-name {
    color: var(--text-light);
}

.promote-package-name i {
    font-size: 0.875rem;
    color: #FFAA00;
}

.promote-package-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

html:not([data-theme="light"]) .promote-package-desc {
    color: var(--text-muted);
}

/* Premium Upgrade Block */
.premium-upgrade-block {
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.1), rgba(31, 169, 135, 0.05));
    border: 3px solid rgba(46, 196, 164, 0.8);
    box-shadow: 0 0 20px rgba(46, 196, 164, 0.3), inset 0 0 20px rgba(46, 196, 164, 0.05);
}

html:not([data-theme="light"]) .premium-upgrade-block {
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.15), rgba(31, 169, 135, 0.08));
    border-color: rgba(46, 196, 164, 0.9);
    box-shadow: 0 0 25px rgba(46, 196, 164, 0.4), inset 0 0 25px rgba(46, 196, 164, 0.08);
}

.premium-upgrade-block h4 {
    background: linear-gradient(135deg, #57d8bd, #2ec4a4, #1fa987);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}


/* Premium Package Locked State — без серого оверлея, как у других пакетов */
.promote-package-card.premium-locked {
    position: relative;
}

/* Premium Popup Styles */
.premium-preview-section {
    padding: 2rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.premium-preview-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html:not([data-theme="light"]) .premium-preview-label {
    color: var(--text-muted);
}

.premium-preview-container {
    min-height: 200px;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

html:not([data-theme="light"]) .premium-preview-container {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.premium-preview-card-wrapper {
    width: 100%;
    max-width: 600px;
}

.premium-preview-card {
    display: grid;
    grid-template-columns: 28% minmax(0, 1fr) 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid;
    background: var(--glass-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html:not([data-theme="light"]) .premium-preview-card {
    background: var(--glass-bg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@keyframes premiumColorChange {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.premium-preview-card-media {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 120px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    border-right: 1px solid var(--glass-border);
    overflow: hidden;
}

html:not([data-theme="light"]) .premium-preview-card-media {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-right-color: var(--glass-border);
}

.premium-preview-card-banner {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.premium-preview-card-main {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.premium-preview-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.premium-preview-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html:not([data-theme="light"]) .premium-preview-card-title {
    color: var(--text-light);
}

.premium-preview-card-address {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

html:not([data-theme="light"]) .premium-preview-card-address {
    color: var(--text-muted);
}

.premium-preview-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.premium-preview-online {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.premium-preview-online i {
    font-size: 0.5rem;
    color: var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

html:not([data-theme="light"]) .premium-preview-online {
    color: var(--text-muted);
}

.premium-preview-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #FBBF24;
    font-weight: 700;
    animation: premiumStarsPulse 2s ease-in-out infinite;
}

.premium-preview-stars i {
    font-size: 0.75rem;
    color: #FBBF24;
}

@keyframes premiumStarsPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.premium-preview-card-actions {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    border-left: 1px solid var(--glass-border);
    min-width: 140px;
}

html:not([data-theme="light"]) .premium-preview-card-actions {
    border-left-color: var(--glass-border);
}

.premium-preview-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-preview-view-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.3);
}

/* Color Selection */
.premium-color-section {
    padding: 1rem 0;
}

.premium-color-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-align: center;
}

html:not([data-theme="light"]) .premium-color-label {
    color: var(--text-muted);
}

.premium-color-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.premium-color-btn {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid transparent;
    background: var(--glass-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 4px;
}

html:not([data-theme="light"]) .premium-color-btn {
    background: var(--glass-bg);
}

.premium-color-btn:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.premium-color-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.3);
    transform: scale(1.1);
}

html:not([data-theme="light"]) .premium-color-btn.active {
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.4);
}

.premium-color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.premium-color-btn:hover .premium-color-swatch {
    transform: scale(1.05);
}

/* Features Section */
.premium-features-section {
    padding: 0 2rem 1.5rem;
    flex-shrink: 0;
}

.premium-features-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html:not([data-theme="light"]) .premium-features-label {
    color: var(--text-muted);
}

.premium-features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.premium-feature-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.premium-feature-item strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

html:not([data-theme="light"]) .premium-feature-item strong {
    color: var(--text-light);
}

/* Page Indicators (iPhone-style dots) */
.promote-popup-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.25rem 1.5rem;
    flex-shrink: 0;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 10;
    margin: 0;
    pointer-events: none;
    min-height: auto;
    height: auto;
}

.promote-popup-indicators .promote-popup-indicator {
    pointer-events: auto;
}

html:not([data-theme="light"]) .promote-popup-indicators {
    background: transparent !important;
    background-color: transparent !important;
}

[data-theme="light"] .promote-popup-indicators {
    background: transparent !important;
    background-color: transparent !important;
}

.promote-popup-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.promote-popup-indicator.active {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    background: #34D399;
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

html:not([data-theme="light"]) .promote-popup-indicator {
    background: rgba(255, 255, 255, 0.2);
}

html:not([data-theme="light"]) .promote-popup-indicator.active {
    background: #34D399;
}

/* Footer */
.promote-popup-footer {
    padding: 1rem 1.5rem;
    flex-shrink: 0;
    border-top: none;
    background: transparent;
}

html:not([data-theme="light"]) .promote-popup-footer {
    border-top: none;
    background: transparent;
}

.promote-purchase-btn {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font-weight: 700;
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 24px rgba(46, 196, 164, 0.4),
                0 4px 12px rgba(0, 136, 204, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    outline: none;
}

.promote-purchase-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.promote-purchase-btn:hover::before {
    left: 100%;
}

.promote-purchase-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(46, 196, 164, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.promote-purchase-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(46, 196, 164, 0.3);
}

.promote-purchase-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(100, 116, 139, 0.2);
    box-shadow: none;
    transform: none;
}

.promote-purchase-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.promote-purchase-btn:hover:not(:disabled) .promote-purchase-icon {
    transform: translateY(-2px);
}

.promote-purchase-text {
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .promote-popup-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }
    
    .promote-popup-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .premium-preview-section {
        padding: 1.5rem;
    }
    
    .premium-color-buttons {
        flex-wrap: wrap;
    }
    
    .premium-features-section {
        padding: 0 1.5rem 1.5rem;
    }
    
    .promote-preview-section {
        padding: 1.5rem;
    }
    
    .promote-packages-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .promote-popup-footer {
        padding: 1.25rem 1.5rem 1.5rem;
    }
    
    .promote-preview-card {
        grid-template-columns: 1fr;
    }
    
    .promote-preview-card-media {
        min-height: clamp(60px, 14vh, 120px);
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }
    
    html:not([data-theme="light"]) .promote-preview-card-media {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    
    .promote-preview-card-actions {
        border-left: none;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    html:not([data-theme="light"]) .promote-preview-card-actions {
        border-top-color: rgba(255, 255, 255, 0.08);
    }
    
    /* Compact boost period buttons on mobile */
    .boost-period-buttons {
        gap: 0.25rem;
    }
    
    .boost-period-btn {
        padding: 0.5rem 0.375rem;
        gap: 0.0625rem;
    }
    
    .boost-period-btn-days {
        font-size: 0.75rem;
    }
    
    .boost-period-btn-price {
        font-size: 0.6875rem;
    }
    
    .boost-period-selection-inline {
        margin-top: 0.375rem;
    }
}

/* Extra compact for small screens */
@media (max-width: 480px) {
    .boost-period-buttons {
        gap: 0.1875rem;
    }
    
    .boost-period-btn {
        padding: 0.4375rem 0.3125rem;
    }
    
    .boost-period-btn-days {
        font-size: 0.6875rem;
    }
    
    .boost-period-btn-price {
        font-size: 0.625rem;
    }
    
    .boost-period-selection-inline {
        margin-top: 0.25rem;
    }
}

/* Stars Purchase Section */
.stars-purchase-section {
    padding: 0.75rem 1rem;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    justify-content: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stars-purchase-header {
    text-align: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.stars-purchase-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stars-purchase-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Swipeable Container */
.stars-purchase-swipe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
}

.stars-purchase-section-content {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.28, 0.11, 0.32, 1), opacity 0.4s ease;
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
}

.stars-purchase-section-content.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.stars-purchase-section-content.prev {
    transform: translateX(-100%);
}

/* Star Cards */
.stars-purchase-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.stars-purchase-card {
    position: relative;
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.1), rgba(46, 196, 164, 0.05));
    border: 1px solid rgba(46, 196, 164, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.stars-purchase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 196, 164, 0.3);
    border-color: rgba(46, 196, 164, 0.4);
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.15), rgba(46, 196, 164, 0.08));
}

.stars-purchase-card.selected {
    border-color: #34D399;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(52, 211, 153, 0.1));
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.4);
    transform: translateY(-2px);
}

.stars-purchase-card.featured {
    border-color: rgba(46, 196, 164, 0.4);
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.15), rgba(46, 196, 164, 0.08));
    box-shadow: 0 4px 16px rgba(46, 196, 164, 0.25);
}

.stars-purchase-card-badge {
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.4);
}

.stars-purchase-card-icon {
    font-size: 2rem;
    color: var(--primary-color);
    line-height: 1;
}

.stars-purchase-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stars-purchase-card-stars {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
}

.stars-purchase-card-price {
    font-size: 1rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.stars-purchase-card:hover .stars-purchase-card-price {
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.stars-purchase-card-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.stars-purchase-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.4);
}

.stars-purchase-card-btn:active {
    transform: translateY(0);
}

/* Custom Slider */
.stars-purchase-slider-container {
    padding: 0.25rem 0;
    flex-shrink: 0;
}

.stars-purchase-slider-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
}

.stars-purchase-slider-value {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stars-purchase-slider-value.pulse {
    animation: pulse 0.6s ease;
}

.stars-purchase-slider-separator {
    color: var(--text-light);
}

.stars-purchase-slider-price {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.stars-purchase-slider-price.pulse {
    animation: pulse 0.6s ease;
}

.stars-purchase-slider-currency {
    color: var(--text-muted);
}

.stars-purchase-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.stars-purchase-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.4);
    transition: all 0.3s ease;
}

.stars-purchase-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.5);
}

.stars-purchase-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.4);
    transition: all 0.3s ease;
}

.stars-purchase-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.5);
}

.stars-purchase-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.stars-purchase-custom-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stars-purchase-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 196, 164, 0.4);
}

.stars-purchase-custom-btn:active {
    transform: translateY(0);
}

/* Section Indicators */
.stars-purchase-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.stars-purchase-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stars-purchase-indicator.active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 4px;
}

.stars-purchase-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.stars-purchase-indicator.active:hover {
    background: var(--primary-light);
}

/* Stars purchase — светлая тема */
html[data-theme="light"] .stars-purchase-slider-info {
    color: #0f172a;
}
html[data-theme="light"] .stars-purchase-slider-value,
html[data-theme="light"] .stars-purchase-slider-price {
    color: var(--primary-color);
}
html[data-theme="light"] .stars-purchase-slider-separator {
    color: #475569;
}
html[data-theme="light"] .stars-purchase-slider-currency {
    color: #64748b;
}
html[data-theme="light"] .stars-purchase-slider {
    background: rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .stars-purchase-slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.5);
}
html[data-theme="light"] .stars-purchase-slider::-moz-range-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 2px 8px rgba(46, 196, 164, 0.5);
}
html[data-theme="light"] .stars-purchase-slider-labels {
    color: #64748b;
}
html[data-theme="light"] .stars-purchase-title {
    color: #0f172a;
}
html[data-theme="light"] .stars-purchase-subtitle {
    color: #475569;
}
html[data-theme="light"] .stars-purchase-indicator {
    background: rgba(15, 23, 42, 0.2);
}
html[data-theme="light"] .stars-purchase-indicator:hover {
    background: rgba(15, 23, 42, 0.35);
}
html[data-theme="light"] .stars-purchase-indicator.active {
    background: var(--primary-color);
}
html[data-theme="light"] .stars-purchase-indicator.active:hover {
    background: var(--primary-dark);
}
html[data-theme="light"] .stars-purchase-card {
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.08), rgba(46, 196, 164, 0.03));
    border-color: rgba(46, 196, 164, 0.25);
}
html[data-theme="light"] .stars-purchase-card .stars-purchase-card-stars,
html[data-theme="light"] .stars-purchase-card .stars-purchase-card-price {
    color: #0f172a;
}
html[data-theme="light"] .stars-purchase-card.selected {
    background: linear-gradient(135deg, rgba(46, 196, 164, 0.15), rgba(46, 196, 164, 0.08));
    border-color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stars-purchase-cards {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stars-purchase-section {
        padding: 1.25rem 1.5rem;
    }
    
    .stars-purchase-slider-info {
        font-size: 1.25rem;
    }
}

/* Premium Color Selector (in add/edit server) */
.premium-features-field {
    margin-top: 1.5rem;
}

.premium-color-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
    position: relative;
}

.premium-color-selector.locked {
    pointer-events: none;
    position: relative;
}

.premium-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-lock-overlay i {
    font-size: 2rem;
    color: #FBBF24;
}

/* Light theme overrides for premium lock overlay */
[data-theme="light"] .premium-lock-overlay {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
}

.premium-color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-color-option:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(46, 196, 164, 0.3);
}

.premium-color-option.active {
    border-color: #34D399;
    background: rgba(52, 211, 153, 0.1);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

.premium-color-swatch {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.premium-color-option:hover .premium-color-swatch {
    transform: scale(1.05);
}

.premium-color-option span {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 768px) {
    .premium-color-selector {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Download page (HyTaLauncher) ===== */
.download-page .download-hero {
    opacity: 0;
    animation: downloadFadeIn 0.5s ease 0.1s forwards;
}
.download-page .download-cta {
    opacity: 0;
    animation: downloadFadeInUp 0.6s ease 0.2s forwards;
}
.download-page .download-cta .btn-download-main {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.download-page .download-cta .btn-download-main:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 136, 204, 0.35);
}
.download-page .download-links a {
    transition: opacity 0.2s, color 0.2s;
}
.download-page .download-links a:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}
.download-page .download-instruct {
    opacity: 0;
    animation: downloadFadeInUp 0.5s ease both;
}
.download-page .download-instruct:nth-child(1) {
    animation-delay: 0.3s;
}
.download-page .download-instruct:nth-child(2) {
    animation-delay: 0.45s;
}
.download-page .download-instruct .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.download-page .download-instruct .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 136, 204, 0.18);
}
.download-page .download-back {
    opacity: 0;
    animation: downloadFadeIn 0.4s ease 0.55s forwards;
}
.download-page .download-mac-help {
    color: var(--text-light);
}

.download-page .step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(0, 136, 204, 0.25);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}
@keyframes downloadFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes downloadFadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-theme="light"] .download-page .step-num {
    background: rgba(0, 136, 204, 0.15);
    color: #0066aa;
}
[data-theme="light"] .download-page .download-hero .rounded-pill.bg-primary {
    background: rgba(0, 136, 204, 0.1) !important;
    border-color: rgba(0, 136, 204, 0.3) !important;
}
