:root {
    --green: #2e7d32;
    --green-light: #4caf50;
    --brown: #4e342e;
    --brown-dark: #3e2723;
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --white: #ffffff;
    --muted: #bdbdbd;
    --danger: #ef5350;
    --success: #66bb6a;
}

/* ====== БАЗА ====== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #263238 0, #0b0b0b 55%);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.page-wrap {
    width: 100%;
    max-width: 1100px;
    padding: 24px 16px 32px;
    margin: 0 auto;
}

/* ====== ШАПКА ====== */

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-square {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
}

.logo-img {
    height: 100%;
    width: auto;
}

.logo-text-main {
    font-size: 20px;
    font-weight: 700;
}

.logo-text-sub {
    font-size: 12px;
    color: var(--muted);
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.top-nav-link {
    font-size: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.top-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(76, 175, 80, 0.7);
    transform: translateY(-1px);
}

.top-nav-link.active {
    border-color: rgba(76, 175, 80, 0.9);
    background: rgba(76, 175, 80, 0.18);
    color: var(--green-light);
}

.top-nav-link{
    box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.top-nav-link:hover{
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
}


.header-badge {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

/* ====== ЛЕЙАУТ СТРАНИЦ ====== */

main.layout-two-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 20px;
}

main.layout-single {
    display: block;
}

/* Карточки */

.card {
    background:
            radial-gradient(circle at top left, rgba(76, 175, 80, 0.08), transparent 55%),
            radial-gradient(circle at bottom right, rgba(78, 52, 46, 0.25), transparent 60%),
            var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 18px;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.65);
}

/* ====== ГЛАВНАЯ: hero + мониторинг + соцсети ====== */

.hero-title {
    font-size: clamp(26px, 5vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-title span {
    color: var(--green-light);
}

.hero-subtitle {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--success);
    margin-bottom: 14px;
}

.hero-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 12px rgba(102, 187, 106, 0.9);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-feature-chip {
    font-size: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.35);
    color: #e0e0e0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-light), var(--green));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(76, 175, 80, 0.6);
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e0e0e0;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

/* hero IP */

.hero-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 13px;
    margin-top: 4px;
}

.hero-ip-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 10px;
    color: var(--muted);
}

.hero-ip-value {
    font-family: Menlo, Monaco, Consolas, "Roboto Mono", monospace;
    font-size: 13px;
}

.hero-ip-copy {
    padding: 4px 8px;
    border-radius: 999px;
    border: none;
    font-size: 11px;
    background: rgba(76, 175, 80, 0.12);
    color: var(--green-light);
    cursor: pointer;
}

.hero-ip-copy:hover {
    background: rgba(76, 175, 80, 0.25);
}

/* мониторинг */

.monitor-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.monitor-item {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.monitor-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 4px;
}

.monitor-value {
    font-weight: 600;
}

.monitor-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    margin-right: 6px;
}

.monitor-status-online {
    background: var(--success);
    box-shadow: 0 0 10px rgba(102, 187, 106, 0.9);
}

.monitor-status-offline {
    background: var(--danger);
    box-shadow: 0 0 10px rgba(239, 83, 80, 0.9);
}

.monitor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 11px;
    color: var(--muted);
}

.monitor-refresh {
    cursor: pointer;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.35);
}

/* соцсети */

.social-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #e0e0e0;
}

.social-link-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-tag {
    font-size: 11px;
    color: var(--muted);
}

.social-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.social-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.social-chevron {
    font-size: 14px;
    color: var(--muted);
}

.coming-soon-box {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(78, 52, 46, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    line-height: 1.5;
}

.coming-soon-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffcc80;
    margin-bottom: 4px;
}

/* ====== DONATE / RULES / FAQ / MAP: общие ====== */

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 18px;
}

.content {
    font-size: 14px;
    line-height: 1.7;
    color: #f5f5f5;
}

.content h1 {
    font-size: 20px;
    margin-top: 18px;
    margin-bottom: 10px;
}

.content h2 {
    font-size: 18px;
    margin-top: 18px;
    margin-bottom: 8px;
}

.content h3 {
    font-size: 16px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.content p {
    margin-bottom: 8px;
}

.content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.content ul li::before {
    content: "•";
    color: var(--green-light);
    margin-right: 6px;
}

.content ul li {
    margin-bottom: 4px;
}

.code-inline {
    font-family: Menlo, Monaco, Consolas, "Roboto Mono", monospace;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.4);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ====== DONATE: таблица и спец. блок ====== */

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, var(--green-light), var(--green));
    color: var(--white);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.45);
    margin-bottom: 16px;
}

.btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(76, 175, 80, 0.6);
}

.role-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.table-big-left {
    font-size: 15px;
    font-weight: 600;
}

.content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* обёртка для горизонтального скролла на мобилках */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 12px 0;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    min-width: 650px;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
}

.content th,
.content td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 8px;
    text-align: center;
}

.content th {
    background: rgba(255, 255, 255, 0.06);
}

.content tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* спец-привилегия */

.special-perk {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    margin: 20px 0;
}

.special-perk-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
}

.special-perk-text h3 {
    margin: 0 0 6px 0;
    font-size: 17px;
    color: var(--green-light);
}

.special-perk-text p {
    margin: 6px 0;
    font-size: 13px;
    color: #e0e0e0;
    line-height: 1.5;
}

.special-perk-text ul {
    margin: 8px 0 8px 15px;
    font-size: 13px;
    color: #f5f5f5;
}

/* ====== MAP ====== */

.map-frame-wrapper {
    margin-top: 8px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
    height: 600px;
}

.map-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ====== ФУТЕР ====== */

footer {
    margin-top: 18px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

footer span {
    opacity: 0.7;
}

/* ====== RESPONSIVE ====== */

@media (max-width: 800px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .header-right {
        align-items: flex-start;
        width: 100%;
    }

    .top-nav {
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    main.layout-two-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .content table {
        font-size: 11px;
    }

    .table-big-left {
        font-size: 13px;
    }

    .role-icon {
        width: 38px;
        height: 38px;
    }

    .special-perk {
        flex-direction: column;
        align-items: flex-start;
    }

    .special-perk-icon {
        width: 48px;
        height: 48px;
    }

    .special-perk-text h3 {
        font-size: 15px;
    }

    .btn-tab{
        padding: 10px 14px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        color: inherit;
        cursor: pointer;
        transition: .15s ease;
    }

    .btn-tab:hover{
        background: rgba(255,255,255,.10);
    }

    .btn-tab.is-active{
        border-color: rgba(0,255,140,.45);
        background: rgba(0,255,140,.10);
    }

    /* =========================
       ACCOUNT UI (modern)
       ВСТАВЬ В КОНЕЦ styles.css
       ========================= */

    .auth-tabs{
        display:flex;
        gap:10px;
        flex-wrap:wrap;
        margin-bottom:16px;
    }

    .btn-tab{
        padding:10px 16px;
        border-radius:999px;
        border:1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.05);
        font-size:13px;
        font-weight:700;
        cursor:pointer;
        transition:.18s ease;
        color: inherit;
    }
    .btn-tab:hover{ background: rgba(255,255,255,.12); }
    .btn-tab.is-active{
        background: linear-gradient(135deg, rgba(76,175,80,.28), rgba(46,125,50,.12));
        border-color: rgba(76,175,80,.6);
        color:#bfffd8;
    }

    .auth-panel{}

    /* cards */
    .mini-card{
        padding:18px;
        border-radius:18px;
        border:1px solid rgba(255,255,255,.08);
        background:
                radial-gradient(circle at 20% 0%, rgba(76,175,80,.12), transparent 55%),
                rgba(0,0,0,.35);
        box-shadow: 0 18px 40px rgba(0,0,0,.55);
    }

    /* grid */
    .grid-2{
        display:grid;
        gap:16px;
        grid-template-columns: 1fr 1fr;
    }
    @media (max-width: 800px){
        .grid-2{ grid-template-columns: 1fr; }
    }

    /* floating label field */
    .field{
        position:relative;
        margin-top:12px;
    }
    .field input{
        width:100%;
        padding:16px 14px 12px;
        border-radius:14px;
        border:1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        color:#fff;
        font-size:14px;
        outline:none;
        transition:.18s ease;
    }
    .field input::placeholder{ color: transparent; } /* важно */
    .field label{
        position:absolute;
        left:14px;
        top:13px;
        font-size:13px;
        color: rgba(255,255,255,.55);
        pointer-events:none;
        transition:.16s ease;
    }
    .field input:focus{
        border-color: rgba(76,175,80,.65);
        background: rgba(255,255,255,.10);
        box-shadow: 0 0 0 4px rgba(76,175,80,.14);
    }
    .field input:focus + label,
    .field input:not(:placeholder-shown) + label{
        top:6px;
        font-size:11px;
        color: rgba(191,255,216,.85);
    }

    /* helper text */
    .helper-text{
        margin-top:8px;
        font-size:12px;
        color: rgba(255,255,255,.70);
        line-height:1.45;
    }

    /* make action buttons full width in forms */
    .mini-card .btn-buy{
        width:100%;
        margin-top:14px;
    }
    /* =========================
       FORCE MODERN FORMS
       FIX BROWSER DEFAULT UI
       ========================= */

    /* 🔥 УБИВАЕМ дефолт браузера */
    button,
    input,
    select,
    textarea {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background: none;
        border: none;
        outline: none;
        font-family: inherit;
        color: inherit;
    }

    /* =========================
       КНОПКИ (Вход / Регистрация / Сброс)
       ========================= */

    button {
        cursor: pointer;
    }

    /* Tabs */
    .btn-tab {
        background: rgba(255,255,255,.06) !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        color: #eaeaea !important;
        border-radius: 999px;
        padding: 10px 18px;
        font-weight: 700;
        letter-spacing: .02em;
        transition: all .18s ease;
    }

    .btn-tab:hover {
        background: rgba(76,175,80,.18) !important;
        border-color: rgba(76,175,80,.55) !important;
        transform: translateY(-1px);
    }

    .btn-tab.is-active {
        background: linear-gradient(135deg,
        rgba(76,175,80,.35),
        rgba(46,125,50,.18)
        ) !important;
        border-color: rgba(76,175,80,.75) !important;
        color: #caffdd !important;
    }

    /* =========================
       ОСНОВНЫЕ КНОПКИ
       ========================= */

    .btn-buy {
        appearance: none !important;
        background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
        color: #eafff0 !important;
        border-radius: 999px;
        padding: 14px 18px;
        font-weight: 800;
        letter-spacing: .02em;
        border: none !important;
        box-shadow: 0 12px 30px rgba(76,175,80,.45);
        transition: all .18s ease;
    }

    .btn-buy:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 42px rgba(76,175,80,.65);
    }

    .btn-buy:active {
        transform: translateY(0);
        box-shadow: 0 8px 18px rgba(76,175,80,.55);
    }
}

/* =========================
   ACCOUNT UI (GLOBAL)
   ставь В КОНЕЦ styles.css
   (НЕ внутри @media)
   ========================= */

.auth-tabs{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:16px;
}

/* Tabs */
.btn-tab{
    appearance:none;
    -webkit-appearance:none;
    border:1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.35);
    color:#eaeaea;
    padding:10px 18px;
    border-radius:999px;
    font-weight:800;
    font-size:13px;
    cursor:pointer;
    transition:.18s ease;
}
.btn-tab:hover{
    background: rgba(76,175,80,.18);
    border-color: rgba(76,175,80,.55);
    transform: translateY(-1px);
}
.btn-tab.is-active{
    background: linear-gradient(135deg, rgba(76,175,80,.35), rgba(46,125,50,.18));
    border-color: rgba(76,175,80,.75);
    color:#caffdd;
}

/* Card inside account */
.mini-card{
    padding:18px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,.08);
    background: radial-gradient(circle at 20% 0%, rgba(76,175,80,.12), transparent 55%), rgba(0,0,0,.35);
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
}

/* Grid */
.grid-2{
    display:grid;
    gap:16px;
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px){
    .grid-2{ grid-template-columns: 1fr; }
}

/* Floating label field */
.field{ position:relative; margin-top:14px; }

.field input{
    width:100%;
    padding:18px 14px 12px;
    border-radius:16px;
    background: rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.18);
    color:#fff;
    font-size:14px;
    outline:none;
    transition:.18s ease;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
    appearance:none;
    -webkit-appearance:none;
}
.field input::placeholder{ color: transparent; }

.field input:focus{
    background: rgba(255,255,255,.10);
    border-color: rgba(76,175,80,.65);
    box-shadow: 0 0 0 4px rgba(76,175,80,.18), inset 0 0 0 1px rgba(0,0,0,.35);
}

.field label{
    position:absolute;
    left:14px;
    top:15px;
    font-size:13px;
    color: rgba(255,255,255,.55);
    pointer-events:none;
    transition:.15s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label{
    top:6px;
    font-size:11px;
    color: rgba(202,255,221,.9);
}

/* Chrome autofill fix (иначе может быть белое/желтое) */
.field input:-webkit-autofill{
    -webkit-text-fill-color:#fff;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0px 1000px rgba(255,255,255,.06) inset;
    border:1px solid rgba(255,255,255,.18);
}

/* Buttons full width in forms */
.mini-card .btn-buy{
    width:100%;
    margin-top:14px;
}

/* helper */
.helper-text{
    margin-top:10px;
    font-size:12px;
    color: rgba(255,255,255,.72);
}

/* News page layout */
.news-row{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

.news-thumb{
    width:180px;
    height:110px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    object-fit:cover;
    background:rgba(0,0,0,.25);
    flex:0 0 auto;
}

.news-thumb--empty{
    display:block;
    width:180px;
    height:110px;
    border-radius:16px;
    border:1px dashed rgba(255,255,255,.18);
    background:rgba(255,255,255,.03);
}

.news-body{
    min-width:0;
    flex:1;
}

.news-title{
    font-weight:900;
    font-size:24px;
    line-height:1.15;
}

.news-meta{
    opacity:.72;
    font-size:12px;
    margin-top:6px;
}

.news-text{
    margin-top:10px;
    font-size:16px;
    line-height:1.65;
    opacity:.92;
    white-space:normal;
}

.news-more{
    margin-top:10px;
    font-weight:800;
    opacity:.85;
    font-size:13px;
}

/* Full post text */
.news-fulltext{
    font-size:16px;
    line-height:1.75;
    opacity:.95;
}

/* mobile */
@media (max-width: 720px){
    .news-row{ flex-direction:column; }
    .news-thumb, .news-thumb--empty{
        width:100%;
        height:180px;
    }
    .news-title{ font-size:22px; }
}

