/* Hstena account, wallet, orders and admin — Hstora-style surfaces */
.acct { padding-top: 22px; padding-bottom: 48px; }
.acct-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.acct-tabs a, .pill-tabs a { padding: 8px 14px; border-radius: 999px; background: var(--hstore-surface-bg); border: 1px solid var(--border-color); color: var(--text-color); font-weight: 600; font-size: 14px; text-decoration: none; }
.acct-tabs a.on, .pill-tabs a.on { background: linear-gradient(180deg, var(--hstore-button-start), var(--hstore-button-end)); color: #111827; border-color: transparent; }
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.acct-card { background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.acct-card h2, .acct-card .h2 { font-size: 20px; margin: 0 0 12px; color: var(--dark-color); }
.acct-card .h3 { font-size: 16px; margin: 16px 0 8px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.acct-grid .acct-card { margin-bottom: 0; } .acct-grid { margin-bottom: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-grid .acct-card { margin: 0; }
.big-num { font-size: 30px; font-weight: 800; color: var(--price-color); margin: 4px 0 12px; }
.acct-email { font-weight: 700; margin: 4px 0 12px; word-break: break-all; }
.muted { color: var(--text-muted); } .small { font-size: 13px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.tbl th { color: var(--text-muted); font-weight: 600; font-size: 13px; }
.tbl td.ttl { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .neg { color: #dc2626; } .tbl .pos { color: #16a34a; }
.st { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #f1f5f9; color: #334155; }
.st-delivered, .st-paid.inv { background: #dcfce7; color: #166534; }
.st-paid, .st-processing, .st-pending { background: #fff7ed; color: #c2410c; }
.st-failed, .st-expired { background: #fee2e2; color: #991b1b; }
.st-refunded { background: #e0e7ff; color: #3730a3; }
.hs-alert { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.hs-alert.ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.hs-alert.err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 12px 0; font-size: 14px; }
.kv span { color: var(--text-muted); }
.ttl-lg { font-weight: 600; margin: 0 0 8px; word-break: break-word; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
textarea.delivery { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; border: 1px solid var(--border-color); border-radius: 8px; padding: 10px; background: var(--hstore-surface-raised); color: var(--text-color); }
.dep-form label, .buy-form label, .inline-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.dep-form select, .dep-form input, .buy-form input, .inline-form input, .acct-card input.mono, .acct-card input[type=number], .acct-card input[type=search], .acct-card input[name=note] { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--hstore-surface-bg); color: var(--text-color); font: inherit; }
.tbl input { margin-top: 0 !important; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 12px; }
.inline-form input { width: auto; display: inline-block; margin-top: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy-row { display: flex; gap: 8px; margin-bottom: 12px; }
.copy-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; font-family: ui-monospace, monospace; background: var(--hstore-surface-raised); color: var(--text-color); }
.notif { list-style: none; padding: 0; margin: 0; }
.notif li { border-bottom: 1px solid var(--border-color); }
.notif li a { display: grid; gap: 2px; padding: 12px 4px; color: var(--text-color); text-decoration: none; }
.notif li.unread a strong::before { content: "● "; color: var(--primary-color); }
.notif small { color: var(--text-muted); }
.empty { padding: 18px; text-align: center; color: var(--text-muted); }
.buy-form { margin: 8px 0 14px; }
.buy-form input[name=qty] { max-width: 160px; }
.buy-line { display: flex; justify-content: space-between; margin: 6px 0; } .buy-line.small { font-size: 14px; color: var(--text-muted); }
.buy-total { color: var(--price-color); font-size: 20px; }
.buy-form .btn { width: 100%; margin-top: 10px; }
.buy-form.short .buy-line.small a { color: #dc2626; font-weight: 700; }
.buy-note, .buy-signin { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.bal-pill { font-weight: 800; color: var(--price-color) !important; }
.bell { position: relative; }
.dot-count { position: absolute; top: -2px; right: -6px; background: #ef4444; color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 5px; font-weight: 700; }
.dropdown-menu form { margin: 0; } .dropdown-menu form button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 14px; font: inherit; color: inherit; cursor: pointer; }
.mobile-panel form { margin: 8px 0 0; }
[data-theme="dark"] .hs-alert { background: #3b2a14; color: #ffb86b; border-color: #6b4a1f; }
[data-theme="dark"] .hs-alert.ok { background: #12301f; color: #86efac; border-color: #1f5133; }
[data-theme="dark"] .hs-alert.err { background: #3a1616; color: #fca5a5; border-color: #5b2121; }
@media (max-width: 640px) { .acct-card { padding: 16px; } .big-num { font-size: 26px; } .bal-pill, .bell { display: none !important; } }
/* —— Hstora-style mobile header + floating menu card (v20261116m2) —— */
.m-icon { display: none !important; }
@media (max-width: 991.98px) {
  .tools { gap: 8px; }
  .m-icon, .menu-toggle { display: inline-flex !important; width: 44px !important; height: 44px !important; border: 1px solid #dfe5ec !important; border-radius: 12px !important; background: #fff !important; color: #334155 !important; padding: 0 !important; align-items: center; justify-content: center; flex: 0 0 auto; }
  [data-theme="dark"] .m-icon, [data-theme="dark"] .menu-toggle { background: var(--hstore-surface-bg) !important; border-color: var(--border-color) !important; color: var(--text-color) !important; }
  .topbar { position: sticky; }
  .topbar > .mobile-panel.open { position: absolute !important; top: calc(100% - 4px); right: 12px; left: auto; width: min(320px, calc(100vw - 24px)); padding: 0 !important; border: 0 !important; background: transparent !important; z-index: 60; display: block !important; }
}
.m-card { background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,23,42,.18), 0 2px 6px rgba(15,23,42,.06); overflow: hidden; }
.mobile-panel .m-card .mc-row, .mobile-panel .m-card details > summary { display: flex !important; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px !important; margin: 0 !important; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0 !important; background: none; color: var(--text-color) !important; font: 500 16px/22px var(--font) !important; text-decoration: none; cursor: pointer; box-sizing: border-box; list-style: none; }
.m-card details.mc-det { display: block; border-bottom: 1px solid var(--border-color); }
.m-card details.mc-det:last-child { border-bottom: 0; }
.m-card details > summary::-webkit-details-marker { display: none; }
.m-card details > summary { border-bottom: 0 !important; }
.m-card details[open] > summary .mi:last-child { transform: rotate(180deg); }
.m-card .mc-row:last-child { border-bottom: 0; }
.m-card .mi { flex: 0 0 auto; color: var(--text-muted); }
.m-card summary .mi:last-child { margin-left: auto; }
.m-card .lang-flag { flex: 0 0 auto; }
.m-card .mc-switch { margin-left: auto; width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; }
.m-card .mc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
[data-theme="dark"] .m-card .mc-switch { background: var(--primary-color); }
[data-theme="dark"] .m-card .mc-switch::after { left: 19px; }
.m-card .mc-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.m-card .mc-wallet .mc-wtext { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 0 !important; min-height: 0 !important; padding: 0 !important; color: var(--text-color) !important; text-decoration: none; font-size: 16px !important; width: auto !important; }
.m-card .mc-wallet small { color: var(--text-muted); font-size: 13px; }
.mobile-panel .m-card a.mc-add { margin: 0 0 0 auto !important; width: auto !important; min-height: 34px !important; padding: 6px 12px !important; font-size: 14px !important; font-weight: 600; white-space: nowrap; }
.m-card .mc-subrows { padding: 0; display: flex; flex-direction: column; }
.mobile-panel .m-card .mc-subrows a,
.mobile-panel .m-card .mc-subrows button,
.mobile-panel .m-card .mc-sub {
  display: flex !important; align-items: center; gap: 12px;
  min-height: 48px !important; padding: 10px 16px 10px 20px !important;
  margin: 0 !important; border: 0; border-radius: 0 !important;
  background: none; font: 500 16px/22px var(--font) !important;
  color: var(--text-color) !important; width: 100%; text-decoration: none;
  cursor: pointer; box-sizing: border-box; text-align: left;
}
.m-card .mc-subrows form,
.m-card .mc-logout-form { margin: 0; width: 100%; }
.m-card .mc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; font-weight: 600; }
.m-card details.mc-user > summary {
  background: #ffe8cc !important;
  color: #e67600 !important;
}
.m-card details.mc-user > summary .mi,
.m-card details.mc-user > summary .mc-name { color: #e67600 !important; }

.m-card details.mc-lang[open] > summary {
  background: #ffe8cc !important;
  color: #e67600 !important;
}
.m-card details.mc-lang[open] > summary span,
.m-card details.mc-lang[open] > summary .mi { color: #e67600 !important; }
.m-card .lang-flag, .lang-opt .lang-flag, .lang-drop .lang-flag, .mc-lang-opt .lang-flag {
  display: inline-block; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15,23,42,.12);
  flex: 0 0 auto; vertical-align: middle; overflow: hidden;
}
.m-card .mc-lang-opt, .dropdown-menu .lang-opt {
  display: flex; align-items: center; gap: 10px;
}
.m-card .mc-lang-opt.active, .dropdown-menu .lang-opt.active, a.lang-opt.active {
  background: #e8f1ff !important;
  color: #2563eb !important;
}
.m-card .mc-lang-opt.active span, .dropdown-menu .lang-opt.active span { color: #2563eb !important; }
[data-theme="dark"] .m-card details.mc-lang[open] > summary,
[data-theme="dark"] .m-card details.mc-user > summary { background: #3a2a14 !important; color: #fb923c !important; }
[data-theme="dark"] .m-card .mc-lang-opt.active, [data-theme="dark"] .dropdown-menu .lang-opt.active {
  background: #1e3a5f !important; color: #93c5fd !important;
}

.m-card .mc-split { display: block !important; height: 1px !important; min-height: 1px !important; max-height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: var(--border-color) !important; width: 100%; flex: 0 0 1px; }
.m-card .mc-sub .mi { flex: 0 0 auto; color: var(--text-muted); }
.mobile-panel .m-card .mc-logout,
.mobile-panel .m-card .mc-logout span,
.m-card .mc-logout .mi { color: #e11d48 !important; }
.stock-alert-wrap, .stock-alert-form { margin: 10px 0 0; }
.stock-alert-form .btn.on { border-color: var(--primary-color); color: var(--primary-color); }
/* —— seller —— */
.sell-hero .hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.sell-kicker { display: inline-flex; align-items: center; gap: 6px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.sell-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sell-stats > div { background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.sell-stats strong { font-size: 24px; color: var(--price-color); font-weight: 800; }
.sell-stats span { color: var(--text-muted); font-size: 13px; }
.sell-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sell-benefits .feature-card { text-align: left; }
.sell-ico { font-size: 28px; display: inline-block; margin-bottom: 6px; }
.sell-steps { list-style: none; counter-reset: st; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sell-steps li { counter-increment: st; background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.sell-steps li::before { content: counter(st); width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, var(--hstore-button-start), var(--hstore-button-end)); color: #111827; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sell-steps span { color: var(--text-muted); font-size: 14px; }
.sell-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-pick, .radio-row { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pick legend, .radio-row legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; width: 100%; }
.acct-card label.chip { display: inline-flex !important; align-items: center; gap: 6px; border: 1px solid var(--border-color); border-radius: 999px; padding: 6px 12px; font-weight: 500; margin: 0; cursor: pointer; }
.acct-card label.chip input { display: inline-block !important; width: auto !important; margin: 0 !important; }
.dep-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--hstore-surface-bg); color: var(--text-color); font: inherit; box-sizing: border-box; }
.dep-form input[type=file] { padding: 8px; }
.dep-form .check input { display: inline-block !important; width: auto !important; margin: 0 6px 0 0 !important; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sd-head .h2 { margin: 0; }
.app-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; margin-top: 12px; }
.app-card h3 { margin: 0; font-size: 17px; }
.app-desc { white-space: pre-wrap; background: var(--hstore-surface-raised); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.nowrap { white-space: nowrap; }
.dispute-box summary { list-style: none; display: inline-flex; cursor: pointer; }
.dispute-box summary::-webkit-details-marker { display: none; }
.dispute-box form { margin-top: 12px; }
@media (max-width: 860px) { .sell-hero .hero-inner { grid-template-columns: 1fr; } .sell-benefits { grid-template-columns: 1fr; } .sell-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .sell-steps { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; } .hero-actions .btn { width: 100%; } }

/* ---- p3 (20261116p3): favorites, messages, help pages, footer ---- */
.fav-form { display: contents; }
.wishlist.on, .product-main-fav.on { color: #ef4444 !important; }
.wishlist.on svg path, .product-main-fav.on svg path { fill: #ef4444; stroke: #ef4444; }
a.wishlist { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.m-icon { position: relative; }
.ib-badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.ib-badge.soft { background: #e67600; }
.empty-state { text-align: center; padding: 40px 16px; background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 16px; }
.empty-state svg { width: 40px; height: 40px; color: #e67600; }
.empty-state h2 { font-size: 20px; margin: 10px 0 6px; } .empty-state p { color: var(--text-muted); margin: 0 0 16px; }
.fav-grid { margin-bottom: 16px; }
.th-list { background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; }
.th-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color); color: var(--text-color); text-decoration: none; }
.th-row:last-child { border-bottom: 0; } .th-row:hover { background: rgba(230,118,0,.05); }
.th-row.unread .th-name, .th-row.unread .th-snip { font-weight: 700; color: var(--title-color); }
.th-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #fff3e6; color: #c2410c; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.th-av.sup { background: linear-gradient(180deg, var(--hstore-button-start), var(--hstore-button-end)); color: #fff; }
.th-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.th-top { display: flex; justify-content: space-between; gap: 8px; } .th-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-time { color: var(--text-muted); font-size: 12px; flex: 0 0 auto; }
.th-subj { font-size: 13px; color: var(--text-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-snip { font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-dot { width: 10px; height: 10px; border-radius: 50%; background: #e67600; flex: 0 0 10px; }
.chip-sup { background: #fff3e6 !important; color: #c2410c !important; }
.chat-wrap { background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-color); }
.chat-back { font-size: 28px; line-height: 1; color: var(--text-color); text-decoration: none; padding: 0 4px; }
.chat-title { flex: 1; min-width: 0; display: flex; flex-direction: column; } .chat-title span { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 240px; overflow-y: auto; background: #f7f8fa; }
[data-theme="dark"] .chat-body { background: rgba(255,255,255,.02); }
.msg { display: flex; flex-direction: column; max-width: 82%; } .msg.mine { align-self: flex-end; align-items: flex-end; } .msg.theirs { align-self: flex-start; }
.msg-from { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: 0 4px 3px; } .msg.staff .msg-from { color: #c2410c; }
.msg-bubble { padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; word-break: break-word; background: #fff; border: 1px solid var(--border-color); border-bottom-left-radius: 6px; }
[data-theme="dark"] .msg-bubble { background: var(--hstore-surface-bg); }
.msg.mine .msg-bubble { background: linear-gradient(180deg, var(--hstore-button-start), var(--hstore-button-end)); color: #1f1300; border: 0; border-bottom-left-radius: 16px; border-bottom-right-radius: 6px; }
.msg-time { font-size: 11px; color: var(--text-muted); margin: 3px 6px 0; }
.msg-day { align-self: center; font-size: 11.5px; color: var(--text-muted); background: rgba(0,0,0,.05); padding: 3px 10px; border-radius: 999px; }
.chat-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border-color); align-items: flex-end; margin: 0; }
.chat-compose textarea { flex: 1; resize: none; border-radius: 12px; border: 1px solid var(--border-color); padding: 10px 12px; font: inherit; min-height: 44px; background: var(--hstore-surface-bg); color: var(--text-color); }
.chat-compose .btn { height: 44px; border-radius: 12px; }
.chat-note { padding: 0 12px 10px; margin: 0; }
.acct-card.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.ask-btn { width: 100%; justify-content: center; display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; }
.ask-btn .mi { width: 18px; height: 18px; }
.order-msg { margin: 0 0 16px; }
.footer-logout { margin: 0; display: inline; } .footer-logout button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-logout button:hover { text-decoration: underline; }
.legal .lead { font-size: 17px; color: var(--text-color); }
.legal section { margin-top: 22px; } .legal h2 { font-size: 19px; margin-bottom: 8px; }
.legal ul, .legal ol { padding-left: 20px; } .legal li { margin-bottom: 6px; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; } .legal-toc a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-color); font-size: 13px; text-decoration: none; color: var(--text-color); }
.legal details { border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--hstore-surface-bg); }
.legal details summary { font-weight: 700; cursor: pointer; } .legal details p { margin: 8px 0 0; }
.trust-grid, .contact-grid, .bp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0; }
.trust-card, .contact-card, .bp-grid > div { border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; background: var(--hstore-surface-bg); display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text-color); }
.trust-card strong { color: #c2410c; } .contact-card p, .trust-card span, .bp-grid p { margin: 0; color: var(--text-muted); font-size: 14px; }
.contact-card .btn { align-self: flex-start; margin-top: 6px; }
.bp-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } .bp-grid strong { font-size: 20px; color: #c2410c; }
.legal-help { margin-top: 24px; padding: 16px; border-radius: 14px; background: #fff3e6; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
[data-theme="dark"] .legal-help { background: rgba(230,118,0,.12); }
.legal-help .btn { margin-left: auto; }
@media (max-width: 640px) { .msg { max-width: 90%; } .chat-body { max-height: 62vh; } .legal-help .btn { margin-left: 0; } }
.chip { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: rgba(100,116,139,.12); color: var(--text-muted); margin-right: 4px; vertical-align: 1px; }

/* ---- sd (20261116sd): Hstora-style seller dashboard ---- */
.sd-layout { display: block; }
.sd-nav { background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.05); margin-bottom: 16px; overflow: hidden; }
[data-theme="dark"] .sd-nav { background: var(--hstore-surface-bg); border-color: var(--border-color); }
.sd-cur { width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: none; border: 0; font: inherit; font-size: 16px; font-weight: 700; color: var(--title-color); cursor: pointer; text-align: left; }
.sd-cur > span:first-of-type { flex: 1; }
.sd-caret { margin-left: auto; transition: transform .2s; color: var(--text-muted); }
.sd-nav.open .sd-caret { transform: rotate(180deg); }
.sd-list { display: none; border-top: 1px solid #eef1f5; padding: 6px 0; }
.sd-nav.open .sd-list { display: block; }
.sd-link { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--text-color); text-decoration: none; font-weight: 500; font-size: 15px; border-left: 3px solid transparent; }
.sd-link:hover { background: #f6f7f9; }
.sd-link.on { background: #f1f3f6; border-left-color: #e67600; color: var(--title-color); font-weight: 700; }
[data-theme="dark"] .sd-link:hover, [data-theme="dark"] .sd-link.on { background: rgba(255,255,255,.06); }
.sd-ic { flex: 0 0 20px; color: #64748b; } .sd-link.on .sd-ic, .sd-cur .sd-ic { color: #e67600; }
.sd-link > span:first-of-type { flex: 1; }
.sd-badge { background: #ef4444; color: #fff; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.sd-ext { width: 16px; height: 16px; color: var(--text-muted); }
.sd-div { height: 1px; background: #eef1f5; margin: 6px 0; }
.sd-h { margin: 4px 0 14px; }
.sd-welcome { background: #fff; border: 1px solid #e6eaf0; border-radius: 16px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 10px rgba(15,23,42,.04); }
[data-theme="dark"] .sd-welcome { background: var(--hstore-surface-bg); border-color: var(--border-color); }
.sd-wtop { display: flex; gap: 14px; align-items: center; } .sd-wtop h1 { font-size: 21px; margin: 0 0 4px; line-height: 1.25; } .sd-wtop p { margin: 0; color: var(--text-muted); font-size: 14px; }
.sd-wact { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; } .sd-wact .btn { flex: 1; justify-content: center; }
.st-logo { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; object-fit: cover; background: #fff3e6; color: #c2410c; font-weight: 800; font-size: 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #f1e2d2; }
.st-logo.lg { width: 72px; height: 72px; flex-basis: 72px; } .st-logo.xl { width: 88px; height: 88px; flex-basis: 88px; font-size: 36px; border-radius: 20px; }
.sd-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.sd-stat { background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text-color); }
[data-theme="dark"] .sd-stat { background: var(--hstore-surface-bg); border-color: var(--border-color); }
.sd-stat span { font-size: 13px; color: var(--text-muted); } .sd-stat strong { font-size: 22px; color: var(--title-color); } .sd-stat small { font-size: 12px; color: #e67600; }
.sd-stat.hi { background: linear-gradient(180deg, #fff7ed, #fff); border-color: #fed7aa; }
.sd-stats.three { grid-template-columns: repeat(3, 1fr); } @media (max-width: 520px) { .sd-stats.three { grid-template-columns: 1fr; } .sd-stats.three .sd-stat { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; } }
a.hs-alert { display: block; text-decoration: none; margin-bottom: 10px; }
.sd-olist { display: flex; flex-direction: column; }
.sd-orow { display: flex; gap: 12px; align-items: center; padding: 12px 2px; border-bottom: 1px solid var(--border-color); color: var(--text-color); text-decoration: none; }
.sd-orow:last-child { border-bottom: 0; }
.sd-oid { font-weight: 800; color: #c2410c; min-width: 46px; } .sd-otitle { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; overflow: hidden; }
.sd-otitle small, .sd-oamt small { font-weight: 400; color: var(--text-muted); font-size: 12px; } .sd-oamt { text-align: right; font-weight: 700; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sd-ledger { display: flex; flex-direction: column; } .sd-lrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.sd-lrow:last-child { border-bottom: 0; } .sd-ltxt { display: flex; flex-direction: column; min-width: 0; } .sd-ltxt small { color: var(--text-muted); font-size: 12px; }
.sd-lrow .pos { color: #16a34a; } .sd-lrow .neg { color: #dc2626; } .sd-lrow .rev { color: var(--text-muted); text-decoration: line-through; }
.sd-disp blockquote, .app-card blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid #fca5a5; background: #fef2f2; border-radius: 6px; }
.stars { color: #f59e0b; letter-spacing: 1px; } .stars .off { color: #d7dde5; }
.rv-sum { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .rv-avg { display: flex; flex-direction: column; align-items: center; min-width: 110px; }
.rv-avg strong { font-size: 40px; line-height: 1; color: var(--title-color); } .rv-avg span:last-child { color: var(--text-muted); font-size: 13px; }
.rv-dist { flex: 1; min-width: 180px; } .rv-bar { display: grid; grid-template-columns: 32px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.rv-bar i { height: 8px; background: #eef1f5; border-radius: 99px; overflow: hidden; } .rv-bar b { display: block; height: 100%; background: #f59e0b; }
.rv-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); } .rv-item:last-child { border-bottom: 0; } .rv-item p { margin: 6px 0 0; }
.rv-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.rv-block { padding: 16px; border-top: 1px solid var(--border-color); } .rv-block h3 { margin: 0 0 8px; font-size: 17px; }
.rv-mine { margin: 10px 0; padding: 10px 12px; background: #fffbeb; border-radius: 10px; }
.star-pick { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-pick legend { width: 100%; font-weight: 600; margin-bottom: 4px; float: left; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { font-size: 32px; color: #d7dde5; cursor: pointer; line-height: 1; margin: 0 !important; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f59e0b; }
.star-pick input:focus-visible + label { outline: 2px solid #e67600; border-radius: 4px; }
.review-box summary { list-style: none; display: inline-flex; margin: 8px 0; } .review-box summary::-webkit-details-marker { display: none; }
.sd-logo-row { display: flex; gap: 14px; align-items: center; }
.sd-vok { display: flex; gap: 14px; align-items: center; } .sd-vok h2 { margin: 0 0 4px; } .sd-vbig { width: 48px; height: 48px; color: #16a34a; }
.vbadge { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; font-size: 12px; } .vb-ic { width: 14px; height: 14px; }
.st-head { display: flex; gap: 16px; align-items: flex-start; background: var(--hstore-surface-bg); border: 1px solid var(--border-color); border-radius: 18px; padding: 18px; margin: 16px 0; }
.st-info { flex: 1; min-width: 0; } .st-info h1 { font-size: 24px; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--text-muted); font-size: 14px; align-items: center; } .st-desc { margin: 10px 0; white-space: normal; }
@media (max-width: 520px) { .st-head { flex-direction: column; } }
s.was { color: var(--text-muted); font-weight: 500; font-size: .85em; margin-right: 2px; }
.promo-tag { display: inline-block; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.promo-note { background: #fef2f2; color: #b91c1c; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
@media (min-width: 992px) {
  .sd-page .page-shell, .sd-page .acct { max-width: 1240px; }
  .sd-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
  .sd-side { position: sticky; top: 84px; }
  .sd-cur { display: none; }
  .sd-list { display: block !important; border-top: 0; }
  .sd-stats { grid-template-columns: repeat(3, 1fr); }
  .sd-wact .btn { flex: 0 0 auto; }
  .sd-welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; } .sd-wact { margin-top: 0; }
}
@media (max-width: 991px) { .sd-page .acct, .store-page .page-shell { padding-left: 12px !important; padding-right: 12px !important; } }
.product-card .price-info .promo-tag { display: none; }
.product-card .price-info s.was { font-size: .78em; }

.mobile-panel .m-card .mc-sub.mc-dash { border-bottom: 1px solid var(--border-color) !important; }
.m-card .mc-logout-form { border-top: 1px solid var(--border-color); }

/* Wallet deposit flow — responsive Hstora-inspired layout */
.wallet-page { max-width: 900px; margin: 0 auto; }
.wallet-title { margin: 0 0 18px; font-size: 28px; line-height: 1.2; color: var(--title-color, var(--dark-color)); }
.wallet-main { padding: 0; overflow: hidden; border-radius: 16px; }
.wallet-balance-row { min-height: 92px; display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-bottom: 1px solid var(--border-color); }
.wallet-balance-icon { width: 30px; height: 30px; flex: 0 0 auto; color: var(--text-color); }
.wallet-balance-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wallet-balance-label { font-size: 19px; line-height: 1.25; font-weight: 750; color: var(--dark-color); }
.wallet-balance-divider { width: 1px; height: 30px; background: var(--border-color); margin: 0 2px; }
.wallet-balance-value { font-size: 28px; line-height: 1; font-weight: 800; color: var(--dark-color); }
.wallet-form-body { padding: 24px 26px 26px; }
.wallet-deposit-form { margin: 0; }
.wallet-step { margin: 0 0 22px; }
.wallet-step-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.wallet-step-heading h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 750; color: var(--dark-color); }
.wallet-step-number { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid #f2c88f; background: #fff8ed; color: #c66a08; font-size: 18px; font-weight: 700; }
[data-theme="dark"] .wallet-step-number { background: rgba(230,118,0,.12); border-color: rgba(255,184,107,.45); color: var(--primary-color); }
.wallet-field-label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 500; color: var(--text-color); }
.wallet-amount-control { min-height: 64px; display: flex; align-items: center; border: 1px solid var(--border-color); border-radius: 12px; background: var(--hstore-surface-bg); overflow: hidden; box-shadow: 0 1px 2px rgba(15,23,42,.03); }
.wallet-currency { padding: 0 17px; color: var(--text-color); font-size: 20px; flex: 0 0 auto; }
.wallet-currency-unit { border-left: 1px solid var(--border-color); font-size: 16px; }
.wallet-amount-control input { flex: 1 1 auto; min-width: 0; width: 100% !important; height: 62px; margin: 0 !important; padding: 0 14px !important; border: 0 !important; border-radius: 0 !important; outline: 0; background: transparent !important; color: var(--text-color); box-shadow: none !important; font: inherit; font-size: 21px; }
.wallet-amount-control input::placeholder { color: #7b8796; opacity: 1; }
.wallet-amount-control:focus-within, .wallet-select-wrap:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 18%, transparent); }
.wallet-minimum { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }
.wallet-select-wrap { min-height: 76px; display: flex !important; align-items: center; gap: 14px; margin: 0 !important; padding: 12px 17px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--hstore-surface-bg); }
.wallet-select-mark { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 50%; background: #f3f4f6; }
.wallet-select-icon { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.wallet-network-mark { background: #f3f4f6; }
.wallet-select-wrap select { display: block; width: 100%; min-width: 0; margin: 0 !important; padding: 10px 32px 10px 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--text-color); font: inherit; font-size: 17px; font-weight: 650; outline: 0; }
.wallet-deposit-note { display: flex; flex-direction: column; gap: 4px; margin: 3px 0 18px; padding: 13px 15px; border: 1px solid #b8ead7; border-radius: 11px; background: #effbf6; color: #225d4b; font-size: 14px; line-height: 1.45; }
[data-theme="dark"] .wallet-deposit-note { border-color: #285b49; background: #123027; color: #b8ead7; }
.wallet-deposit-note strong { font-size: 15px; }
.wallet-submit { width: 100%; min-height: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin: 0; border-radius: 12px; font-size: 20px; font-weight: 650; }
.wallet-submit svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wallet-crypto-hint { max-width: 760px; margin: 12px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.wallet-unavailable { padding: 22px 26px; }
.wallet-unavailable .hs-alert { margin: 0; }
.wallet-history { margin-top: 16px; }
.wallet-history h2 { margin: 0 0 12px; font-size: 19px; }
@media (max-width: 640px) {
  .wallet-page { width: 100%; }
  .wallet-title { margin-bottom: 14px; font-size: 27px; }
  .wallet-main { border-radius: 14px; }
  .wallet-balance-row { min-height: 76px; gap: 10px; padding: 17px 16px; }
  .wallet-balance-icon { width: 26px; height: 26px; }
  .wallet-balance-label { font-size: 17px; }
  .wallet-balance-value { font-size: 24px; }
  .wallet-form-body { padding: 20px 16px 22px; }
  .wallet-step { margin-bottom: 20px; }
  .wallet-step-heading { gap: 11px; margin-bottom: 12px; }
  .wallet-step-heading h2 { font-size: 18px; }
  .wallet-step-number { width: 38px; height: 38px; flex-basis: 38px; font-size: 16px; }
  .wallet-amount-control { min-height: 58px; }
  .wallet-amount-control input { height: 56px; padding: 0 9px !important; font-size: 19px; }
  .wallet-currency { padding: 0 12px; font-size: 18px; }
  .wallet-select-wrap { min-height: 68px; gap: 12px; padding: 10px 13px; }
  .wallet-select-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .wallet-select-wrap select { font-size: 16px; }
  .wallet-submit { min-height: 56px; font-size: 18px; }
  .wallet-unavailable { padding: 18px 16px; }
  .wallet-history { padding: 16px; }
}

/* Admin receiving addresses: one card per rail, no list bullets, Edit popup. */
.addr-card .addr-set-count { margin: 0 0 8px; }
.addr-rails,
.addr-subs,
.addr-list,
.addr-rails li,
.addr-subs li,
.addr-list li,
.addr-rail,
.addr-sub {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
}
.addr-rails::marker, .addr-subs::marker, .addr-list::marker,
.addr-rails li::marker, .addr-subs li::marker, .addr-list li::marker,
.addr-rail::marker, .addr-sub::marker { content: none !important; }
.addr-rails {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
}
.addr-rail {
  background: var(--hstore-surface-bg, #fff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.addr-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  border-left: 3px solid var(--hstore-button-end, #e67600);
  background: #fffaf5;
}
[data-theme="dark"] .addr-rail-head { background: rgba(230, 118, 0, .08); }
.addr-coin {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: var(--dark-color, #1e293b);
  overflow-wrap: anywhere;
}
.addr-rail-head .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.2;
}
.addr-subs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.addr-sub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main side"
    "meta side";
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  background: var(--hstore-surface-bg, #fff);
}
.addr-sub.addr-empty {
  display: block;
  border-style: dashed;
  padding: 12px;
  text-align: center;
}
.addr-row-main {
  grid-area: main;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}
.addr-wlabel {
  font-weight: 700;
  color: var(--dark-color, #1e293b);
  font-size: 14px;
}
.addr-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.3;
  flex: 0 0 auto;
}
.addr-badge.saved { background: #e7f6ec; color: #0d7a3d; }
.addr-badge.unset { background: #f1f3f5; color: #5c6570; }
.addr-preview {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-muted, #64748b);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.addr-meta {
  grid-area: meta;
  color: var(--text-muted, #64748b);
  font-size: 13px;
  white-space: nowrap;
  min-width: 0;
}
.addr-row-side {
  grid-area: side;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}
.addr-row-side .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 1.2;
}

body.addr-modal-open { overflow: hidden; }
.addr-modal[hidden] { display: none !important; }
.addr-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.addr-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.addr-modal-panel { position: relative; z-index: 1; width: 100%; max-width: 540px; max-height: 92vh; overflow: auto; background: var(--hstore-surface-bg, #fff); color: var(--text-color); border-radius: 16px 16px 0 0; padding: 20px 16px 24px; box-shadow: 0 -8px 30px rgba(0,0,0,.15); }
.addr-modal-panel h3 { margin: 0 0 4px; font-size: 20px; color: var(--dark-color); }
.addr-modal-label { display: block; font-weight: 600; margin: 12px 0 0; }
.addr-modal-label input[type=text] { display: block; width: 100%; box-sizing: border-box; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--hstore-surface-bg); color: var(--text-color); font: inherit; font-size: 16px; }
.addr-modal-addr { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.addr-modal-input { flex: 1; min-width: 0; width: 100%; box-sizing: border-box; min-height: 96px; font-size: 16px; line-height: 1.45; word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap; resize: vertical; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--hstore-surface-bg); color: var(--text-color); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.addr-modal-grid { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.addr-modal-grid input[type=number] { width: 96px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--hstore-surface-bg); color: var(--text-color); font: inherit; font-size: 16px; }
.addr-modal-en { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 22px; }
.addr-modal-en input { width: auto; margin: 0; }
.addr-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.addr-modal-actions .btn { min-height: 44px; }
#addrModalDelete { margin-left: auto; color: #9b1c1c; }
@media (min-width: 641px) {
  .addr-modal { align-items: center; padding: 24px; }
  .addr-modal-panel { border-radius: 16px; padding: 24px; }
}
@media (max-width: 640px) {
  .addr-rail-head { padding: 12px; gap: 10px; }
  .addr-subs { padding: 8px; }
  .addr-sub { padding: 10px; }
  .addr-modal-addr { flex-direction: column; }
  .addr-modal-addr .btn { align-self: flex-start; min-height: 40px; }
}
