/* Дополнения к стилям макета: страницы входа/регистрации, статусы, мелкие элементы кабинета */

.inline-post{display:inline;margin:0}

/* auth pages */
.auth-page .container{display:flex;justify-content:center}
.auth-box{width:100%;max-width:480px}
.auth-head{text-align:center;margin-bottom:1.4rem}
.auth-head h1{font-size:clamp(1.6rem,4vw,2.1rem);margin:.4rem 0 .5rem}
.auth-foot{text-align:center;margin-top:1.2rem}
.grid-2-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
@media (max-width:520px){.grid-2-fields{grid-template-columns:1fr}.form-card{padding:1.5rem}}
.form-row-between{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:-.2rem 0 1.2rem;font-size:.9rem}
.form-card .form-status{margin:0 0 1rem}
.form-card input[disabled],.panel input[disabled]{opacity:.65;cursor:not-allowed}
.check input[type=checkbox]{width:auto}

/* dashboard */
.dash-tabs{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.dash-h1{font-size:1.6rem;margin-bottom:.3rem}
.dash-actions{display:flex;gap:.6rem;flex-wrap:wrap}
.dash-row{margin-bottom:1.5rem}
.dash > .container > .form-status{margin:0 0 1rem}
.acc-l{margin-bottom:.2rem}
.acc-v{margin-bottom:1rem;overflow-wrap:anywhere}
.table-flat{box-shadow:none}
.st{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.76rem;font-weight:700;letter-spacing:.02em}
.st-completed{background:#E1F5EA;color:#14693F}
.st-pending{background:#FFF4D6;color:#7a5f0c}
.st-rejected,.st-cancelled{background:#FDECEA;color:#9A2A1F}
.chips-row{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1rem}
.chip{border:1px solid var(--line);border-radius:999px;padding:.3rem .85rem;font-size:.85rem;font-weight:600;color:var(--ink)}
.chip:hover{border-color:var(--gold)}
.chip.on{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.pager{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:1.2rem}

#action-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:84px;z-index:1500;background:#0f0b1a;color:#fff;max-width:92vw}

/* dark theme for blocks the design files do not cover */
html[data-theme="dark"] .form-card,html[data-theme="dark"] .panel,html[data-theme="dark"] .table-wrap{background:var(--card-bg);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] label,html[data-theme="dark"] .balance,html[data-theme="dark"] .kpi .v{color:#f4f2fc}
html[data-theme="dark"] input[type=text],html[data-theme="dark"] input[type=email]{background:#110d1e;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .st-completed{background:#123526;color:#7fe0ae}
html[data-theme="dark"] .st-pending{background:#3a2f0e;color:#f3d27a}
html[data-theme="dark"] .st-rejected,html[data-theme="dark"] .st-cancelled{background:#3d1714;color:#f2a49b}

/* news & announcements */
.home-hero{padding-bottom:4.5rem}
.home-hero .h-page-title{color:#fff;max-width:820px}
.home-lead{color:rgba(255,255,255,.82);max-width:640px;margin-bottom:1.6rem}
.post-grid{align-items:stretch}
.post-card{display:flex;flex-direction:column;gap:.4rem;color:var(--ink);padding:1.4rem}
.post-card:hover{transform:translateY(-3px);color:var(--ink)}
.post-card h3{margin:0;font-size:1.1rem}
.post-cover{width:calc(100% + 2.8rem);margin:-1.4rem -1.4rem .6rem;aspect-ratio:16/9;object-fit:cover;border-radius:14px 14px 0 0}
.post-kind{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold-dark)}
.post-date{margin-top:auto}
.post-wrap{max-width:800px}
.post-title{font-size:clamp(1.8rem,4vw,2.6rem);margin:.4rem 0 .4rem}
.post-hero-img{width:100%;border-radius:14px;margin:1rem 0 1.4rem}
.prose{font-size:1.05rem;line-height:1.75}
.prose img{max-width:100%;height:auto;border-radius:10px}
.prose h2,.prose h3{margin-top:1.8rem}
.prose blockquote{margin:1.2rem 0;padding:.4rem 1.2rem;border-left:4px solid var(--gold);color:var(--muted)}
.prose table{margin:1rem 0}
.ann-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.9rem}
.ann-list li{border-bottom:1px solid var(--line);padding-bottom:.9rem}
.ann-list li:last-child{border-bottom:0;padding-bottom:0}
.ann-list a{font-weight:700;color:var(--ink)}
.ann-list a:hover{color:var(--gold-dark)}
.ann-pin{font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--gold-dark);margin-right:.4rem}

/* partner messages */
.chat-panel{display:flex;flex-direction:column;gap:1rem}
.chat-log{display:flex;flex-direction:column;gap:.7rem;max-height:60vh;min-height:220px;overflow-y:auto;padding:.4rem}
.chat-msg{max-width:78%;padding:.7rem 1rem;border-radius:14px;background:var(--bg-alt);border:1px solid var(--line)}
.chat-msg.me{align-self:flex-end;background:#fff0e8;border-color:#ffd9c6;border-bottom-right-radius:4px}
.chat-msg.them{align-self:flex-start;border-bottom-left-radius:4px}
.chat-meta{font-size:.76rem;color:var(--muted);margin-bottom:.2rem}
.chat-body{overflow-wrap:anywhere}
.chat-form{display:flex;gap:.8rem;align-items:flex-end}
.chat-form textarea{min-height:56px;flex:1}
@media (max-width:640px){.chat-form{flex-direction:column;align-items:stretch}.chat-msg{max-width:92%}}
html[data-theme="dark"] .chat-msg.me{background:#2e1b26;border-color:#5a3346}
html[data-theme="dark"] .post-card,html[data-theme="dark"] .card{background:var(--card-bg);border-color:var(--line)}

/* notifications bell (unread messages) */
.nav-msg{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.28);color:#fff}
.nav-msg:hover{background:rgba(255,255,255,.14);color:#fff}
.nav-msg svg{width:18px;height:18px}
.nav-msg .count{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#ff8a5b;color:#0f0b1a;font-size:.7rem;font-weight:800;line-height:18px;text-align:center}

/* deposit / withdraw */
.dep-qr svg{width:200px;height:200px;background:#fff;border-radius:12px;padding:6px;display:block;margin:0 0 1rem}
.dep-addr{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-bottom:.8rem}
.dep-addr code{font-size:.95rem;padding:.55rem .8rem;border-radius:8px;background:var(--bg-alt);border:1px solid var(--line);overflow-wrap:anywhere;word-break:break-all;color:var(--ink)}
.dep-rules{padding-left:1.1rem;margin:0;display:flex;flex-direction:column;gap:.55rem;font-size:.93rem}
.mono-cell{font-family:ui-monospace,Consolas,monospace;font-size:.8rem;overflow-wrap:anywhere;max-width:260px}
.panel select{width:100%}

/* status messages: readable in the dark theme */
html[data-theme="dark"] .form-status{background:#123526;color:#9be8c0}
html[data-theme="dark"] .form-status.err{background:#3d1714;color:#f6b3aa}

.kpi .v.kpi-sm{font-size:1.25rem}
