:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --text: #102033;
    --muted: #5d718d;
    --primary: #f97316;
    --primary-dark: #7c2d12;
    --accent: #ffb020;
    --border: #fed7aa;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, rgb(255 247 237 / 92%), rgb(255 255 255 / 96%)),
        url("/img/ns2d-bg1.png") top center / 1600px auto fixed no-repeat,
        #fff7ed;
    color: var(--text);
    font-family: Be Vietnam Pro, Arial, Roboto, Noto Sans, Liberation Sans, Helvetica Neue, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body {
    padding-top: 90px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgb(249 115 22 / 45%);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.site-footer,
main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 50;
    width: 100%;
    max-width: none;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px max(16px, calc((100vw - 1180px) / 2));
    color: var(--primary-dark);
    background: rgb(255 255 255 / 88%);
    border-bottom: 1px solid rgb(254 215 170 / 72%);
    box-shadow: 0 10px 28px rgb(124 45 18 / 12%);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgb(249 115 22 / 24%);
}

.brand strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.05rem;
    line-height: 1.2;
    text-shadow: none;
}

.brand small,
.muted,
.page-head p,
.card p,
.panel p {
    color: var(--muted);
}

.site-header .brand small {
    color: #a16207;
}

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

.nav a,
.tabs a {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--primary-dark);
    font-weight: 600;
}

.site-header .nav a {
    color: var(--primary-dark);
}

.nav a:hover,
.tabs a.active,
.tabs a:hover {
    background: #ffedd5;
    color: var(--primary-dark);
}

.nav .nav-cta {
    background: linear-gradient(135deg, #fb923c, var(--primary));
    color: #fff;
    box-shadow: 0 10px 24px rgb(249 115 22 / 22%);
}

.account-dropdown {
    position: relative;
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 9px;
    background: rgb(255 255 255 / 10%);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.account-trigger-avatar {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: .88rem;
    font-weight: 900;
    line-height: 1;
}

.account-trigger-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-trigger-caret {
    color: rgb(255 255 255 / 68%);
    font-size: 1.1rem;
    transform: translateY(2px);
}

.account-dropdown.is-open .account-trigger-caret {
    transform: rotate(180deg) translateY(-2px);
}

.account-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 90;
    display: none;
    min-width: 220px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgb(15 23 42 / 18%);
}

.account-dropdown:not(.is-open) .account-dropdown-menu {
    display: none !important;
}

.account-dropdown.is-open .account-dropdown-menu {
    display: grid;
}

.account-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 0;
    color: #374151;
    font-weight: 500;
}

.account-dropdown-menu a:hover {
    background: #fff7ed;
    color: var(--primary-dark);
}

.account-menu-icon {
    display: grid;
    width: 18px;
    place-items: center;
    color: var(--primary);
    font-size: .86rem;
    font-weight: 900;
}

.account-menu-icon-history {
    color: #f97316;
}

.account-menu-icon-logout {
    color: #ef4444;
}

.ns-toast-stack {
    position: fixed;
    top: 76px;
    right: 24px;
    z-index: 200;
    width: min(282px, calc(100vw - 32px));
}

.ns-toast {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 22px;
    gap: 10px;
    align-items: center;
    min-height: 56px;
    overflow: hidden;
    padding: 14px 12px 16px;
    border-radius: 6px;
    background: #111318;
    color: #fff;
    box-shadow: 0 16px 36px rgb(0 0 0 / 28%);
    animation: ns-toast-in .24s ease-out both;
}

.ns-toast-icon {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #20d12f;
    color: #101414;
    font-size: .76rem;
    font-weight: 900;
}

.ns-toast strong {
    min-width: 0;
    font-size: .9rem;
    line-height: 1.3;
}

.ns-toast-close {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #d1d5db;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.ns-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: #16c322;
    transform-origin: left;
    animation: ns-toast-progress 3s linear forwards;
}

.ns-toast-error .ns-toast-icon {
    background: #ff5a45;
    color: #fff;
}

.ns-toast-error .ns-toast-progress {
    background: #ef4444;
}

.ns-toast.is-closing {
    animation: ns-toast-out .18s ease-in forwards;
}

@keyframes ns-toast-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ns-toast-out {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@keyframes ns-toast-progress {
    to {
        transform: scaleX(0);
    }
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
    gap: 36px;
    align-items: center;
    min-height: 540px;
    width: 100vw;
    margin-top: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(32px, 5vw, 64px) max(24px, calc((100vw - 1180px) / 2));
    overflow: hidden;
    border-top: 1px solid rgb(254 215 170 / 72%);
    border-bottom: 1px solid rgb(254 215 170 / 72%);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgb(255 247 237 / 96%) 0%, rgb(255 237 213 / 82%) 44%, rgb(249 115 22 / 22%) 100%),
        radial-gradient(circle at 76% 42%, rgb(255 176 32 / 26%), transparent 24rem),
        url("/img/ns2d-bg1.png") center / cover no-repeat;
    box-shadow: 0 34px 80px rgb(124 45 18 / 18%);
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgb(255 255 255 / 26%), transparent 32%, rgb(124 45 18 / 8%)),
        repeating-linear-gradient(90deg, transparent 0 78px, rgb(249 115 22 / 5%) 80px 82px);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 660px;
    color: var(--primary-dark);
}

.hero h1,
.page-head h1,
.auth-card h1 {
    margin: 0;
    color: var(--primary-dark);
    font-size: clamp(2.2rem, 5vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.hero h1 {
    color: var(--primary-dark);
    text-shadow: 0 4px 0 rgb(249 115 22 / 16%);
}

.hero-art img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 0;
    border: 0;
    box-shadow: none;
}

.lead {
    max-width: 680px;
    color: #5f3920;
    font-size: 1.12rem;
    line-height: 1.75;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.hero .eyebrow {
    color: var(--primary);
}

.actions,
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.actions.center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, #fb923c, var(--primary));
    color: #fff;
    box-shadow: 0 10px 24px rgb(249 115 22 / 18%);
}

.btn.secondary {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--primary-dark);
}

.btn.full {
    width: 100%;
    margin-top: 14px;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
}

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

.quick-actions a {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid rgb(254 215 170 / 88%);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 14px 34px rgb(124 45 18 / 9%);
}

.quick-actions strong {
    color: var(--primary-dark);
    font-size: 1.15rem;
}

.quick-actions span {
    color: var(--muted);
    font-weight: 400;
}

.quick-actions a:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.stats,
.cards,
.section-grid,
.form-layout {
    display: grid;
    gap: 18px;
}

.stats {
    grid-template-columns: repeat(3, 1fr);
    margin: 18px 0 46px;
}

.stats article,
.panel,
.card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 14px 34px rgb(124 45 18 / 10%);
}

.stats article {
    padding: 22px;
}

.stats strong {
    display: block;
    color: var(--primary);
    font-size: 2rem;
    line-height: 1.1;
}

.section-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.home-news-section {
    margin-top: 42px;
}

.home-news-section .section-title {
    margin-top: 0;
}

.home-news-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-title,
.page-head {
    margin: 42px 0 20px;
}

.section-title h2,
.panel h2 {
    margin: 0 0 12px;
    color: var(--primary-dark);
    line-height: 1.25;
}

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

.cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    overflow: hidden;
    padding-bottom: 18px;
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card h2,
.card h3,
.card p,
.card .pill {
    margin-left: 18px;
    margin-right: 18px;
}

.pill {
    display: inline-flex;
    margin-top: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: .78rem;
    font-weight: 600;
}

.panel {
    padding: 22px;
}

.panel-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.mascot-image {
    width: min(160px, 70%);
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    margin: 0 auto 16px;
    filter: drop-shadow(0 18px 20px rgb(124 45 18 / 18%));
}

.download-page {
    width: min(1050px, 100%);
    margin: 28px auto 0;
}

.download-heading {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin-bottom: 18px;
    text-align: center;
}

.download-heading h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
}

.download-current {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: .9rem;
    font-weight: 600;
}

.download-platforms {
    display: grid;
    gap: 24px;
}

.download-platform {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(15 23 42 / 8%);
}

.download-platform summary {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 64px;
    gap: 14px;
    align-items: center;
    padding: 26px 28px 22px;
    cursor: pointer;
    list-style: none;
}

.download-platform summary::-webkit-details-marker {
    display: none;
}

.download-platform-icon,
.download-version-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--primary);
    font-weight: 900;
}

.download-platform-icon svg,
.download-version-icon svg {
    width: 1em;
    height: 1em;
}

.download-platform-icon {
    font-size: 2.1rem;
}

.download-platform-copy strong {
    display: block;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.1;
}

.download-platform-copy small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: .92rem;
    font-weight: 400;
}

.download-platform-caret {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    justify-self: end;
    color: #64748b;
    border-radius: 50%;
    font-weight: 900;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1), background-color .2s ease, color .2s ease;
}

.download-platform-caret svg {
    width: 32px;
    height: 32px;
}

.download-platform summary:hover .download-platform-caret {
    background: #fff7ed;
    color: var(--primary);
}

.download-platform[open] .download-platform-caret {
    transform: rotate(180deg);
}

.download-version-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    animation: download-panel-in .26s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes download-panel-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-version-card {
    display: grid;
    gap: 18px;
    padding: 24px 16px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.download-version-icon {
    justify-self: center;
    font-size: 2.45rem;
}

.download-version-card h2 {
    min-height: 56px;
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.35;
    text-align: center;
}

.download-version-card dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.download-version-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.download-version-card dt {
    color: #64748b;
}

.download-version-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.download-version-button {
    width: 100%;
}

.download-guide-link {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.news-page {
    width: 100vw;
    min-height: calc(100vh - 90px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 28px 16px 70px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
}

.news-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.news-heading {
    text-align: center;
    margin-bottom: 18px;
}

.news-heading h1 {
    margin: 0;
    color: #ff7a1a;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
}

.news-heading p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 400;
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 22px;
}

.news-tabs a {
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #172033;
    font-weight: 500;
}

.news-tabs a.active,
.news-tabs a:hover {
    border-color: #ff7a1a;
    background: #ff7a1a;
    color: #fff;
}

.news-block {
    margin-top: 12px;
}

.news-block h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #0f172a;
    font-size: 2rem;
    line-height: 1.2;
}

.news-block h2 span {
    color: #ff6b00;
}

.announcement-list,
.feature-news-list {
    display: grid;
    gap: 16px;
}

.announcement-item {
    position: relative;
    display: block;
    padding: 12px 52px 12px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgb(15 23 42 / 8%);
}

.announcement-item strong {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.3;
}

.announcement-item p {
    margin: 6px 0 0;
    color: #475569;
    font-size: .9rem;
}

.announcement-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: .86rem;
    font-weight: 500;
}

.announcement-meta span:not(.news-badge) {
    border-radius: 5px;
    background: #f1f5f9;
    padding: 2px 7px;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #ff9d00;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
}

.announcement-arrow {
    position: absolute;
    top: 18px;
    right: 12px;
    color: #ff6b00;
    font-size: 1.4rem;
    font-weight: 800;
}

.feature-news-list {
    margin-top: 48px;
}

.feature-news-card {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, .94fr);
    gap: 30px;
    align-items: center;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgb(15 23 42 / 9%);
}

.feature-news-image {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.feature-news-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-badge.floating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef233c;
}

.feature-news-content {
    padding: 18px 22px 18px 0;
}

.feature-news-content h2 {
    margin: 14px 0 8px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 1.1;
    text-transform: uppercase;
}

.feature-news-content p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 1rem;
}

.news-readmore {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: min(520px, 100%);
    min-height: 42px;
    padding: 0 20px;
    border-radius: 7px;
    background: #ff6b00;
    color: #fff;
    font-weight: 700;
}

.form-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--primary-dark);
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
}

.auth-fallback-space {
    min-height: 70vh;
}

body.auth-open {
    overflow: hidden;
}

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 0 16px;
    background: rgb(0 0 0 / 70%);
    backdrop-filter: blur(8px);
}

.auth-modal-backdrop.is-open {
    display: grid;
}

.auth-modal {
    position: relative;
    display: none;
    width: min(402px, 100%);
    max-height: calc(100vh - 24px);
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 72px rgb(0 0 0 / 38%);
}

.auth-modal.forgot-modal {
    border: 2px solid #fdba74;
}

.auth-modal.is-active {
    display: block;
}

.auth-close {
    position: absolute;
    top: 13px;
    right: 16px;
    color: #6b7280;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
}

.auth-modal-head {
    padding: 26px 30px 25px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.auth-modal-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 1.72rem;
    line-height: 1.05;
    font-weight: 800;
}

.forgot-modal .auth-modal-head h2 {
    color: #b45309;
    font-size: 2rem;
}

.forgot-modal .auth-modal-head {
    border-bottom-color: #fdba74;
}

.forgot-modal .btn.primary {
    background: linear-gradient(135deg, #b45309, #9a3412);
}

.auth-modal-head p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.35;
}

.auth-modal-body {
    padding: 28px 29px 28px;
}

.auth-modal label {
    color: #1f2937;
    gap: 6px;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.25;
}

.auth-modal .form {
    gap: 15px;
}

.auth-modal [data-register-form] {
    display: flex;
    flex-direction: column;
}

.auth-modal [data-register-form] label:nth-of-type(1) {
    order: 1;
}

.auth-modal [data-register-form] label:nth-of-type(2) {
    order: 4;
}

.auth-modal [data-register-form] label:nth-of-type(3) {
    order: 2;
}

.auth-modal [data-register-form] label:nth-of-type(4) {
    order: 3;
}

.auth-modal [data-register-form] label:nth-of-type(5) {
    order: 5;
}

.auth-modal [data-register-form] .btn {
    order: 6;
}

.auth-modal .btn.primary.full {
    min-height: 36px;
    margin-top: 8px;
    border-radius: 8px;
    background: #ff7116;
    box-shadow: 0 10px 20px rgb(249 115 22 / 20%);
    font-size: .94rem;
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 45px;
    padding: 0 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.input-wrap.has-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgb(220 38 38 / 12%);
}

.input-wrap input {
    min-width: 0;
    border: 0;
    padding: 0;
    outline: 0;
    color: #111827;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.2;
}

.input-wrap input::placeholder {
    color: #7b8494;
    opacity: 1;
    font-weight: 400;
}

.auth-modal .input-wrap > span {
    display: grid;
    min-width: 20px;
    place-items: center;
}

.auth-modal .input-wrap > span img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: grayscale(1) opacity(.72);
}

.forgot-link {
    justify-self: end;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
}

.form-hint {
    margin-top: -2px;
    color: #6b7280;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.35;
}

.form-error {
    min-height: 0;
    margin-top: -2px;
    color: var(--danger);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
}

.auth-switch {
    margin: 18px 0 0;
    color: #6b7280;
    font-size: .88rem;
    font-weight: 400;
    text-align: center;
}

.auth-switch a {
    color: var(--primary);
    font-weight: 700;
}

.auth-modal .password-wrap button {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.auth-modal .password-wrap button img {
    width: 14px;
    height: 14px;
    filter: grayscale(1) opacity(.76);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.account-page {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 1160px;
    min-height: 470px;
    margin: 32px auto 16px;
}

.account-sidebar {
    display: grid;
    gap: 16px;
}

.account-card,
.account-menu,
.account-panel {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgb(15 23 42 / 8%);
}

.account-card {
    position: relative;
    min-height: 224px;
    padding: 116px 22px 24px;
    text-align: center;
}

.account-cover {
    position: absolute;
    inset: 0 0 auto;
    height: 96px;
    background: linear-gradient(135deg, #ff6b00, #ff7a1a);
}

.account-avatar {
    position: absolute;
    top: 54px;
    left: 50%;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #0ea5c6;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    transform: translateX(-50%);
    box-shadow: 0 8px 18px rgb(15 23 42 / 16%);
}

.account-card h1 {
    margin: 18px 0 4px;
    color: #0f172a;
    font-size: 1.22rem;
    line-height: 1.2;
}

.account-card p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.account-menu {
    display: grid;
    padding: 0;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 20px;
    color: #475569;
    font-weight: 500;
    border-left: 4px solid transparent;
}

.account-menu a.active {
    border-left-color: var(--primary);
    background: #fff1e7;
    color: var(--primary);
}

.account-menu span {
    display: inline-grid;
    width: 20px;
    place-items: center;
    color: currentColor;
    font-weight: 900;
}

.account-menu img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.account-panel {
    padding: 24px;
}

.account-panel-head {
    margin-bottom: 22px;
}

.account-panel-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
}

.account-panel-head p {
    margin: 6px 0 0;
    color: #64748b;
}

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

.account-stats-grid article {
    min-height: 104px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.account-stats-grid span {
    display: block;
    color: #64748b;
    font-size: .86rem;
    font-weight: 700;
}

.account-stats-grid strong {
    display: block;
    margin-top: 8px;
    color: var(--primary-dark);
    font-size: 1.2rem;
    line-height: 1.2;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

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

.settings-list a,
.settings-list button {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 16px;
    align-items: center;
    min-height: 74px;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.settings-list a:hover,
.settings-list button:hover {
    border-color: #fdba74;
    background: #fff7ed;
}

.settings-list span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #ffedd5;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 900;
}

.settings-list span img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.settings-list strong {
    color: #0f172a;
    font-weight: 600;
}

.settings-list small {
    display: block;
    color: #64748b;
    font-size: .82rem;
}

.settings-list em {
    color: #64748b;
    font-size: 1.9rem;
    font-style: normal;
}

.profile-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgb(15 23 42 / 52%);
}

.profile-modal-backdrop.is-open {
    display: grid;
}

.profile-modal {
    position: relative;
    width: min(448px, 100%);
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
}

.profile-modal h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 1.35rem;
    line-height: 1.2;
}

.profile-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.profile-modal .input-wrap {
    min-height: 50px;
}

.profile-modal .input-wrap span {
    min-width: 36px;
    color: #6b7280;
    font-size: .76rem;
    font-weight: 400;
}

.profile-modal .input-wrap span img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.password-wrap input {
    flex: 1;
}

.password-wrap button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    color: #6b7280;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
}

.password-wrap button img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.account-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.account-table th,
.account-table td {
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.account-table th {
    background: #f8fafc;
    color: #475569;
    font-size: .86rem;
}

.account-table tr:last-child td {
    border-bottom: 0;
}

.tx-note td {
    padding-top: 0;
    color: #64748b;
    font-size: .86rem;
    white-space: normal;
}

.tx-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .78rem;
    font-weight: 900;
}

.tx-status.success {
    background: #dcfce7;
    color: #166534;
}

.tx-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.account-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 44px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    text-align: center;
}

.account-empty strong {
    color: #0f172a;
    font-size: 1.1rem;
}

.account-empty p {
    margin: 0 0 8px;
    color: #64748b;
}

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 500;
}

.alert.success {
    background: #ffedd5;
    color: #9a3412;
}

.alert.error {
    background: #fee2e2;
    color: var(--danger);
}

.check-list {
    padding-left: 20px;
    line-height: 1.8;
}

.danger h1 {
    color: var(--danger);
}

.article {
    width: min(1180px, 100%);
    max-width: none;
    margin: 38px auto;
}

.ninja-card {
    border-radius: .5rem;
    border: 1px solid rgb(229 231 235);
    background-color: rgb(255 255 255);
    padding: .5rem;
    box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .3s;
}

.ninja-card:hover {
    box-shadow: 0 10px 24px rgb(15 23 42 / 10%);
}

.article-image {
    width: 100%;
    margin: 18px 0 14px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.article-meta .pill {
    margin-top: 0;
}

.article-title {
    margin: 0 0 18px;
    color: var(--primary-dark);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: 0;
}

.article-body {
    display: flow-root;
    clear: both;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 1.08rem;
    line-height: 1.85;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body img {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 8px;
}

.article-body figure {
    margin: 22px 0;
}

.article-body figcaption {
    color: #64748b;
    font-size: .9rem;
    text-align: center;
}

.related-news {
    width: min(1180px, 100%);
    max-width: none;
    margin: 34px auto 0;
}

.related-news h2 {
    margin: 0 0 18px;
    color: #0f172a;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    text-align: center;
}

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

.related-news-card {
    display: block;
    overflow: hidden;
    color: #0f172a;
    padding: .4rem;
}

.related-news-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    object-fit: cover;
}

.related-news-content {
    display: grid;
    gap: 8px;
    padding: 12px 10px 10px;
}

.related-news-content .news-badge {
    justify-self: start;
    background: #2563eb;
}

.related-news-content h3 {
    margin: 0;
    color: #111827;
    font-size: 1.02rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.related-news-content p {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.5;
}

.related-news-date {
    color: #64748b;
    font-size: .82rem;
    font-weight: 700;
}

.back-link {
    color: var(--primary);
    font-weight: 600;
}

.table-wrap {
    overflow-x: auto;
}

.social-tab {
    position: fixed;
    top: 50%;
    right: 14px;
    z-index: 60;
    display: grid;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    background: rgb(68 52 38 / 58%);
    box-shadow: 0 18px 36px rgb(124 45 18 / 22%);
    transform: translateY(-50%);
    backdrop-filter: blur(6px);
}

.social-tab a {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #0b7cff;
    box-shadow: 0 10px 20px rgb(15 23 42 / 18%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.social-tab a:first-child {
    background: #1877f2;
}

.social-tab a:hover {
    transform: translateX(-3px);
    box-shadow: 0 14px 28px rgb(15 23 42 / 24%);
}

.social-tab img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #dff5ff;
    text-align: left;
}

th {
    color: var(--primary-dark);
    font-weight: 600;
}

.empty-state {
    max-width: 720px;
    margin: 70px auto;
    text-align: center;
}

.empty-state h1 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 6rem;
}

.site-footer {
    margin-top: 70px;
    padding: 48px 0 0;
    border-top: 4px solid var(--primary);
    color: #475569;
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) repeat(3, minmax(160px, .8fr));
    gap: 48px;
    padding: 0 16px 32px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-brand p {
    max-width: 280px;
    margin: 18px 0;
}

.footer-social {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: #f1f5f9;
}

.footer-social img {
    width: 22px;
    height: 22px;
}

.site-footer h2 {
    margin: 0 0 18px;
    color: var(--primary);
    font-size: 1.05rem;
    line-height: 1.3;
}

.footer-links {
    display: grid;
    gap: 10px;
}

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

.footer-contact {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact span {
    min-width: 36px;
    color: var(--primary);
    font-size: .78rem;
    font-weight: 900;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: .9rem;
}

.payment-qr-backdrop {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgb(0 0 0 / 72%);
    backdrop-filter: blur(5px);
}

.payment-qr-backdrop.is-open {
    display: grid;
}

.payment-qr-modal {
    position: relative;
    width: min(604px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 20px 14px 22px;
    border: 2px solid var(--primary);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 90px rgb(0 0 0 / 38%);
    text-align: center;
}

.payment-qr-modal header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.35rem;
    line-height: 1.25;
}

.payment-qr-modal header p {
    margin: 6px 0 20px;
    color: #6b7280;
    font-weight: 600;
}

.payment-qr-modal header p span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-radius: 50%;
    background: #fb923c;
    animation: qr-dot 1.1s ease-in-out infinite;
}

.payment-qr-modal header p span:nth-child(2) {
    animation-delay: .16s;
}

.payment-qr-modal header p span:nth-child(3) {
    animation-delay: .32s;
}

.payment-qr-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f8fafc;
    color: #111827;
    font: inherit;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.payment-qr-image {
    position: relative;
    width: 276px;
    max-width: 82vw;
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 14px 34px rgb(249 115 22 / 34%),
        12px 10px 30px rgb(124 58 237 / 28%);
}

.payment-qr-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.payment-qr-image strong {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #ef233c;
    font-size: 2rem;
    line-height: 1;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 18px rgb(15 23 42 / 14%);
}

.payment-qr-info {
    overflow: hidden;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: left;
}

.payment-qr-info div {
    display: grid;
    grid-template-columns: minmax(110px, .7fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border-bottom: 1px solid #edf2f7;
}

.payment-qr-info div:last-child {
    border-bottom: 0;
}

.payment-qr-info dt {
    color: #6b7280;
    font-weight: 500;
}

.payment-qr-info dd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    color: #374151;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.payment-qr-info button {
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary);
    font: inherit;
    font-size: .72rem;
    font-weight: 900;
    cursor: pointer;
}

.payment-qr-note {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #fdba74;
    border-radius: 10px;
    background: #fff7ed;
    color: #374151;
    text-align: left;
}

.payment-qr-note strong {
    color: #1f2937;
}

.payment-qr-note ul {
    margin: 4px 0 0;
    padding-left: 22px;
    line-height: 1.45;
}

.payment-qr-note b {
    color: var(--primary);
}

.admin-login {
    display: grid;
    min-height: 62vh;
    place-items: center;
}

.admin-login-card {
    width: min(440px, 100%);
}

.admin-login-card h1,
.admin-sidebar h1 {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.8rem;
    line-height: 1.2;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 28px;
}

.admin-layout .page-shell {
    width: 100%;
    margin: 0;
    padding: 50px;
}

.admin-layout .admin-shell {
    width: 100%;
    margin-top: 0;
}

.admin-layout .site-footer {
    display: none;
}

.admin-sidebar {
    position: sticky;
    top: 112px;
    display: grid;
    gap: 16px;
}

.admin-layout .admin-sidebar {
    top: 140px;
}

.admin-menu {
    display: grid;
    gap: 8px;
}

.admin-menu a {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #475569;
    font-weight: 600;
}

.admin-menu a.active,
.admin-menu a:hover {
    background: #ffedd5;
    color: var(--primary-dark);
}

.admin-content {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.admin-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-list-head h2 {
    margin: 0;
}

.admin-list-head p {
    margin: 6px 0 0;
}

.admin-form-screen {
    max-width: 820px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

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

.admin-stats article {
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
}

.admin-stats span {
    display: block;
    color: #9a3412;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .76rem;
}

.admin-stats strong {
    display: block;
    margin-top: 6px;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

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

.admin-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-checks label,
.admin-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-checks input,
.admin-inline input {
    width: auto;
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.admin-table-wrap th,
.admin-table-wrap td {
    border-bottom-color: #e5e7eb;
    white-space: nowrap;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-actions form {
    margin: 0;
}

.admin-actions .btn {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: .82rem;
}

.admin-editor textarea[name="content"] {
    min-height: 260px;
}

.admin-html-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-html-toolbar button {
    min-width: 40px;
    min-height: 34px;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    background: #fff7ed;
    color: var(--primary-dark);
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
}

.admin-html-toolbar button:hover {
    border-color: var(--primary);
    background: #ffedd5;
}

#post-content-editor:not(.jodit_wysiwyg) {
    min-height: 360px;
    line-height: 1.55;
}

.jodit-container {
    border-color: #fed7aa !important;
    border-radius: 10px !important;
}

.jodit-workplace {
    min-height: 360px !important;
}

.admin-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid #fed7aa;
    border-radius: 8px;
}

.admin-delete {
    max-width: 680px;
}

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

@keyframes qr-dot {
    0%,
    80%,
    100% {
        opacity: .35;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 900px) {
    .site-header,
    .hero,
    .section-grid,
    .form-layout,
    .account-page,
    .profile-card {
        grid-template-columns: 1fr;
    }

    .site-header,
    .profile-card {
        align-items: stretch;
    }

    body {
        padding-top: 138px;
    }

    .site-header {
        padding: 10px 16px;
    }

    .ns-toast-stack {
        top: 148px;
        right: 12px;
    }

    .brand {
        min-width: 0;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

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

    .stats,
    .cards,
    .cards.three,
    .home-news-cards,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .news-page {
        min-height: calc(100vh - 138px);
        padding-top: 24px;
    }

    .social-tab {
        right: 8px;
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
    }

    .social-tab a {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .social-tab img {
        width: 24px;
        height: 24px;
    }

    .feature-news-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

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

    .feature-news-content {
        padding: 0 12px 14px;
    }

    .announcement-item {
        padding-right: 42px;
    }

    .account-page {
        margin-top: 24px;
    }

    .account-panel {
        padding: 18px;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    .payment-qr-info div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .payment-qr-info dd {
        justify-content: space-between;
        text-align: left;
    }

    .admin-shell,
    .admin-grid,
    .admin-stats,
    .admin-two,
    .admin-list-head {
        grid-template-columns: 1fr;
    }

    .admin-list-head {
        display: grid;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-layout .page-shell {
        padding: 24px 16px;
    }
}

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

    .download-platform summary {
        grid-template-columns: 44px minmax(0, 1fr) 48px;
        padding: 20px 16px 18px;
    }

    .download-platform-caret {
        width: 42px;
        height: 42px;
    }

    .download-platform-caret svg {
        width: 28px;
        height: 28px;
    }

    .download-version-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

.home-news-section {
    margin-top: 42px;
}

.home-news-section .section-title {
    margin-top: 0;
}

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

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

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