:root {
    --bg: #07111f;
    --bg-2: #0d1a2d;
    --card: rgba(17, 27, 46, 0.78);
    --card-2: rgba(10, 18, 32, 0.92);
    --line: rgba(126, 168, 255, 0.18);
    --text: #f4f7ff;
    --muted: #95a8c7;
    --blue: #4da3ff;
    --blue-2: #1769ff;
    --green: #36d27e;
    --red: #ff5e73;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(77,163,255,0.18), transparent 25%),
        radial-gradient(circle at top right, rgba(23,105,255,0.14), transparent 20%),
        linear-gradient(180deg, #06101d 0%, #0a1423 35%, #09111d 100%);
    color: var(--text);
    min-height: 100vh;
}

a {
    text-decoration: none !important;
    color: inherit;
}

.main-content {
    min-height: 60vh;
}

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(5, 10, 19, 0.74);
    border-bottom: 1px solid rgba(115, 155, 255, 0.14);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(77,163,255,0.12), rgba(23,105,255,0.06));
    pointer-events: none;
}

.site-header-inner {
    position: relative;
    padding: 16px 0 14px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(23, 105, 255, 0.32);
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 11px 16px;
    border: 1px solid rgba(120, 160, 255, 0.16);
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    color: #e7efff;
    transition: .2s ease;
}

.main-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 160, 255, 0.35);
    background: rgba(255,255,255,0.06);
}

.server-topbar {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: stretch;
}

.server-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(120, 160, 255, 0.12);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 68px;
}

.server-pill span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 6px;
}

.server-pill strong {
    font-size: 16px;
}

.server-topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.btn-main,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    transition: .2s ease;
}

.btn-small {
    padding: 12px 14px;
    font-size: 14px;
}

.btn-main {
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    color: white;
    box-shadow: 0 12px 30px rgba(23, 105, 255, 0.28);
}

.btn-main:hover {
    transform: translateY(-1px);
    color: white;
}

.btn-ghost {
    background: rgba(255,255,255,0.03);
    border-color: rgba(120, 160, 255, 0.18);
    color: white;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.hero-section,
.page-hero {
    padding: 40px 0 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: center;
}

.hero-left,
.hero-right,
.page-hero-box,
.glass-card,
.feature-box,
.rule-card,
.contact-card,
.info-banner,
.content-card,
.skin-hero,
.server-stat-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-left,
.page-hero-box,
.glass-card,
.skin-hero {
    padding: 30px;
}

.hero-badge,
.page-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(126, 168, 255, 0.14);
    color: #dbe8ff;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.hero-title,
.page-hero-box h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.hero-text,
.page-hero-box p,
.section-heading p,
.feature-box p,
.rule-card p,
.contact-card p,
.footer-text,
.content-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0 18px;
}

.hero-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mini-stat,
.live-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(126, 168, 255, 0.11);
}

.mini-stat span,
.live-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.mini-stat strong,
.live-card strong {
    font-size: 18px;
}

.live-stats-grid,
.feature-grid,
.rules-grid,
.contacts-grid {
    display: grid;
    gap: 18px;
}

.live-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 16px;
}

.content-section {
    padding: 18px 0 34px;
}

.alt-section {
    padding-top: 8px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 34px;
    margin: 0 0 8px;
}

.feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

.feature-box {
    padding: 24px;
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(77,163,255,0.2), rgba(23,105,255,0.15));
    font-size: 25px;
    margin-bottom: 14px;
}

.feature-box h3,
.rule-card h3,
.contact-card h3,
.info-banner h3,
.glass-card h2 {
    margin: 0 0 10px;
}

.info-banner {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.compact-hero .page-hero-box h1 {
    font-size: clamp(28px, 4vw, 44px);
}

.rules-grid {
    grid-template-columns: repeat(3, 1fr);
}

.rule-card {
    padding: 24px;
}

.rule-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: rgba(77,163,255,0.12);
    border: 1px solid rgba(126, 168, 255, 0.16);
    font-weight: 700;
    margin-bottom: 14px;
}

.contacts-grid {
    grid-template-columns: repeat(4, 1fr);
}

.contact-card {
    padding: 24px;
}

.site-footer {
    margin-top: 26px;
    border-top: 1px solid rgba(126, 168, 255, 0.1);
    background: rgba(4, 8, 15, 0.7);
    backdrop-filter: blur(16px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 24px;
    padding: 28px 0 12px;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
}

.footer-bottom {
    padding: 14px 0 22px;
    color: #7788a8;
    border-top: 1px solid rgba(126, 168, 255, 0.08);
    margin-top: 10px;
}

.status-online {
    color: var(--green) !important;
}

.status-offline {
    color: var(--red) !important;
}

/* skins page */
.skin-page-wrapper {
    padding: 28px 0 36px;
}

.skin-hero {
    margin-bottom: 20px;
}

.skin-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
}

.skin-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}

.skins-status-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.server-stat-box {
    padding: 18px;
}

.server-stat-box span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.server-stat-box strong {
    font-size: 18px;
}

.card {
    background: rgba(11, 18, 31, 0.92) !important;
    border: 1px solid rgba(126, 168, 255, 0.14) !important;
    border-radius: 20px !important;
    color: white !important;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body,
.card-footer,
.card-header {
    background: transparent !important;
    color: white !important;
    border-color: rgba(126, 168, 255, 0.08) !important;
}

.item-name {
    color: #ecf3ff !important;
}

.skin-image {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin-top: 14px;
}

.select,
.form-control,
.form-select {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(126, 168, 255, 0.12) !important;
    color: white !important;
    border-radius: 12px !important;
}

.modal-content {
    background: #0d1727 !important;
    color: white !important;
    border: 1px solid rgba(126, 168, 255, 0.15) !important;
    border-radius: 18px !important;
}

.modal-header,
.modal-footer {
    border-color: rgba(126, 168, 255, 0.08) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-2)) !important;
    border: none !important;
    border-radius: 12px !important;
}

.btn-danger {
    border-radius: 12px !important;
}

.btn-secondary {
    border-radius: 12px !important;
}

@media (max-width: 1100px) {
    .hero-grid,
    .feature-grid,
    .rules-grid,
    .contacts-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .server-topbar {
        grid-template-columns: 1fr 1fr;
    }

    .hero-mini-stats,
    .skins-status-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .hero-grid,
    .feature-grid,
    .rules-grid,
    .contacts-grid,
    .footer-grid,
    .live-stats-grid,
    .server-topbar,
    .hero-mini-stats,
    .skins-status-row {
        grid-template-columns: 1fr;
    }

    .info-banner,
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    .hero-left,
    .page-hero-box,
    .glass-card,
    .skin-hero {
        padding: 22px;
    }

    .brand-title {
        font-size: 20px;
    }
}

/* ===== ВИПРАВЛЕННЯ КОЛЬОРІВ ШРИФТІВ ===== */

body {
    color: #f4f7ff;
}

.hero-title,
.page-hero-box h1,
.skin-hero h1,
.section-heading h2,
.glass-card h2,
.feature-box h3,
.rule-card h3,
.contact-card h3,
.info-banner h3,
.brand-title,
.footer-title {
    color: #f8fbff !important;
}

.hero-text,
.page-hero-box p,
.section-heading p,
.feature-box p,
.rule-card p,
.contact-card p,
.footer-text,
.content-card p,
.brand-subtitle,
.server-pill span,
.mini-stat span,
.live-card span,
.server-stat-box span {
    color: #b8c7e0 !important;
}

.server-pill strong,
.mini-stat strong,
.live-card strong,
.server-stat-box strong,
.rule-card span,
.contact-card p,
.feature-box h3,
.glass-card h2,
.info-banner h3 {
    color: #ffffff !important;
}

.hero-badge,
.page-tag {
    color: #eaf2ff !important;
}

.main-nav a {
    color: #edf4ff !important;
}

.main-nav a:hover {
    color: #ffffff !important;
}

.footer-links a {
    color: #b8c7e0 !important;
}

.footer-links a:hover {
    color: #ffffff !important;
}

.status-online {
    color: #43e08d !important;
    font-weight: 700;
}

.status-offline {
    color: #ff6b81 !important;
    font-weight: 700;
}

.card-title,
.card-header,
.card-body,
.card-footer,
.item-name,
.card h5,
.card h6,
.card p,
.card label {
    color: #f4f7ff !important;
}

.form-control,
.form-select,
.select {
    color: #ffffff !important;
}

.form-control::placeholder,
.form-select::placeholder {
    color: #b8c7e0 !important;
}

option {
    color: #ffffff;
    background: #0d1727;
}

label {
    color: #dbe7ff !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #f8fbff;
}

p {
    color: #c2d0e6;
}