/* Page.af — one stylesheet for the public site, user area and admin. RTL/LTR safe (logical properties). */
:root {
  --green: #0b6b3a; --green-d: #07492a; --green-l: #e7f4ec;
  --red: #c8102e; --red-d: #9d0c24;
  --ink: #17201b; --muted: #5d6b63; --line: #dfe5e1; --bg: #f5f7f6; --card: #fff;
  --gold: #f5a623; --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
  --font: "Vazirmatn", "Noto Naskh Arabic", Tahoma, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6rem; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8rem; }
table { border-collapse: collapse; width: 100%; }
code { background: #eef2ef; padding: .1em .35em; border-radius: 4px; font-size: .9em; direction: ltr; unicode-bidi: embed; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 0; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.danger { color: var(--red); } .right { text-align: end; } .nowrap { white-space: nowrap; }
.pre { overflow-wrap: anywhere; }
.inline { display: inline; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1b8f55; outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: inherit; font-weight: 600; padding: .55rem 1.1rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; line-height: 1.3; transition: background .15s, border-color .15s; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover { background: var(--green-d); }
.btn-accent { background: var(--red); color: #fff; } .btn-accent:hover { background: var(--red-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); } .btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-danger { background: #fff; color: var(--red); border-color: #f0c2c9; } .btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: .3rem .7rem; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.block-btn { display: flex; width: 100%; margin-bottom: .6rem; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: .1rem .6rem; cursor: pointer; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.badge { background: var(--red); color: #fff; border-radius: 99px; font-size: .72rem; padding: .05rem .5rem; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ---------- header / nav ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-block: .4rem; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; font-size: 1.25rem; text-decoration: none !important; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; font-weight: 800; }
.nav { display: none; flex-basis: 100%; flex-direction: column; gap: .2rem; padding-bottom: .6rem; }
.nav.open { display: flex; }
.nav > a { padding: .5rem .7rem; border-radius: 8px; color: var(--ink); font-weight: 600; }
.nav > a:hover, .nav > a.on { background: var(--green-l); color: var(--green); text-decoration: none; }
.nav-end { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .4rem; }
.nav-toggle { margin-inline-start: auto; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: .25rem .6rem; font-size: .85rem; color: var(--ink); } .lang a.on { background: var(--green); color: #fff; } .lang a:hover { text-decoration: none; }
.searchbar { padding-bottom: .7rem; }
.search { display: flex; gap: .5rem; position: relative; flex-wrap: wrap; }
.search input[type=search] { flex: 1 1 200px; }
.search select { flex: 0 1 190px; }
.suggest { position: absolute; inset-inline: 0; top: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 50; overflow: hidden; }
.suggest a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .9rem; color: var(--ink); }
.suggest a:hover, .suggest a.on { background: var(--green-l); text-decoration: none; }
.suggest small { color: var(--muted); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex: 1; flex-basis: auto; flex-direction: row; align-items: center; padding: 0; }
  .nav-end { margin-inline-start: auto; margin-top: 0; }
  .bar { flex-wrap: nowrap; }
}

/* ---------- forms ---------- */
input, select, textarea { font: inherit; color: inherit; background: #fff; border: 1px solid #c9d2cd; border-radius: 10px; padding: .55rem .75rem; width: 100%; min-height: 42px; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--green); }
input[type=file] { padding: .4rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #1b8f55; border-color: #1b8f55; }
.field { display: block; margin-bottom: .9rem; }
.field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.check { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .8rem; cursor: pointer; }
.err { color: var(--red); display: block; margin-top: .25rem; font-size: .85rem; }
.row2, .row3 { display: grid; gap: 0 .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: .1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
fieldset.group { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
legend { font-weight: 700; padding-inline: .4rem; }
.inline-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.inline-filter input[type=search] { flex: 1 1 220px; width: auto; } .inline-filter select { width: auto; }
.rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .1rem; }
.rating legend { float: none; width: 100%; }
.rating input { position: absolute; opacity: 0; width: 1px; }
.rating label { font-size: 1.9rem; color: #c9d2cd; cursor: pointer; line-height: 1; }
.rating input:checked ~ label, .rating label:hover, .rating label:hover ~ label { color: var(--gold); }
.rating input:focus-visible + label { outline: 2px solid #1b8f55; }

/* ---------- layout blocks ---------- */
main { padding-block: 1.2rem 2.5rem; min-height: 60vh; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.narrow { max-width: 520px; margin-inline: auto; } .narrow.wide { max-width: 780px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.block { margin-block: 1.8rem; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; flex-wrap: wrap; }
.block-head h2 { margin: 0; }
.center-box { text-align: center; padding: 3rem 1rem; }
.big-code { font-size: 4rem; color: var(--green); margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.flash { padding: .75rem 1rem; border-radius: 10px; margin-bottom: .8rem; border: 1px solid; }
.flash-success { background: #e8f6ee; border-color: #b7e0c8; color: #0b5a31; }
.flash-error { background: #fdecef; border-color: #f4c0c8; color: #8d1226; }
.flash-warn, .flash-info { background: #fff6e0; border-color: #f2dc9b; color: #6b4b00; }
.flash a { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.chip-link, .chip { display: inline-block; padding: .15rem .7rem; border-radius: 99px; background: var(--green-l); color: var(--green-d); font-size: .82rem; font-weight: 600; }
.chip-link { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: .3rem .9rem; } .chip-link.on { background: var(--green); border-color: var(--green); color: #fff; } .chip-link:hover { text-decoration: none; border-color: var(--green); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
.status { display: inline-block; padding: .05rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: #eef0ef; }
.st-active { background: #dcf3e6; color: #0b5a31; } .st-pending { background: #fff0cc; color: #7a5200; }
.st-rejected, .st-suspended, .st-expired { background: #fbdde2; color: #8d1226; } .st-sold, .st-hidden { background: #e4e8e6; color: #43504a; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* ---------- hero / home ---------- */
.hero { background: linear-gradient(135deg, var(--green) 0%, #0f8a4b 60%, #0b6b3a 100%); color: #fff; border-radius: 18px; padding: 2rem 1.2rem; text-align: center; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: .4rem; } .hero p { opacity: .95; max-width: 640px; margin-inline: auto; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 1.2rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: .9rem .5rem; color: #fff; display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.tile:hover { background: rgba(255,255,255,.24); text-decoration: none; } .tile-icon { font-size: 1.9rem; }
.tile small { opacity: .85; }
.rates { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; margin-top: 1rem; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.cat { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; color: var(--ink); font-size: .92rem; }
.cat:hover { border-color: var(--green); text-decoration: none; background: var(--green-l); } .cat span { font-size: 1.4rem; } .cat small { color: var(--muted); }
.info-list { display: flex; flex-wrap: wrap; gap: .6rem; } .info-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem 1rem; color: var(--ink); font-weight: 600; } .info-item:hover { border-color: var(--green); text-decoration: none; }
.cta { background: var(--green-l); border-radius: 18px; text-align: center; padding: 2rem 1rem; margin-top: 2rem; }

/* ---------- cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.card.is-featured { border-color: var(--gold); }
.card-img { position: relative; display: block; aspect-ratio: 4/3; background: var(--green-l); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.ph, .ph-big, .ph-sm { display: grid; place-items: center; font-size: 2.6rem; width: 100%; height: 100%; background: var(--green-l); }
.ph-big { aspect-ratio: 4/3; font-size: 6rem; border-radius: var(--radius); } .ph-sm { width: 72px; height: 54px; font-size: 1.6rem; border-radius: 8px; flex: none; }
.ribbon { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; background: var(--gold); color: #3b2a00; font-size: .72rem; font-weight: 800; padding: .1rem .6rem; border-radius: 99px; }
.fav { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #9aa5a0; font-size: 1.1rem; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.fav.on, .fav-btn.on { color: var(--red); } .fav:hover { color: var(--red); }
.card-body { padding: .7rem .85rem .9rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card-body h3 { font-size: 1rem; margin: .2rem 0 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { color: var(--ink); }
.card-body p { margin: 0; }
.meta { color: var(--muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: center; }
.foot-meta { justify-content: space-between; margin-top: auto; padding-top: .4rem; }
.price { color: var(--green-d); font-weight: 800; } .big-price { font-size: 1.6rem; }

/* ---------- browse / filters ---------- */
.layout-side { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .layout-side { grid-template-columns: 260px 1fr; align-items: start; } .filters { position: sticky; top: 130px; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; margin: 1.5rem 0; }
.pager a, .pager span { min-width: 38px; text-align: center; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.pager .on { background: var(--green); color: #fff; border-color: var(--green); } .pager a:hover { text-decoration: none; border-color: var(--green); }

/* ---------- listing detail ---------- */
.detail { display: grid; gap: 1.2rem; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 340px; align-items: start; } .sticky { position: sticky; top: 130px; } }
.gallery { margin-bottom: 1rem; }
.gallery-main { background: #000; border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; max-height: 520px; object-fit: contain; margin-inline: auto; }
.gallery-thumbs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 8px; padding: 0; background: none; cursor: pointer; overflow: hidden; } .gallery-thumbs button.on { border-color: var(--green); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.2rem; margin: 1rem 0; } .facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 600; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.2rem; } .prose ul { padding-inline-start: 1.3rem; } .prose-page { max-width: 820px; margin-inline: auto; }
.seller { display: flex; align-items: center; gap: .7rem; color: var(--ink); margin-bottom: .8rem; } .seller small { display: block; color: var(--muted); } .seller:hover { text-decoration: none; }
.seller img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--green-l); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.avatar.big { width: 84px; height: 84px; font-size: 2.4rem; }
.phone-out { margin-bottom: .6rem; }
.msg-box, .report { margin-top: .5rem; } summary { cursor: pointer; font-weight: 700; padding: .4rem 0; }
.share { display: flex; gap: .8rem; flex-wrap: wrap; margin-block: .8rem; font-size: .9rem; }
.review { border-bottom: 1px solid var(--line); padding-block: .6rem; }
.store-banner { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.store-info { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.store-logo { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; } .info-card { color: var(--ink); } .info-card:hover { text-decoration: none; border-color: var(--green); }
.contacts { list-style: none; margin: 0; padding: 0; } .contacts li { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); } .contacts li:last-child { border: 0; }

/* ---------- account ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stats > div, .stats > a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; color: var(--ink); }
.stats b { font-size: 1.7rem; color: var(--green-d); } .stats span { color: var(--muted); font-size: .88rem; } .stats a:hover { text-decoration: none; border-color: var(--green); }
.attention b { color: var(--red); }
.rows { display: flex; flex-direction: column; }
.row-item { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .7rem 0; border-top: 1px solid var(--line); } .row-item:first-child { border-top: 0; }
.row-item img { border-radius: 8px; object-fit: cover; width: 72px; height: 54px; flex: none; } .grow { flex: 1 1 240px; min-width: 0; } .grow a { overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: .5rem; } .thumb { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .8rem; } .thumbs img { border-radius: 8px; object-fit: cover; width: 90px; height: 68px; }
.msg.unread { border-inline-start: 4px solid var(--red); } .msg header { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: baseline; margin-bottom: .4rem; }
.danger-zone { border-color: #f0c2c9; }

/* ---------- tables (admin) ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table th, .table td { text-align: start; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; background: #fafbfa; }
.table td.right { text-align: end; }
.panel > .table { margin: 0; }
.cell-media { display: flex; gap: .7rem; align-items: center; } .cell-media img { border-radius: 6px; object-fit: cover; width: 56px; height: 42px; }

/* ---------- admin shell ---------- */
body.admin { background: #eef1ef; }
.admin-shell { display: grid; min-height: 100vh; }
.admin-nav { background: #10231a; color: #cfe3d8; padding: 1rem .8rem; display: flex; flex-direction: column; gap: 1rem; }
.admin-nav .brand { color: #fff; } .admin-nav nav { display: flex; flex-wrap: wrap; gap: .2rem; }
.admin-nav nav a { color: #cfe3d8; padding: .45rem .75rem; border-radius: 8px; font-size: .92rem; } .admin-nav nav a:hover, .admin-nav nav a.on { background: #1b3d2b; color: #fff; text-decoration: none; }
.admin-nav-foot { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .88rem; } .admin-nav-foot a, .admin-nav-foot .linklike { color: #9fc4ae; }
.admin-main { padding: 1.2rem 1rem 3rem; min-width: 0; }
@media (min-width: 960px) {
  .admin-shell { grid-template-columns: 230px 1fr; }
  .admin-nav { position: sticky; top: 0; height: 100vh; overflow-y: auto; } .admin-nav nav { flex-direction: column; flex-wrap: nowrap; } .admin-nav-foot { margin-top: auto; flex-direction: column; gap: .4rem; }
  .admin-main { padding: 1.6rem 2rem 3rem; }
}

/* ---------- footer ---------- */
.site-footer { background: #10231a; color: #cfe3d8; margin-top: 2rem; padding-top: 2rem; }
.foot { display: grid; gap: 1.5rem; grid-template-columns: 1fr; } @media (min-width: 720px) { .foot { grid-template-columns: 2fr 1fr 1fr; } }
.foot a, .foot span { display: block; color: #cfe3d8; padding-block: .15rem; } .foot h4 { color: #fff; } .foot .brand-name { color: #fff; font-size: 1.2rem; } .social a { display: inline; margin-inline-end: .8rem; }
.copy { padding-block: 1.2rem; margin-top: 1rem; border-top: 1px solid #1b3d2b; font-size: .85rem; color: #8fb09f; }

@media print { .site-header, .site-footer, .admin-nav, .btn, .fav { display: none !important; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- plans, wallet, boosts ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .4rem; }
.plan.pop { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-l), var(--shadow); }
.plan.on { background: var(--green-l); }
.plan h2, .plan h3 { margin: 0; }
.plan-price { font-size: 1.5rem; font-weight: 800; color: var(--green-d); margin: 0; }
.plan form { margin-top: auto; }
.ticks { list-style: none; padding: 0; margin: .4rem 0 1rem; } .ticks li { padding-inline-start: 1.5rem; position: relative; margin-bottom: .3rem; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 800; }
.small-plans { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } .small-plans .plan { text-align: center; }
.block-btn.is-disabled { opacity: .6; cursor: default; text-align: center; }
.howto { background: var(--green-l); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.pkg { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
.ok { color: var(--green-d); }
.plan-form h3 { margin: 0 0 .4rem; }

/* ---------- verified badge ---------- */
.vbadge { display: inline-block; background: #1d9bf0; color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; line-height: 1; padding: .18rem .45rem; vertical-align: middle; }
.vbadge.big { font-size: 1rem; padding: .3rem .55rem; }

/* ---------- chat ---------- */
.chat-row { color: inherit; text-decoration: none !important; } .chat-row.unread { background: var(--green-l); } .chat-row:hover { background: #eef5f0; }
.snippet { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.chat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; height: min(60vh, 520px); overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 78%; padding: .5rem .8rem; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.bubble .btxt { display: block; unicode-bidi: plaintext; }
.bubble small { display: block; font-size: .7rem; opacity: .7; margin-top: .15rem; }
.bubble.mine { align-self: flex-end; background: var(--green); color: #fff; border-end-end-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: #eef2ef; border-end-start-radius: 4px; }
.chat-form { display: flex; gap: .6rem; margin: .8rem 0 .4rem; align-items: stretch; } .chat-form textarea { flex: 1; resize: vertical; }
