:root {
    --bg: #120d10;
    --bg-soft: #191014;
    --panel: #1f1417;
    --panel-strong: #2a181e;
    --border: rgba(255, 71, 87, 0.16);
    --text: #ffffff;
    --muted: #ead9dc;
    --muted-soft: #b9929a;
    --accent: #FF4757;
    --accent-hover: #ff3044;
    --danger: #FF4757;
    --success: #FF4757;
    --info: #FF4757;
    --gold: #FF4757;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 71, 87, 0.08), transparent 360px),
        var(--bg);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
}

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

button,
input {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.site-nav a {
    color: var(--muted);
    transition: color 0.16s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
}

.wordmark {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    padding: 0 15px;
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 71, 87, 0.07)),
        #171014;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 14px 30px rgba(0, 0, 0, 0.26);
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.wordmark-main,
.wordmark-accent {
    display: inline-block;
}

.wordmark-accent {
    color: var(--accent);
}

.wordmark-small {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 12px;
}

.section-kicker,
.stat-label,
.detail-item span,
.footer,
.session-user {
    color: var(--muted-soft);
    font-size: 13px;
}

.top-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.session-user {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    flex: 1;
}

.footer {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 22px 0 28px;
    border-top: 1px solid var(--border);
}

.auth-page .main-content {
    display: grid;
    place-items: center;
    padding: 24px 0 52px;
}

.auth-layout {
    width: 100%;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(450px, 100%);
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(31, 20, 23, 0.94);
    box-shadow: var(--shadow);
}

.section-kicker {
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 700;
}

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

h1 {
    margin-bottom: 10px;
    font-size: 34px;
    line-height: 1.12;
}

h2 {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 1.2;
}

.auth-note,
.dashboard-hero p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.form-field input {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #160e12;
    color: var(--text);
    padding: 0 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.form-field input:focus {
    border-color: rgba(255, 71, 87, 0.8);
    background: #1a1015;
    box-shadow: 0 0 0 4px rgba(255, 71, 87, 0.14);
}

.password-control {
    position: relative;
    display: block;
}

.password-control input {
    padding-right: 106px;
}

.password-toggle {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 36px;
    min-width: 88px;
    border: 0;
    border-radius: 8px;
    background: var(--panel-strong);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: rgba(255, 71, 87, 0.18);
    color: var(--text);
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

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

.button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.button-primary {
    height: 48px;
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(255, 71, 87, 0.25);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--accent-hover);
}

.button-muted {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--muted);
}

.button-muted:hover,
.button-muted:focus-visible {
    background: rgba(255, 71, 87, 0.12);
    border-color: rgba(255, 71, 87, 0.35);
    color: var(--text);
}

.button-wide {
    width: 100%;
}

.button-compact {
    min-height: 42px;
    white-space: nowrap;
}

.button-small {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
    white-space: nowrap;
}

.alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.alert-error {
    border: 1px solid rgba(255, 71, 87, 0.28);
    background: rgba(255, 71, 87, 0.1);
    color: #ffd7dc;
}

.auth-policy {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted-soft);
    font-size: 13px;
    line-height: 1.5;
}

.dashboard-page .main-content {
    padding: 22px 0 40px;
}

.dashboard-hero {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 71, 87, 0.22), rgba(255, 71, 87, 0.06)),
        var(--panel);
    box-shadow: var(--shadow);
}

.dashboard-hero h1 {
    max-width: 720px;
    overflow-wrap: anywhere;
}

.dashboard-hero p {
    max-width: 620px;
    margin-bottom: 0;
}

.profile-badge {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(18, 13, 16, 0.52);
    color: var(--accent);
    font-size: 44px;
    font-weight: 900;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 132px;
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.stat-card strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 26px;
    line-height: 1.15;
}

.stat-card::before {
    content: "";
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.stat-green::before {
    background: var(--success);
}

.stat-blue::before {
    background: var(--info);
}

.stat-gold::before {
    background: var(--gold);
}

.panel {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

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

.detail-item {
    min-height: 86px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
}

.detail-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 18px;
}

.home-page .main-content {
    padding: 56px 0 42px;
}

.home-hero {
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 52px;
}

.home-hero-content h1 {
    max-width: 660px;
    margin-bottom: 20px;
    font-size: 48px;
    line-height: 1.08;
}

.home-hero-content p {
    max-width: 540px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

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

.online-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-size: 26px;
    font-weight: 700;
}

.online-summary strong {
    min-width: 116px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    font-size: 18px;
}

.online-summary i,
.status-pill i {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0.12);
}

.home-hero-visual {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
}

.hero-skin-circle {
    position: absolute;
    width: min(74%, 360px);
    height: min(74%, 360px);
    border: 1px solid rgba(255, 71, 87, 0.34);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 71, 87, 0.78), rgba(255, 71, 87, 0.16));
    transform: rotate(-8deg);
    box-shadow: 0 28px 70px rgba(255, 71, 87, 0.26);
}

.home-hero-visual img {
    position: relative;
    z-index: 1;
    width: min(72%, 330px);
    max-height: 470px;
    object-fit: contain;
    filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.42));
}

.floating-chip {
    position: absolute;
    z-index: 2;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(255, 71, 87, 0.32);
}

.floating-chip-top {
    top: 92px;
    left: 64px;
}

.floating-chip-bottom {
    right: 68px;
    bottom: 116px;
    background: var(--gold);
    color: var(--text);
}

.server-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: -18px 0 72px;
}

.server-card {
    min-height: 104px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(31, 20, 23, 0.96);
    box-shadow: var(--shadow);
}

.server-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font-weight: 900;
}

.server-icon-alt {
    background: var(--panel-strong);
    color: var(--accent);
    border: 1px solid rgba(255, 71, 87, 0.35);
}

.server-card div {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.server-card strong {
    overflow-wrap: anywhere;
    font-size: 18px;
}

.server-card span:last-child {
    color: var(--muted);
}

.home-section {
    padding: 58px 0;
    border-top: 1px solid var(--border);
}

.home-section-heading {
    margin-bottom: 24px;
    text-align: center;
}

.home-section-heading h2 {
    font-size: 34px;
}

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

.step-card {
    min-height: 210px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
}

.launcher-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 71, 87, 0.18), rgba(255, 71, 87, 0.08)),
        var(--panel);
    box-shadow: var(--shadow);
}

.launcher-panel > div {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.launcher-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font-weight: 900;
}

.launcher-panel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.launcher-panel p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.step-card span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font-weight: 900;
}

.step-card strong {
    font-size: 19px;
    line-height: 1.3;
}

.step-card p,
.shop-panel p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.shop-panel,
.forum-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.14), rgba(31, 20, 23, 0.96));
}

.shop-panel > div {
    max-width: 680px;
}

.forum-strip strong {
    font-size: 22px;
}

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

.profile-preview {
    display: grid;
    justify-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.skin-frame {
    width: 154px;
    height: 188px;
    display: grid;
    place-items: end center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 71, 87, 0.2), rgba(18, 13, 16, 0.82)),
        var(--bg-soft);
}

.skin-frame img {
    width: 112px;
    max-height: 178px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.36));
}

.status-pill {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(18, 13, 16, 0.62);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.status-online {
    color: #ffd6db;
    border-color: rgba(255, 71, 87, 0.28);
}

.status-offline i {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(255, 71, 87, 0.12);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.donate-panel .panel-heading p,
.message-panel p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}

.donate-form {
    display: grid;
    gap: 16px;
    max-width: 420px;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.checkbox-field input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: var(--accent);
}

.checkbox-field a,
.legal-panel a {
    color: var(--text);
    border-bottom: 1px solid rgba(255, 71, 87, 0.55);
}

.donate-summary {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
}

.donate-summary span {
    color: var(--muted-soft);
    font-size: 13px;
}

.donate-summary strong {
    color: var(--text);
    font-size: 28px;
}

.message-panel {
    max-width: 720px;
}

.message-panel .button {
    margin-top: 18px;
}

.news-page .main-content {
    padding: 30px 0 42px;
}

.news-hero {
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 71, 87, 0.18), rgba(31, 20, 23, 0.96)),
        var(--panel);
    box-shadow: var(--shadow);
}

.news-hero h1 {
    max-width: 720px;
}

.news-hero p {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.6;
}

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

.news-card {
    min-width: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.news-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 71, 87, 0.28), rgba(18, 13, 16, 0.8)),
        var(--bg-soft);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.035);
}

.news-card-placeholder {
    display: grid;
    place-items: center;
}

.news-card-placeholder span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: var(--text);
    font-weight: 900;
}

.news-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 18px;
}

.news-date {
    color: var(--muted-soft);
    font-size: 13px;
    font-weight: 800;
}

.news-card h2 {
    margin-bottom: 0;
    overflow-wrap: anywhere;
    font-size: 20px;
}

.news-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.58;
}

.news-link {
    width: fit-content;
    margin-top: 2px;
    color: var(--text);
    border-bottom: 1px solid rgba(255, 71, 87, 0.55);
    font-weight: 800;
}

.donate-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.donate-info h2 {
    margin-bottom: 8px;
    font-size: 19px;
}

.donate-info p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.legal-page .main-content {
    padding: 30px 0 42px;
}

.legal-hero {
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 71, 87, 0.16), rgba(255, 71, 87, 0.06)),
        var(--panel);
}

.legal-hero h1 {
    max-width: 760px;
}

.legal-hero p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.legal-panel {
    display: grid;
    gap: 18px;
}

.legal-panel h2 {
    margin-bottom: -6px;
    font-size: 20px;
}

.legal-panel p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.legal-details div {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-soft);
}

.legal-details span {
    color: var(--muted-soft);
    font-size: 13px;
}

.legal-details strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 16px;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--text);
    font-weight: 900;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
    font-weight: 700;
}

.footer-menu a,
.footer-socials a {
    transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--text);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    border-color: rgba(255, 71, 87, 0.55);
    background: rgba(255, 71, 87, 0.14);
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted-soft);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--text);
}

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 20px;
    }

    .home-hero-visual {
        min-height: 360px;
    }

    .server-cards,
    .steps-grid,
    .news-grid,
    .donate-info,
    .legal-details {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .footer-menu {
        justify-content: flex-start;
    }

    .footer-socials {
        justify-content: flex-start;
    }

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

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

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

    .wordmark {
        min-height: 38px;
        gap: 5px;
        padding: 0 11px;
        font-size: 12px;
    }

    .session-user {
        display: none;
    }

    .auth-card,
    .dashboard-hero,
    .panel {
        padding: 22px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 21px;
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .home-page .main-content {
        padding-top: 30px;
    }

    .home-hero-content h1 {
        font-size: 34px;
    }

    .home-hero-content p {
        font-size: 16px;
    }

    .online-summary {
        align-items: flex-start;
        flex-direction: column;
        font-size: 22px;
    }

    .server-cards {
        margin-bottom: 42px;
    }

    .home-section {
        padding: 42px 0;
    }

    .home-section-heading h2 {
        font-size: 28px;
    }

    .shop-panel,
    .forum-strip,
    .launcher-panel,
    .launcher-panel > div {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-badge {
        width: 76px;
        height: 76px;
        font-size: 32px;
    }

    .stats-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 116px;
    }
}

@media (max-width: 480px) {
    .top-actions {
        gap: 8px;
    }

    .button-compact,
    .button-small {
        min-height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }

    .wordmark {
        min-height: 34px;
        gap: 4px;
        padding: 0 9px;
        font-size: 11px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 380px) {
    .password-control input {
        padding-right: 14px;
    }

    .password-toggle {
        position: static;
        width: 100%;
        margin-top: 8px;
    }
}
