/* Only the additional approved screens; the purchases list stays intact. */
#app .screen:has(.extra-screen), #app .screen--documents, #app .screen--support { padding:10px 14px calc(var(--nav-height) + var(--safe-bottom) + 26px); background:none; min-height:0; overflow:visible; }
.extra-screen { display:grid; gap:14px; }
#app .extra-heading { margin:0 0 6px; }
#app .extra-heading .page-title { margin:6px 0 8px; }
#app .extra-heading p, .extra-subtitle, .extra-footnote { color:var(--muted); margin:0; font-size:14px; line-height:1.55; }
#app .extra-card, #checkout-backdrop .extra-card { padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:none; min-width:0; }
.extra-screen svg, .extra-checkout-result svg { width:22px; height:22px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.extra-card h2 { font-size:18px; line-height:1.3; margin:0 0 14px; }
#app .extra-copy, #checkout-backdrop .extra-copy { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; padding:6px; border:1px solid var(--line); border-radius:8px; background:#11151b; color:var(--text); box-shadow:none; }
.extra-copy svg { width:21px; height:21px; }
.extra-product__top { display:grid; grid-template-columns:106px minmax(0,1fr); gap:12px; align-items:center; }
#app .extra-product__top h2, #checkout-backdrop .extra-product__top h2 { font-size:16px; margin:0 0 5px; line-height:1.3; }
.extra-product__top p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.extra-product__photo { display:grid; place-items:center; width:106px; height:67px; border:1px solid var(--line); border-radius:7px; background:#171c25; color:var(--muted); overflow:hidden; }
.extra-product__photo img { width:100%; height:100%; object-fit:cover; }
.extra-product__total { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.extra-product__total span { color:var(--muted); font-size:13px; }
.extra-product__total small { display:block; margin-top:3px; font-size:12px; }
.extra-product__total strong { white-space:nowrap; font-size:22px; }
#app .extra-status { display:inline-flex; margin-top:8px; color:#36d7a0; font-size:11px; font-weight:700; }
#app .promo-section-title { margin:8px 0 0; font-size:19px; letter-spacing:-.3px; }
#app .promo-list, #app .review-list { display:grid; gap:10px; }
#app .personal-promo-card header { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:0; margin:0 0 7px; }
#app .personal-promo-card header code { font-family:inherit; font-size:17px; font-weight:800; letter-spacing:.3px; overflow-wrap:anywhere; min-width:0; }
#app .personal-promo-card header strong { padding:2px 8px; border:1px solid var(--red); border-radius:8px; color:var(--red); font-size:15px; white-space:nowrap; }
#app .personal-promo-card header .extra-copy { margin-left:auto; }
#app .promo-status { display:flex; gap:7px; align-items:baseline; margin:0 0 10px; color:var(--muted); font-size:12px; }
.promo-status i { display:block; flex:0 0 8px; width:8px; height:8px; border-radius:50%; background:#8991a0; }
.promo-status--available i { background:#00d49a; }
.promo-status--reserved i { background:#f5ad2c; }
.promo-status--expired i, .promo-status--exhausted i { background:var(--red); }
.promo-conditions { display:grid; gap:7px; }
.promo-condition { display:flex; gap:10px; align-items:flex-start; color:var(--muted); font-size:13px; line-height:1.5; }
.promo-condition svg { width:19px; height:19px; color:var(--text); }
#app .personal-promo-card p { white-space:normal; }
#app .personal-promo-card footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:5px 12px; margin:12px 0 0; padding-top:9px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; line-height:1.55; }
#app .personal-promo-card footer b { font-weight:600; color:var(--text); }
#app .extra-footnote { font-size:12px; margin-top:4px; }
#app .review-card { padding:14px; }
#app .review-card header { display:flex; gap:10px; align-items:center; margin:0 0 12px; }
#app .review-card header b { display:block; font-size:15px; }
#app .review-card header time { display:block; margin-top:2px; color:var(--muted); font-size:11px; }
.review-avatar { display:grid; place-items:center; width:37px; height:37px; flex:0 0 37px; border-radius:50%; border:1px solid var(--line); background:#191f29; font-size:17px; font-weight:700; }
#app .review-card > p { display:block; margin:0; font-size:14px; line-height:1.6; white-space:pre-wrap; -webkit-line-clamp:unset; overflow:visible; }
#app .review-card footer { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
#app .review-card .secondary-button { min-height:39px; width:100%; padding:8px 12px; display:flex; justify-content:center; gap:8px; }
#app .extra-empty p { color:var(--muted); margin:0; }
#app .extra-empty h2 { font-size:18px; margin:0 0 8px; }
#app .order-details.extra-screen { padding:0; margin:0; background:none; border:0; }
.extra-order-information dl { display:grid; gap:10px; margin:0; }
.extra-order-information dl div { display:flex; justify-content:space-between; align-items:baseline; gap:16px; }
.extra-order-information dt { color:var(--muted); font-size:12px; }
.extra-order-information dd { margin:0; text-align:right; font-size:13px; }
.extra-order-access { display:grid; gap:12px; }
.extra-order-access h2 { margin:0; }
.extra-order-access label { color:var(--muted); font-size:12px; }
.extra-key { display:flex; align-items:center; gap:12px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#080b11; }
.extra-key code { flex:1; min-width:0; font-size:13px; overflow-wrap:anywhere; color:var(--text); }
.extra-order-actions { display:grid; gap:10px; }
#app .extra-order-access .primary-button, #app .extra-order-actions .primary-button, #app .extra-order-access .secondary-button, #app .extra-order-actions .secondary-button { width:100%; min-height:46px; display:flex; align-items:center; justify-content:center; gap:8px; font-size:14px; }
#checkout-backdrop .extra-checkout-result { display:grid; gap:14px; }
#checkout-backdrop .extra-checkout-result .checkout-head { margin-bottom:0; }
#checkout-backdrop .extra-checkout-result .checkout-head p { font-size:14px; line-height:1.5; }
.extra-payment-body { display:grid; gap:14px; }
.extra-payment-body > .primary-button { width:100%; min-height:47px; justify-content:center; font-size:16px; }
.extra-requisites h2 { margin-bottom:4px; }
.extra-requisite { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.extra-requisite__icon { display:grid; place-items:center; width:36px; height:36px; flex:0 0 36px; border:1px solid var(--line); border-radius:8px; }
.extra-requisite > div { flex:1; min-width:0; }
.extra-requisite small { display:block; color:var(--muted); font-size:12px; margin-bottom:3px; }
.extra-requisite b { font-size:14px; font-weight:500; overflow-wrap:anywhere; }
.extra-transfer-note { display:flex; gap:12px; align-items:center; color:var(--muted); padding-top:14px; font-size:13px; }
.extra-transfer-note strong { color:var(--text); white-space:nowrap; }
#checkout-backdrop .extra-text-button { color:var(--muted); background:none; border:0; padding:8px; font-size:13px; }
#app .extra-state, #checkout-backdrop .extra-state { text-align:center; padding:22px 16px; }
.extra-state > svg { width:40px; height:40px; margin-bottom:12px; color:var(--red); }
.extra-state p { color:var(--muted); line-height:1.55; margin:10px 0 0; font-size:14px; }
.extra-confirmed { display:flex; align-items:center; gap:9px; color:#31d49f; font-size:15px; }
.extra-receipt { display:grid; gap:14px; }
.extra-receipt div { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.extra-receipt span { color:var(--muted); font-size:13px; }
.extra-receipt strong { font-size:22px; white-space:nowrap; }
.extra-receipt b { font-size:14px; }
/* Supplier content and link sources are kept verbatim. */
body:has(.screen--documents), body:has(.screen--support) { background:var(--bg); }
#app:has(.screen--documents) .topbar, #app:has(.screen--support) .topbar { position:sticky; pointer-events:auto; }
#app:has(.screen--documents) .topbar__back.is-visible, #app:has(.screen--support) .topbar__back.is-visible { position:static; opacity:1; }
#app .documents-approved, #app .support-approved { min-height:0; padding:0; background:none; }
#app .documents-approved__hero, #app .support-approved__hero { aspect-ratio:auto; height:auto; min-height:0; padding:0; margin:6px 0 24px; background:none; }
#app .documents-approved__hero p, #app .support-approved__hero p { color:var(--muted); margin:0; font-size:14px; line-height:1.5; }
#app .documents-approved__content { padding:0; margin:0; }
#app .documents-section { padding:0; margin:0 0 22px; }
#app .documents-section > h2, #app .smg-faq__group > h3, #app .smg-product-guides__group > h3 { color:var(--text); font-size:19px; line-height:1.3; letter-spacing:-.3px; margin:0 0 12px; text-transform:none; }
#app .documents-legal__list { display:grid; gap:9px; }
#app .document-legal-card { display:flex; width:100%; align-items:center; gap:13px; min-height:67px; padding:12px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text); text-align:left; box-shadow:none; }
#app .document-legal-card::before, #app .document-legal-card::after { display:none; }
#app .document-legal-card__icon, #app .document-product__badge { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border:1px solid var(--red); border-radius:10px; background:transparent; font-size:13px; font-weight:800; color:var(--red); }
#app .document-legal-card__icon svg { width:26px; height:26px; }
#app .document-legal-card > svg, #app .document-detail-links button > svg { width:20px; height:20px; flex:0 0 20px; margin-left:auto; }
#app .document-supplier-card__copy, #app .document-legal-card__title { flex:1; min-width:0; }
#app .document-supplier-card__copy strong, #app .document-legal-card__title { font-size:16px; line-height:1.3; color:var(--text); }
#app .document-supplier-card__copy small { display:block; color:var(--muted); font-size:12px; line-height:1.5; margin-top:3px; }
#app .document-detail-head { display:flex; align-items:center; gap:12px; padding:0; margin:7px 0 20px; border:0; background:none; }
#app .document-detail-head > div { min-width:0; }
#app .document-detail-head h2 { color:var(--text); font-size:25px; line-height:1.2; margin:3px 0 5px; }
#app .document-detail-head p { font-size:10px; color:var(--muted); letter-spacing:.6px; margin:0; }
#app .document-detail-head span:not(.document-product__badge) { color:var(--muted); font-size:13px; }
#app .smg-faq__group { padding:0; margin:0 0 18px; border:0; background:none; }
#app .smg-faq__item { border:1px solid var(--line); border-radius:9px; margin:0 0 9px; padding:0; background:var(--surface); overflow:hidden; }
#app .smg-faq__item summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; list-style:none; color:var(--text); font-size:15px; line-height:1.4; font-weight:600; cursor:pointer; }
#app .smg-faq__item summary::-webkit-details-marker { display:none; }
#app .smg-faq__item summary svg { width:18px; height:18px; }
#app .smg-faq__item[open] summary { border-bottom:1px solid var(--line); }
#app .smg-faq__item[open] summary svg { transform:rotate(90deg); }
#app .smg-faq__body { padding:14px; color:var(--muted); font-size:14px; line-height:1.65; background:var(--surface); border:1px solid var(--line); border-radius:9px; }
#app .smg-faq__item > .smg-faq__body { border:0; border-radius:0; }
#app .smg-faq__body p { margin:0 0 12px; font-size:14px; line-height:1.65; color:var(--muted); white-space:pre-line; }
#app .smg-faq__body p:last-child { margin-bottom:0; }
#app .smg-faq__body strong { color:var(--text); }
#app .smg-faq__link { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:12px 0; color:var(--red-soft); border:0; border-top:1px solid var(--line); background:none; text-align:left; }
#app .smg-faq__link strong { color:var(--red-soft); font-size:13px; }
#app .smg-faq__link small { display:block; color:var(--muted); font-size:12px; }
#app .smg-faq__link svg { flex:0 0 18px; width:18px; height:18px; }
#app .smg-guide__steps { display:grid; gap:16px; }
#app .smg-guide__step { display:flex; gap:12px; padding:0; border:0; background:none; }
#app .smg-guide__number { flex:0 0 30px; display:grid; place-items:center; align-self:flex-start; width:30px; height:30px; border:1px solid var(--red); border-radius:7px; background:#ff004f0a; color:var(--red); font-size:13px; font-weight:700; }
#app .smg-guide__step h4 { margin:2px 0 5px; color:var(--text); font-size:14px; line-height:1.4; }
#app .smg-guide__step p { margin:0; font-size:13px; }
#app .smg-guide__spoofer { margin-top:16px; padding:0; border:0; background:none; }
#app .smg-guide__spoofer h4 { color:var(--text); margin:0 0 8px; }
#app .smg-guide__spoofer ol, #app .smg-product-guide__section ul { padding-left:19px; color:var(--muted); font-size:14px; line-height:1.65; }
#app .document-detail-links { display:grid; gap:10px; margin:0 0 18px; }
#app .document-detail-links button { display:flex; align-items:center; gap:10px; padding:13px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--text); box-shadow:none; text-align:left; }
#app .smg-guide__download button { background:var(--red); border-color:var(--red); color:white; }
#app .document-detail-links button span svg { width:22px; height:22px; }
#app .document-detail-links button b { font-size:14px; }
#app .document-detail-copy { color:var(--muted); font-size:14px; line-height:1.65; padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:9px; }
#app .smg-product-guide__section { background:var(--surface); border:1px solid var(--line); border-radius:9px; padding:14px; margin-bottom:10px; }
#app .smg-product-guide__heading { display:flex; align-items:center; gap:10px; }
#app .smg-product-guide__heading span { color:var(--red); }
#app .smg-product-guide__heading h3 { margin:0; font-size:16px; }
#app .documents-support { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px; min-height:45px; background:var(--surface); border:1px solid var(--line); border-radius:9px; color:var(--text); font-size:14px; box-shadow:none; }
#app .documents-support svg { width:22px; height:22px; }
#app .documents-trust, #app .support-trust { display:flex; gap:8px; justify-content:center; align-items:center; color:var(--muted); padding:0; margin:18px 0 0; font-size:11px; line-height:1.5; }
#app .documents-trust svg, #app .support-trust svg { width:18px; height:18px; flex:0 0 18px; }
#app .support-panel { padding:0; margin:0; border:0; background:none; box-shadow:none; }
#app .support-online { min-height:66px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--surface); gap:12px; grid-template-columns:10px minmax(0,1fr); }
#app .support-online__dot { width:8px; height:8px; background:#2ed49c; box-shadow:none; }
#app .support-online h2 { font-size:17px; margin:0 0 3px; }
#app .support-online p { font-size:12px; color:var(--muted); margin:0; }
#app .support-dialog { display:flex; align-items:center; justify-content:center; gap:10px; margin:13px 0 22px; padding:12px; min-height:47px; width:100%; border:1px solid var(--red); border-radius:9px; background:var(--red); font-size:16px; color:#fff; box-shadow:none; }
#app .support-dialog svg { width:22px; height:22px; }
#app .support-section { margin:0 0 22px; }
#app .support-section > h2 { font-size:19px; margin:0 0 12px; text-transform:none; letter-spacing:-.3px; }
#app .support-topics__grid { gap:10px; grid-template-columns:repeat(2,minmax(0,1fr)); }
#app .support-topics__grid button { min-height:72px; padding:12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); display:flex; flex-direction:row; gap:10px; align-items:center; justify-content:flex-start; color:var(--text); box-shadow:none; }
#app .support-topics__grid button span { width:24px; height:24px; flex:0 0 24px; }
#app .support-topics__grid button svg { width:24px; height:24px; }
#app .support-topics__grid button b { text-align:left; font-size:13px; line-height:1.3; }
#app .support-faq__list { display:grid; gap:9px; }
#app .support-faq__item { border:1px solid var(--line); border-radius:9px; background:var(--surface); margin:0; }
#app .support-faq__item button { padding:14px; min-height:49px; width:100%; color:var(--text); font-size:14px; text-align:left; background:none; border:0; }
#app .support-faq__item p { margin:0; padding:0 14px 14px; color:var(--muted); font-size:14px; line-height:1.6; }
/* Retain the existing bottom sheet, read state, counter and attachment controls. */
.notification-panel { display:flex; flex-direction:column; width:100%; max-width:760px; max-height:min(78dvh,760px); min-height:220px; padding:8px 14px calc(16px + var(--safe-bottom)); border:1px solid var(--line); border-bottom:0; border-radius:18px 18px 0 0; background:var(--surface); box-shadow:none; }
.notification-panel__handle { width:42px; height:4px; margin:0 auto 16px; border-radius:4px; background:#444b58; }
.notification-panel__header { display:flex; gap:10px; align-items:flex-start; padding:0 0 16px; margin:0; border:0; }
.notification-panel__header > div { flex:1; min-width:0; }
.notification-panel__header h2 { font-size:21px; margin:0 0 4px; }
.notification-panel__header p { color:var(--muted); font-size:11px; margin:0; }
.notification-panel__clear { padding:7px 0; border:0; background:none; color:var(--muted); font-size:12px; }
.notification-panel__close { width:30px; height:30px; flex:0 0 30px; background:#181d26; border:1px solid var(--line); border-radius:8px; }
.notification-panel__list { display:grid; align-content:start; min-height:0; gap:10px; padding:0; overflow-y:auto; overscroll-behavior:contain; }
.notification-item { position:relative; display:flex; gap:11px; width:100%; min-height:90px; align-items:flex-start; padding:13px; border:1px solid var(--line); border-radius:10px; background:#151922; color:var(--text); text-align:left; }
.notification-item__icon { display:grid; place-items:center; flex:0 0 31px; width:31px; height:31px; padding:5px; border:1px solid var(--line); border-radius:8px; background:#0c1017; color:var(--red); }
.notification-item__icon svg, .notification-empty svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.notification-item__copy { display:grid; gap:5px; flex:1; min-width:0; }
.notification-item__copy strong { color:var(--text); font-size:14px; line-height:1.3; }
.notification-item__copy > span { color:var(--muted); font-size:13px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.notification-item__copy time { color:#9ea8b9; font-size:11px; }
.notification-item__chevron { width:16px; height:16px; margin:auto 0; flex:0 0 16px; color:var(--muted); }
.notification-item.is-unread::after { position:absolute; top:12px; right:12px; content:""; width:6px; height:6px; border-radius:50%; background:var(--red); }
.notification-empty { padding:25px 10px; color:var(--muted); text-align:center; }
.notification-empty > span { color:var(--red); display:block; margin-bottom:12px; }
.notification-empty strong { color:var(--text); display:block; font-size:17px; }
.notification-empty p { font-size:13px; }
@media(max-width:350px) {
  .extra-product__top { grid-template-columns:80px minmax(0,1fr); gap:10px; }
  .extra-product__photo { width:80px; height:60px; }
  #app .personal-promo-card header code { font-size:15px; }
  #app .support-topics__grid button { gap:7px; padding:10px; }
  .notification-panel__header { gap:7px; }
  .notification-panel__header p { max-width:145px; }
}
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .extra-copy, #app .document-legal-card, #app .support-topics__grid button { transition:transform .16s ease,border-color .16s ease; }
  .extra-copy:hover, #app .document-legal-card:hover, #app .support-topics__grid button:hover { border-color:var(--red); transform:translateY(-1px); }
}
.extra-copy:active, #app .document-legal-card:active, #app .support-topics__grid button:active { transform:scale(.985); }
/* Remove the former supplier frame and keep the common header visible. */
#app .documents-approved__content { border:0; border-radius:0; background:none; box-shadow:none; }
#app .documents-section > h2, #app .smg-faq__group > h3 { font-weight:800; }
#app .support-section > h2 { color:var(--text); font-weight:800; }
#app .promo-list, #app .review-list { margin:0; }
#app .review-card header { justify-content:flex-start; flex-wrap:nowrap; }
#app .review-card header .review-avatar { color:var(--text); }
#app .review-card .secondary-button { color:var(--text); border-color:var(--line); }
#app:has(.screen--documents) .brand, #app:has(.screen--support) .brand { display:block; visibility:visible; opacity:1; }
#app:has(.screen--documents) .topbar__back, #app:has(.screen--support) .topbar__back { width:38px; height:38px; border:1px solid #384151; }
#checkout-backdrop .extra-checkout-result .nav-item { border:0; }
#checkout-backdrop .extra-checkout-result .primary-button, #app .extra-screen .primary-button { box-shadow:none; }

/* Telegram profile photo keeps the existing circular avatar and initial fallback. */
#app .profile-approved__avatar { position: relative; overflow: hidden; border-radius: 50%; }
#app .profile-approved__avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
