﻿/* Shared UI of v0.2 (all layouts): hints, empty states, modals, toasts, scrollbars, wallet presets,
   profile field cards, sessions, support layout. Uses the tokens of site.css. */

.form-hint {
  display: flex; align-items: flex-start; gap: .4rem;
  margin-top: .35rem; font-size: .82rem; line-height: 1.6; color: var(--text-muted);
}
.form-hint i { margin-top: .22rem; color: var(--brand-blue); opacity: .85; flex: 0 0 auto; }
[data-bs-theme="dark"] .form-hint i { color: #8bbcff; }

/* Empty list: centered column, round icon badge, readable text (same at every width). */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .65rem;
  width: 100%; padding: 1.75rem 1rem; text-align: center; color: var(--text-muted);
}
.empty-state > i {
  display: grid !important; place-items: center; width: 3.4rem; height: 3.4rem; margin: 0; border-radius: 50%;
  font-size: 1.35rem; background: var(--surface-muted); color: var(--brand-blue); opacity: .9;
}
.empty-state p { margin: 0; max-width: 28rem; line-height: 1.9; font-size: .92rem; }

.action-modal, .confirm-modal { border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.action-modal .modal-header { gap: .75rem; align-items: center; }
.action-modal__icon, .confirm-modal__icon {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: rgba(26, 111, 209, .12); color: var(--brand-blue); font-size: 1.15rem;
}
.confirm-modal__icon { width: 3.6rem; height: 3.6rem; font-size: 1.7rem; }
.action-modal--danger .action-modal__icon { background: rgba(229, 72, 77, .12); color: var(--brand-coral); }
.action-modal .modal-title { margin: 0; }
@media (max-width: 575.98px) {
  .modal-dialog-centered { align-items: flex-end; min-height: calc(100% - 1rem); }
  .action-modal { border-radius: var(--radius) var(--radius) 0 0; }
}

/* Notyf: Persian font, RTL layout. Long messages wrap inside the card (no ripple; icon and close button
   mirrored for RTL) so the box keeps its shape whatever the text length. */
.notyf { font-family: var(--bs-body-font-family); direction: rtl; }
.notyf__toast { border-radius: 14px; max-width: min(28rem, 94vw); box-shadow: var(--shadow); padding: 0 14px; }
.notyf__wrapper { align-items: flex-start; padding: 14px 0; gap: 10px; }
.notyf__toast--dismissible .notyf__wrapper { padding-right: 0; padding-left: 30px; }
.notyf__icon { margin: 2px 0 0; flex: 0 0 auto; }
.notyf__icon i { font-size: 1.15rem; }
.notyf__message { flex: 1 1 auto; min-width: 0; line-height: 1.8; font-size: .92rem; white-space: normal; overflow-wrap: anywhere; }
.notyf__dismiss { right: auto; left: 0; margin-right: 0; margin-left: -14px; }
.notyf__ripple { display: none; }

/* SimpleBar thumb. */
.simplebar-scrollbar::before { background: var(--text-muted); opacity: .35; }
.simplebar-scrollbar.simplebar-visible::before { opacity: .55; }

/* Wallet: preset chips, preview, beta banner. */
.amount-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .5rem; }
.amount-chip {
  display: flex; align-items: center; justify-content: space-between; gap: .25rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: .25rem;
}
.amount-chip__label { font-weight: 700; font-size: .82rem; padding-inline: .2rem; white-space: nowrap; }
.amount-chip .btn { width: 2rem; height: 2rem; padding: 0; border-radius: 9px; line-height: 1; flex: 0 0 auto; }
.amount-preview { font-size: 1.05rem; font-weight: 700; color: var(--brand-green); }
.beta-banner {
  display: flex; gap: .75rem; align-items: flex-start;
  border: 1px dashed var(--brand-amber); background: rgba(242, 183, 5, .10);
  border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem;
}
.beta-banner > i { color: #b98900; font-size: 1.25rem; margin-top: .15rem; }

/* Profile: each field a card, edited in its own modal. */
.field-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .75rem; }
.field-card {
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.field-card:hover { border-color: rgba(26, 111, 209, .45); box-shadow: 0 6px 22px rgba(26, 111, 209, .10); }
.field-card__icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: rgba(26, 111, 209, .10); color: var(--brand-blue); font-size: 1.1rem;
}
.field-card__body { flex: 1 1 auto; min-width: 0; display: grid; }
.field-card__label { font-size: .8rem; color: var(--text-muted); }
.field-card__value { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-card__value.is-empty { color: var(--text-muted); font-weight: 400; font-style: italic; }
.field-card .btn { flex: 0 0 auto; border-radius: 10px; }

/* Sessions in "my apps". */
.session-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .45rem; }
.session-item {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  text-align: start; color: var(--text);
}
.session-item:hover { border-color: rgba(26, 111, 209, .45); }
.session-item__icon { font-size: 1.2rem; color: var(--brand-blue); width: 1.8rem; text-align: center; }
.session-item__body { flex: 1 1 auto; min-width: 0; display: grid; }
.session-item__body small { color: var(--text-muted); }
.kv-modal { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0; }
.kv-modal dt { color: var(--text-muted); font-weight: 400; }
.kv-modal dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Support: new ticket beside my tickets on large screens. */
.support-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1200px) { .support-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.support-layout .panel { margin: 0; }
.subject-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.subject-pills input { position: absolute; opacity: 0; pointer-events: none; }
.subject-pills label {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer;
  padding: .45rem .85rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .88rem;
}
.subject-pills input:checked + label { border-color: var(--brand-blue); background: rgba(26, 111, 209, .10); color: var(--brand-blue); font-weight: 700; }
.subject-pills input:focus-visible + label { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
[data-bs-theme="dark"] .subject-pills input:checked + label { color: #8bbcff; }
.ticket-cards { display: grid; gap: .5rem; }
.ticket-card {
  display: flex; gap: .75rem; align-items: center; padding: .7rem .85rem; color: var(--text); text-decoration: none;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.ticket-card:hover { border-color: rgba(26, 111, 209, .45); color: var(--text); }
.ticket-card__icon { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: 10px; background: rgba(26, 111, 209, .10); color: var(--brand-blue); flex: 0 0 auto; }
.ticket-card__body { flex: 1 1 auto; min-width: 0; display: grid; }
.ticket-card__body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-card__body small { color: var(--text-muted); }
.scroll-panel { max-height: 34rem; }
.honeypot { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-header__actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Linked external accounts. */
.provider-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.provider-list li { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.provider-list .fa-brands { font-size: 1.35rem; width: 1.8rem; text-align: center; }
.provider-list__body { flex: 1 1 auto; min-width: 0; display: grid; }
.provider-list__body small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }

.contact-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .contact-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.contact-layout .panel { margin: 0; }
.contact-aside { padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px dashed var(--border); background: var(--surface); }
.contact-tips { margin: 0; padding-inline-start: 1rem; display: grid; gap: .5rem; color: var(--text-muted); font-size: .92rem; }

.app-list__item--stack { flex-direction: column; align-items: stretch; }
.panel-link { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--text); }
.panel-link:hover { color: var(--text); border-color: rgba(26, 111, 209, .45); }
.panel-link__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: rgba(26, 111, 209, .12); color: var(--brand-blue); font-size: 1.15rem; }

/* Setup wizard */
.setup-lock { max-width: 36rem; margin-inline: auto; }
.setup-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.setup-steps a { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.setup-steps__dot { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--surface-muted); font-size: .8rem; }
.setup-steps .is-active a { border-color: var(--brand-blue); color: var(--brand-blue); }
.setup-steps .is-done .setup-steps__dot { background: var(--brand-green); color: #fff; }
.setup-provider { display: grid; gap: .45rem; padding: .8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.setup-check { list-style: none; padding: 0; display: grid; gap: .4rem; font-weight: 600; }

/* Modal close button (replaces Bootstrap .btn-close, which sat misaligned in RTL headers). */
.modal-x {
  display: inline-grid; place-items: center; flex: 0 0 auto; margin-inline-start: auto;
  width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-muted); font-size: 1.05rem; line-height: 1;
  transition: background-color .15s ease, color .15s ease;
}
.modal-x:hover { background: var(--surface-muted); color: var(--text); }
.modal-x:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* Copy icon beside important values ([data-copyable]) and the black bottom-centre snackbar. */
.copy-btn {
  display: inline-grid; place-items: center; vertical-align: middle; margin-inline-start: .35rem;
  width: 1.7rem; height: 1.7rem; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-muted); font-size: .85rem; line-height: 1; cursor: pointer;
}
.copy-btn:hover { background: rgba(26, 111, 209, .10); color: var(--brand-blue); }
.copy-btn:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 1px; }
.copy-btn .fa-check { color: var(--brand-green); }
.copy-snack {
  position: fixed; left: 0; right: 0; inset-inline: 0; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 2000;
  display: flex; align-items: center; gap: .55rem; width: max-content; max-width: min(92vw, 30rem); margin-inline: auto;
  padding: .7rem 1.15rem; border-radius: 999px; background: #111; color: #fff;
  font-size: .9rem; line-height: 1.6; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(1rem); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.copy-snack i { color: #4ade80; }
.copy-snack.is-visible { opacity: 1; transform: none; }
[data-bs-theme="dark"] .copy-snack { background: #000; border: 1px solid #333; }

/* Busy overlay with a branded orbit spinner (external login, OTP send, password sign-in). */
.busy-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 1rem;
  background: rgba(244, 247, 251, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
[data-bs-theme="dark"] .busy-overlay { background: rgba(11, 17, 24, .78); }
.busy-overlay.is-visible { opacity: 1; visibility: visible; }
.busy-overlay__card {
  width: min(22rem, 100%); text-align: center; padding: 1.75rem 1.5rem 1.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: busy-pop .25s ease;
}
.busy-overlay__title { margin: 1rem 0 .25rem; font-weight: 700; font-size: 1.02rem; }
.busy-overlay__hint { margin: 0; color: var(--text-muted); font-size: .86rem; line-height: 1.8; }
.busy-orbit { position: relative; width: 5rem; height: 5rem; margin-inline: auto; display: grid; place-items: center; }
.busy-orbit span { position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.busy-orbit span:nth-child(1) { border-top-color: var(--brand-blue); animation: busy-spin 1s linear infinite; }
.busy-orbit span:nth-child(2) { top: .45rem; right: .45rem; bottom: .45rem; left: .45rem; inset: .45rem; border-right-color: var(--brand-green); animation: busy-spin 1.4s linear infinite reverse; }
.busy-orbit span:nth-child(3) { top: .9rem; right: .9rem; bottom: .9rem; left: .9rem; inset: .9rem; border-bottom-color: var(--brand-amber); animation: busy-spin 1.8s linear infinite; }
.busy-orbit img { position: relative; animation: busy-pulse 1.6s ease-in-out infinite; }
body.is-busy { overflow: hidden; }
@keyframes busy-spin { to { transform: rotate(360deg); } }
@keyframes busy-pulse { 50% { transform: scale(.88); opacity: .75; } }
@keyframes busy-pop { from { transform: scale(.94); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .busy-orbit span, .busy-orbit img, .busy-overlay__card { animation-duration: 3s; }
}

/* Pending external-account link card on the login page. */
.link-card {
  margin-bottom: 1.1rem; padding: 1.1rem 1.1rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 111, 209, .30); background: linear-gradient(180deg, rgba(26, 111, 209, .07), rgba(26, 111, 209, .02));
}
.link-card__logos { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: .75rem; }
.link-card__logo {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(26, 111, 209, .12);
}
.link-card__logo .provider-logo { width: 1.5rem; height: 1.5rem; font-size: 1.45rem; }
.link-card__chain { color: var(--brand-blue); font-size: 1rem; }
.link-card__title { font-size: 1.12rem; font-weight: 800; text-align: center; margin: 0 0 .35rem; }
.link-card__who { text-align: center; color: var(--text-muted); font-size: .88rem; margin: 0 0 .6rem; overflow-wrap: anywhere; }
.link-card__lead { font-size: .9rem; line-height: 1.9; margin: 0 0 .6rem; }
.link-card__steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .86rem; line-height: 1.8; }
.link-card__steps li { display: flex; gap: .55rem; align-items: flex-start; }
.link-card__steps i { color: var(--brand-blue); margin-top: .3rem; width: 1rem; text-align: center; flex: 0 0 auto; }
[data-bs-theme="dark"] .link-card__steps i, [data-bs-theme="dark"] .link-card__chain { color: #8bbcff; }

/* Password input with show/hide button. */
/* Password text is left-to-right, so the eye toggle sits at the right end (away from the typed text and the left icon). */
.password-field { position: relative; }
.password-field .form-control { padding-right: 3rem; }
.password-field__toggle {
  position: absolute; right: .35rem; left: auto; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 2.4rem; height: 2.4rem; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted);
}
.password-field__toggle:hover { background: var(--surface-muted); color: var(--text); }

/* Header account menu. */
.account-menu .dropdown-toggle { display: inline-flex; align-items: center; gap: .5rem; }
.account-menu__avatar {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: rgba(255, 255, 255, .22); font-size: .85rem;
}
.account-menu__name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .dropdown-menu {
  min-width: 15.5rem; padding: .5rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow);
}
.account-menu__head { display: flex; align-items: center; gap: .65rem; padding: .45rem .6rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.account-menu__head .account-menu__avatar { background: rgba(26, 111, 209, .12); color: var(--brand-blue); width: 2.3rem; height: 2.3rem; }
.account-menu__head strong { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__head small { color: var(--text-muted); }
.account-menu .dropdown-item { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 9px; color: var(--text); }
.account-menu .dropdown-item i { width: 1.1rem; text-align: center; color: var(--text-muted); }
.account-menu .dropdown-item:hover, .account-menu .dropdown-item:focus { background: var(--surface-muted); color: var(--text); }
.account-menu .dropdown-item.is-danger, .account-menu .dropdown-item.is-danger i { color: var(--brand-coral); }
.account-menu form { margin: 0; }
.account-menu button.dropdown-item { width: 100%; text-align: start; border: 0; background: transparent; }

/* "My apps": each app row opens a modal with its details and sessions. */
.app-list__open {
  display: flex; align-items: center; gap: .85rem; width: 100%; padding: 0; border: 0; background: transparent;
  text-align: start; color: var(--text);
}
.app-list__open:hover strong { color: var(--brand-blue); }
.app-list__chev { margin-inline-start: auto; color: var(--text-muted); }
.session-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .75rem .85rem; background: var(--surface); }
.session-card + .session-card { margin-top: .55rem; }
.session-card__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.session-card__head > i { color: var(--brand-blue); font-size: 1.15rem; }
.session-card .kv-modal { margin-top: .6rem; font-size: .88rem; }
.session-card form { margin-top: .6rem; }

/* Busy overlay: cancel button and slow-network note. */
.busy-overlay__actions { margin-top: 1rem; display: flex; justify-content: center; }
.busy-overlay__cancel { min-width: 9rem; border-radius: 999px; }
.busy-overlay__slow {
  margin: .85rem 0 0; padding: .5rem .7rem; border-radius: 10px; font-size: .82rem; line-height: 1.8;
  background: rgba(245, 166, 35, .12); color: var(--text); display: none;
}
.busy-overlay.is-slow .busy-overlay__slow { display: block; }

/* Bot guard: honeypot is clipped (not display:none, which some bots detect); image challenge only when suspicious. */
/* Clipped in place (not moved off-screen: a large negative offset widens right-to-left pages). */
.bg-trap { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }
.bot-challenge {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: .75rem; margin: .5rem 0;
  border: 1px dashed rgba(26, 111, 209, .45); border-radius: 12px; background: rgba(26, 111, 209, .04);
}
.bot-challenge__img { border-radius: 10px; border: 1px solid var(--border); max-width: 100%; height: auto; }
.bot-challenge__field { flex: 1 1 8rem; min-width: 0; }

/* Mobile / tablet bottom navigation (below 992px) with a "more" bottom sheet. */
@media (max-width: 991.98px) {
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .site-header .navbar { justify-content: center; }
}
.bottom-nav {
  position: fixed; left: 0; right: 0; inset-inline: 0; bottom: 0; z-index: 1030;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: .35rem .5rem calc(.35rem + env(safe-area-inset-bottom));
  background: var(--surface); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(15, 35, 60, .08);
}
.bottom-nav__item {
  display: grid; justify-items: center; gap: .15rem; padding: .3rem 0; border: 0; background: none;
  color: var(--text-muted); font-size: .72rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.bottom-nav__item i { font-size: 1.15rem; }
.bottom-nav__item.active, .bottom-nav__item:hover { color: var(--brand-blue); }
.bottom-nav__fab {
  width: 3.1rem; height: 3.1rem; margin-top: -1.4rem; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-blue), #0e4fa1); color: #fff; box-shadow: 0 6px 18px rgba(26, 111, 209, .35);
  border: 3px solid var(--surface);
}
.bottom-nav__fab i { font-size: 1.2rem; }
.more-sheet { height: auto !important; max-height: 80vh; border-top-left-radius: 20px; border-top-right-radius: 20px; }
.more-sheet__grip { width: 2.6rem; height: .3rem; border-radius: 99px; background: var(--border); margin: .5rem auto 0; }
.more-sheet__label { margin: .25rem 0 .5rem; font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.more-sheet__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .9rem; }
.more-sheet__grid a {
  display: grid; justify-items: center; gap: .35rem; padding: .75rem .3rem; border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: .78rem; text-align: center;
}
.more-sheet__grid a i { font-size: 1.15rem; color: var(--brand-blue); }
.more-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 576px) { .more-sheet__grid { grid-template-columns: repeat(6, 1fr); } }

/* Rule (PM, 17 Aban 1405): buttons never wrap to several lines. */
.btn { white-space: nowrap; }
.btn > span { white-space: nowrap; }

/* Linked accounts list: official logo, body wraps, action button never breaks into lines. */
.provider-list li { flex-wrap: wrap; }
.provider-list__logo { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--border); background: #fff; }
.provider-list__body { flex: 1 1 12rem; }
.provider-list__action { flex: 0 0 auto; margin-inline-start: auto; }

/* Signed-in browsers and remembered devices (account page and user dossier). */
.device-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.device-list__item { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 12px; }
.device-list__item > i { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 10px; background: var(--surface-muted); color: var(--brand-blue); }
.device-list__item.is-ended { opacity: .6; }
.device-list__body { flex: 1 1 10rem; min-width: 0; display: grid; }
.device-list__body small { color: var(--text-muted); }
.device-list__item form { margin: 0; margin-inline-start: auto; }

/* SMS simulator: message type and template details. */
.sim-kind { width: fit-content; font-weight: 500; margin-block: .15rem; }
.sim-template { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .85rem; color: var(--text-muted); margin-top: .25rem; }
.sim-template__params { background: var(--surface-muted); border-radius: 6px; padding: 0 .4rem; }

/* Sample apps form (/admin/samples and the /setup step). */
.sample-apps__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; margin-bottom: .5rem; }
.sample-app { display: grid; gap: .35rem; padding: .75rem; border: 1px solid var(--border); border-radius: 12px; }
.sample-app__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 600; }
.sample-steps { margin: 1rem 0 0; padding-inline-start: 1.25rem; color: var(--text-muted); }
.sample-steps code { white-space: nowrap; }

/* Amount words under money inputs (amount-input.js): small muted line, hidden while empty. */
.amount-words { margin-top: .3rem; font-size: .82rem; line-height: 1.6; color: var(--text-muted); overflow-wrap: anywhere; }
.amount-words:empty { display: none; }
