﻿/* 23RO Robot SSO - public pages (home, help, privacy, developers, account).
   Uses the design tokens of site.css. Breakpoints follow Bootstrap: md 768, lg 992, xl 1200, xxl 1400. */

.public-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.site-main { flex: 1 0 auto; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: .5rem; z-index: 1100; padding: .5rem 1rem; border-radius: var(--radius-sm); background: var(--surface); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--surface); background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .navbar { padding-block: .65rem; }
.site-header .navbar-brand { display: flex; align-items: center; gap: .65rem; margin: 0; color: var(--text); }
.site-header .navbar-brand .brand-lockup__name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
.site-header .navbar-brand .brand-lockup__tag { font-size: .72rem; color: var(--text-muted); letter-spacing: .02em; direction: ltr; text-align: end; }
.site-header .nav-link { font-weight: 600; color: var(--text-muted); padding: .5rem .9rem !important; border-radius: 999px; }
.site-header .nav-link:hover { color: var(--text); background: var(--surface-muted); }
.site-header .nav-link.active { color: var(--brand-blue); background: rgba(26, 111, 209, .10); }
.site-header .navbar-toggler { border: 1px solid var(--border); padding: .45rem .7rem; font-size: 1.1rem; color: var(--text); }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(26, 111, 209, .25); }
.site-header__actions .btn { border-radius: 999px; padding-inline: 1.15rem; font-weight: 600; }
@media (max-width: 991.98px) {
  .site-header .navbar-collapse { padding-block: .75rem .25rem; }
  .site-header .navbar-nav { gap: .15rem; margin-bottom: .75rem; }
  .site-header__actions .btn { width: 100%; }
}

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .85rem; border-radius: 999px;
  font-size: .85rem; font-weight: 700; color: var(--brand-blue);
  background: rgba(26, 111, 209, .10); border: 1px solid rgba(26, 111, 209, .18);
}
[data-bs-theme="dark"] .eyebrow { color: #8cbcff; background: rgba(106, 168, 255, .10); border-color: rgba(106, 168, 255, .22); }
.text-gradient {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--muted { background: var(--surface-muted); background: color-mix(in srgb, var(--surface) 55%, transparent); border-block: 1px solid var(--border); }
.section__head { max-width: 46rem; margin: 0 auto clamp(1.75rem, 4vw, 3rem); text-align: center; }
.section__head h2 { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: .6rem; }
.section__head p { color: var(--text-muted); font-size: 1.05rem; margin: 0; }
.btn-lg { border-radius: 999px; padding: .8rem 1.6rem; font-weight: 700; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.75rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__title { font-weight: 900; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.9rem); line-height: 1.3; margin: 1.1rem 0 1rem; }
.hero__lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: var(--text-muted); max-width: 38rem; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--text-muted); font-size: .95rem; }
.hero__facts i { color: var(--brand-green); margin-inline-end: .35rem; }
@media (max-width: 575.98px) { .hero__actions .btn { width: 100%; } }

.hero-card {
  position: relative; max-width: 26rem; margin-inline: auto;
  padding: 1.6rem; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero-card::before {
  content: ""; position: absolute; top: -2.5rem; bottom: -2.5rem; left: -2rem; right: -2rem; inset: -2.5rem -2rem; z-index: -1; border-radius: 40px;
  background: radial-gradient(18rem 14rem at 70% 20%, rgba(26, 111, 209, .22), transparent 70%),
              radial-gradient(16rem 12rem at 20% 90%, rgba(30, 158, 106, .20), transparent 70%);
}
.hero-card__head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.3rem; }
.hero-card__head strong { display: block; font-size: 1.05rem; }
.hero-card__head small { color: var(--text-muted); }
.hero-card__code { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; direction: ltr; margin-bottom: 1.3rem; }
.hero-card__code span {
  display: grid; place-items: center; aspect-ratio: 1 / 1.15;
  border-radius: 12px; border: 2px solid var(--border); background: var(--surface-muted);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); font-weight: 800;
}
.hero-card__code span:nth-child(-n+4) { border-color: var(--brand-blue); color: var(--brand-blue); }
.hero-card__apps { display: flex; gap: .55rem; margin-bottom: 1.2rem; }
.hero-card__apps span {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px;
  color: #fff; font-size: 1.05rem; background: var(--brand-blue);
}
.hero-card__apps span:nth-child(2) { background: var(--brand-green); }
.hero-card__apps span:nth-child(3) { background: var(--brand-amber); color: var(--brand-core); }
.hero-card__apps span:nth-child(4) { background: var(--brand-coral); }
.hero-card__apps .hero-card__more { background: var(--surface-muted); color: var(--text-muted); border: 1px dashed var(--border); }
.hero-card__ok { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: 12px; font-weight: 700; color: var(--brand-green); background: rgba(30, 158, 106, .10); }

/* ---------- Cards ---------- */
.feature-card {
  height: 100%; padding: 1.6rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(26, 111, 209, .35); }
.feature-card h3 { font-size: 1.12rem; font-weight: 800; margin: 1rem 0 .5rem; }
.feature-card p { color: var(--text-muted); margin: 0; }
.feature-card__icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; font-size: 1.25rem; }
.tone-blue { color: var(--brand-blue); background: rgba(26, 111, 209, .12); }
.tone-green { color: var(--brand-green); background: rgba(30, 158, 106, .12); }
.tone-amber { color: #b98a00; background: rgba(242, 183, 5, .16); }
.tone-coral { color: var(--brand-coral); background: rgba(229, 72, 77, .12); }
[data-bs-theme="dark"] .tone-blue { color: #8cbcff; }
[data-bs-theme="dark"] .tone-amber { color: var(--brand-amber); }
@media (prefers-reduced-motion: reduce) { .feature-card { transition: none; } .feature-card:hover { transform: none; } }

.steps, .levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.steps { grid-template-columns: 1fr; }
.levels { grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .levels { grid-template-columns: repeat(4, 1fr); } }
.steps__item, .levels__item { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.steps__item h3, .levels__item h3 { font-size: 1.1rem; font-weight: 800; margin: .9rem 0 .4rem; }
.steps__item p, .levels__item p { color: var(--text-muted); margin: 0; }
.steps__num {
  display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  font-weight: 900; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
}
.levels__badge { display: inline-block; padding: .2rem .75rem; border-radius: 999px; font-size: .82rem; font-weight: 800; color: var(--brand-blue); background: rgba(26, 111, 209, .10); }
.levels__item:nth-child(2) .levels__badge { color: var(--brand-green); background: rgba(30, 158, 106, .12); }
.levels__item:nth-child(3) .levels__badge { color: #b98a00; background: rgba(242, 183, 5, .16); }
.levels__item:nth-child(4) .levels__badge { color: var(--brand-coral); background: rgba(229, 72, 77, .12); }

.info-panel { height: 100%; padding: clamp(1.4rem, 3vw, 2.1rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.info-panel h2 { font-weight: 800; margin-bottom: .8rem; }
.info-panel p { color: var(--text-muted); }
.info-panel ol { padding-inline-start: 1.2rem; color: var(--text-muted); }
.info-panel ol li + li { margin-top: .45rem; }
.info-panel--dev { color: #e8eef5; border: 0; background: linear-gradient(135deg, #12335e 0%, #16241F 100%); }
.info-panel--dev p, .info-panel--dev h2 { color: #e8eef5; }
.info-panel--dev p { opacity: .85; }
.code-line { padding: .7rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .08); overflow-wrap: anywhere; }
.code-line code { color: #b9f3d9; font-size: .9rem; }

.faq .accordion-item { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm) !important; overflow: hidden; }
.faq .accordion-item + .accordion-item { margin-top: .75rem; }
.faq .accordion-button { font-weight: 700; font-size: 1.02rem; background: var(--surface); color: var(--text); box-shadow: none; gap: 1rem; }
.faq .accordion-button:not(.collapsed) { color: var(--brand-blue); background: rgba(26, 111, 209, .06); }
.faq .accordion-body { color: var(--text-muted); }

/* ---------- Content pages ---------- */
.page-hero { padding-block: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { font-weight: 900; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); margin: .9rem 0 .6rem; }
.page-hero p { color: var(--text-muted); font-size: 1.08rem; max-width: 44rem; margin: 0; }
.page-hero--compact { padding-block: clamp(1.75rem, 4vw, 2.75rem) 1.25rem; }

.doc-layout { display: grid; gap: 2rem; padding-bottom: 4rem; }
@media (min-width: 992px) { .doc-layout { grid-template-columns: 15rem minmax(0, 1fr); align-items: start; } }
.doc-toc { padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 992px) { .doc-toc { position: sticky; top: 6rem; } }
.doc-toc h2 { font-size: .85rem; font-weight: 800; color: var(--text-muted); margin-bottom: .6rem; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.doc-toc a { display: block; padding: .35rem .6rem; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; }
.doc-toc a:hover { background: var(--surface-muted); color: var(--brand-blue); }
@media (max-width: 991.98px) { .doc-toc ol { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } }

.doc-single { padding-bottom: 4rem; }
.doc-body { min-width: 0; }
.doc-body section {
  padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  scroll-margin-top: 6rem;
}
.doc-body section + section { margin-top: 1.25rem; }
.doc-body h2 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.doc-body h2 i { color: var(--brand-blue); font-size: 1.05em; }
.doc-body ol, .doc-body ul { padding-inline-start: 1.25rem; margin-bottom: 0; }
.doc-body li + li { margin-top: .5rem; }
.doc-body p:last-child { margin-bottom: 0; }
.doc-note, .doc-draft { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 1rem 0 0; }
.doc-note { background: rgba(26, 111, 209, .07); color: var(--text); }
.doc-note i { color: var(--brand-blue); margin-top: .35rem; }
.doc-draft { margin: 0 0 1.25rem; background: rgba(242, 183, 5, .14); border: 1px solid rgba(242, 183, 5, .35); }
.doc-draft i { color: #b98a00; margin-top: .35rem; }
[data-bs-theme="dark"] .doc-draft i { color: var(--brand-amber); }
.doc-table { margin: 0; --bs-table-bg: transparent; }
.doc-table th { font-weight: 800; white-space: nowrap; color: var(--text-muted); font-size: .9rem; }
.doc-table td, .doc-table th { padding: .7rem .75rem; vertical-align: top; border-color: var(--border); }
@media (max-width: 575.98px) { .doc-table { font-size: .9rem; } }

/* ---------- Account ---------- */
.profile-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-head h1 { font-weight: 900; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); margin: 0; }
.profile-head p { margin: .2rem 0 0; color: var(--text-muted); }
.profile-head__avatar {
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  color: #fff; font-size: 1.4rem; background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
}
.profile-head__level { margin-inline-start: auto; font-size: .95rem; padding: .5rem 1rem; }
.profile-grid { display: grid; gap: 1.25rem; padding-bottom: 4rem; }
@media (min-width: 992px) { .profile-grid { grid-template-columns: minmax(0, 1fr) 22rem; align-items: start; } }
.profile-grid__main, .profile-grid__side { display: grid; gap: 1.25rem; min-width: 0; }
.panel { padding: clamp(1.2rem, 2.5vw, 1.6rem); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.panel__head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: .55rem; }
.panel__head h2 i { color: var(--brand-blue); }
.panel .level-steps { margin: 0; }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.app-list__item { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.app-list__icon { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 12px; color: var(--brand-blue); background: rgba(26, 111, 209, .10); }
.app-list__body { flex: 1; min-width: 0; display: grid; }
.app-list__roles { font-size: .85rem; color: var(--text-muted); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; padding-block: 3rem 1.5rem; color: #c9d6e3; background: #0f1d2e; }
.site-footer .brand-lockup { display: flex; align-items: center; gap: .65rem; }
.site-footer .brand-lockup__name { font-weight: 800; color: #fff; }
.site-footer .brand-lockup__tag { font-size: .75rem; color: #9fb0c2; direction: ltr; text-align: end; }
.site-footer__text { color: #9fb0c2; max-width: 26rem; }
.site-footer__title { font-size: .95rem; font-weight: 800; color: #fff; margin-bottom: .8rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer__links a { color: #c9d6e3; text-decoration: none; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; color: #9fb0c2; }

/* Small screens: each table row becomes a card with its column names as labels. */
@media (max-width: 575.98px) {
  .doc-table--stack thead { display: none; }
  .doc-table--stack tr { display: block; padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .doc-table--stack tr:last-child { border-bottom: 0; }
  .doc-table--stack td { display: block; border: 0; padding: .15rem 0; }
  .doc-table--stack td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 800; color: var(--text-muted); }
  .doc-table--stack td:first-child { font-weight: 800; }
  .doc-table--stack td:first-child::before { display: none; }
}

/* ---------- Account tabs and sub-pages ---------- */
.account-page { display: grid; gap: 1.25rem; padding-bottom: 3rem; }
.account-page > .profile-grid { padding: 0; }
.account-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; padding: .35rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
@media (min-width: 576px) { .account-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .account-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.account-tabs__item { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem .9rem; border-radius: var(--radius-sm); color: var(--text-muted); text-decoration: none; font-weight: 700; white-space: nowrap; }
.account-tabs__item:hover { color: var(--brand-blue); background: rgba(26, 111, 209, .06); }
.account-tabs__item.is-active { color: #fff; background: var(--brand-blue); }
.account-flash { margin: 0; }
.ticket-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticket-list__item { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); color: inherit; text-decoration: none; }
.ticket-list__item:hover { border-color: var(--brand-blue); }
.ticket-list__body { flex: 1; min-width: 0; display: grid; gap: .15rem; }
.ticket-list__body strong { overflow-wrap: anywhere; }
.ticket-list__body small { color: var(--text-muted); }
.steps.steps--list { grid-template-columns: 1fr; }

/* ---------- Account profile: one field at a time ---------- */
.field-list { list-style: none; margin: 0; padding: 0; display: grid; }
.field-row { display: grid; gap: .55rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.field-row:first-child { padding-top: 0; }
.field-row:last-child { border-bottom: 0; padding-bottom: 0; }
.field-row__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.field-row__label { font-weight: 800; display: inline-flex; align-items: center; gap: .5rem; }
.field-row__label i { color: var(--brand-blue); width: 1.1rem; text-align: center; }
.field-row__value { color: var(--text-muted); overflow-wrap: anywhere; justify-self: start; }
.field-row__form { display: grid; gap: .5rem; max-width: 32rem; }
.field-row__actions { display: flex; align-items: center; gap: .5rem; }

/* ---------- Wallet ---------- */
.wallet-balance { display: grid; gap: 1rem; background: linear-gradient(135deg, rgba(26, 111, 209, .10), rgba(30, 158, 106, .08)), var(--surface); }
.wallet-balance__total { display: grid; gap: .3rem; }
.wallet-balance__label { color: var(--text-muted); font-weight: 700; }
.wallet-balance__total strong { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.wallet-balance__total small { font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.wallet-balance__parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.wallet-balance__parts div { padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.wallet-balance__parts dt { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.wallet-balance__parts dd { margin: .2rem 0 0; font-weight: 800; overflow-wrap: anywhere; }
.sim-pay { display: grid; gap: 1rem; max-width: 32rem; margin-inline: auto; }
.sim-pay__facts { display: grid; gap: .5rem; margin: 0; }
.sim-pay__facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.sim-pay__facts dt { color: var(--text-muted); font-weight: 600; }
.sim-pay__facts dd { margin: 0; }

/* Policy pages: last-update line, callout and the English summary for provider reviewers. */
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin: 0 0 .9rem; color: var(--text-muted); font-size: .9rem; }
.doc-callout { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid rgba(26, 111, 209, .3); background: rgba(26, 111, 209, .06); font-size: .92rem; }
.doc-english { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-align: left; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.doc-english h2 { font-family: inherit; }

/* Wallet: top-up card first on small screens; payments toolbar. */
@media (max-width: 991.98px) { .profile-grid--wallet .profile-grid__side { order: -1; } }
.payments-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.payments-toolbar__search { flex: 1 1 12rem; }
.payments-toolbar .form-select { width: auto; flex: 0 0 auto; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; }
.sort-link.is-active { color: var(--brand-blue); }
.payments-table td, .payments-table th { white-space: nowrap; }

/* کیف پول کامل (نسخه‌ی ۰.۸): پیام‌های مدیر، زبانه‌ها، کارت جیب‌ها، تاریخچه، درگاه‌ها و انتقال. */
.wallet-notice { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 1rem; }
.wallet-notice > i { font-size: 1.25rem; margin-top: .15rem; }
.wallet-notice--info { background: rgba(26, 111, 209, .08); border-color: rgba(26, 111, 209, .35); }
.wallet-notice--info > i { color: var(--brand-blue); }
.wallet-notice--success { background: rgba(30, 158, 106, .08); border-color: rgba(30, 158, 106, .35); }
.wallet-notice--success > i { color: var(--brand-green); }
.wallet-notice--warning { background: rgba(242, 183, 5, .1); border-color: rgba(242, 183, 5, .5); }
.wallet-notice--warning > i { color: #b88a00; }
.wallet-notice--danger { background: rgba(229, 72, 77, .08); border-color: rgba(229, 72, 77, .4); }
.wallet-notice--danger > i { color: var(--brand-coral); }
.wallet-hero { margin-bottom: 1rem; }
.wallet-balance__parts--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.wallet-expiring { color: #b88a00; font-weight: 600; }
.wallet-sections { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1rem; scrollbar-width: thin; }
.wallet-sections__item { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; font-weight: 600; }
.wallet-sections__item:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.wallet-sections__item.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.pocket-cards { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.pocket-card { display: grid; gap: .5rem; padding: 1rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); min-width: 0; }
.pocket-card--main { border-color: rgba(26, 111, 209, .45); background: linear-gradient(135deg, rgba(26, 111, 209, .07), transparent), var(--surface); }
.pocket-card.is-frozen { opacity: .75; border-style: dashed; }
.pocket-card__head { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.pocket-card__head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pocket-card__icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(26, 111, 209, .12); color: var(--brand-blue); flex: none; }
.pocket-card__total { font-size: 1.35rem; font-weight: 900; overflow-wrap: anywhere; }
.pocket-card__parts { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; font-size: .85rem; }
.pocket-card__parts dt { color: var(--text-muted); font-weight: 600; display: inline; }
.pocket-card__parts dd { display: inline; margin: 0 .25rem 0 0; font-weight: 700; }
.pocket-card__address { display: flex; align-items: flex-start; gap: .35rem; font-size: .78rem; color: var(--text-muted); }
.pocket-card__address bdi { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.pocket-card__actions { display: flex; gap: .4rem; flex-wrap: wrap; }
/* QR نشانی کیف و اسکن آن (۲۲ آبان ۱۴۰۵) */
.qr-image { display: block; width: min(240px, 70vw); height: auto; margin-inline: auto; border-radius: .75rem; background: #fff; padding: .5rem; image-rendering: pixelated; }
.qr-address { display: flex; justify-content: center; font-size: .82rem; }
.qr-address bdi { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; word-break: break-all; }
.qr-scan { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 360px; margin-inline: auto; border-radius: 1rem; overflow: hidden; background: #000; }
.qr-scan__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.qr-scan__frame { position: absolute; top: 15%; right: 15%; bottom: 15%; left: 15%; inset: 15%; border: 3px solid rgba(255, 255, 255, .85); border-radius: .75rem; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .35); pointer-events: none; }
.qr-scan.is-off .qr-scan__frame { display: none; }
.qr-scan.is-off { aspect-ratio: auto; min-height: 0; background: transparent; }
.qr-scan.is-off .qr-scan__video { display: none; }
.tx-list { list-style: none; padding: 0; margin: 0; display: grid; }
.tx-item { display: flex; gap: .75rem; align-items: center; padding: .75rem 0; border-bottom: 1px dashed var(--border); min-width: 0; }
.tx-item:last-child { border-bottom: 0; }
.tx-item__icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; background: rgba(91, 107, 102, .12); color: var(--text-muted); }
.tx-item__icon.is-in { background: rgba(30, 158, 106, .14); color: var(--brand-green); }
.tx-item__icon.is-out { background: rgba(229, 72, 77, .12); color: var(--brand-coral); }
.tx-item__body { display: grid; gap: .15rem; min-width: 0; flex: 1; }
.tx-item__body small { overflow-wrap: anywhere; }
.tx-item__amount { display: grid; justify-items: end; gap: .1rem; text-align: end; white-space: nowrap; }
.tx-item--refund { flex-wrap: wrap; }
.refund-form { display: flex; gap: .4rem; align-items: center; }
.refund-form input { width: 9rem; }
.gateway-options { display: grid; gap: .5rem; }
.gateway-option { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.gateway-option:has(input:checked) { border-color: var(--brand-blue); background: rgba(26, 111, 209, .06); }
.gateway-option span { display: grid; }
.gateway-option small { color: var(--text-muted); }
.transfer-quote { display: grid; gap: .5rem; }
.limit-list { display: grid; gap: .4rem; margin: 0; }
.limit-list div { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.limit-list dt { color: var(--text-muted); font-weight: 600; }
.limit-list dd { margin: 0; font-weight: 700; text-align: end; }
.gateway-go { max-width: 30rem; margin-inline: auto; }
.sim-pay__more summary { cursor: pointer; color: var(--text-muted); font-weight: 600; }
@media (max-width: 575.98px) {
  .tx-item { flex-wrap: wrap; }
  .tx-item__amount { justify-items: start; text-align: start; width: 100%; padding-inline-start: 3.15rem; }
  .refund-form { width: 100%; padding-inline-start: 3.15rem; }
  .refund-form input { flex: 1; width: auto; }
}

/* Card-refund explanation box (wallet refund section): always visible, wraps at 375 px. */
.refund-help { border: 1px solid var(--bs-border-color); border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; background: rgba(26, 111, 209, .05); }
.refund-help h3 i { color: var(--brand-blue); margin-inline-end: .35rem; }
.refund-help__list { margin: .5rem 0 0; padding-inline-start: 1.2rem; line-height: 1.9; font-size: .92rem; }
.refund-help__level { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }

/* Safari 14 and older (no aspect-ratio): keep the demo code boxes and the QR scanner from collapsing. */
@supports not (aspect-ratio: 1 / 1) {
  .hero-card__code span { min-height: 3.2rem; }
  .qr-scan { min-height: 15rem; }
}

/* Footer: trust badges row (hidden entirely when no badge is on) and the quiet visitor-address line. */
.site-footer__trust { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem 1rem; }
.site-footer__trust li { max-width: 100%; }
.trust-badge {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; max-width: 100%; min-height: 3.25rem; padding: .4rem .8rem;
  border-radius: 12px; background: #fff; color: #17324d; text-decoration: none; font-size: .85rem; font-weight: 700; line-height: 1.4;
  border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.trust-badge:hover { color: #0b2540; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); }
.trust-badge:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
.trust-badge .fa-solid { color: #1a6fd1; font-size: 1.25rem; flex: none; }
.trust-badge span { min-width: 0; overflow-wrap: anywhere; }
.trust-badge img { display: block; max-width: 100%; max-height: 4.25rem; width: auto; height: auto; object-fit: contain; }
.site-footer__ip { margin: .75rem 0 0; text-align: center; font-size: .78rem; color: #7f93a8; overflow-wrap: anywhere; }
.site-footer__ip-value { display: inline; color: #9fb0c2; }
.site-footer__ip-value bdi { word-break: break-all; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.site-footer__ip .copy-btn { color: #9fb0c2; }
.site-footer__ip .copy-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
