:root {
    /* Ciemny neutral + akcent (domyślnie zieleń; gość/użytkownik może nadpisać w pasku) */
    --bg: #08090a;
    --surface: #0d1011;
    --surface-2: #13181a;
    --border: #2a3430;
    --accent: #3d7f71;
    --accent-hover: #25a287;
    --accent-rgb: 61, 127, 113;
    --accent-deep: color-mix(in srgb, var(--accent) 58%, #000000);
    --green: #5fa882;
    --green-dim: #3d6b52;
    --green-bg: rgba(58, 105, 78, 0.16);
    --text: #e8eaed;
    --muted: #96a398;
    --win: #5dc896;
    --lose: #f87171;
    --max: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Barlow", system-ui, sans-serif;
    background: var(--bg);
    background-image:
        linear-gradient(190deg, rgba(42, 78, 58, 0.26) 0%, transparent 48%),
        linear-gradient(315deg, rgba(28, 52, 42, 0.22) 0%, transparent 42%),
        linear-gradient(185deg, rgba(38, 44, 54, 0.35) 0%, transparent 45%),
        linear-gradient(0deg, rgba(5, 12, 10, 0.85) 0%, transparent 52%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(72, 98, 84, 0.05) 2px,
            rgba(72, 98, 84, 0.05) 3px
        );
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Top bar ——— */
.topbar {
    background: linear-gradient(180deg, #0f1a16 0%, #060a08 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(72, 115, 90, 0.12);
}

.topbar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.25);
}

.brand-text {
    font-size: 14px;
    text-transform: uppercase;
}

.brand-text strong {
    color: var(--accent);
    font-weight: 700;
}

.sponsor-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.sponsor {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.topbar-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.topbar-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 18px;
}

.topbar-download-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Motyw — panel jak przy logowaniu, trigger jako dyskretny tekst (bez „buttona” w stylu logowania) */
.theme-dropdown {
    flex-shrink: 0;
}

.theme-dropdown.is-open {
    z-index: 260;
}

.theme-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 2px;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 2px;
    transition: color 0.2s;
}

.theme-dropdown-trigger:hover {
    color: var(--text);
}

.theme-dropdown-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-dropdown.is-open .theme-dropdown-trigger {
    color: var(--accent);
}

.theme-dropdown-panel.user-dropdown-panel {
    width: min(300px, calc(100vw - 24px));
    max-height: min(70vh, 420px);
    z-index: 261;
}

.theme-form .field-hint {
    margin: 0 0 12px;
}

.theme-form .login-form-field input[type="color"] {
    height: 44px;
    padding: 6px 10px;
    cursor: pointer;
}

.theme-form .login-form-field input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.theme-form .login-form-field input[type="color"]::-webkit-color-swatch {
    border-radius: 2px;
    border: 1px solid #444;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 1rem;
}

.download-meta {
    font-size: 13px;
    color: #8a9a8e;
}

/* ——— Login dropdown (top bar) ——— */
.user-dropdown {
    position: relative;
    z-index: 200;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 6px 10px 6px 8px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #c8c8c8;
    background: linear-gradient(180deg, #222 0%, #141414 100%);
    border: 1px solid #333;
    border-radius: 2px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.user-dropdown-toggle:hover {
    border-color: #555;
    color: #fff;
}

.user-dropdown.is-open .user-dropdown-toggle {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.38);
    color: #fff;
}

.user-dropdown.is-open .user-chevron {
    transform: rotate(180deg);
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: #2a2a2a;
    border: 1px solid #4a4a4a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.user-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chevron {
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
    transition: transform 0.2s ease;
}

.user-dropdown.is-open .user-chevron {
    border-top-color: var(--accent);
}

.user-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(380px, calc(100vw - 24px));
    max-height: min(88vh, 640px);
    overflow-y: auto;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #1e1e1e 0%, #121212 100%);
    border: 1px solid #333;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(var(--accent-rgb), 0.14);
}

.user-dropdown-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 10px;
    height: 10px;
    background: #1e1e1e;
    border-left: 1px solid #333;
    border-top: 1px solid #333;
    transform: rotate(45deg);
}

.auth-tabs {
    display: flex;
    margin: -4px -4px 14px;
    border-bottom: 1px solid #333;
}

.auth-tab {
    flex: 1;
    padding: 10px 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #777;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.auth-tab:hover {
    color: #bbb;
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.auth-panel[hidden] {
    display: none !important;
}

.login-form-field {
    margin-bottom: 14px;
}

.field-hint {
    margin: -8px 0 14px;
    font-size: 11px;
    line-height: 1.45;
    color: #666;
}

.field-hint--warn {
    margin-top: 0;
    padding: 8px 10px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    color: #c9b896;
}

.field-hint--success {
    margin-top: 0;
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
    background: rgba(124, 179, 66, 0.14);
    border: 1px solid rgba(124, 179, 66, 0.4);
    border-radius: 8px;
    color: #b8e986;
    box-shadow: 0 0 0 1px rgba(124, 179, 66, 0.08);
}

.field-hint--warn strong {
    color: var(--accent);
}

.login-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.45;
    color: #aaa;
    cursor: pointer;
}

.login-check input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.recaptcha-field {
    margin-bottom: 14px;
}

.recaptcha-field .g-recaptcha {
    display: inline-block;
    vertical-align: top;
}

.login-check a {
    color: var(--accent);
}

.register-form .login-form-field:last-of-type {
    margin-bottom: 10px;
}

.login-form-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.login-form-field input,
.login-form-field select,
.login-form-field textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 0;
    box-sizing: border-box;
}

.login-form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.login-form-field input:focus,
.login-form-field select:focus,
.login-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.28);
}

.btn-block {
    width: 100%;
    margin-top: 4px;
}

.login-forgot {
    display: block;
    margin-top: 12px;
    font-size: 12px;
    text-align: center;
    color: var(--muted);
}

.login-forgot:hover {
    color: var(--accent);
}

.site-header {
    position: relative;
}

/* ——— Hero ——— */
.hero {
    position: relative;
    height: min(52vh, 440px);
    min-height: 320px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.55s ease;
}

/* Placeholder “image” areas — structure only */
.slide--a {
    background-image:
        linear-gradient(115deg, rgba(15, 45, 28, 0.92) 0%, transparent 55%),
        linear-gradient(200deg, #070f0b 0%, #122018 42%, #050807 100%);
}

.slide--b {
    background-image:
        linear-gradient(115deg, rgba(12, 38, 42, 0.88) 0%, transparent 50%),
        linear-gradient(160deg, #081210 0%, #0f1c18 50%, #050807 100%);
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max);
    height: 100%;
    margin: 0 auto;
    padding: clamp(32px, 8vw, 72px) 24px clamp(34px, 7vw, 56px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: "Bebas Neue", "Impact", sans-serif;
    font-size: clamp(2.75rem, 8vw, 4.5rem);
    letter-spacing: 0.06em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 12px;
    line-height: 0.95;
    text-shadow:
        0 0 40px rgba(var(--accent-rgb), 0.28),
        0 0 72px rgba(55, 105, 78, 0.22);
}

.hero-lead {
    max-width: 420px;
    margin: 0 0 20px;
    color: #d8d8d8;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

.hero-arrows {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

/* Hero w kolumnie głównej (index) — obok sidebara, nie pod całą szerokością */
.shell.shell--home .content-main > .hero {
    margin-bottom: 20px;
    border: 1px solid var(--border);
    height: min(46vh, 360px);
    min-height: 260px;
}

.shell.shell--home .hero .hero-content {
    max-width: none;
    padding: clamp(22px, 4vw, 44px) 18px clamp(34px, 7vw, 52px);
}

.shell.shell--home .hero-title {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
}

.circle-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

.circle-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ——— Buttons ——— */
.btn {
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
    padding: 12px 22px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow:
        0 0 0 1px var(--accent-hover),
        0 0 24px rgba(var(--accent-rgb), 0.38),
        0 8px 28px rgba(45, 90, 65, 0.22);
}

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-sm {
    padding: 9px 16px;
    font-size: 11px;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 9px 16px;
}

.btn-ghost:hover {
    background: rgba(var(--accent-rgb), 0.14);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border-radius: 0;
    transition: border-color 0.2s, color 0.2s;
}

.btn-icon svg,
.icon-share {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-icon.light {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text);
}

/* ——— Nav (main menu bar) ——— */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, #1a2420 0%, #121c18 48%, #0b1210 100%);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(72, 115, 90, 0.14);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 8px 0 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    flex-wrap: nowrap;
}

.nav-panel {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
}

.nav-mobile-toggle {
    display: none;
}

.nav-links {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.nav-links li {
    display: flex;
    flex-shrink: 0;
}

.nav-links li + li {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links a {
    display: flex;
    align-items: center;
    color: #b8b8b8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 16px;
    position: relative;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.nav-links a.active {
    color: #f2e8b8;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.14) 0%, rgba(55, 95, 72, 0.16) 100%);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.nav-tools {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 8px;
    min-width: 0;
}

.nav-search-form {
    display: flex;
    align-items: stretch;
    min-height: 100%;
    min-width: 0;
}

.nav-search {
    display: flex;
    align-items: center;
    background: #0a0a0a;
    border: 1px solid #2e2e2e;
    border-right: none;
    padding: 0 4px 0 10px;
    min-height: 100%;
    min-width: 0;
}

.nav-search:focus-within {
    border-color: #444;
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.18);
}

.nav-search-icon {
    display: flex;
    color: #666;
    flex-shrink: 0;
}

.nav-search input {
    width: min(200px, 36vw);
    min-width: 120px;
    background: transparent;
    border: none;
    padding: 10px 10px 10px 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
}

.nav-search input:focus {
    outline: none;
}

.nav-search input::placeholder {
    color: #5c5c5c;
}

.fb-btn {
    width: 48px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 50%, var(--accent-deep) 100%);
    color: #0a0a0a;
    font-weight: 800;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
    transition: filter 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fb-btn--search {
    border: 0;
    cursor: pointer;
}

.fb-btn--search:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: -4px;
}

.fb-btn:hover {
    filter: brightness(1.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-accent-line {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 15%, var(--accent) 85%, transparent 100%);
    opacity: 0.95;
}

@media (max-width: 900px) {
    .has-js .nav-inner {
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 0;
    }

    .has-js .nav-mobile-toggle {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 0 16px;
        border: 0;
        background: transparent;
        color: #f2f2f2;
        font: inherit;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .has-js .nav-mobile-toggle:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .has-js .nav-mobile-toggle:focus-visible {
        outline: 2px solid rgba(255, 255, 255, 0.92);
        outline-offset: -4px;
    }

    .has-js .nav-mobile-toggle-bars {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 18px;
        flex-shrink: 0;
    }

    .has-js .nav-mobile-toggle-bars span {
        display: block;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .has-js .navbar.is-open .nav-mobile-toggle-bars span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .has-js .navbar.is-open .nav-mobile-toggle-bars span:nth-child(2) {
        opacity: 0;
    }

    .has-js .navbar.is-open .nav-mobile-toggle-bars span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .has-js .nav-panel {
        display: none;
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .has-js .navbar.is-open .nav-panel {
        display: flex;
    }

    .has-js .nav-links {
        flex-direction: column;
        overflow: visible;
    }

    .has-js .nav-links li + li {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .has-js .nav-links a {
        min-height: 48px;
        padding: 0 16px;
        justify-content: space-between;
    }

    .has-js .nav-tools {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding: 12px 16px 16px;
    }

    .has-js .nav-search-form {
        width: 100%;
    }

    .has-js .nav-search {
        flex: 1 1 auto;
        min-height: 48px;
    }

    .has-js .nav-search input {
        width: 100%;
        min-width: 0;
    }

    .has-js .fb-btn {
        width: 48px;
        min-height: 48px;
    }
}

/* ——— Activity ribbon (live log z srv1_log — pod menu) ——— */
.activity-ribbon {
    background: #080c0a;
    border-bottom: 1px solid var(--border);
}

.activity-ribbon[data-live-loading="1"] .activity-ribbon-track {
    opacity: 0.72;
    transition: opacity 0.15s ease;
}

.activity-ribbon-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px 20px;
}

.activity-ribbon-track {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

.activity-ribbon-label-row {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 11rem;
}

.activity-ribbon-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.95;
}

.activity-ribbon-updated {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #7a7a7a;
    white-space: nowrap;
}

.activity-ribbon-updated:not([hidden]) {
    display: block;
}

.activity-ribbon-item {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #c8c8c8;
    white-space: normal;
    line-height: 1.35;
    padding: 4px 0;
    word-break: break-word;
}

.activity-ribbon-item.activity-ribbon-muted {
    font-weight: 500;
    color: #6a6a6a;
    font-style: italic;
}

/* ——— Status serwera (kanały CH) — sidebar ——— */
.channels-metin {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Jedna linia na kanał: kropka | nazwa | Online/Offline */
.channels-metin-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid #252525;
    font-size: 12px;
    min-width: 0;
}

.ch-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}

.ch-status--online {
    background: #2ecc71;
    color: #2ecc71;
}

.ch-status--offline {
    background: #c0392b;
    color: #c0392b;
    box-shadow: none;
}

.ch-name {
    font-weight: 600;
    color: #e8e8e8;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-row-status {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.ch-row-status--online {
    color: #8fd19a;
}

.ch-row-status--offline {
    color: #c08080;
}

.ch-players {
    font-size: 11px;
    font-weight: 600;
    color: #8fd19a;
    white-space: nowrap;
}

.ch-offline-msg {
    font-size: 11px;
    font-weight: 600;
    color: #c08080;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ——— Ranking (zakładki) — sidebar ——— */
.ranking-section.widget {
    padding-top: 12px;
    padding-bottom: 14px;
}

.ranking-section .ranking-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 8px;
}

.ranking-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 0 0 8px;
    border-bottom: 1px solid #2a2a2a;
}

.ranking-tab {
    padding: 8px 6px;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    background: #151515;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ranking-tab:hover {
    color: #ccc;
    border-color: #444;
}

.ranking-tab.active {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
}

.ranking-panel {
    padding: 8px 0 0;
    overflow-x: auto;
}

.ranking-panel[hidden] {
    display: none !important;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.rank-table th,
.rank-table td {
    padding: 6px 4px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.rank-table th {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
    background: rgba(0, 0, 0, 0.35);
}

.rank-table tbody tr:hover td {
    background: rgba(var(--accent-rgb), 0.06);
}

.rank-table td:first-child {
    color: var(--accent);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    width: 1.5rem;
}

.rank-table--compact th,
.rank-table--compact td {
    padding: 5px 2px;
    font-size: 10px;
}

.widget-foot {
    margin: 12px 0 0;
    font-size: 11px;
}

.widget-foot a {
    color: var(--accent);
    text-decoration: none;
}

.widget-foot a:hover {
    text-decoration: underline;
}

/* ——— Shell: 12 columns → main 8, sidebar 4 ——— */
.shell {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 16px 48px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.content-main {
    grid-column: 1 / span 8;
    min-width: 0;
}

.sidebar {
    grid-column: 9 / span 4;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 900px) {
    .content-main,
    .sidebar {
        grid-column: 1 / -1;
    }

    .sponsor-strip,
    .topbar-download {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Podstrony (wszystkie poza index): ta sama siatka co start, treść zamiast bloku newsów */
.shell > .content-main.page-ranking-main {
    max-width: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.shell > .content-main.page-auth-main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.shell .content-main .article-page {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* ——— Article cards ——— */
.article-card {
    position: relative;
    min-height: 200px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.article-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.65) brightness(0.45);
    transform: scale(1.02);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.article-card--csgo .article-card-bg {
    background-image:
        linear-gradient(120deg, rgba(var(--accent-rgb), 0.14), transparent 50%),
        linear-gradient(180deg, #1c1c1c, #0a0a0a);
}

.article-card--fifa .article-card-bg {
    background-image:
        linear-gradient(120deg, rgba(60, 90, 120, 0.22), transparent 55%),
        linear-gradient(180deg, #121820, #080a0c);
}

.article-card:hover .article-card-bg {
    transform: scale(1.06);
    filter: saturate(0.8) brightness(0.55);
}

.article-card-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(var(--accent-rgb), 0.1) 100%);
}

.article-card-inner {
    position: relative;
    z-index: 1;
    padding: 28px 24px;
}

.article-card-head {
    margin: 0 0 14px;
}

.article-card h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: 0.05em;
    color: var(--accent);
    text-transform: uppercase;
    margin: 0 0 8px;
    line-height: 1;
}

.article-subhead {
    margin: 0;
    max-width: 480px;
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 500;
}

/* Middle row: CTA + share (then teaser below) */
.article-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.article-teaser {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.news-section {
    margin-bottom: 4px;
}

.news-section-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 18px;
    line-height: 1;
}

.article-card--event .article-card-bg {
    background-image:
        linear-gradient(120deg, rgba(56, 120, 90, 0.22), transparent 52%),
        linear-gradient(180deg, #101a14, #060a08);
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    margin: 8px 0 24px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #121a16, #0a0e0c);
}

.pagination-prev,
.pagination-next {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.pagination-prev:hover,
.pagination-next:hover {
    text-decoration: underline;
}

.pagination-prev--disabled,
.pagination-next--disabled {
    color: var(--muted);
    pointer-events: none;
    opacity: 0.45;
}

.pagination-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-pages a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ddd;
    text-decoration: none;
    border: 1px solid #3a3a3a;
    background: #141414;
}

.pagination-pages a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-pages a[aria-current="page"] {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
}

/* ——— Strona pełnego artykułu (news-*.html) ——— */
.page-article-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 16px 56px;
}

.article-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 22px 28px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #141a17, #0c0e0c);
}

.article-page-meta {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-page-meta time {
    color: #c8c8c8;
}

.article-page h1 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
    line-height: 1.05;
}

.article-page-lead {
    margin: 0 0 22px;
    font-size: 16px;
    font-weight: 500;
    color: #e4e4e4;
    line-height: 1.5;
}

.article-page-body {
    margin-bottom: 28px;
}

.article-page-body p {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.65;
}

.article-page-body p:last-child {
    margin-bottom: 0;
}

.article-page-footer {
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

/* ——— CTA bar ——— */
.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #121212, #0c0c0c);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.cta-bar-text {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cta-bar-text strong {
    color: var(--accent);
}

/* ——— Feature grid ——— */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 640px) {
    .topbar-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px 12px;
        padding: 10px 14px 14px;
    }

    .brand-text {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .theme-dropdown {
        justify-self: end;
    }

    .user-dropdown {
        grid-column: 1 / -1;
        width: 100%;
    }

    .user-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .topbar-download {
        grid-column: 1 / -1;
        order: 0;
        justify-content: flex-start;
        gap: 8px;
    }

    .topbar-download-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .nav-search input {
        width: min(148px, 42vw);
        min-width: 92px;
    }
}

.feature-box {
    position: relative;
    min-height: 220px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.feature-product {
    border-width: 3px;
    border-color: var(--accent);
    background: #0d0d0d;
}

.feature-product-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 60%, rgba(var(--accent-rgb), 0.18), transparent 50%),
        linear-gradient(160deg, #1a1a1a, #080808);
}

.feature-product-inner {
    position: relative;
    z-index: 1;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-server-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 40%),
        linear-gradient(90deg, #2a2420 0%, #1a1512 100%);
    background-size: cover;
    background-position: top center;
    filter: brightness(0.65);
}

.feature-server-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.95) 0%, transparent 70%);
}

.feature-server-inner {
    position: relative;
    z-index: 1;
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.feature-box h3 {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: var(--text);
}

.muted {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 14px;
}

/* ——— Sidebar widgets ——— */
.widget {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.widget-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.event-calendar-widget .event-cal-caption {
    margin: -6px 0 10px;
    font-size: 12px;
    color: var(--muted);
}

.event-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    font-size: 11px;
    text-align: center;
}

.event-cal-dow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 2px 0 6px;
}

.event-cal-pad {
    min-height: 1.75rem;
}

.event-cal-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    line-height: 1;
}

.event-cal-cell--event {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.45);
    cursor: help;
}

.event-cal-cell--today {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.event-cal-cell--event.event-cal-cell--today {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.event-cal-num {
    font-weight: 600;
}

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

.panel-hub-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.panel-sidebar-foot {
    margin: 18px 0 0;
    font-size: 12px;
    text-align: center;
    color: var(--muted);
    line-height: 1.5;
}

.panel-sidebar-foot .text-link {
    color: var(--accent);
}

/* Doładowanie — sidebar: historia zamiast menu panelu (bez poziomego scrolla) */
.topup-sidebar-table-wrap {
    margin: 0 0 12px;
    overflow-x: visible;
}

.topup-sidebar-table {
    width: 100%;
    font-size: 11px;
    table-layout: fixed;
}

.topup-sidebar-table th,
.topup-sidebar-table td {
    padding: 6px 8px 6px 0;
    vertical-align: top;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.topup-sidebar-table td:last-child,
.topup-sidebar-table th:last-child {
    padding-right: 0;
}

.topup-sidebar-empty {
    margin: 0 0 12px;
    font-size: 13px;
}

.topup-sidebar-foot {
    margin-top: 14px;
}

.panel-sidebar-foot-sep {
    margin: 0 8px;
    opacity: 0.6;
}

/* Kotwice w panel.php — przewijanie pod menu + pasek „Na żywo” */
.panel-section-anchor {
    scroll-margin-top: 120px;
}

.match-list,
.blog-list,
.stream-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.match-list li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #222;
    font-size: 13px;
}

.match-list li:last-child {
    border-bottom: none;
}

.game-ico {
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #333, #1a1a1a);
    border: 1px solid #444;
}

.match-vs {
    color: #ccc;
}

.match-score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.match-score .sep {
    color: #666;
    margin: 0 2px;
    font-weight: 400;
}

.win {
    color: var(--win);
}

.lose {
    color: var(--lose);
}

.blog-list li {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

.blog-list li:last-child {
    border-bottom: none;
}

.blog-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: #2a2a2a;
    border: 1px solid #444;
}

.blog-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.blog-title {
    font-weight: 600;
    font-size: 13px;
    color: #eee;
}

.blog-sub {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-comments {
    font-variant-numeric: tabular-nums;
}

.stream-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
    font-size: 13px;
}

.stream-list li:last-child {
    border-bottom: none;
}

.stream-name {
    color: #ddd;
    font-weight: 500;
}

.stream-viewers {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.ad-placeholder {
    min-height: 160px;
    background: repeating-linear-gradient(
        45deg,
        #141414,
        #141414 8px,
        #181818 8px,
        #181818 16px
    );
    border: 1px dashed #444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #555;
}

.ranking-more {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
}

.ranking-more-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.ranking-more-link:hover {
    text-decoration: underline;
}

/* ——— Strona ranking.html ——— */
.page-ranking-main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 16px 56px;
    min-width: 0;
}

.page-ranking-intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.page-ranking-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}

.page-ranking-lead {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--muted);
    max-width: 720px;
    line-height: 1.55;
}

.page-ranking-meta {
    margin: 0;
    font-size: 13px;
}

.search-results-block + .search-results-block {
    margin-top: 28px;
}

.search-results-heading {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.search-results {
    display: grid;
    gap: 16px;
}

.search-result {
    padding: 18px 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(11, 11, 11, 0.96));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-result-type {
    color: var(--accent);
}

.search-result-title {
    margin: 0 0 8px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.2;
}

.search-result-title a {
    color: var(--text);
    text-decoration: none;
}

.search-result-title a:hover {
    color: var(--accent);
}

.search-result-excerpt {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.search-empty {
    margin-top: 22px;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
}

.text-link:hover {
    color: var(--green);
    text-decoration: underline;
}

.ranking-section--page {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #141414, #0c0c0c);
    padding: 20px 18px 24px;
    min-width: 0;
}

.ranking-tabs--page {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 0 14px;
    border-bottom: 1px solid #2a2a2a;
}

.ranking-section--page .ranking-tab {
    border: 1px solid #333;
    margin-bottom: 0;
    border-radius: 0;
}

.ranking-section--page .ranking-tab.active {
    border-color: var(--accent);
}

.rank-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
    padding: 0 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.rank-table--page {
    font-size: 13px;
    min-width: 520px;
}

.rank-table--page th,
.rank-table--page td {
    padding: 10px 12px;
    white-space: nowrap;
}

.rank-table--page th:first-child,
.rank-table--page td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #0f0f0f;
    box-shadow: 4px 0 8px rgba(0, 0, 0, 0.4);
}

.rank-table--page thead th {
    background: #151515;
    z-index: 2;
}

.rank-table--page tbody tr:hover td {
    background: rgba(var(--accent-rgb), 0.07);
}

.rank-table--page tbody tr:hover td:first-child {
    background: #161006;
}

/* ——— Linki pod logowaniem (dropdown) ——— */
.auth-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}

.auth-links-register {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
}

.auth-links-register:hover {
    text-decoration: underline;
}

.auth-links .login-forgot {
    margin-top: 0;
}

/* ——— Strony rejestracja / zapomniane hasło ——— */
.page-auth-main {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 16px 56px;
}

.page-auth-main--panel {
    max-width: 640px;
}

.panel-block {
    margin-bottom: 22px;
}

.panel-block:last-child {
    margin-bottom: 0;
}

.panel-block--foot {
    padding-top: 20px;
    padding-bottom: 24px;
}

.panel-block-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 8px;
}

.panel-block-lead {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.panel-block-table {
    margin-bottom: 0;
}

/* Doładowanie PayPal (topup.php) */
.topup-summary {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.topup-summary p {
    margin: 0 0 6px;
}

.topup-packages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.topup-card {
    padding: 20px 18px 22px;
}

.topup-card-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.topup-price {
    margin: 0 0 12px;
    font-size: 15px;
    color: #c8c8c8;
}

.topup-paypal {
    min-height: 45px;
}

/* Pola w tabelach admina (poza .login-form-field) — ten sam wygląd co pola logowania */
.topup-table-input,
.admin-slider-order-input {
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 0;
    box-sizing: border-box;
}

.topup-table-input:focus,
.admin-slider-order-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.28);
}

.topup-table-input {
    width: 100%;
    min-width: 72px;
    max-width: 100%;
}

.admin-slider-order-input {
    width: 4.5rem;
    min-width: 4.5rem;
}

.auth-card {
    background: linear-gradient(180deg, #161616, #0e0e0e);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    padding: 28px 26px 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.auth-card--narrow {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* W układzie shell karta na całą szerokość kolumny (jak rejestracja) */
.shell .content-main .auth-card {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.auth-card-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 10px;
}

.auth-card-lead {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.auth-card-form .login-form-field input,
.auth-card-form .login-form-field select,
.auth-card-form .login-form-field textarea {
    max-width: 100%;
}

.auth-card-footer {
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}

.auth-card-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-card-footer a:hover {
    text-decoration: underline;
}

.auth-card-footer--stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.error-404-uri code {
    font-size: 12px;
    word-break: break-all;
    color: #888;
}

.label-optional {
    font-weight: 400;
    color: #666;
    font-size: 11px;
}

.auth-reset-hint {
    margin-top: 16px;
    text-align: left;
}

.contact-methods {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.contact-methods li {
    margin-bottom: 10px;
}

.contact-methods strong {
    color: #c8c8c8;
}

/* ——— Item shop ——— */
.shop-intro {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.shop-intro .page-ranking-title {
    margin-bottom: 8px;
}

.shop-category-block {
    margin-bottom: 28px;
}

.shop-category-block:last-of-type {
    margin-bottom: 0;
}

.shop-category-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #2a2a2a;
}

.shop-category-empty {
    margin: 0 0 8px;
    font-size: 13px;
}

.shop-card-meta {
    font-size: 11px;
    color: #666;
}

.shop-card-hint {
    cursor: default;
    opacity: 0.9;
}

.shop-grid {
    display: grid;
    gap: 14px;
}

.shop-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    background:
        linear-gradient(120deg, rgba(58, 95, 72, 0.07) 0%, transparent 42%),
        linear-gradient(180deg, #161616, #0e0e0e);
    border-left: 3px solid var(--accent);
    box-shadow: inset 0 0 0 1px rgba(80, 125, 98, 0.1);
}

.shop-card-body {
    flex: 1;
    min-width: 200px;
}

.shop-card-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 6px;
    line-height: 1;
}

.shop-card-desc {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.45;
}

.shop-card-buy {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.shop-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.shop-page-footer {
    margin-top: 24px;
}

/* Potwierdzenie zakupu — wyraźny zielony blok nad treścią sklepu */
#itemshop-flash.itemshop-flash {
    scroll-margin-top: 96px;
}

.itemshop-flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.itemshop-flash--success {
    background: linear-gradient(145deg, rgba(46, 125, 50, 0.42), rgba(20, 70, 32, 0.35));
    border-color: rgba(129, 199, 132, 0.9);
    box-shadow:
        0 0 0 1px rgba(76, 175, 80, 0.25),
        0 8px 28px rgba(0, 0, 0, 0.35);
}

.itemshop-flash--success .itemshop-flash-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #d7f8d8;
}

.itemshop-flash-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #66bb6a;
    color: #0a1f0c;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.itemshop-flash--error {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: rgba(var(--accent-rgb), 0.4);
}

.itemshop-flash--error .itemshop-flash-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #c9b896;
}

/* Item shop: kategorie w lewej kolumnie, produkty wybranej kategorii na środku (bez rankingu/statusu w sidebarze) */
.shell--itemshop > .sidebar--itemshop {
    grid-column: 1 / span 3;
}

.shell--itemshop > .itemshop-main {
    grid-column: 4 / span 9;
}

.sidebar--itemshop {
    position: sticky;
    top: 20px;
}

.itemshop-nav-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.itemshop-nav-empty {
    font-size: 13px;
    margin: 0;
}

.itemshop-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.itemshop-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    font-size: 13px;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.itemshop-nav-link:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
}

.itemshop-nav-link.is-active {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(55, 90, 70, 0.2));
    color: var(--accent);
    box-shadow: 0 0 0 1px rgba(90, 130, 100, 0.15);
}

.itemshop-nav-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.itemshop-nav-link.is-active .itemshop-nav-count {
    color: var(--accent);
}

.shop-category-block--single {
    margin-bottom: 0;
}

.shell--itemshop .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.shell--premium > .sidebar--premium {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.premium-sidecard {
    padding: 20px 18px 22px;
}

.premium-balance {
    margin: 0 0 8px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.premium-side-note {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.premium-side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.premium-nav {
    margin-top: 0;
}

.premium-intro-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.premium-intro-stat {
    padding: 14px 14px 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background: linear-gradient(180deg, rgba(27, 34, 30, 0.95), rgba(12, 14, 13, 0.95));
    box-shadow: inset 0 0 0 1px rgba(90, 130, 100, 0.08);
}

.premium-intro-stat-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7e8b83;
}

.premium-intro-stat-value {
    display: block;
    font-size: 1.1rem;
    color: #f0f0f0;
}

.premium-section-head {
    margin-bottom: 14px;
}

.premium-section-lead {
    margin: -4px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.premium-status-block {
    margin-bottom: 30px;
}

.premium-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.premium-status-card {
    padding: 14px 14px 12px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.96), rgba(10, 10, 10, 0.96));
}

.premium-status-card.is-active {
    border-color: rgba(123, 204, 138, 0.55);
    box-shadow: inset 0 0 0 1px rgba(74, 175, 100, 0.14);
}

.premium-status-card.is-inactive {
    opacity: 0.9;
}

.premium-status-title {
    margin: 0 0 6px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.premium-status-value {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
}

.premium-status-meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.premium-grid {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.premium-card {
    position: relative;
    align-items: stretch;
    gap: 18px;
    min-height: 100%;
}

.premium-card--featured {
    border-color: rgba(183, 154, 84, 0.8);
    box-shadow:
        inset 0 0 0 1px rgba(183, 154, 84, 0.18),
        0 10px 30px rgba(0, 0, 0, 0.28);
}

.premium-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 8px 5px;
    border-radius: 999px;
    background: rgba(183, 154, 84, 0.14);
    border: 1px solid rgba(183, 154, 84, 0.4);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d6b677;
}

.premium-card-body {
    padding-right: 60px;
}

.premium-card-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7e8b83;
}

.premium-card-copy {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #c8c8c8;
}

.premium-card-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.premium-card-status.is-active {
    border-color: rgba(123, 204, 138, 0.45);
    background: rgba(70, 135, 88, 0.12);
}

.premium-card-status.is-partial {
    border-color: rgba(183, 154, 84, 0.45);
    background: rgba(183, 154, 84, 0.1);
}

.premium-card-status-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f0f0f0;
}

.premium-card-status.is-active .premium-card-status-label {
    color: #b8f0c1;
}

.premium-card-status.is-partial .premium-card-status-label {
    color: #e3c88e;
}

.premium-card-status-meta {
    font-size: 12px;
    line-height: 1.45;
    color: var(--muted);
}

.premium-feature-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.premium-feature-list li {
    padding: 7px 9px 6px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    background: rgba(var(--accent-rgb), 0.08);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #d9d9d9;
}

.premium-card-buy {
    min-width: 170px;
    justify-content: flex-end;
}

.premium-note {
    max-width: 170px;
    text-align: right;
    font-size: 11px;
    line-height: 1.45;
    color: var(--muted);
}

@media (max-width: 900px) {
    .shell--itemshop > .sidebar--itemshop,
    .shell--itemshop > .itemshop-main {
        grid-column: 1 / -1;
    }

    .sidebar--itemshop {
        position: static;
    }

    .premium-card-body {
        padding-right: 0;
    }

    .premium-card-buy {
        align-items: flex-start;
        min-width: 0;
    }

    .premium-note {
        max-width: none;
        text-align: left;
    }
}

/* ——— Footer ——— */
.site-footer {
    border-top: 1px solid var(--border);
    background: #080808;
}

.footer-sponsors {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 40px;
    border-bottom: 1px solid var(--border);
}

.footer-sponsor {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #555;
    filter: grayscale(1);
}

.footer-about {
    padding: 40px 16px 28px;
}

.footer-about-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-heading {
    font-family: "Bebas Neue", sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 12px;
}

.footer-copy p {
    margin: 0;
    color: #b0b0b0;
    max-width: 640px;
    font-size: 14px;
}

.footer-legal {
    text-align: center;
    font-size: 11px;
    color: #555;
    margin: 0;
    padding: 16px;
    border-top: 1px solid #1a1a1a;
}

/* —— Panel administratora: newsy, kontakt —— */
.admin-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-contact-heading {
    margin-top: 1.75rem;
}

.admin-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-contact-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
}

.admin-contact-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.4;
}

.admin-contact-time {
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.admin-contact-from {
    font-weight: 600;
    color: var(--accent);
}

.admin-contact-subject {
    flex: 1 1 160px;
    min-width: 0;
}

.admin-contact-ip {
    font-size: 12px;
    color: #666;
    font-family: ui-monospace, monospace;
}

.admin-contact-details {
    margin-top: 10px;
}

.admin-contact-details summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 13px;
    user-select: none;
}

.admin-contact-details summary:hover {
    text-decoration: underline;
}

.admin-contact-body {
    margin: 10px 0 0;
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow: auto;
}

/* Lista newsów w adminie — karty zamiast szerokiej tabeli (bez poziomego suwaka) */
.admin-news-toolbar {
    margin-bottom: 1rem;
}

.admin-news-empty {
    margin-top: 0.5rem;
}

.admin-news-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-news-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.22);
    min-width: 0;
}

.admin-news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}

.admin-news-card-id {
    font-variant-numeric: tabular-nums;
}

.admin-news-card-date {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.admin-news-card-title {
    font-family: inherit;
    font-size: 1.05rem;
    margin: 0 0 6px;
    line-height: 1.35;
    font-weight: 600;
    color: #e8e8e8;
    word-break: break-word;
}

.admin-news-card-slug {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
}

.admin-news-card-slug code {
    font-size: 12px;
}

.admin-news-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-news-card-form {
    display: inline;
    margin: 0;
}

.admin-inline-form {
    display: inline;
}

.admin-btn-danger {
    color: #f08080;
}

.admin-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #2a2a2a;
    color: var(--muted);
}

.admin-badge--ok {
    background: rgba(80, 160, 100, 0.25);
    color: #9dffb0;
}

.admin-badge--off {
    background: rgba(120, 80, 80, 0.28);
    color: #e8a8a8;
}

.admin-badge--sandbox {
    background: rgba(100, 140, 180, 0.22);
    color: #a8d4ff;
}

.admin-badge--live {
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
}

.admin-slider-thumb {
    display: block;
    max-width: 120px;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    object-fit: cover;
}

.admin-slider-thumb--large {
    max-width: min(100%, 420px);
}

.admin-slider-edit-preview {
    margin: 0.5rem 0 0;
}

.admin-news-body {
    min-height: 280px;
    font-family: ui-monospace, "Consolas", monospace;
    font-size: 13px;
    line-height: 1.45;
}

.admin-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.admin-checkbox-label input {
    margin-top: 3px;
}

.login-form-field--checkbox {
    margin-bottom: 1rem;
}

.admin-preview-banner {
    padding: 8px 12px;
    background: rgba(180, 140, 60, 0.15);
    border: 1px solid rgba(180, 140, 60, 0.35);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

/* Admin: PayPal / doładowania */
.paypal-admin-header {
    margin-bottom: 0.25rem;
}

.paypal-admin-webhook {
    margin: 1rem 0 1.25rem;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    border-radius: 8px;
}

.paypal-admin-webhook-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 6px;
}

.paypal-admin-webhook-url {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    word-break: break-all;
    color: #c9d4e0;
    padding: 8px 10px;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
}

.paypal-admin-webhook .field-hint {
    margin: 8px 0 0;
}

.paypal-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}

.paypal-admin-stat {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.paypal-admin-stat-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #777;
}

.paypal-admin-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

.paypal-admin-toggle {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.25rem;
    padding: 16px 18px;
    background: rgba(var(--accent-rgb), 0.06);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 10px;
}

.paypal-admin-toggle-text {
    flex: 1;
    min-width: 0;
}

.paypal-admin-toggle-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.paypal-admin-toggle .field-hint {
    margin: 0;
}

.admin-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    cursor: pointer;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
    width: 52px;
    height: 30px;
    margin: 0;
    cursor: pointer;
    z-index: 2;
}

.admin-switch-ui {
    display: block;
    position: relative;
    width: 48px;
    height: 26px;
    background: #252525;
    border: 1px solid #3d3d3d;
    border-radius: 999px;
    transition: background 0.2s, border-color 0.2s;
    pointer-events: none;
}

.admin-switch-ui::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 50%;
    margin-top: -10px;
    background: #777;
    border-radius: 50%;
    transition: left 0.2s ease, background 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.admin-switch input:checked + .admin-switch-ui {
    background: rgba(var(--accent-rgb), 0.22);
    border-color: rgba(var(--accent-rgb), 0.55);
}

.admin-switch input:checked + .admin-switch-ui::after {
    left: 25px;
    background: var(--accent);
}

.admin-switch input:focus + .admin-switch-ui {
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.35);
}

.paypal-admin-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    margin-bottom: 0.5rem;
}

@media (max-width: 719px) {
    .paypal-admin-row--brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 720px) {
    .paypal-admin-row {
        grid-template-columns: minmax(0, 1.2fr) 100px minmax(0, 1fr);
    }
}

.paypal-admin-env-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 1.25rem 0 1.5rem;
}

@media (min-width: 900px) {
    .paypal-admin-env-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

.paypal-admin-env {
    padding: 16px 18px 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
}

.paypal-admin-env-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 4px;
}

.paypal-admin-env-hint {
    margin: 0 0 12px !important;
}

.paypal-admin-packages-title {
    margin-top: 0.5rem;
}

.field-hint--packages {
    margin-bottom: 10px !important;
}

.paypal-admin-table-wrap {
    margin-bottom: 0.5rem;
}

.paypal-admin-packages-table .paypal-admin-th-check,
.paypal-admin-packages-table .paypal-admin-td-check {
    width: 52px;
    text-align: center;
    vertical-align: middle;
}

.paypal-admin-td-check {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.admin-checkbox-label--table {
    justify-content: center;
    margin: 0;
}

.admin-checkbox-label--table input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.paypal-admin-submit {
    margin-top: 1.25rem;
}

.paypal-admin-footer {
    margin-top: 1.25rem;
}

.paypal-admin-footer-sep {
    margin: 0 0.35rem;
    color: var(--muted);
}
