/* Persian fonts — Vazirmatn via Google Fonts; IranSans & BYekan via CDN */
@font-face {
    font-family: "IRANSans";
    src: url("https://cdn.fontcdn.ir/Font/Persian/IRANSans/IRANSans.woff2") format("woff2"),
         url("https://cdn.fontcdn.ir/Font/Persian/IRANSans/IRANSans.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "BYekan";
    src: url("https://cdn.fontcdn.ir/Font/Persian/BYekan/BYekan.woff2") format("woff2"),
         url("https://cdn.fontcdn.ir/Font/Persian/BYekan/BYekan.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root,
[data-theme="light"] {
    --nk-navy: #0f2a3d;
    --nk-navy-soft: #16384f;
    --nk-gold: #c9a227;
    --nk-gold-dark: #8a6d1a;
    --nk-bg: #f4f6f8;
    --nk-surface: #ffffff;
    --nk-text: #1c2430;
    --nk-muted: #6b7785;
    --nk-buy: #1b7f5a;
    --nk-sell: #b42318;
    --nk-border: rgba(0, 0, 0, 0.08);
    --nk-shadow: 0 2px 12px rgba(15, 42, 61, 0.08);
    --nk-splash-start: #0f2a3d;
    --nk-splash-end: #1e4a66;
    --nk-header-bg: var(--nk-navy);
    --nk-tabs-bg: var(--nk-navy-soft);
    --nk-tab-text: rgba(255, 255, 255, 0.8);
    --nk-tab-active: var(--nk-gold);
    --nk-input-bg: var(--nk-surface);
}

[data-theme="dark"] {
    --nk-bg: #0b1620;
    --nk-surface: #142433;
    --nk-text: #f2f5f8;
    --nk-muted: #9aa7b5;
    --nk-border: rgba(255, 255, 255, 0.08);
    --nk-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    --nk-input-bg: #1a2d3f;
}

[data-font="vazirmatn"] {
    --nk-font: "Vazirmatn", Tahoma, sans-serif;
}

[data-font="iransans"] {
    --nk-font: "IRANSans", Tahoma, sans-serif;
}

[data-font="yekan"] {
    --nk-font: "BYekan", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--nk-font, "Vazirmatn", Tahoma, sans-serif);
    background: var(--nk-bg);
    color: var(--nk-text);
    line-height: 1.5;
    overscroll-behavior-y: contain;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ── Splash ── */
.page-splash {
    overflow: hidden;
}

.splash-screen {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--nk-splash-start) 0%, var(--nk-splash-end) 100%);
    padding: calc(28px + env(safe-area-inset-top, 0)) 28px 28px;
}

.splash-inner {
    text-align: center;
    width: 100%;
    max-width: 360px;
}

.brand-mark {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    border-radius: 22px;
    background: linear-gradient(135deg, #d4af37, var(--nk-gold-dark));
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.splash-title {
    margin: 18px 0 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.splash-subtitle {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.splash-loader {
    margin-top: 36px;
}

.splash-status {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.spinner-border.text-warning {
    --bs-spinner-width: 2.2rem;
    --bs-spinner-height: 2.2rem;
    color: var(--nk-gold) !important;
}

/* ── Buttons ── */
.btn-gold {
    background: var(--nk-gold);
    border: none;
    color: var(--nk-navy);
    font-weight: 600;
    border-radius: 14px;
    padding: 0.65rem 1.5rem;
    min-height: 44px;
}

.btn-gold:hover,
.btn-gold:focus {
    background: #d4af37;
    color: var(--nk-navy);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 12px;
    font-size: 1.2rem;
    text-decoration: none;
}

.btn-icon:hover,
.btn-icon:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-icon.spinning i {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Header ── */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nk-header-bg);
    padding-top: env(safe-area-inset-top, 0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    min-height: 52px;
    gap: 0.5rem;
}

.app-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-actions {
    display: flex;
    gap: 0.15rem;
    flex-shrink: 0;
    align-items: center;
}

.profile-menu .dropdown-toggle::after {
    display: none;
}

.profile-dropdown {
    min-width: 220px;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 42, 61, 0.18);
    padding: 0.35rem 0;
}

.profile-dropdown-mobile {
    direction: ltr;
    text-align: right;
    font-weight: 500;
}

.profile-dropdown .dropdown-item {
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
}

.profile-dropdown .dropdown-item i {
    margin-left: 0.4rem;
}

.price-card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-favorite {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #9aa4b2;
    display: inline-grid;
    place-items: center;
    font-size: 1.15rem;
    padding: 0;
}

.btn-favorite.is-favorite,
.btn-favorite:hover {
    color: #e11d48;
    background: rgba(225, 29, 72, 0.08);
}

.pwa-install-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 42, 61, 0.22);
    padding: 0.85rem 1rem;
    color: #1c2430;
}

[data-theme="dark"] .pwa-install-banner {
    background: #152535;
    color: #f3f6fa;
}

.pwa-install-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pwa-install-text {
    flex: 1;
}

.pwa-install-text strong {
    display: block;
    margin-bottom: 0.15rem;
}

.pwa-install-text p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pwa-dismiss {
    color: inherit !important;
    font-size: 1.4rem;
    line-height: 1;
}

.pwa-ios-steps {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.pwa-ios-steps ol {
    margin: 0;
    padding-right: 1.1rem;
}

.toolbar-spacer {
    width: 44px;
}

/* ── Category tabs ── */
.category-tabs {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--nk-tabs-bg);
    padding: 0 0.5rem;
    gap: 0.25rem;
    direction: rtl;
    justify-content: flex-start;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: var(--nk-tab-text);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    position: relative;
    white-space: nowrap;
    min-height: 48px;
    cursor: pointer;
    transition: color 0.2s;
}

.category-tab.active {
    color: var(--nk-tab-active);
    font-weight: 600;
}

.category-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 1rem;
    left: 1rem;
    height: 3px;
    background: var(--nk-gold);
    border-radius: 3px 3px 0 0;
}

/* ── Main content ── */
.app-main {
    position: relative;
    min-height: calc(100dvh - 104px);
    padding: 0.65rem;
    padding-left: max(0.65rem, env(safe-area-inset-left, 0));
    padding-right: max(0.65rem, env(safe-area-inset-right, 0));
}

.main-loading {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.main-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--nk-muted);
}

.main-empty i {
    font-size: 2.5rem;
    opacity: 0.5;
}

.main-empty p {
    margin-top: 0.75rem;
}

/* ── Pull to refresh ── */
.pull-refresh-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nk-muted);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    z-index: 10;
}

.pull-refresh-indicator.visible {
    opacity: 1;
}

.pull-refresh-indicator.ready i {
    transform: rotate(180deg);
}

.pull-refresh-indicator.refreshing i {
    animation: spin 0.8s linear infinite;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel.pulling {
    transition: transform 0.1s ease-out;
}

/* ── Price cards ── */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 2px 0.75rem;
}

.price-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(201, 162, 39, 0.045), transparent 42%),
        var(--nk-surface);
    border: 1px solid var(--nk-border);
    border-inline-start: 3px solid var(--nk-gold);
    border-radius: 14px;
    padding: 10px 11px 8px;
    box-shadow: 0 2px 8px rgba(15, 42, 61, 0.06);
}

.price-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.price-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.price-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
    flex-shrink: 0;
    padding: 2px;
    background: rgba(15, 42, 61, 0.035);
}

.price-card-icon--fallback {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
}

.price-card-name {
    margin: 0;
    font-size: 0.94rem;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.price-card-unit {
    background: rgba(201, 162, 39, 0.15);
    color: var(--nk-navy);
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 7px;
    flex-shrink: 0;
}

[data-theme="dark"] .price-card-unit {
    color: var(--nk-gold);
}

.price-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 7px;
}

.price-cell {
    text-align: center;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 4px 6px 5px;
}

.price-cell-buy {
    background: rgba(27, 127, 90, 0.055);
    border-color: rgba(27, 127, 90, 0.11);
}

.price-cell-sell {
    background: rgba(180, 35, 24, 0.05);
    border-color: rgba(180, 35, 24, 0.1);
}

.price-label {
    font-size: 0.66rem;
    color: var(--nk-muted);
    margin: 0;
}

.price-value {
    margin: 1px 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.price-value.buy {
    color: var(--nk-buy);
}

.price-value.sell {
    color: var(--nk-sell);
}

.price-card-updated {
    margin: 5px 0 0;
    text-align: center;
    font-size: 0.64rem;
    color: var(--nk-muted);
}

.panel-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--nk-muted);
}

.panel-loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

/* ── Settings ── */
.settings-main {
    padding: 1rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0));
    padding-right: max(1rem, env(safe-area-inset-right, 0));
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0));
    max-width: 520px;
    margin: 0 auto;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-card {
    background: var(--nk-surface);
    border: 1px solid var(--nk-border);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: var(--nk-shadow);
}

.settings-label {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.settings-hint {
    margin: -0.35rem 0 0.75rem;
    font-size: 0.8rem;
    color: var(--nk-muted);
}

.settings-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.settings-options-stack {
    grid-template-columns: 1fr;
}

.settings-radio {
    margin: 0;
    cursor: pointer;
}

.settings-radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-radio-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--nk-border);
    border-radius: 14px;
    text-align: center;
    font-weight: 500;
    min-height: 48px;
    transition: border-color 0.2s, background 0.2s;
}

.settings-radio input:checked + .settings-radio-box {
    border-color: var(--nk-gold);
    background: rgba(201, 162, 39, 0.12);
    color: var(--nk-text);
    font-weight: 600;
}

.settings-input {
    background: var(--nk-input-bg);
    border: 1px solid var(--nk-border);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    color: var(--nk-text);
    font-size: 0.9rem;
    min-height: 48px;
}

.settings-input:focus {
    border-color: var(--nk-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
    outline: none;
}

.btn-save {
    margin-top: 0.5rem;
    min-height: 50px;
    font-size: 1rem;
}

.settings-toast {
    text-align: center;
    padding: 0.75rem;
    background: rgba(27, 127, 90, 0.12);
    color: var(--nk-buy);
    border-radius: 12px;
    font-weight: 600;
}

/* ── Utilities ── */
.d-none {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (min-width: 768px) {
    .app-main,
    .settings-main,
    .news-main,
    .news-detail-main {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ── News ticker (همیشه RTL، مستقل از زبان سیستم) ── */
.news-ticker {
    display: flex;
    align-items: stretch;
    flex-direction: row;
    direction: rtl;
    unicode-bidi: isolate;
    background: #0b2233;
    border-top: 1px solid rgba(201, 162, 39, 0.25);
    min-height: 34px;
    overflow: hidden;
}

.news-ticker-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.7rem;
    background: linear-gradient(135deg, #c9a227, #8a6d1a);
    color: #0f2a3d;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    z-index: 1;
    direction: rtl;
}

.news-ticker-track {
    flex: 1;
    overflow: hidden;
    direction: rtl;
    unicode-bidi: isolate;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.news-ticker-content {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 1.25rem;
    white-space: nowrap;
    padding: 0.45rem 0;
    width: max-content;
    direction: rtl;
    unicode-bidi: isolate;
    animation: news-ticker-scroll-rtl 35s linear infinite;
}

.news-ticker:hover .news-ticker-content {
    animation-play-state: paused;
}

.news-ticker-item {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.82rem;
    direction: rtl;
    unicode-bidi: isolate;
}

.news-ticker-item:hover {
    color: var(--nk-gold);
}

.news-ticker-sep {
    color: var(--nk-gold);
    opacity: 0.7;
}

/* حرکت از راست به چپ (متن به سمت چپ می‌رود) */
@keyframes news-ticker-scroll-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ── News list ── */
.news-main,
.news-detail-main {
    padding: 0.85rem 0.85rem 1.5rem;
}

.news-day-group {
    margin-bottom: 1.25rem;
}

.news-day-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    padding: 0 0.15rem;
}

.news-day-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--nk-navy);
}

[data-theme="dark"] .news-day-label {
    color: var(--nk-gold);
}

.news-day-jalali {
    font-size: 0.78rem;
    color: var(--nk-muted);
}

.news-day-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.news-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.7rem;
    background: var(--nk-surface);
    border: 1px solid var(--nk-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--nk-shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.news-card:active {
    transform: scale(0.99);
}

.news-card-img {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(15, 42, 61, 0.06);
}

.news-card-img-placeholder {
    display: grid;
    place-items: center;
    color: var(--nk-muted);
    font-size: 1.4rem;
}

.news-card-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.news-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

.news-card-summary {
    margin: 0;
    font-size: 0.8rem;
    color: var(--nk-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-time {
    margin-top: auto;
    font-size: 0.72rem;
    color: var(--nk-muted);
}

/* ── News detail ── */
.news-article {
    background: var(--nk-surface);
    border: 1px solid var(--nk-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nk-shadow);
}

.news-article-hero {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(15, 42, 61, 0.06);
}

.news-article-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-article-meta {
    padding: 0.85rem 1rem 0;
    font-size: 0.78rem;
    color: var(--nk-muted);
}

.news-article-title {
    margin: 0.35rem 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.news-article-summary {
    margin: 0.55rem 1rem 0;
    padding: 0.65rem 0.75rem;
    background: rgba(201, 162, 39, 0.1);
    border-right: 3px solid var(--nk-gold);
    border-radius: 8px;
    color: var(--nk-text);
    font-size: 0.9rem;
}

.news-article-body {
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.85;
}

.news-article-body p {
    margin: 0 0 0.85rem;
}

.news-article-body ul,
.news-article-body ol {
    margin: 0 0 0.85rem;
    padding-right: 1.25rem;
}

.news-article-body a {
    color: var(--nk-gold-dark);
}

/* ── Auth (OTP login) ── */
.page-auth {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse at top, rgba(201, 162, 39, 0.18), transparent 55%),
        linear-gradient(165deg, #0f2a3d 0%, #16384f 55%, #0b1620 100%);
}

.auth-screen,
.auth-main {
    flex: 1;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(24px + env(safe-area-inset-top, 0)) 20px calc(28px + env(safe-area-inset-bottom, 0));
    box-sizing: border-box;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-inline: auto;
    background: var(--nk-surface);
    color: var(--nk-text);
    border-radius: 20px;
    padding: 1.75rem 1.35rem 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.auth-brand {
    margin-bottom: 0.25rem;
}

.brand-mark--sm {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
    border-radius: 16px;
    margin-bottom: 0.75rem;
}

.auth-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0.45rem 0 1.25rem;
    color: var(--nk-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth-back {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--nk-text);
    text-decoration: none;
    border-radius: 12px;
    background: rgba(15, 42, 61, 0.06);
}

.auth-label {
    display: block;
    margin-bottom: 0.4rem;
    margin-top: 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-form .auth-label:first-of-type {
    margin-top: 0;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--nk-border);
    background: var(--nk-input-bg);
    color: var(--nk-text);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    outline: none;
}

.auth-input:focus {
    border-color: var(--nk-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}

.auth-input--otp {
    letter-spacing: 0.45em;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
}

.auth-hint {
    margin: 0.55rem 0 0;
    color: var(--nk-muted);
    font-size: 0.8rem;
}

.auth-error {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.75rem;
    background: rgba(180, 35, 24, 0.1);
    color: var(--nk-sell);
    border-radius: 10px;
    font-size: 0.85rem;
}

.auth-submit {
    width: 100%;
    margin-top: 1.1rem;
}

.auth-resend {
    width: 100%;
    margin-top: 0.65rem;
    min-height: 44px;
    border: 1px solid var(--nk-border);
    background: transparent;
    color: var(--nk-text);
    border-radius: 14px;
    font-weight: 600;
}

.auth-resend:disabled {
    opacity: 0.55;
}

.btn-logout {
    width: 100%;
    margin-top: 0.85rem;
    min-height: 48px;
    border: 1px solid rgba(180, 35, 24, 0.35);
    background: rgba(180, 35, 24, 0.08);
    color: var(--nk-sell);
    border-radius: 14px;
    font-weight: 600;
}

.auth-mobile-chip {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--nk-muted);
}
