:root {
    --bg: #101A21;
    --bg-soft: #15232B;
    --card: #1F3540;
    --text: #E8E2CE;
    --muted: #8F9AA0;
    --accent: #C51F27;
    --accent-dark: #9F171F;
    --border: rgba(232, 226, 206, 0.12);
    --border-strong: rgba(232, 226, 206, 0.22);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(180deg, rgba(197, 31, 39, 0.08), transparent 360px),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body.modal-lock {
    overflow: hidden;
}

main {
    flex: 1 0 auto;
}

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

button,
input,
textarea {
    font: inherit;
}

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

.squad-card-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.narrow {
    max-width: 820px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(21, 35, 43, 0.94), rgba(16, 26, 33, 0.94)),
        var(--bg);
    backdrop-filter: blur(16px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 28px;
}

.brand {
    flex: 0 0 auto;
    font-weight: 800;
    letter-spacing: 0;
    font-size: 1.05rem;
}

.nav-menu {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
    flex: 1;
}

.nav-links,
.auth-links,
.footer-links,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    justify-content: center;
}

.nav-link {
    position: relative;
    padding: 8px 4px;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 3px;
    background: var(--accent);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.btn-primary {
    background: var(--accent);
    color: var(--text);
}

.btn-primary:hover,
.btn-primary.is-active {
    background: var(--accent-dark);
}

.btn-outline {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text);
}

.btn-outline:hover,
.btn-outline.is-active {
    border-color: rgba(232, 226, 206, 0.38);
    background: rgba(232, 226, 206, 0.06);
}

.btn.is-disabled,
.btn:disabled {
    border-color: rgba(232, 226, 206, 0.08);
    background: rgba(143, 154, 160, 0.06);
    color: rgba(232, 226, 206, 0.48);
    cursor: not-allowed;
    transform: none;
}

.btn.is-disabled:hover,
.btn:disabled:hover {
    border-color: rgba(232, 226, 206, 0.08);
    background: rgba(143, 154, 160, 0.06);
    color: rgba(232, 226, 206, 0.48);
    transform: none;
}

.btn-small {
    min-height: 38px;
    padding: 8px 13px;
    font-size: 0.9rem;
}

.user-name {
    display: inline-flex;
    align-items: center;
    max-width: 220px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(0.74rem, 1.3vw, 0.95rem);
    transition: border-color 180ms ease, background 180ms ease;
}

.user-name:hover,
.user-name.is-active {
    border-color: rgba(232, 226, 206, 0.32);
    background: rgba(232, 226, 206, 0.06);
}

.section {
    padding: 68px 0;
}

.section-tight {
    padding-top: 12px;
}

.section-muted {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.hero {
    min-height: 560px;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 64px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.hero-subtitle,
.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 680px;
}

.hero-subtitle {
    margin-bottom: 34px;
}

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

.hero-panel,
.card,
.form-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(31, 53, 64, 0.68);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
}

.hero-panel {
    padding: 26px;
}

.panel-line {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.panel-line:first-child {
    padding-top: 0;
}

.panel-line:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.panel-line span {
    color: var(--muted);
}

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

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 18px;
}

.section-note {
    max-width: 420px;
    margin-bottom: 22px;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-hero {
    min-height: calc(100vh - 80px);
    display: grid;
    align-items: center;
    padding: 76px 0;
}

.home-shell {
    display: block;
}

.home-hero .hero-copy {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.home-hero .lead {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.hero-tagline {
    margin: 0 auto 18px;
    max-width: 760px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.home-content {
    padding-top: 24px;
}

.home-stack {
    display: grid;
    gap: 34px;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.home-section-head h2,
.home-section-head p {
    margin: 0;
}

.home-section-head p,
.about-inline p {
    color: var(--muted);
}

.portal-actions {
    display: grid;
    gap: 10px;
}

.portal-actions a {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(21, 35, 43, 0.58);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portal-actions a:hover {
    border-color: rgba(197, 31, 39, 0.48);
    background: rgba(31, 53, 64, 0.78);
    transform: translateY(-1px);
}

.portal-actions span {
    color: var(--muted);
    font-size: 0.86rem;
}

.portal-actions strong {
    color: var(--text);
    font-size: 1rem;
}

.hero-resource-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 52px;
}

.hero-resource-actions a {
    min-height: 132px;
}

.hero-resource-link {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-resource-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--action-start), var(--action-end));
}

.hero-resource-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.28), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 54%);
    opacity: 0.88;
}

.portal-actions .hero-resource-link:hover {
    border-color: transparent;
    background: transparent;
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-resource-link strong {
    display: block;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

.hero-resource-link strong::before {
    content: none;
}

.hero-resource-link strong {
    font-size: clamp(1.18rem, 1.55vw, 1.55rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.hero-resource-link.is-discord strong::before {
    content: "◖◗";
    letter-spacing: -0.34em;
}

.hero-resource-link.is-telegram strong::before {
    content: "✦";
    transform: rotate(-18deg);
}

.hero-resource-link.is-solid strong::before {
    content: "●●●";
    font-size: 0.92rem;
    letter-spacing: -0.18em;
}

.hero-resource-link.is-discord {
    --action-start: #7b3dff;
    --action-end: #392fd2;
}

.hero-resource-link.is-telegram {
    --action-start: #21bcff;
    --action-end: #006fab;
}

.hero-resource-link.is-solid {
    --action-start: #ff4054;
    --action-end: #cf102a;
}

.hero-resource-link.is-discord strong::before,
.hero-resource-link.is-telegram strong::before,
.hero-resource-link.is-solid strong::before {
    content: none;
    display: none;
}

.about-inline {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    padding: 28px 0 0;
    border-top: 1px solid var(--border);
}

.about-inline h2,
.about-inline p {
    margin: 0;
}

.resource-section {
    padding-top: 32px;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.resource-card {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(21, 35, 43, 0.72);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.resource-card:hover {
    border-color: rgba(197, 31, 39, 0.58);
    background: rgba(31, 53, 64, 0.86);
    transform: translateY(-2px);
}

.resource-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.resource-card strong {
    color: var(--text);
    font-size: 1.1rem;
}

.card {
    padding: 22px;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.card:hover {
    border-color: rgba(197, 31, 39, 0.55);
    transform: translateY(-2px);
}

.card p {
    color: var(--muted);
}

.squad-link-card {
    position: relative;
    display: grid;
    place-items: center;
    grid-template-rows: 210px auto auto;
    min-height: 430px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    gap: 18px;
    padding: 46px 24px 36px;
    border-color: rgba(232, 226, 206, 0.16);
    background:
        radial-gradient(circle at 50% 0%, rgba(143, 154, 160, 0.13), transparent 34%),
        linear-gradient(180deg, rgba(31, 53, 64, 0.64), rgba(12, 20, 25, 0.92)),
        var(--bg-soft);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.squad-link-card h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
}

.squad-card-tag,
.squad-detail-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(197, 31, 39, 0.42);
    border-radius: 6px;
    background: rgba(197, 31, 39, 0.1);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.squad-card-tag {
    margin-bottom: -8px;
}

.squad-detail-tag {
    margin: 16px 0 12px;
}

.squad-link-card:hover {
    border-color: rgba(197, 31, 39, 0.68);
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 31, 39, 0.18), transparent 36%),
        linear-gradient(180deg, rgba(31, 53, 64, 0.72), rgba(12, 20, 25, 0.94)),
        var(--bg-soft);
}

.squad-card-top,
.squad-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.squad-tag {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0;
}

.squad-status,
.squad-card-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.squad-status.is-open {
    color: var(--text);
}

.squad-card-meta {
    position: relative;
    z-index: 1;
    justify-content: center;
    margin-top: -10px;
    padding-top: 0;
    border-top: 0;
    font-weight: 700;
    font-size: 0.96rem;
}

.squad-card-logo {
    display: none;
}

.squad-card-image {
    position: relative;
    z-index: 1;
    width: min(200px, 90%);
    aspect-ratio: 1;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.92;
    border: 1px solid rgba(232, 226, 206, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 28%, rgba(232, 226, 206, 0.08), transparent 56%),
        rgba(16, 26, 33, 0.34);
    box-shadow:
        inset 0 0 0 1px rgba(143, 154, 160, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.22);
    padding: 12px;
    pointer-events: none;
}

.squad-card-fallback {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(200px, 90%);
    aspect-ratio: 1;
    border: 1px solid rgba(232, 226, 206, 0.16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 16%, rgba(197, 31, 39, 0.22), transparent 46%),
        linear-gradient(180deg, rgba(31, 53, 64, 0.72), rgba(16, 26, 33, 0.5));
    color: rgba(232, 226, 206, 0.78);
    font-size: clamp(3.5rem, 5vw, 4.9rem);
    font-weight: 900;
    box-shadow:
        inset 0 0 0 1px rgba(143, 154, 160, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.22);
}

.squad-detail-icon {
    display: block;
    width: 118px;
    height: 118px;
    object-fit: contain;
    margin: 0 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(31, 53, 64, 0.58);
    padding: 12px;
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(197, 31, 39, 0.12);
}

.server-meta {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
}

.server-meta div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.server-meta dt {
    color: var(--muted);
}

.server-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
    text-align: right;
}

.servers-section {
    position: relative;
}

.server-card {
    min-height: 190px;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.server-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(197, 31, 39, 0.12);
}

.server-status.is-offline span {
    background: var(--muted);
    box-shadow: 0 0 0 5px rgba(143, 154, 160, 0.12);
}

.about-section {
    background: linear-gradient(180deg, rgba(21, 35, 43, 0.22), transparent);
}

.about-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.page-hero {
    padding: 56px 0 28px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: end;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
}

.event-hero-section {
    padding-bottom: 28px;
}

.event-detail-nav {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.event-back-link {
    min-height: 44px;
    padding: 9px 16px;
    border-color: rgba(232, 226, 206, 0.18);
    background: rgba(16, 26, 33, 0.64);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.event-back-link:hover {
    border-color: rgba(197, 31, 39, 0.58);
    background: rgba(31, 53, 64, 0.72);
}

.event-hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 40px;
    align-items: end;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(16, 26, 33, 0.9), rgba(16, 26, 33, 0.54) 58%, rgba(16, 26, 33, 0.82)),
        linear-gradient(180deg, rgba(16, 26, 33, 0.28), rgba(16, 26, 33, 0.82)),
        var(--event-hero-image),
        var(--bg-soft);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    padding: 32px;
}

.event-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(232, 226, 206, 0.06), transparent 30%);
    pointer-events: none;
}

.event-hero-main,
.event-hero-aside {
    position: relative;
    z-index: 1;
}

.event-hero-main .lead {
    max-width: 780px;
    color: rgba(232, 226, 206, 0.78);
}

.event-hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.86rem;
}

.event-hero-aside {
    justify-self: end;
    min-width: 210px;
}

.event-hero-date {
    display: grid;
    gap: 4px;
    justify-items: start;
    text-align: left;
    padding: 18px 20px;
    border-left: 1px solid rgba(232, 226, 206, 0.18);
    background: rgba(16, 26, 33, 0.22);
}

.event-hero-date span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-hero-date strong,
.event-hero-date em {
    color: var(--accent);
    font-size: 1.8rem;
    line-height: 1;
}

.event-hero-date em {
    color: var(--text);
    font-style: normal;
    font-weight: 800;
}

.event-hero-date small {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.formatted-text {
    color: var(--muted);
    line-height: 1.75;
    white-space: pre-line;
}

.squad-cta {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(21, 35, 43, 0.72);
    padding: 24px;
}

.squad-cta h2 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}

.squad-cta p:not(.eyebrow) {
    margin-bottom: 20px;
    color: var(--muted);
}

.squad-detail-page {
    padding: 56px 0 72px;
}

.squad-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px 38px;
    align-items: start;
}

.squad-detail-hero-card {
    display: grid;
    grid-column: 1 / -1;
    gap: 24px;
    min-width: 0;
    border: 1px solid rgba(232, 226, 206, 0.11);
    border-radius: 8px;
    background:
        radial-gradient(circle at 76% 18%, rgba(197, 31, 39, 0.08), transparent 34%),
        radial-gradient(circle at 22% 0%, rgba(76, 148, 184, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(21, 35, 43, 0.78), rgba(16, 26, 33, 0.62));
    padding: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.squad-detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: stretch;
}

.squad-detail-main,
.squad-detail-side {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.squad-detail-side {
    padding-top: 0;
}

.squad-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.squad-title-panel {
    position: relative;
    container-type: inline-size;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 188px;
    overflow: hidden;
    border: 1px solid rgba(232, 226, 206, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(16, 26, 33, 0.76), rgba(16, 26, 33, 0.28)),
        linear-gradient(180deg, rgba(31, 53, 64, 0.42), rgba(16, 26, 33, 0.22));
    padding: 28px 30px;
}

.squad-detail-title {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    color: var(--text);
    font-size: min(var(--squad-title-size, 4.2rem), 8.6cqw);
    line-height: 0.98;
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    white-space: nowrap;
}

.squad-description-card {
    display: grid;
    gap: 14px;
    min-height: 118px;
    padding: 26px 28px;
}

.squad-description-card h2,
.squad-description-card p {
    margin: 0;
}

.squad-description-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.squad-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.squad-card-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.squad-card-heading span {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    border: 1px solid rgba(197, 31, 39, 0.36);
    border-radius: 8px;
    background: rgba(197, 31, 39, 0.12);
    color: var(--text);
    font-weight: 900;
}

.member-tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.member-tile {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 78px;
    border: 1px solid rgba(232, 226, 206, 0.1);
    border-radius: 8px;
    background:
        radial-gradient(circle at 100% 0%, rgba(232, 226, 206, 0.06), transparent 34%),
        linear-gradient(180deg, rgba(21, 35, 43, 0.68), rgba(16, 26, 33, 0.48));
    padding: 12px;
}

.member-tile > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(232, 226, 206, 0.16);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.5);
    color: var(--accent);
    font-size: 1.35rem;
    font-weight: 900;
}

.member-tile strong,
.member-tile em {
    display: block;
    min-width: 0;
}

.member-tile strong {
    overflow: hidden;
    color: var(--text);
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-tile em {
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.squad-side-stack {
    display: grid;
    gap: 14px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(232, 226, 206, 0.04);
    color: var(--text);
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.back-link:hover {
    border-color: rgba(232, 226, 206, 0.32);
    background: rgba(232, 226, 206, 0.08);
    transform: translateY(-1px);
}

.back-link span {
    color: var(--accent);
    font-size: 1.05rem;
}

.squad-status-panel {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 188px;
    border: 1px solid rgba(232, 226, 206, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(76, 148, 184, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(31, 53, 64, 0.72), rgba(16, 26, 33, 0.54));
    padding: 24px;
}

.squad-status-mark {
    display: grid;
    place-items: center;
    width: 96px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid rgba(232, 226, 206, 0.12);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 0%, rgba(232, 226, 206, 0.08), transparent 55%),
        rgba(16, 26, 33, 0.38);
}

.squad-status-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.squad-status-icon-fallback {
    color: rgba(232, 226, 206, 0.82);
    font-size: 2.4rem;
    font-weight: 900;
}

.squad-status-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.squad-status-info span {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 900;
}

.squad-status-info strong {
    color: var(--text);
    font-size: 1.45rem;
    line-height: 1.1;
}

.recruitment-card {
    display: grid;
    justify-items: center;
    gap: 20px;
    overflow: hidden;
    border: 1px solid rgba(197, 31, 39, 0.5);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 14%, rgba(197, 31, 39, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(31, 53, 64, 0.7), rgba(16, 26, 33, 0.58));
    padding: 34px 28px 30px;
    text-align: center;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
}

.recruitment-card h2,
.recruitment-card p {
    margin: 0;
}

.recruitment-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    aspect-ratio: 1;
    border: 1px solid rgba(197, 31, 39, 0.62);
    border-radius: 50%;
    color: var(--accent);
}

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

.recruitment-icon span {
    position: relative;
    display: block;
    width: 28px;
    height: 24px;
    margin-top: 15px;
    border: 4px solid currentColor;
    border-radius: 5px;
}

.recruitment-icon span::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 20px;
    width: 22px;
    height: 19px;
    border: 4px solid currentColor;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    transform: translateX(-50%);
}

.recruitment-icon span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -32%);
}

.recruitment-card.is-open .recruitment-icon span {
    width: 30px;
    height: 30px;
    border: 0;
}

.recruitment-card.is-open .recruitment-icon span::before,
.recruitment-card.is-open .recruitment-icon span::after {
    content: "";
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.recruitment-card.is-open .recruitment-icon span::after {
    width: 4px;
    height: 30px;
}

.recruitment-state {
    display: grid;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 20px;
    border-bottom: 1px solid var(--border);
}

.recruitment-state span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
}

.recruitment-state strong {
    color: var(--text);
    font-size: 2rem;
    line-height: 1.1;
}

.recruitment-card .btn {
    width: 100%;
}

.recruitment-card.is-open {
    border-color: rgba(232, 226, 206, 0.18);
}

.detail-card h2 {
    font-size: 1.8rem;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 28px 0 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
}

.detail-list dt {
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.requirement-list {
    margin: 0 0 28px;
    padding-left: 20px;
    color: var(--muted);
}

.requirement-list li + li {
    margin-top: 10px;
}

.squad-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.squad-header h2 {
    font-size: 1.55rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(197, 31, 39, 0.4);
    border-radius: 999px;
    background: rgba(197, 31, 39, 0.12);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-muted {
    border-color: var(--border);
    background: rgba(143, 154, 160, 0.08);
    color: var(--muted);
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.metric span {
    color: var(--muted);
}

.metric strong {
    font-size: 1.4rem;
}

.form-layout,
.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 56px;
    align-items: start;
}

.auth-container {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
}

.auth-copy {
    min-width: 0;
    max-width: 560px;
}

.auth-copy h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    overflow-wrap: break-word;
}

.auth-copy .lead {
    max-width: 520px;
}

.form-card {
    padding: 28px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    padding: 24px;
    overflow-y: auto;
}

.modal.is-open {
    display: grid;
    place-items: center;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 8, 11, 0.72);
    backdrop-filter: blur(10px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.52);
    padding: 28px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.modal-header h2 {
    margin-bottom: 0;
    font-size: 2rem;
}

.modal-copy {
    margin-bottom: 24px;
    color: var(--muted);
}

.modal-close {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(232, 226, 206, 0.04);
    color: var(--text);
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
    transition: border-color 180ms ease, background 180ms ease;
}

.modal-close:hover {
    border-color: rgba(232, 226, 206, 0.32);
    background: rgba(232, 226, 206, 0.08);
}

.modal-form .btn {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.discord-verify-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 53, 64, 0.64), rgba(16, 26, 33, 0.46)),
        var(--bg-soft);
    padding: 16px;
}

.discord-verify-box.is-verified {
    border-color: rgba(197, 31, 39, 0.44);
}

.discord-verify-box span,
.discord-verify-box em,
.discord-verify-box strong {
    display: block;
}

.discord-verify-box span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.discord-verify-box strong {
    color: var(--text);
    font-size: 1.05rem;
}

.discord-verify-box em {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.form-control {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(16, 26, 33, 0.82);
    color: var(--text);
    padding: 13px 14px;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-control:focus {
    border-color: rgba(197, 31, 39, 0.72);
    box-shadow: 0 0 0 4px rgba(197, 31, 39, 0.14);
    background: rgba(16, 26, 33, 0.98);
}

textarea.form-control {
    resize: vertical;
}

.help-text {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.field-error,
.form-errors {
    margin: 8px 0 0;
    color: #ffb7bb;
    font-size: 0.92rem;
}

.toast-stack {
    position: fixed;
    top: 84px;
    right: 24px;
    z-index: 80;
    display: grid;
    width: min(420px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}

.toast-message {
    border: 1px solid var(--border-strong);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 53, 64, 0.96), rgba(21, 35, 43, 0.98)),
        var(--card);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
    color: var(--text);
    padding: 14px 16px;
    animation: toast-in 220ms ease-out both;
}

.toast-message.is-success {
    border-left-color: #46c47a;
}

.toast-message.is-error {
    border-left-color: #ff5a66;
}

.toast-message.is-hiding {
    animation: toast-out 180ms ease-in both;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media (max-width: 640px) {
    .toast-stack {
        top: 72px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

.events-heading {
    position: relative;
    padding-left: 0;
}

.events-heading h1 {
    max-width: 820px;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.mission-card {
    position: relative;
    display: grid;
    grid-template-rows: 260px 280px;
    min-height: 540px;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 53, 64, 0.78), rgba(21, 35, 43, 0.96)),
        var(--card);
    box-shadow: 0 22px 64px rgba(0, 0, 0, 0.25);
    color: var(--text);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mission-card:hover {
    border-color: rgba(197, 31, 39, 0.46);
    background:
        linear-gradient(180deg, rgba(31, 53, 64, 0.9), rgba(21, 35, 43, 0.98)),
        var(--card);
    transform: translateY(-2px);
}

.mission-card-media {
    min-height: 0;
    height: 260px;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    opacity: 0.88;
    background:
        linear-gradient(135deg, rgba(143, 154, 160, 0.12), rgba(16, 26, 33, 0.18)),
        var(--bg-soft);
}

.mission-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.03);
    transition: transform 240ms ease, filter 240ms ease;
}

.mission-card:hover .mission-card-media img {
    filter: saturate(1) contrast(1.06);
    transform: scale(1.018);
}

.mission-card-panel {
    position: relative;
    display: grid;
    grid-template-rows: minmax(72px, auto) 34px 1fr;
    gap: 14px;
    margin: 0;
    border: 0;
    border-top: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(16, 26, 33, 0.92), rgba(12, 20, 25, 0.96)),
        var(--bg-soft);
    min-height: 280px;
    padding: 24px;
}

.mission-card-panel h2 {
    display: -webkit-box;
    margin: 0;
    color: var(--text);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 900;
    line-height: 1.12;
    text-shadow: none;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mission-card-panel p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    color: var(--muted);
    padding-top: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mission-card-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    grid-row: 2;
    min-height: 34px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.mission-card-date::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    border-radius: 5px;
    box-shadow: inset 0 5px 0 rgba(197, 31, 39, 0.22);
}

.mission-card-date span + span {
    border-left: 1px solid var(--border);
    color: var(--muted);
    padding-left: 10px;
}

.event-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    min-height: 92px;
    padding: 22px 26px;
}

.event-link-card {
    cursor: pointer;
}

.event-date {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: var(--accent);
}

.event-date strong {
    font-size: 1.08rem;
}

.event-date span {
    color: var(--text);
    font-weight: 700;
}

.event-body {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.event-body h2 {
    margin: 0;
    font-size: 1.5rem;
}

.event-body > span {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.detail-date {
    margin-bottom: 20px;
}

.mission-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.mission-main,
.mission-side {
    display: grid;
    gap: 24px;
}

.compact-detail-list div {
    grid-template-columns: 80px minmax(0, 1fr);
}

.password-card {
    border-color: rgba(197, 31, 39, 0.28);
}

.password-value {
    margin: 18px 0 10px;
    border: 1px solid rgba(197, 31, 39, 0.34);
    border-radius: 8px;
    background: rgba(197, 31, 39, 0.12);
    color: var(--text);
    padding: 16px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 1.1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.password-value.is-hidden {
    border-color: var(--border);
    background: rgba(232, 226, 206, 0.04);
    color: var(--muted);
    font-family: inherit;
}

.event-actions {
    display: grid;
    gap: 12px;
}

.event-actions form,
.event-actions .btn {
    width: 100%;
}

.slot-list {
    display: grid;
    gap: 12px;
}

.slotting-table {
    display: grid;
    gap: 12px;
}

.slot-side {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(232, 226, 206, 0.1);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.24);
}

.slot-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 2px 2px;
}

.slot-side-title h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
}

.slot-side-title span {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 800;
}

.slot-picker-side {
    background: rgba(21, 35, 43, 0.48);
}

.slotting-head,
.slotting-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 90px;
    gap: 14px;
    align-items: center;
}

.slotting-head {
    padding: 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.slotting-row {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.38);
    padding: 16px;
}

.slotting-summary {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.slotting-summary span {
    color: var(--text);
    font-weight: 700;
}

.slot-chip-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding-top: 14px;
}

.slot-chip {
    display: grid;
    gap: 3px;
    min-height: 58px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(232, 226, 206, 0.04);
    padding: 10px;
}

.slot-cancel-form {
    margin-top: 8px;
}

.slot-cancel-button {
    width: 100%;
    min-height: 30px;
    border: 1px solid rgba(232, 226, 206, 0.18);
    border-radius: 5px;
    background: rgba(16, 26, 33, 0.42);
    color: var(--text);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    transition: border-color 180ms ease, background 180ms ease;
}

.slot-cancel-button:hover {
    border-color: rgba(232, 226, 206, 0.36);
    background: rgba(232, 226, 206, 0.08);
}

.managed-slot-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.42);
    padding: 14px;
}

.managed-slot-list h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1rem;
}

.managed-slot-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(232, 226, 206, 0.08);
    border-radius: 6px;
    background: rgba(232, 226, 206, 0.04);
    padding: 10px;
}

.managed-slot-row strong,
.managed-slot-row span {
    display: block;
}

.managed-slot-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.9rem;
}

.squad-members-card {
    align-self: start;
}

.member-name-row {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.member-name-row:first-of-type {
    border-top: 0;
}

.member-name-row strong {
    color: var(--text);
    font-size: 1.02rem;
}

.slot-chip span {
    color: var(--accent);
    font-weight: 800;
}

.slot-chip strong,
.slot-chip em {
    color: #C9D1C9;
    font-style: normal;
    font-size: 0.9rem;
}

.slot-chip.is-occupied {
    border-color: rgba(197, 31, 39, 0.45);
    background: rgba(197, 31, 39, 0.1);
}

.slot-chip.is-occupied strong {
    color: var(--text);
}

.slot-pick-chip em {
    color: #B8C2B8;
}

.slot-pick-chip:hover em {
    color: var(--text);
}

.slot-picker {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.5);
    padding: 14px;
}

.slot-picker-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.slot-picker-tab {
    min-height: 38px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(232, 226, 206, 0.04);
    color: var(--muted);
    cursor: pointer;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.slot-picker-tab:hover,
.slot-picker-tab.is-active {
    border-color: rgba(197, 31, 39, 0.7);
    background: rgba(197, 31, 39, 0.15);
    color: var(--text);
}

.slot-picker-panels {
    max-height: 420px;
    overflow-y: auto;
}

.slot-side-panels {
    display: grid;
    gap: 12px;
}

.slot-picker-panels > [hidden] {
    display: none;
}

.slot-side-panels > [hidden] {
    display: none;
}

.slot-picker-section {
    background: rgba(31, 53, 64, 0.42);
}

.slot-pick-chip {
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.slot-pick-chip:hover {
    border-color: rgba(232, 226, 206, 0.32);
    background: rgba(232, 226, 206, 0.08);
    transform: translateY(-1px);
}

.slot-pick-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.slot-pick-chip.is-selected {
    border-color: rgba(197, 31, 39, 0.95);
    background: linear-gradient(180deg, rgba(197, 31, 39, 0.28), rgba(197, 31, 39, 0.14));
    box-shadow: inset 0 0 0 1px rgba(197, 31, 39, 0.3);
}

.slot-pick-chip:has(input:checked) {
    border-color: rgba(197, 31, 39, 0.95);
    background: linear-gradient(180deg, rgba(197, 31, 39, 0.28), rgba(197, 31, 39, 0.14));
    box-shadow: inset 0 0 0 1px rgba(197, 31, 39, 0.3);
}

.slot-pick-chip.is-selected em,
.slot-pick-chip:has(input:checked) em {
    color: var(--text);
    font-weight: 800;
}

.slot-pick-chip.is-selected > span,
.slot-pick-chip:has(input:checked) > span {
    color: var(--text);
}

.slot-selected-text {
    display: none;
}

.slot-free-text {
    color: var(--text);
}

.slot-selected-text {
    color: var(--text);
}

.slot-pick-chip .slot-free-text {
    color: var(--text);
}

.slot-pick-chip .slot-selected-text {
    color: var(--text);
}

.slot-pick-chip.is-selected .slot-free-text,
.slot-pick-chip:has(input:checked) .slot-free-text {
    display: none;
}

.slot-pick-chip.is-selected .slot-selected-text,
.slot-pick-chip:has(input:checked) .slot-selected-text {
    display: inline;
}

.slot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.38);
    padding: 16px;
}

.slot-row strong,
.slot-row span {
    display: block;
}

.slot-row span,
.slot-count {
    color: var(--muted);
}

.slot-count {
    flex: 0 0 auto;
    font-weight: 700;
}

.modal-form ul.form-control {
    display: grid;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    list-style: none;
}

.modal-form ul.form-control li label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

.modal-form ul.form-control input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.guide-content {
    display: grid;
    gap: 16px;
}

.guide-content .row,
.guide-content .col-12 {
    display: grid;
    gap: 16px;
}

.guide-content .card {
    padding: 0;
    box-shadow: none;
    background:
        linear-gradient(180deg, rgba(31, 53, 64, 0.72), rgba(21, 35, 43, 0.84)),
        var(--card);
}

.guide-content .card-body {
    padding: 24px;
}

.guide-content .mb-4,
.guide-content .mb-0 {
    margin-bottom: 0;
}

.guide-content .mb-3 {
    margin-bottom: 12px;
}

.guide-content .mb-2 {
    margin-bottom: 8px;
}

.guide-content h3 {
    color: var(--text);
    font-size: 1.35rem;
}

.guide-content h5 {
    margin: 22px 0 8px;
    color: var(--text);
    font-size: 1rem;
}

.guide-content p,
.guide-content li {
    color: var(--muted);
}

.guide-content ul {
    margin: 0;
    padding-left: 20px;
}

.guide-content strong {
    color: var(--text);
}

.guide-content code {
    color: var(--text);
    background: rgba(232, 226, 206, 0.07);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
}

.changelog-list {
    display: grid;
    gap: 14px;
}

.changelog-list .entry,
.changelog-list .empty-note {
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 53, 64, 0.72), rgba(21, 35, 43, 0.86)),
        var(--card);
    padding: 22px 24px;
}

.changelog-list .entry-date {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
}

.changelog-list .entry-title {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.18rem;
    font-weight: 900;
}

.changelog-list .entry-list {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.changelog-list .entry-list li + li {
    margin-top: 5px;
}

.changelog-list .empty-note {
    color: var(--muted);
}

.rule-section h2 {
    font-size: 1.5rem;
}

.rule-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.rule-section li + li {
    margin-top: 10px;
}

.auth-section {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
}

.auth-card {
    width: 100%;
}

.profile-section {
    min-height: calc(100vh - 220px);
}

.profile-shell {
    display: grid;
    gap: 24px;
}

.profile-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.profile-heading .lead {
    max-width: 760px;
}

.profile-logout {
    flex: 0 0 auto;
}

.profile-dashboard {
    display: grid;
    grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
    gap: 24px;
    align-items: start;
}

.profile-column {
    display: grid;
    gap: 24px;
    align-content: start;
    min-width: 0;
}

.profile-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(31, 53, 64, 0.82), rgba(21, 35, 43, 0.72));
    box-shadow: var(--shadow);
    padding: 26px;
    min-width: 0;
}

.profile-overview {
    display: grid;
    gap: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.profile-header-with-action {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: start;
}

.profile-logout-inline {
    grid-column: 2;
    margin-left: 0;
    flex-shrink: 0;
    justify-self: start;
}

.profile-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(232, 226, 206, 0.16);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(197, 31, 39, 0.95), rgba(121, 24, 30, 0.95));
    color: var(--text);
    font-size: 2rem;
    font-weight: 900;
}

.profile-identity {
    min-width: 0;
    max-width: 100%;
}

.profile-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-header h2 {
    margin-bottom: 9px;
    font-size: clamp(1.18rem, 3.4vw, 2rem);
    max-width: 100%;
    white-space: nowrap;
}

.profile-display-name.is-long {
    font-size: clamp(1.05rem, 2.6vw, 1.58rem);
}

.profile-display-name.is-very-long {
    font-size: clamp(0.92rem, 2.1vw, 1.22rem);
}

.profile-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(232, 226, 206, 0.05);
    color: var(--muted);
    padding: 5px 10px;
    font-size: 0.84rem;
    font-weight: 800;
}

.profile-status.is-approved {
    border-color: rgba(124, 185, 126, 0.34);
    background: rgba(124, 185, 126, 0.12);
    color: #d7ead2;
}

.profile-status.is-pending {
    border-color: rgba(232, 226, 206, 0.2);
    background: rgba(232, 226, 206, 0.07);
    color: var(--text);
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-summary-grid div {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(232, 226, 206, 0.1);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.42);
    padding: 13px 12px;
}

.profile-summary-grid span,
.profile-detail-grid dt,
.profile-squad-row span {
    color: var(--muted);
}

.profile-summary-grid span,
.profile-detail-grid dt {
    display: block;
    margin-bottom: 7px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-summary-grid strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(0.92rem, 1.6vw, 1.08rem);
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-heading-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.card-heading-row h2 {
    margin: 0;
    font-size: 1.55rem;
}

.profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.profile-detail-grid div {
    display: grid;
    gap: 6px;
    min-height: 88px;
    border: 1px solid rgba(232, 226, 206, 0.1);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.34);
    padding: 14px;
}

.profile-detail-grid dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-squad-list {
    display: grid;
    gap: 12px;
}

.profile-squad-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.38);
    padding: 16px;
}

.profile-squad-row strong,
.profile-squad-row span {
    display: block;
}

.profile-squad-row span {
    margin-top: 4px;
}

.profile-squad-management {
    display: grid;
    gap: 18px;
}

.profile-squad-management + .profile-squad-management {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.profile-squad-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.38);
    padding: 18px;
}

.profile-squad-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.auth-form-footer {
    margin-top: 14px;
    text-align: center;
}

.auth-form-footer a {
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.auth-form-footer a:hover {
    color: var(--accent);
}

.profile-squad-mark {
    display: grid;
    place-items: center;
    width: 112px;
    aspect-ratio: 1;
    border: 1px solid rgba(232, 226, 206, 0.12);
    border-radius: 8px;
    background: rgba(232, 226, 206, 0.04);
}

.profile-squad-mark span {
    color: rgba(232, 226, 206, 0.78);
    font-size: 2.1rem;
    font-weight: 900;
}

.profile-squad-icon {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.profile-squad-icon-fallback {
    color: rgba(232, 226, 206, 0.82);
    font-size: 1.4rem;
    font-weight: 900;
}

.profile-squad-info strong,
.profile-squad-info span,
.profile-squad-stats em {
    display: block;
}

.profile-squad-info span {
    margin-top: 4px;
    color: var(--muted);
}

.profile-squad-info strong {
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-squad-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.profile-squad-stats em {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(232, 226, 206, 0.05);
    color: var(--text);
    padding: 5px 10px;
    font-style: normal;
    font-size: 0.86rem;
    font-weight: 800;
}

.squad-settings-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    border-top: 1px solid var(--border);
    padding-top: 22px;
}

.profile-details-card .squad-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-details-card .squad-settings-form .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

.profile-password-card .squad-settings-form {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.management-main,
.management-side {
    display: grid;
    gap: 24px;
}

.manage-card h2 {
    font-size: 1.75rem;
}

.management-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.application-list,
.member-list,
.reviewed-list {
    display: grid;
    gap: 14px;
}

.application-item,
.member-row,
.reviewed-list div {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.38);
    padding: 16px;
}

.application-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.application-item h3 {
    margin-bottom: 6px;
}

.application-actions {
    display: grid;
    gap: 10px;
}

.application-actions .btn {
    width: 120px;
}

.compact-meta {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
}

.compact-meta div {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 12px;
}

.compact-meta dt,
.member-row span,
.reviewed-list span {
    color: var(--muted);
}

.compact-meta dd {
    margin: 0;
    color: var(--text);
}

.member-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.member-row strong,
.member-row span {
    display: block;
}

.role-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-form .form-control {
    min-width: 190px;
    padding: 9px 12px;
}

.admin-event-form {
    align-items: start;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.admin-form-grid label,
.admin-checks label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-form-grid .form-control {
    margin-top: 7px;
}

.admin-wide-field {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.admin-wide-field span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.admin-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 14px;
}

.admin-checks input {
    accent-color: var(--accent);
}

.reviewed-list div {
    display: grid;
    gap: 8px;
}

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 112px;
}

.footer-inner p {
    margin: 0;
}

.footer-links a {
    transition: color 180ms ease;
}

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

:focus-visible {
    outline: 3px solid rgba(197, 31, 39, 0.72);
    outline-offset: 3px;
}

@media (max-width: 920px) {
    .navbar {
        flex-wrap: wrap;
        min-height: 68px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        display: none;
        grid-template-columns: 1fr;
        width: 100%;
        padding: 0 0 18px;
    }

    .nav-menu.is-open {
        display: grid;
    }

    .nav-links,
    .auth-links {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .nav-link,
    .auth-links .btn,
    .user-name {
        width: 100%;
        justify-content: center;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid,
    .home-shell,
    .page-hero-grid,
    .event-hero-panel,
    .squad-detail-shell,
    .squad-detail-hero-inner,
    .squad-detail-hero,
    .squad-detail-layout,
    .management-grid,
    .mission-layout,
    .form-layout,
    .auth-container,
    .profile-dashboard {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .squad-detail-side {
        padding-top: 0;
    }

    .squad-detail-hero-card {
        padding: 18px;
    }

    .squad-title-panel {
        min-height: 140px;
        padding: 22px 22px 22px 26px;
    }

    .squad-detail-title {
        font-size: clamp(1.25rem, 7vw, var(--squad-title-size, 3rem));
    }

    .profile-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .server-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .squad-card-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .hero-resource-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-hero-aside {
        justify-self: stretch;
        max-width: none;
        border-top: 1px solid var(--border);
        border-left: 0;
        padding: 18px 0 0;
    }

    .event-hero-date {
        justify-items: start;
        text-align: left;
    }

    .split-heading,
    .about-inline,
    .about-layout {
        align-items: start;
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

@media (max-width: 1040px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .auth-copy {
        max-width: 720px;
    }

    .auth-card {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .section {
        padding: 58px 0;
    }

    .section-tight {
        padding-top: 10px;
    }

    .hero-actions,
    .footer-inner,
    .footer-links {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-panel,
    .event-hero-main,
    .event-hero-aside,
    .discord-verify-box,
    .card,
    .form-card,
    .profile-card,
    .modal-dialog,
    .squad-cta {
        padding: 22px;
    }

    .modal {
        padding: 12px;
        align-items: start;
    }

    .modal.is-open {
        place-items: start center;
    }

    .modal-dialog {
        max-height: calc(100vh - 24px);
    }

    .modal-header h2 {
        font-size: 1.55rem;
    }

    .discord-verify-box {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mission-card {
        grid-template-rows: 230px auto;
        min-height: 0;
    }

    .mission-card-media {
        height: 230px;
        margin: 0;
    }

    .mission-card-media img {
        min-height: 0;
    }

    .mission-card-panel {
        margin: 0;
        min-height: 280px;
        padding: 20px;
    }

    .event-hero-panel {
        min-height: 360px;
        padding: 22px;
    }

    .event-hero-main,
    .event-hero-aside {
        padding: 0;
    }

    .squad-card-grid-wide {
        grid-template-columns: 1fr;
    }

    .squad-link-card {
        grid-template-rows: 190px auto auto;
        min-height: 380px;
    }

    .member-tile-grid {
        grid-template-columns: 1fr;
    }

    .event-date {
        justify-content: start;
        gap: 12px;
    }

    .event-body {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .squad-card-top,
    .squad-card-meta {
        align-items: center;
        flex-direction: column;
        gap: 6px;
    }

    .slot-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .slotting-head {
        display: none;
    }

    .slotting-summary {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .managed-slot-row {
        grid-template-columns: 1fr;
    }

    .server-meta div {
        display: grid;
        gap: 4px;
    }

    .server-meta dd {
        text-align: left;
    }

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

    .event-list {
        grid-template-columns: 1fr;
    }

    .home-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .home-hero {
        padding-top: 48px;
    }

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

    .hero-resource-actions {
        grid-template-columns: 1fr;
        margin-top: 26px;
    }

    .hero-resource-actions a {
        min-height: 96px;
    }

    .hero-resource-link {
        justify-content: center;
        padding-inline: 24px;
    }

    .hero-resource-link strong {
        font-size: 1.12rem;
    }

    .slot-side-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .split-heading {
        flex-direction: column;
    }

    .section-note {
        margin-bottom: 0;
    }

    .profile-header,
    .profile-detail-grid div,
    .profile-squad-row,
    .profile-squad-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .profile-squad-mark {
        width: min(140px, 100%);
    }

    .profile-header {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-logout-inline {
        margin-left: 0;
        grid-column: 1;
    }

    .profile-summary-grid {
        grid-template-columns: 1fr;
    }

    .profile-detail-grid,
    .profile-details-card .squad-settings-form {
        grid-template-columns: 1fr;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .application-item,
    .member-row {
        grid-template-columns: 1fr;
    }

    .application-actions,
    .role-form {
        align-items: stretch;
    }

    .application-actions .btn,
    .role-form .btn,
    .role-form .form-control {
        width: 100%;
    }

    .role-form {
        flex-direction: column;
    }

    .compact-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* ---- Проходка (VIP) ---- */
.vip-layout {
    display: grid;
    gap: 18px;
}

.vip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.vip-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vip-card h2 {
    margin: 0;
    font-size: 1.3rem;
}

.vip-card p {
    margin: 0;
}

.vip-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.vip-subtitle {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.vip-note {
    color: var(--muted);
}

.vip-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 18px;
    padding: 8px 16px;
    border: 1px solid rgba(197, 31, 39, 0.42);
    border-radius: 999px;
    background: rgba(197, 31, 39, 0.12);
    color: var(--muted);
    font-weight: 700;
}

.vip-price-badge strong {
    font-size: 1.25rem;
    color: var(--text);
}

.vip-warning {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(197, 31, 39, 0.42);
    border-radius: 8px;
    background: rgba(197, 31, 39, 0.1);
    line-height: 1.5;
}

.vip-warning-icon {
    color: var(--accent);
    font-size: 1.15rem;
    line-height: 1.4;
}

.vip-keypoint {
    border-color: rgba(197, 31, 39, 0.45);
}

.vip-warning-loud {
    padding: 18px 20px;
    border-width: 2px;
    font-size: 1.05rem;
}

.vip-warning-loud strong {
    color: var(--text);
}

.vip-pricing {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.vip-pricing li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 8px 14px;
    border: 1px solid var(--border, rgba(16, 26, 33, 0.18));
    border-radius: 8px;
}

.vip-pricing li span {
    min-width: 90px;
    font-weight: 700;
    color: var(--text);
}

.vip-pricing li strong {
    font-size: 1.1rem;
    color: var(--accent);
}

.vip-pricing li small {
    color: var(--muted);
}

.vip-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: vip-step;
    display: grid;
    gap: 12px;
}

.vip-steps li {
    position: relative;
    padding-left: 46px;
    min-height: 34px;
    display: flex;
    align-items: center;
    color: var(--muted);
}

.vip-steps li::before {
    counter-increment: vip-step;
    content: counter(vip-step);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text);
    font-weight: 800;
}

.vip-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.vip-cta .vip-note {
    max-width: 520px;
}

.vip-pay {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
}

.vip-qr {
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.vip-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vip-qr-empty {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed rgba(16, 26, 33, 0.32);
    border-radius: 8px;
    color: #5a6671;
    font-size: 0.92rem;
    font-weight: 700;
}

.vip-pay-details {
    display: grid;
    gap: 12px;
}

.vip-card-number {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(232, 226, 206, 0.04);
    width: fit-content;
    max-width: 100%;
}

.vip-card-number span {
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'Consolas', 'Courier New', monospace;
    color: var(--text);
    overflow-wrap: anywhere;
}

.vip-copy {
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 700;
    transition: border-color 180ms ease, background 180ms ease;
}

.vip-copy:hover {
    border-color: rgba(232, 226, 206, 0.38);
    background: rgba(232, 226, 206, 0.06);
}

.vip-form {
    display: grid;
    gap: 18px;
    max-width: 560px;
}

.vip-field {
    display: grid;
    gap: 8px;
}

.vip-field label,
.vip-field-label {
    font-weight: 700;
    color: var(--text);
}

.vip-hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.vip-server-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vip-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: rgba(232, 226, 206, 0.04);
    cursor: pointer;
    user-select: none;
    transition: border-color 180ms ease, background 180ms ease;
}

.vip-check:hover {
    border-color: rgba(232, 226, 206, 0.38);
    background: rgba(232, 226, 206, 0.06);
}

.vip-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.vip-check:has(input:checked) {
    border-color: rgba(197, 31, 39, 0.6);
    background: rgba(197, 31, 39, 0.12);
}

.vip-form .btn {
    width: fit-content;
}

.vip-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-weight: 800;
    font-size: 0.86rem;
}

.vip-status.is-pending {
    color: #ffd479;
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.12);
}

.vip-status.is-approved {
    color: #8be0a4;
    border-color: rgba(40, 167, 69, 0.5);
    background: rgba(40, 167, 69, 0.12);
}

.vip-status.is-rejected {
    color: #ffb7bb;
    border-color: rgba(197, 31, 39, 0.5);
    background: rgba(197, 31, 39, 0.12);
}

.vip-summary .panel-line strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.vip-thread {
    display: grid;
    gap: 12px;
}

.vip-thread-empty {
    margin: 0;
    color: var(--muted);
}

.vip-msg {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(232, 226, 206, 0.04);
}

.vip-msg.is-admin {
    border-color: rgba(197, 31, 39, 0.42);
    background: rgba(197, 31, 39, 0.08);
}

.vip-msg-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.vip-msg-author {
    font-weight: 800;
    color: var(--text);
}

.vip-msg-time {
    color: var(--muted);
}

.vip-msg-body {
    margin: 0;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vip-reply {
    margin-top: 18px;
    max-width: none;
}

.vip-flash {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(40, 167, 69, 0.5);
    background: rgba(40, 167, 69, 0.12);
    color: #8be0a4;
    font-weight: 700;
}

.vip-errors {
    margin: 16px 0 0;
    padding: 12px 16px 12px 34px;
    border-radius: 8px;
    border: 1px solid rgba(197, 31, 39, 0.5);
    background: rgba(197, 31, 39, 0.12);
    color: #ffb7bb;
}

.vip-errors li {
    margin: 2px 0;
}

.vip-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.vip-attach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.vip-attach.is-image img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    transition: border-color 180ms ease;
}

.vip-attach.is-image:hover img {
    border-color: rgba(232, 226, 206, 0.55);
}

.vip-attach.is-file {
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(232, 226, 206, 0.04);
    max-width: 100%;
    transition: border-color 180ms ease, background 180ms ease;
}

.vip-attach.is-file:hover {
    border-color: rgba(232, 226, 206, 0.38);
    background: rgba(232, 226, 206, 0.06);
}

.vip-attach-name {
    overflow-wrap: anywhere;
    font-weight: 600;
}

.vip-attach-size {
    color: var(--muted);
    font-size: 0.82rem;
}

.vip-attach-icon {
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .vip-grid {
        grid-template-columns: 1fr;
    }

    .vip-pay {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .vip-pay-details {
        justify-items: center;
    }

    .vip-cta .btn,
    .vip-form .btn {
        width: 100%;
    }
}

/* Mobile polish pass for the public ARMA portal. */
@media (max-width: 760px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 24px, 1120px);
    }

    .section,
    .page-section {
        padding-block: 42px;
    }

    .navbar {
        gap: 12px;
        min-height: 64px;
    }

    .brand,
    .nav-logo {
        min-width: 0;
        max-width: calc(100vw - 92px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-menu {
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
    }

    .nav-links,
    .auth-links,
    .hero-actions,
    .event-actions,
    .profile-actions,
    .squad-actions,
    .ticket-actions {
        align-items: stretch;
        width: 100%;
    }

    .hero,
    .page-hero {
        padding-block: 44px;
    }

    .hero-title,
    .page-title {
        max-width: 100%;
        font-size: 2.55rem;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .hero-subtitle,
    .lead,
    .page-lead {
        max-width: 100%;
        font-size: 1rem;
    }

    .hero-panel,
    .card,
    .form-card,
    .profile-card,
    .modal-dialog,
    .event-hero-main,
    .event-hero-aside,
    .vip-card,
    .vip-ticket-card {
        max-width: 100%;
        padding: 18px;
    }

    .btn,
    .btn-small,
    .form-card .btn,
    .modal-form .btn,
    .profile-actions .btn,
    .event-actions .btn {
        width: 100%;
        justify-content: center;
    }

    input,
    select,
    textarea,
    .form-control {
        max-width: 100%;
        min-width: 0;
    }

    .event-card,
    .profile-dashboard,
    .profile-grid,
    .squad-detail-grid,
    .squad-manage-grid,
    .ticket-grid,
    .vip-grid,
    .vip-pay,
    .server-grid,
    .resource-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .event-card-image,
    .event-media,
    .squad-cover,
    .profile-avatar {
        max-width: 100%;
    }

    .table-responsive,
    .slot-table-wrap,
    .admin-table-wrap {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-dialog {
        width: calc(100% - 24px);
        margin: 12px auto;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 18px, 1120px);
    }

    .hero-title,
    .page-title {
        font-size: 2.05rem;
    }

    .hero-panel,
    .card,
    .form-card,
    .profile-card,
    .modal-dialog,
    .event-hero-main,
    .event-hero-aside,
    .vip-card,
    .vip-ticket-card {
        padding: 15px;
    }
}

/* ---------- Player & server statistics ---------- */

.stats-landing {
    position: relative;
    overflow: hidden;
}

.stats-landing-shell {
    position: relative;
    display: grid;
    gap: 22px;
}

.stats-landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.stats-landing-intro,
.stats-landing-search,
.stats-landing-session,
.stats-landing-top {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(31, 53, 64, 0.82), rgba(21, 35, 43, 0.72));
    box-shadow: var(--shadow);
}

.stats-landing-intro,
.stats-landing-search,
.stats-landing-top {
    padding: 30px;
}

.stats-landing-session {
    padding: 34px 34px 30px;
}

.stats-landing-intro,
.stats-landing-session {
    border-color: rgba(197, 31, 39, 0.58);
}

.stats-landing-intro h1 {
    margin: 0;
    max-width: 680px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.98;
}

.stats-landing-intro .lead {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.75;
}

.stats-landing-accent-line {
    width: 72px;
    height: 4px;
    margin: 28px 0 30px;
    border-radius: 999px;
    background: var(--accent);
}

.stats-landing-search {
    display: grid;
    gap: 22px;
    align-content: start;
}

.stats-landing-search .eyebrow,
.stats-landing-intro .eyebrow {
    margin-bottom: 16px;
}

.stats-landing-uid-form {
    flex-direction: column;
    max-width: none;
    margin-top: 0;
}

.stats-landing-uid-form .form-control {
    min-height: 58px;
    padding-inline: 18px;
    background: rgba(16, 26, 33, 0.76);
}

.stats-landing-uid-form .btn {
    width: 100%;
    min-height: 56px;
    font-size: 1.02rem;
}

.stats-landing-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.stats-landing-section-head,
.stats-landing-top-head {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.stats-landing-section-head h2,
.stats-landing-top-head h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.04;
}

.stats-landing-section-head p,
.stats-landing-top-head p {
    margin: 0;
    max-width: 840px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.stats-landing-picker {
    margin-bottom: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.stats-landing-picker .stats-picker-field {
    min-width: 220px;
}

.stats-landing-picker .form-control {
    min-height: 56px;
    padding-inline: 16px;
    background: rgba(16, 26, 33, 0.76);
}

.stats-landing .stats-session-meta {
    margin-bottom: 18px;
}

.stats-landing .stats-table-wrap {
    background: rgba(16, 26, 33, 0.36);
}

.stats-landing-top .stats-table-wrap {
    margin-top: 16px;
}

.stats-landing .stats-filter-note {
    margin-top: 8px;
}

.stats-uid-form {
    display: flex;
    gap: 12px;
    max-width: 640px;
    margin-top: 20px;
}

.stats-uid-form .form-control {
    flex: 1;
}

.stats-uid-line {
    word-break: break-all;
}

.stats-player-header {
    padding: 54px 0 22px;
}

.stats-player-header-card,
.stats-player-content .container {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(31, 53, 64, 0.82), rgba(21, 35, 43, 0.72));
    box-shadow: var(--shadow);
}

.stats-player-header-card {
    display: grid;
    gap: 14px;
    padding: 30px;
    border-color: rgba(197, 31, 39, 0.58);
}

.stats-player-header-card .back-link {
    width: fit-content;
    margin-bottom: 4px;
}

.stats-player-header-card .eyebrow {
    margin: 0;
}

.stats-player-header-card h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.1rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
}

.stats-player-header-card .stats-uid-line {
    max-width: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.stats-player-header-card .stats-uid-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    max-width: 760px;
    margin-top: 8px;
}

.stats-player-header-card .stats-uid-form .form-control {
    min-height: 48px;
    background: rgba(16, 26, 33, 0.76);
}

.stats-player-header-card .stats-uid-form .btn {
    min-height: 48px;
}

.stats-player-content {
    padding: 0 0 22px;
}

.stats-player-content .container {
    padding: 30px;
}

.stats-player-content .section-heading {
    margin-bottom: 22px;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
}

.stats-player-summary .stats-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-player-content .stats-table-wrap {
    background: rgba(16, 26, 33, 0.36);
}

.stats-session-header-card h1 {
    max-width: 980px;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.stats-session-header-card .lead {
    max-width: 900px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.72;
}

.stats-session-content .container {
    padding-top: 34px;
}

.stats-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.34);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    white-space: nowrap;
}

.stats-table th,
.stats-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.stats-table thead th {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(16, 26, 33, 0.58);
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background: rgba(232, 226, 206, 0.06);
}

.stats-name-cell {
    white-space: normal;
    min-width: 180px;
    font-weight: 700;
}

.stats-name-cell a {
    color: var(--text);
    border-bottom: 1px dashed var(--border-strong);
    transition: color 180ms ease, border-color 180ms ease;
}

.stats-name-cell a:hover {
    color: #fff;
    border-color: var(--accent);
}

.stats-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stats-metric {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(16, 26, 33, 0.34);
}

.stats-metric-value {
    font-size: 1.45rem;
    font-weight: 800;
}

.stats-metric-label {
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .stats-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-uid-form {
        flex-direction: column;
    }
}

.stats-filter-note a {
    color: var(--text);
    border-bottom: 1px dashed var(--border-strong);
}

.stats-filter-note a:hover {
    color: #fff;
    border-color: var(--accent);
}

.stats-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(16, 26, 33, 0.34);
}

.stats-picker-field {
    display: grid;
    gap: 6px;
    flex: 1 1 220px;
    min-width: 200px;
}

.stats-picker-field-wide {
    flex: 2 1 320px;
}

.stats-picker-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stats-picker .form-control {
    padding: 11px 12px;
    color-scheme: dark;
}

.stats-picker select.form-control:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.stats-session-meta {
    margin-bottom: 14px;
}

.stats-session-meta a {
    color: var(--text);
    border-bottom: 1px dashed var(--border-strong);
    transition: color 180ms ease, border-color 180ms ease;
}

.stats-session-meta a:hover {
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 1040px) {
    .stats-landing-hero {
        grid-template-columns: 1fr;
    }

    .stats-landing-intro h1 {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .stats-player-header {
        padding: 34px 0 18px;
    }

    .stats-player-header-card,
    .stats-player-content .container {
        padding: 22px 18px;
    }

    .stats-player-header-card h1 {
        font-size: clamp(2.35rem, 11vw, 3.55rem);
    }

    .stats-player-header-card .stats-uid-form {
        grid-template-columns: 1fr;
    }

    .stats-player-content .section-heading {
        font-size: 2rem;
    }

    .stats-landing-intro,
    .stats-landing-search,
    .stats-landing-top {
        padding: 22px 18px;
    }

    .stats-landing-session {
        padding: 24px 18px 20px;
    }

    .stats-landing-shell {
        gap: 18px;
    }

    .stats-landing-intro h1 {
        font-size: clamp(2.35rem, 11vw, 3.55rem);
        overflow-wrap: anywhere;
    }

    .stats-landing-accent-line {
        margin: 20px 0 22px;
    }

    .stats-landing-section-head h2,
    .stats-landing-top-head h2 {
        font-size: 2rem;
    }

    .stats-landing-section-head p,
    .stats-landing-top-head p,
    .stats-landing-help,
    .stats-landing-intro .lead {
        font-size: 0.98rem;
    }

    .stats-landing-picker .stats-picker-field {
        min-width: 100%;
    }
}
