/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {
    --bg-main: #050816;
    --bg-card: rgba(15, 23, 42, 0.85);
    --accent: #ff9de7;
    --accent-soft: #22d3ee;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --glass-bg: rgba(15, 23, 42, 0.75);
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.9);
    --transition-fast: 0.2s ease-out;
    --transition-normal: 0.3s ease;
    --accent-color: #ff9de7;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
    color: var(--text-main);
    background: #020617;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный фон */
.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.3), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.2), transparent 60%);
    opacity: 0.8;
    z-index: -2;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.3;
}

/* Контейнер страницы */
.page-shell {
    max-width: 1200px;
    margin: 28px auto;
    padding: 28px clamp(16px, 3vw, 40px);
    border-radius: 32px;
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.12), transparent 70%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.92));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Шапка */
.top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    position: sticky;
    top: 16px;
    z-index: 100;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(8, 13, 30, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

/* Блок авторизации в шапке */
.nav-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.nav-login-btn {
    padding: 7px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.nav-login-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.nav-user-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2), 0 4px 12px rgba(168, 85, 247, 0.25);
    flex-shrink: 0;
}

.nav-username {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: conic-gradient(from 140deg, #22d3ee, #a855f7, #f97316, #22d3ee);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b1120;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.6);
    animation: logoFloat 3s ease-in-out infinite;
    flex-shrink: 0;
}

/* ── Easter egg: itskitsurai сидит на логотипе ── */
.kit-sitter {
    position: absolute;
    left: 0;
    width: 48px;
    /* опускаем на 1/4 высоты изображения (~12px) чтобы ноги уходили в блок */
    bottom: calc(100% - 12px);
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    animation: logoFloat 3s ease-in-out infinite;
}

.kit-sitter img {
    width: 36px;
    height: auto;
    image-rendering: pixelated;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.5));
}

/* никнейм — сбоку (справа) при наведении */
.kit-sitter-name {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 17, 32, 0.92);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 4px;
    color: #c084fc;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    padding: 2px 6px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.logo:hover .kit-sitter-name {
    opacity: 1;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    font-weight: 700;
    letter-spacing: 0.05em;
    font-size: 1.4rem;
    color: #e5e7eb;
}

/* Вкладки */
.tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.35), transparent 70%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.8);
}

.tab-btn {
    position: relative;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    /* Для ссылок */
}

.tab-icon {
    font-size: 1.2rem;
    transition: transform var(--transition-fast);
}

.tab-btn:hover .tab-icon {
    transform: scale(1.2);
}

.tab-btn.active {
    color: #0b1120;
    font-weight: 600;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.7);
    transform: translateY(-2px);
}

.tab-btn:not(.active):hover {
    color: var(--text-main);
    background: rgba(148, 163, 184, 0.15);
}

/* Контент */
.content {
    margin-top: 20px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero секция */
.hero-section {
    margin-bottom: 48px;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.2), transparent 60%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.2), transparent 60%),
        rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.95);
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   НОВЫЙ HERO БЛОК СО СЛАЙДЕРОМ
══════════════════════════════════════════════════════ */
.hero-slider {
    position: relative;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.95);
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    animation: heroZoom 20s ease-in-out infinite;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

@keyframes heroZoom {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 20, 0.85) 0%, rgba(10, 10, 20, 0.5) 60%, rgba(10, 10, 20, 0.1) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    z-index: 3;
    padding: 36px 40px;
    max-width: 560px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
    top: 0;
    bottom: 0;
    left: 0;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.3));
    border: 1px solid rgba(168, 85, 247, 0.5);
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 20px 0;
    background: linear-gradient(135deg, #ff9de7, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    color: var(--text-muted);
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.hero-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow: hidden;
}

.hero-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.tag-icon {
    font-size: 1rem;
}

/* Индикаторы слайдов */
.hero-pagination {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-dot.active {
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
    border-radius: 4px;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Стрелки навигации */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider:hover .hero-arrow {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 20px;
}

.hero-arrow-next {
    right: 20px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Сетка контента главной страницы */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* ══════════════════════════════════════════════════════
   БЛОК ИНФОРМАЦИИ (ОБЪЕДИНЁННЫЙ)
══════════════════════════════════════════════════════ */
.info-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 32px;
}

.info-column h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.info-column p {
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.info-icon {
    color: #a855f7;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   БЛОК СООБЩЕСТВА
══════════════════════════════════════════════════════ */
.community-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 24px;
    transition: all 0.3s;
}

.community-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

.community-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.community-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.community-avatars {
    display: flex;
    align-items: center;
}

.avatar-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-main);
    margin-left: -8px;
    transition: all 0.2s;
}

.avatar-item:first-child {
    margin-left: 0;
}

.avatar-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
    z-index: 10;
}

.avatar-more {
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

/* ══════════════════════════════════════════════════════
   БЛОК ФОРУМА
══════════════════════════════════════════════════════ */
.forum-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.forum-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    text-decoration: none;
}

.forum-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
}

.forum-text {
    flex: 1;
    margin-left: 16px;
}

.forum-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.forum-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.forum-arrow {
    font-size: 1.5rem;
    color: #a855f7;
    transition: transform 0.3s;
}

.forum-block:hover .forum-arrow {
    transform: translateX(5px);
}

/* ══════════════════════════════════════════════════════
   ГАЛЕРЕЯ
══════════════════════════════════════════════════════ */
.gallery-section {
    margin-bottom: 48px;
}

.gallery-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                z-index 0s 0.35s;
}

.gallery-item:hover {
    transform: scale(2.2);
    box-shadow: 0 36px 90px rgba(168, 85, 247, 0.75);
    z-index: 10;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease,
                z-index 0s;
}

.gallery-item:nth-child(4n+1) { transform-origin: left center; }
.gallery-item:nth-child(4n)   { transform-origin: right center; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* gallery-label is now inside .gallery-caption — see bottom of file */

.overview-card {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(20px);
    transition: all var(--transition-normal);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.4);
    border-color: rgba(168, 85, 247, 0.5);
}

.overview-card h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.overview-card p {
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.gallery-grid-single {
    grid-template-columns: 1fr;
    max-width: 520px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all var(--transition-normal);
}

.gallery-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.5);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.gallery-label {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    margin-top: 16px;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.feature-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

.accent {
    color: var(--accent-color);
    font-weight: 600;
}

a.accent {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a.accent:hover {
    color: #ff7dd8;
    text-decoration: underline;
}

.gallery-card {
    display: block;
}

/* Авторизация и покупка */
.auth-container {
    max-width: 600px;
    margin: 0 auto;
}

.auth-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.auth-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.twitch-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #9146ff, #772ce8);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 12px 35px rgba(145, 70, 255, 0.5);
}

.twitch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 45px rgba(145, 70, 255, 0.7);
}

.twitch-icon {
    font-size: 1.5rem;
}

.user-container {
    max-width: 900px;
    margin: 0 auto;
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    margin-bottom: 32px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-soft);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.user-status {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.logout-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.logout-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-main);
}

.purchase-status {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
}

.status-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--accent-soft);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.access-card {
    padding: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.4);
    text-align: center;
}

.access-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.access-card h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #22c55e;
}

.server-info {
    margin: 32px 0;
}

.server-info h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.ip-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.ip-box code {
    font-size: 1.2rem;
    color: var(--accent-soft);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.5);
}

.nick-update {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 24px auto 0;
}

#update-nick {
    flex: 1;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
}

.update-btn {
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.update-btn:hover {
    transform: translateY(-2px);
}

.purchase-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
}

.purchase-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.purchase-card {
    position: relative;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
    transition: all var(--transition-normal);
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.5);
}

.purchase-card.highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(56, 189, 248, 0.15));
    border-color: rgba(168, 85, 247, 0.5);
}

.purchase-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    color: #0b1120;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.purchase-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.purchase-card h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.purchase-price {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.purchase-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.reward-info {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    margin-bottom: 20px;
    text-align: center;
}

.reward-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.purchase-btn {
    width: 100%;
    padding: 14px 28px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 12px;
}

.purchase-btn:disabled {
    background: rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    cursor: not-allowed;
}

.purchase-btn.primary {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.5);
}

.purchase-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(56, 189, 248, 0.7);
}

.earn-link {
    display: inline-block;
    color: var(--accent-soft);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.earn-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

/* Модальные окна */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 600px;
    width: 90%;
    padding: 40px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-main);
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(148, 163, 184, 0.4);
    transform: rotate(90deg);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 2px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--accent-soft);
    background: rgba(56, 189, 248, 0.1);
}

.payment-method.selected {
    border-color: var(--accent-soft);
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.payment-icon {
    font-size: 1.8rem;
}

.payment-name {
    font-weight: 600;
}

.minecraft-nick-input {
    margin-bottom: 16px;
}

.minecraft-nick-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.minecraft-nick-input input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

.minecraft-nick-input input:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

.minecraft-nick-input input.nick-valid {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.minecraft-nick-input input.nick-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* Правила никнейма */
.nick-rules {
    margin-top: 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nick-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nick-rule::before {
    content: '—';
    font-size: 11px;
    width: 12px;
    flex-shrink: 0;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nick-rule.ok {
    color: #22c55e;
}

.nick-rule.ok::before {
    content: '✓';
    color: #22c55e;
    font-weight: 700;
}

.confirm-payment-btn {
    width: 100%;
    padding: 16px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.confirm-payment-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.7);
}

.confirm-payment-btn:disabled {
    background: rgba(148, 163, 184, 0.3);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Фишки */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-box {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.6);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.feature-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-box p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Правила */
.rules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.rule-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all var(--transition-normal);
}

.rule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.5);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rule-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rule-tag {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.rule-card h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    line-height: 1.4;
}

.rule-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.rule-points {
    list-style: none;
    margin-top: 12px;
}

.rule-points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--text-muted);
    line-height: 1.6;
}

.rule-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-soft);
    font-weight: 700;
}

.rule-exception {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    border-left: 3px solid var(--accent-soft);
    font-size: 0.9rem;
}

.rules-notice {
    display: flex;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(244, 114, 182, 0.1);
    border: 1px solid rgba(244, 114, 182, 0.3);
}

.notice-icon {
    font-size: 2.5rem;
}

.notice-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.notice-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Присоединиться */
.join-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.method-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
    transition: all var(--transition-normal);
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(168, 85, 247, 0.5);
}

.method-card.highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(56, 189, 248, 0.2));
    border-color: rgba(168, 85, 247, 0.5);
}

.method-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.method-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.method-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(56, 189, 248, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.5);
    margin-bottom: 20px;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
}

.method-steps {
    list-style: none;
    text-align: left;
    margin: 20px 0;
}

.method-steps li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.method-steps li::before {
    content: "✓";
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.method-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.method-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.7);
}

.join-steps {
    margin-bottom: 48px;
}

.join-steps h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0b1120;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.telegram-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-soft);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.telegram-link:hover {
    background: rgba(56, 189, 248, 0.3);
    transform: translateX(5px);
}

/* Форма ника */
.nick-section {
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
}

.nick-section h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.nick-section>p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.nick-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto 16px;
    flex-wrap: wrap;
    justify-content: center;
}

#mc-nick {
    flex: 1 1 250px;
    padding: 14px 20px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

#mc-nick:focus {
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.3);
}

#save-nick-btn {
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #0b1120;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.6);
    transition: all var(--transition-fast);
}

#save-nick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(56, 189, 248, 0.8);
}

#save-nick-btn:active {
    transform: translateY(0);
}

.status-message {
    min-height: 24px;
    font-size: 0.95rem;
    margin-top: 12px;
}

.status-message.success {
    color: #22d3ee;
}

.status-message.error {
    color: #f97316;
}

/* Футер */
.footer {
    margin-top: 60px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(8, 13, 30, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand {
    font-weight: 700;
    color: var(--text-main);
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
    text-decoration: none;
}

.footer-sep {
    color: rgba(148, 163, 184, 0.4);
}

.dot-separator {
    margin: 0 12px;
}

/* ── Адаптив: планшет ── */
@media (max-width: 900px) {
    .page-shell {
        margin: 16px;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .purchase-methods {
        grid-template-columns: 1fr;
    }

    /* Новые блоки */
    .info-block {
        grid-template-columns: 1fr;
    }

    .gallery-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Адаптив: мобильный ── */
@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .page-shell {
        margin: 0;
        padding: 16px 14px;
        border-radius: 0;
        min-height: 100vh;
        border: none;
    }


    /* Шапка */
    .top-bar {
        position: relative;
        top: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        margin-bottom: 20px;
    }

    .logo {
        justify-content: center;
    }

    .tabs {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }

    .tab-label {
        font-size: 10px;
    }

    .tab-btn {
        flex-direction: column;
        gap: 3px;
        padding: 8px 4px;
        border-radius: 10px;
        font-size: 10px;
        align-items: center;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-label {
        display: block;
        font-size: 9px;
        line-height: 1;
        text-align: center;
    }

    /* Hero */
    .hero-slider {
        height: 280px;
        border-radius: 12px;
    }

    .hero-content {
        padding: 20px;
        max-width: 100%;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-features {
        gap: 8px;
    }

    .hero-tag {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .hero-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .hero-arrow-prev {
        left: 12px;
    }

    .hero-arrow-next {
        right: 12px;
    }

    .hero-pagination {
        bottom: 12px;
        right: 12px;
    }

    /* Блоки */
    .info-block {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 20px;
    }

    .community-block {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 16px;
    }

    .community-avatars {
        margin-top: 8px;
    }

    .forum-block {
        padding: 16px;
    }

    .forum-text h3 {
        font-size: 1rem;
    }

    .gallery-grid-new {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Footer */
    .footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 0.75rem;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Обзор */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .overview-card {
        padding: 20px 16px;
    }

    /* Фичи */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-box {
        padding: 18px 14px;
    }

    /* Галерея */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        height: 180px;
    }

    /* Форум-баннер */
    .forum-banner {
        padding: 14px 16px;
        gap: 12px;
    }

    .forum-banner-icon {
        font-size: 24px;
    }

    .forum-banner-text strong {
        font-size: 14px;
    }

    /* Покупка */
    .purchase-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .purchase-card {
        padding: 22px 16px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .access-card {
        padding: 24px 16px;
    }

    /* Модалки */
    .modal-content {
        padding: 20px 16px;
        margin: 12px;
        border-radius: 18px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 18px;
    }

    .confirm-payment-btn {
        padding: 14px;
        font-size: 15px;
    }

    /* Секция юзера */
    .user-info-card {
        padding: 16px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .user-avatar img {
        width: 48px;
        height: 48px;
    }

    /* Правила / секции */
    .section-title {
        font-size: 1.4rem;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}

/* Forum banner on main page */
.forum-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(56, 189, 248, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    margin-bottom: 24px;
    transition: border-color .2s, transform .15s;
}

.forum-banner:hover {
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-1px);
    text-decoration: none;
}

.forum-banner-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.forum-banner-text {
    flex: 1;
}

.forum-banner-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
}

.forum-banner-text span {
    font-size: 13px;
    color: #94a3b8;
}

.forum-banner-arrow {
    font-size: 20px;
    color: #a855f7;
    flex-shrink: 0;
}

/* ── Плавающая кнопка баг-репорта ── */
.bug-report-fab {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 8000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
    transition: transform .2s, box-shadow .2s, opacity .2s;
    white-space: nowrap;
}

.bug-report-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.55);
    opacity: 1;
    text-decoration: none;
}

.bug-report-fab span {
    font-size: 12px;
}

/* ── Nav mini-profile popup (все страницы) ── */
.nav-mini-profile {
    position: fixed;
    z-index: 9500;
    width: 310px;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.1), transparent 60%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(168, 85, 247, 0.12);
    overflow: hidden;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(-8px);
}

.nav-mini-profile.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nmp-banner {
    height: 72px;
    background: linear-gradient(135deg, #7c3aed, #a855f7 50%, #38bdf8);
    position: relative;
    background-size: cover;
    background-position: center;
}

.nmp-avatar {
    position: absolute;
    bottom: -26px;
    left: 16px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(8, 13, 30, 1);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.nmp-avatar-ph {
    position: absolute;
    bottom: -26px;
    left: 16px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(8, 13, 30, 1);
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
}

.nmp-body {
    padding: 34px 18px 18px;
}

.nmp-name {
    font-size: 17px;
    font-weight: 700;
    color: #f1f5f9;
}

.nmp-user {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.nmp-stats {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.nmp-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #e2e8f0;
}

.nmp-stat-lbl {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

.nmp-joined {
    font-size: 11px;
    color: #475569;
    margin-top: 10px;
}

/* ── Action buttons row in mini-profile ── */
.nmp-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}

.nmp-join-btn {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.nmp-join-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

.nmp-settings-btn {
    display: block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.nmp-settings-btn:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #e2e8f0;
    transform: translateY(-1px);
    text-decoration: none;
}

/* БАГ-ФИКС #2: Кнопка выхода в минипрофиле */
.nmp-logout-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    margin-top: 6px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.nmp-logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   Settings page
══════════════════════════════════════════════════════ */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

/* Sidebar */
.settings-sidebar {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.07), transparent 70%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 12px 8px;
    position: sticky;
    top: 90px;
}

.ss-heading {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 12px 4px;
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
    text-decoration: none;
}

.ss-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    text-decoration: none;
}

.ss-item.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(168, 85, 247, 0.12));
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.ss-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.1);
    margin: 8px 12px;
}

.ss-logout {
    color: #f87171;
    border: none;
}

.ss-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #fca5a5;
}

/* Content area */
.settings-content {
    min-width: 0;
}

.sc-section {
    display: none;
}

.sc-section.active {
    display: block;
}

.sc-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sc-subtitle {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 28px;
}

/* Card container */
.sc-card {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.06), transparent 70%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.sc-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-card-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    flex-shrink: 0;
}

/* Profile preview card */
.sc-preview-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.sc-preview {
    width: 220px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.sc-prev-banner {
    height: 56px;
    background: linear-gradient(135deg, #7c3aed, #a855f7 50%, #38bdf8);
    position: relative;
    background-size: cover;
    background-position: center;
    transition: background 0.3s;
}

.sc-prev-avatar {
    position: absolute;
    bottom: -16px;
    left: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(8, 13, 30, 1);
    object-fit: cover;
}

.sc-prev-body {
    padding: 22px 12px 12px;
    background: rgba(15, 23, 42, 0.97);
}

.sc-prev-name {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
}

.sc-prev-user {
    font-size: 11px;
    color: #64748b;
    margin-top: 1px;
}

/* Form groups */
.sc-group {
    margin-bottom: 20px;
}

.sc-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.sc-hint {
    font-size: 11px;
    color: #475569;
    margin-top: 6px;
}

.sc-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sc-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.6);
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sc-input:focus {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Color swatches */
.sc-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sc-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
    flex-shrink: 0;
}

.sc-swatch:hover {
    transform: scale(1.15);
}

.sc-swatch.selected {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.6);
}

.sc-swatch-none {
    background: rgba(148, 163, 184, 0.15);
    border: 2px dashed rgba(148, 163, 184, 0.35);
    color: #64748b;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-swatch-custom {
    background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sc-swatch-custom input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Save / action buttons */
.sc-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    font-family: inherit;
}

.sc-btn.primary {
    background: linear-gradient(135deg, #38bdf8, #a855f7);
    color: #0b1120;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.sc-btn.primary:hover:not(:disabled) {
    opacity: 0.88;
    transform: translateY(-1px);
}

.sc-btn.primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.sc-btn.ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
}

.sc-btn.ghost:hover {
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
}

.sc-btn.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #f87171;
}

.sc-btn.danger:hover {
    background: rgba(239, 68, 68, 0.18);
}

.sc-status {
    font-size: 12px;
    margin-top: 8px;
    min-height: 16px;
}

.sc-status.ok {
    color: #22c55e;
}

.sc-status.err {
    color: #f87171;
}

/* Clans placeholder */
.sc-empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.sc-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.sc-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 8px;
}

.sc-empty p {
    font-size: 13px;
    line-height: 1.6;
}

/* Auth wall */
.sc-auth-wall {
    text-align: center;
    padding: 80px 24px;
}

.sc-auth-wall .aw-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

.sc-auth-wall h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.sc-auth-wall p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 700px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
        border-radius: 14px;
    }

    .ss-heading {
        display: none;
    }

    .ss-item {
        flex: 1 1 auto;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    .ss-divider {
        display: none;
    }

    .sc-preview-wrap {
        flex-direction: column;
    }

    .sc-preview {
        width: 100%;
        max-width: 280px;
    }
}

/* ══════════════════════════════════════════════════════
   Streamers section (main page)
══════════════════════════════════════════════════════ */
.streamers-section {
    margin-top: 48px;
}

.streamers-header {
    margin-bottom: 24px;
}

.streamers-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff9de7, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.streamers-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.streamers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.streamer-card {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.07), transparent 70%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.88));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.streamer-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(168, 85, 247, 0.18);
}

.sc-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(56, 189, 248, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.streamer-card:hover .sc-img img {
    transform: scale(1.04);
}

.sc-img-ph {
    font-size: 40px;
}

.sc-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sc-name {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
}

.sc-bio {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-pass {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.28);
    color: #22c55e;
    margin-top: 2px;
}

.sc-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #a855f7;
    text-decoration: none;
    transition: color 0.15s;
}

.sc-link:hover {
    color: #c084fc;
    text-decoration: none;
}

/* ── Streamer application form (settings page) ── */
.sa-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.sa-status.pending {
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .3);
    color: #fbbf24;
}

.sa-status.approved {
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #22c55e;
}

.sa-status.rejected {
    background: rgba(239, 68, 68, .1);
    border: 1px solid rgba(239, 68, 68, .3);
    color: #f87171;
}

.sa-admin-note {
    font-size: 13px;
    color: #94a3b8;
    padding: 10px 14px;
    background: rgba(0, 0, 0, .2);
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid rgba(148, 163, 184, .3);
}

.sa-img-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.sa-img-preview {
    width: 80px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, .2);
    display: none;
}

.sa-img-preview.show {
    display: block;
}

@media (max-width: 640px) {
    .streamers-grid {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════════════════════════════════
   Streamers dedicated PAGE (/streamers)
══════════════════════════════════════════════════════ */
.str-page-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 860px;
    margin: 0 auto;
}

.spg-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: radial-gradient(circle at top left, rgba(168, 85, 247, 0.08), transparent 60%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.spg-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.14);
}

.spg-img-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(56, 189, 248, 0.18));
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spg-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform 0.35s;
}

.spg-card:hover .spg-img-wrap img {
    transform: scale(1.04);
}

.spg-img-ph {
    font-size: 56px;
}

.spg-body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.spg-name {
    font-size: 26px;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.2;
    margin: 0;
}

.spg-bio {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.7;
    margin: 0;
}

.spg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spg-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 999px;
}

.spg-badge.pass {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.spg-badge.nopass {
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.spg-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 11px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #9146ff, #a855f7);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 6px 20px rgba(145, 70, 255, 0.35);
}

.spg-link:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Large input fields in streamer application form */
.sa-field-lg {
    font-size: 15px !important;
    padding: 13px 16px !important;
}

@media (max-width: 700px) {
    .spg-card {
        grid-template-columns: 1fr;
    }

    .spg-img-wrap {
        min-height: 180px;
    }

    .spg-body {
        padding: 20px 22px;
        gap: 10px;
    }

    .spg-name {
        font-size: 20px;
    }
}

/* ══════════════════════════════════════════════════════
   ГЛАВНАЯ — РЕДИЗАЙН
══════════════════════════════════════════════════════ */

/* Hero: italic первое слово + две строки в теге */
.hero-title-em {
    font-style: italic;
    font-weight: 300;
}

.hero-tag {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
}

.hero-tag-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-tag-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.hero-tag-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
}

.tag-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Info block: иконка перед заголовком */
.info-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.info-col-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-col-header h2 {
    margin: 0;
}

/* Info list: + маркеры вместо SVG */
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.info-list li::before {
    content: "+";
    color: #a855f7;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

/* Community block: счётчик справа */
.community-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, .3);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.community-avatars {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.avatar-player {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(8, 13, 30, .9);
    margin-left: -8px;
    transition: transform .2s;
}

.avatar-player:first-child {
    margin-left: 0;
}

.avatar-player:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.community-count-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.community-count-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
}

.community-count-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Forum row (заменяет старый .forum-block) */
.home-forum-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, .3);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.home-forum-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(168, 85, 247, .18), rgba(56, 189, 248, .12));
    border: 1px solid rgba(168, 85, 247, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a855f7;
    flex-shrink: 0;
}

.home-forum-text {
    flex: 1;
    min-width: 0;
}

.home-forum-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.home-forum-text p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.home-forum-btn {
    padding: 12px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 6px 24px rgba(124, 58, 237, .4);
    flex-shrink: 0;
}

.home-forum-btn:hover {
    opacity: .9;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, .55);
    text-decoration: none;
}

/* Gallery title + sublabels */
.gallery-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), transparent);
}

.gallery-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
}

.gallery-sublabel {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, .65);
    margin-top: 2px;
}

/* Footer redesign */
.footer-new {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 24px;
    border-top: 1px solid rgba(148, 163, 184, .15);
    border-radius: 16px;
    background: rgba(15, 23, 42, .5);
}

.footer-brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-icon {
    font-size: 1.6rem;
}

.footer-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.footer-links-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links-row .footer-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}

.footer-links-row .footer-link:hover {
    color: #a855f7;
}

.footer-server-block {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.footer-server-version {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-align: right;
}

.footer-server-ip {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 2px;
}

/* Community: аватары прижаты к счётчику (справа) */
.community-avatars {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    padding-right: 12px;
}

/* Info block: тонкий разделитель между колонками */
.info-block {
    gap: 0;
}

.info-column:first-child {
    padding-right: 24px;
    border-right: 1px solid rgba(148, 163, 184, 0.15);
}

.info-column:last-child {
    padding-left: 24px;
}

/* Footer: terra.png вместо иконки */
.footer-terra-img {
    width: 60px;
    height: 40px;
    image-rendering: pixelated;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Тонкий разделитель внутри footer-server-block */
.footer-sep-line {
    width: 1px;
    height: 30px;
    background: rgba(148, 163, 184, 0.18);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Footer: текст влево */
.footer-server-version {
    text-align: left !important;
}

.footer-server-ip {
    text-align: left !important;
}

/* Footer: ссылки с иконками */
.footer-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity .15s;
}

.footer-link-with-icon:hover .footer-social-icon {
    opacity: 1;
}

.footer-nav-icon {
    font-size: 20px;
    line-height: 1;
}

/* ── Выпуклые кнопки (3D-эффект) ── */
.nav-login-btn {
    box-shadow:
        0 4px 0 rgba(80, 20, 140, 0.6),
        0 8px 20px rgba(168, 85, 247, 0.35);
    transform: translateY(0);
    transition: all 0.15s ease;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 rgba(80, 20, 140, 0.6),
        0 12px 28px rgba(168, 85, 247, 0.45);
}

.nav-login-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 rgba(80, 20, 140, 0.6),
        0 3px 8px rgba(168, 85, 247, 0.25);
}

.home-forum-btn {
    box-shadow:
        0 4px 0 rgba(55, 10, 120, 0.7),
        0 8px 24px rgba(124, 58, 237, 0.4);
    transition: all 0.15s ease;
}

.home-forum-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 rgba(55, 10, 120, 0.7),
        0 12px 30px rgba(124, 58, 237, 0.55);
    text-decoration: none;
}

.home-forum-btn:active {
    transform: translateY(3px);
    box-shadow:
        0 1px 0 rgba(55, 10, 120, 0.7),
        0 3px 10px rgba(124, 58, 237, 0.3);
}

.tab-btn.active {
    box-shadow:
        0 4px 0 rgba(20, 70, 130, 0.5),
        0 8px 28px rgba(56, 189, 248, 0.5);
}

@media (max-width: 720px) {
    .footer-new {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand-block,
    .footer-server-block {
        justify-content: center;
    }

    .footer-links-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-server-version,
    .footer-server-ip {
        text-align: center;
    }

    .community-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .community-avatars {
        justify-content: flex-start;
        padding-right: 0;
        padding-bottom: 8px;
    }

    .community-count-block {
        align-items: flex-start;
    }

    .home-forum-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid-new {
        grid-template-columns: 1fr 1fr;
    }

    .info-column:first-child {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, .15);
        padding-bottom: 20px;
        margin-bottom: 4px;
    }

    .info-column:last-child {
        padding-left: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   Settings Page — v115
   ═══════════════════════════════════════════════════════════ */

/* Auth wall */
.sc-auth-wall {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 16px;
    text-align: center;
}
.sc-auth-wall .aw-icon { font-size: 48px; }
.sc-auth-wall h2 { font-size: 22px; color: #f1f5f9; }
.sc-auth-wall p  { color: #94a3b8; font-size: 15px; }

/* Page header */
.sc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}
.sc-page-title {
    font-size: 24px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 4px;
    line-height: 1.2;
}
.sc-page-sub {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.sc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.sc-save-indicator {
    font-size: 13px;
    color: #22c55e;
    font-weight: 600;
}
.sc-btn-save-all {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(124,58,237,0.4);
    transition: opacity 0.15s;
}
.sc-btn-save-all:hover { opacity: 0.9; }

/* Settings layout */
.settings-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

/* Sidebar */
.settings-sidebar {
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 16px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 80px;
}
.ss-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #475569;
    padding: 4px 10px 10px;
    text-transform: uppercase;
}
.ss-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.ss-item:hover {
    background: rgba(148,163,184,0.08);
    color: #e2e8f0;
}
.ss-item.active {
    background: rgba(168,85,247,0.15);
    color: #c084fc;
    font-weight: 700;
}
.ss-item-icon { font-size: 16px; line-height: 1; }
.ss-badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
}
.ss-divider {
    height: 1px;
    background: rgba(148,163,184,0.1);
    margin: 6px 0;
}
.ss-logout { color: #f87171 !important; }
.ss-logout:hover { background: rgba(248,113,113,0.1) !important; }

/* Section panels */
.settings-content { min-width: 0; }
.sc-section { display: none; }
.sc-section.active { display: block; }

/* Cards */
.sc-card {
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(148,163,184,0.12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.sc-card:last-child { margin-bottom: 0; }
.sc-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 20px;
}

/* Section titles (non-profile sections) */
.sc-title {
    font-size: 22px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 4px;
}
.sc-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

/* Form groups */
.sc-group { margin-bottom: 20px; }
.sc-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.sc-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}
.sc-input {
    width: 100%;
    background: rgba(30,41,59,0.8);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 10px;
    padding: 10px 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s;
}
.sc-input:focus {
    outline: none;
    border-color: rgba(168,85,247,0.5);
}
.sc-input-readonly {
    opacity: 0.6;
    cursor: not-allowed;
    resize: none;
}
.sc-counter-row {
    font-size: 12px;
    color: #475569;
    text-align: right;
    margin-top: 5px;
}

/* Avatar row */
.sc-avatar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sc-avatar-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(148,163,184,0.2);
    flex-shrink: 0;
}
.sc-avatar-source {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 2px;
}

/* Color swatches */
.sc-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sc-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    position: relative;
    overflow: hidden;
}
.sc-swatch:hover { transform: scale(1.15); }
.sc-swatch.selected { border-color: #fff; }
.sc-swatch-none {
    background: rgba(148,163,184,0.12);
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-swatch-custom {
    background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sc-swatch-custom input[type=color] {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: none;
    padding: 0;
}
.sc-status { font-size: 12px; color: #22c55e; margin-top: 8px; min-height: 18px; }

/* Profile 2-column grid */
.sc-profile-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}
.sc-preview-outer { margin-bottom: 0; }

/* Preview card */
.sc-preview-v2 {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(7,12,26,0.8);
    border: 1px solid rgba(148,163,184,0.1);
}
.sc-prev-banner {
    height: 80px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 16px;
    transition: background 0.3s;
}
.sc-prev-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(15,23,42,0.9);
    object-fit: cover;
    position: absolute;
    bottom: -28px;
    left: 16px;
}
.sc-prev-body-v2 {
    padding: 36px 16px 16px;
}
.sc-prev-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.sc-prev-name {
    font-size: 17px;
    font-weight: 800;
    color: #f1f5f9;
}
.sc-prev-online-badge {
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.25);
    border-radius: 999px;
    padding: 2px 8px;
}
.sc-prev-bio-text {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 12px;
    min-height: 20px;
    word-break: break-word;
}
.sc-prev-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
}
.sc-prev-stat {
    flex: 1;
    text-align: center;
}
.sc-prev-stat-val {
    font-size: 18px;
    font-weight: 800;
    color: #e2e8f0;
    line-height: 1;
}
.sc-prev-stat-lbl {
    font-size: 11px;
    color: #64748b;
    margin-top: 3px;
}
.sc-prev-stat-sep {
    width: 1px;
    height: 30px;
    background: rgba(148,163,184,0.15);
}
.sc-prev-joined {
    font-size: 12px;
    color: #475569;
}

/* Bottom grid: activity + quick actions */
.sc-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Activity list */
.sc-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148,163,184,0.07);
}
.sc-activity-item:last-child { border-bottom: none; }
.sc-act-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(168,85,247,0.12);
    border: 1px solid rgba(168,85,247,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sc-act-body { flex: 1; min-width: 0; }
.sc-act-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.sc-act-title {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-act-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.sc-act-cat {
    font-size: 11px;
    color: #a855f7;
    background: rgba(168,85,247,0.1);
    border-radius: 4px;
    padding: 1px 6px;
}
.sc-act-time {
    font-size: 11px;
    color: #475569;
}
.sc-activity-all-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #a855f7;
    text-decoration: none;
    margin-top: 12px;
    font-weight: 600;
    transition: color 0.15s;
}
.sc-activity-all-link:hover { color: #c084fc; }
.sc-activity-loading, .sc-activity-empty {
    text-align: center;
    color: #475569;
    padding: 24px 0;
    font-size: 14px;
}

/* Quick actions */
.sc-qa-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sc-qa-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(148,163,184,0.1);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
}
.sc-qa-item:hover {
    background: rgba(30,41,59,0.9);
    border-color: rgba(168,85,247,0.25);
}
.sc-qa-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sc-qa-icon-purple { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.25); }
.sc-qa-icon-blue   { background: rgba(56,189,248,0.12); border: 1px solid rgba(56,189,248,0.22); }
.sc-qa-icon-cyan   { background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.22); }
.sc-qa-icon-pink   { background: rgba(255,157,231,0.12); border: 1px solid rgba(255,157,231,0.22); }
.sc-qa-info { flex: 1; min-width: 0; }
.sc-qa-title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2px;
}
.sc-qa-sub {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sc-qa-arrow {
    font-size: 18px;
    color: #475569;
    flex-shrink: 0;
}

/* Notification banner */
.sc-notif-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.sc-notif-bell { font-size: 28px; flex-shrink: 0; }
.sc-notif-content { flex: 1; }
.sc-notif-title {
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 2px;
}
.sc-notif-sub {
    font-size: 13px;
    color: #94a3b8;
}
.sc-notif-cta {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border-radius: 10px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.sc-notif-cta:hover { opacity: 0.88; }

/* Integrations */
.sc-integration-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}
.sc-int-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(30,41,59,0.8);
    border: 1px solid rgba(148,163,184,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sc-int-icon-dim { opacity: 0.45; }
.sc-int-name { font-size: 15px; font-weight: 700; color: #e2e8f0; margin-bottom: 2px; }
.sc-int-badge-ok {
    font-size: 12px;
    font-weight: 700;
    color: #22c55e;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.22);
    border-radius: 999px;
    padding: 3px 10px;
    flex-shrink: 0;
}
.sc-int-divider {
    height: 1px;
    background: rgba(148,163,184,0.08);
}
.sc-int-dim { opacity: 0.6; }

/* Empty states */
.sc-empty {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}
.sc-empty-icon { font-size: 40px; margin-bottom: 12px; }
.sc-empty h3 { font-size: 17px; color: #94a3b8; margin-bottom: 8px; }
.sc-empty p  { font-size: 14px; line-height: 1.7; }

/* sc-btn primary (reuse within settings) */
.sc-btn.primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.15s;
}
.sc-btn.primary:hover { opacity: 0.88; }

/* ── Settings responsive ────── */
@media (max-width: 960px) {
    .settings-layout {
        grid-template-columns: 1fr;
    }
    .settings-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .ss-heading { display: none; }
    .ss-divider { display: none; }
}
@media (max-width: 700px) {
    .sc-profile-grid { grid-template-columns: 1fr; }
    .sc-bottom-grid  { grid-template-columns: 1fr; }
    .sc-page-header  { flex-direction: column; }
    .sc-header-actions { width: 100%; justify-content: flex-end; }
}

/* ═══════════════════════════════════════════════════════════
   Rules Page — v118
   ═══════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────── */
.rl-hero {
    position: relative;
    height: 210px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #0d1b3a 0%, #1a0830 100%);
}
.rl-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('/rules-hero.png');
    background-size: cover;
    background-position: center top;
    opacity: 0.3;
    transition: opacity 0.4s;
}
.rl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(5, 8, 22, 0.92) 0%,
        rgba(5, 8, 22, 0.65) 55%,
        rgba(5, 8, 22, 0.1)  100%
    );
}
.rl-hero-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 32px 28px;
}
.rl-hero-title {
    font-size: 34px;
    font-weight: 900;
    color: #a855f7;
    margin: 0 0 6px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.rl-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin: 0 0 16px;
}
.rl-hero-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.rl-hero-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

/* ── Filter bar ───────────────────────────────────────────── */
.rl-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(13, 20, 40, 0.75);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 14px;
    padding: 11px 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.rl-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.rl-tab {
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.14);
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.rl-tab:hover {
    color: #e2e8f0;
    background: rgba(148,163,184,0.08);
}
.rl-tab.active {
    background: rgba(168,85,247,0.14);
    border-color: rgba(168,85,247,0.38);
    color: #c084fc;
}
.rl-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.rl-search-icon {
    position: absolute;
    left: 11px;
    color: #475569;
    pointer-events: none;
}
.rl-search {
    background: rgba(10,14,30,0.7);
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 10px;
    padding: 7px 14px 7px 34px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    width: 220px;
    outline: none;
    transition: border-color 0.15s;
}
.rl-search:focus { border-color: rgba(168,85,247,0.5); }
.rl-search::placeholder { color: #374151; }

/* ── Category group ───────────────────────────────────────── */
.rl-cat { margin-bottom: 36px; }

.rl-cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(148,163,184,0.07);
}
.rl-cat-icon { font-size: 20px; flex-shrink: 0; }
.rl-cat-title {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    flex-shrink: 0;
}
.rl-cat-desc {
    font-size: 13px;
    color: #475569;
    margin: 0;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rl-cat-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: rgba(148,163,184,0.07);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 999px;
    padding: 3px 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Заголовок категории — растягивается на всю ширину единой сетки */
.rl-cat-sep {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-top: 20px;
    border-bottom: 1px solid rgba(148,163,184,0.07);
}
.rl-cat-sep:first-child { margin-top: 0; }

/* ── Rules grid ───────────────────────────────────────────── */
.rl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ── Rule card ────────────────────────────────────────────── */
.rl-card {
    position: relative;
    background: rgba(10, 16, 35, 0.92);
    border: 1px solid rgba(148,163,184,0.09);
    border-top: 3px solid var(--rl-card-color, #a855f7);
    border-radius: 14px;
    padding: 20px 18px 18px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 18px rgba(0,0,0,0.28);
}
.rl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--rl-card-color, #a855f7) inset;
}
/* Big background number — in category colour as subtle texture */
.rl-card-num {
    position: absolute;
    top: 4px;
    right: 10px;
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.07;
    color: var(--rl-card-color, #a855f7);
    pointer-events: none;
    user-select: none;
    letter-spacing: -2px;
}
.rl-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 10px;
    line-height: 1.3;
    position: relative;
    z-index: 1;
    padding-right: 32px;
}
.rl-card-body {
    position: relative;
    z-index: 1;
}
.rl-card-p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.75;
    margin: 0;
}
.rl-card-list {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.75;
}
.rl-card-list li { margin-bottom: 3px; }
.rl-card-list li::marker { color: var(--rl-card-color, #a855f7); }

/* Exception block */
.rl-exception {
    margin-top: 13px;
    padding: 9px 12px;
    border-radius: 8px;
    border-left: 3px solid #a855f7;
    font-size: 12px;
    line-height: 1.65;
    color: #94a3b8;
    font-style: italic;
    position: relative;
    z-index: 1;
}
.rl-exc-label {
    font-style: normal;
    font-weight: 700;
    color: #cbd5e1;
}

/* ── Punishment banner ────────────────────────────────────── */
.rl-punishment {
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.3);
    border-left: 5px solid #ef4444;
    margin-top: 32px;
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 28px;
}
.rl-pun-icon { font-size: 36px; flex-shrink: 0; }
.rl-pun-text { flex: 1; min-width: 0; }
.rl-pun-title {
    font-size: 17px;
    font-weight: 800;
    color: #f87171;
    margin-bottom: 6px;
}
.rl-pun-sub { font-size: 13px; color: #94a3b8; line-height: 1.65; }

/* Spinner wrap */
.rl-spinner-wrap { display: flex; justify-content: center; padding: 48px 0; }

/* ── Rules responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .rl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .rl-hero { height: 180px; }
    .rl-hero-title { font-size: 26px; }
    .rl-hero-body { padding: 0 20px 22px; }
    .rl-filter-bar { flex-direction: column; align-items: stretch; }
    .rl-search { width: 100%; }
    .rl-search-wrap { width: 100%; }
}
@media (max-width: 540px) {
    .rl-grid { grid-template-columns: 1fr; }
    .rl-hero { height: 160px; border-radius: 12px; }
    .rl-hero-title { font-size: 22px; }
    .rl-punishment { flex-direction: column; align-items: flex-start; }
}

/* ========== DONATE CODE SECTION ========== */

.donate-card { border-color: rgba(251,191,36,0.35); }
.donate-card:hover { border-color: rgba(251,191,36,0.65); }

.donate-section {
    margin-top: 28px;
    background: rgba(251,191,36,0.05);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.donate-code-box {
    background: rgba(0,0,0,0.25);
    border: 2px solid rgba(251,191,36,0.5);
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.donate-code-label {
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.donate-code-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.donate-code-value {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #fff;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.25);
    border-radius: 10px;
    padding: 10px 20px;
    flex: 1;
    text-align: center;
    user-select: all;
}

.donate-copy-btn {
    background: rgba(251,191,36,0.15);
    border: 1px solid rgba(251,191,36,0.35);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    color: #fbbf24;
    flex-shrink: 0;
}
.donate-copy-btn:hover { background: rgba(251,191,36,0.28); transform: scale(1.08); }
.donate-copy-btn:active { transform: scale(0.96); }

.donate-code-hint {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}
.donate-code-hint strong { color: #fbbf24; }

.donate-timer-wrap { display: flex; flex-direction: column; gap: 6px; }
.donate-timer-label { font-size: 13px; color: var(--text-muted); }

.donate-timer-bar {
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.donate-timer-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 99px;
    transition: width linear;
}

.donate-agree-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.donate-agree-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    accent-color: #fbbf24;
    cursor: pointer;
}
.donate-agree-label input:disabled { cursor: not-allowed; opacity: 0.5; }
.donate-agree-label.unlocked { color: var(--text-primary); }

.donate-waiting {
    font-size: 13px;
    color: #fbbf24;
    text-align: center;
    padding: 10px;
    background: rgba(251,191,36,0.08);
    border-radius: 10px;
    border: 1px solid rgba(251,191,36,0.2);
}