/* «خلها تطبيق» — the style step «made for you» (his ruling 2026-09-29/30): three looks drawn as the
   owner's own app, all 19 one tap away, the chosen look landing large before payment. The looks
   themselves are in looks.css / looks.js. CSP: no inline styles — sizes are set through element.style. */

.tstep .lede { margin-bottom: 14px; }
.tstep .lede:empty { display: none; }
.tstep .lede b { color: var(--ink); font-weight: 600; }

/* the phone frame every preview sits in */
.tdev { position: relative; display: block; padding: 6px; border-radius: 40px; background: linear-gradient(145deg, #4a4f5c, #1b1e26 40%, #2d313b 70%, #121419); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px rgba(255, 255, 255, 0.1); }
.tscr { position: relative; display: block; overflow: hidden; border-radius: 34px; aspect-ratio: 390 / 844; background: #1a1d25; isolation: isolate; }
.tdev.mini { padding: 3px; border-radius: 16px; }
.tdev.mini .tscr { border-radius: 13px; }
.tdev.thumb { padding: 4px; border-radius: 22px; }
.tdev.thumb .tscr { border-radius: 18px; }
/* A still reminder of the chosen app beside the total (release 6, 2026-10-27). */
.pay-look .tdev { width: min(100%, 200px); margin: 12px auto; }
.tdev.big { width: min(64vw, 300px); margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .tdev.land { animation: tland 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
  @keyframes tland { from { transform: scale(0.88) translateY(16px); opacity: 0.35; } to { transform: none; opacity: 1; } }
}

/* 1 · the three «made for you» */
.tpick { margin: 0 -20px; }
.tcar { --w: min(58vw, 240px); --gap: 16px; display: flex; gap: var(--gap); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 20px calc(50% - var(--w) / 2) 6px; scroll-padding-inline: calc(50% - var(--w) / 2); scrollbar-width: none; overscroll-behavior-x: contain; }
.tcar::-webkit-scrollbar { display: none; }
.tslide { position: relative; flex: 0 0 var(--w); scroll-snap-align: center; text-align: center; }
.tview { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 40px; transition: transform 0.35s, opacity 0.35s; }
.tslide:not(.on) .tview { transform: scale(0.94); opacity: 0.6; }
.tslide.on .tdev { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(143, 178, 255, 0.9), 0 0 70px rgba(143, 178, 255, 0.25), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }
.rec { position: absolute; z-index: 3; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap; }
.rec.small { top: -9px; font-size: 11px; padding: 2px 9px; }
.tcap { display: block; padding: 14px 8px 0; transition: opacity 0.3s; }
.tslide:not(.on) .tcap { opacity: 0.45; }
.tname { display: block; font-size: 17px; font-weight: 600; line-height: 1.5; }
.tfeel { display: block; color: var(--mute); font-size: 13.5px; line-height: 1.6; }
/* the fourth card: there are more */
.tmore { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 390 / 844; padding: 16px; border-radius: 40px; border: 1.5px dashed var(--edge2); background: var(--card); color: var(--ink); }
.tmore b { font-size: 18px; font-weight: 600; }
.tstack { display: flex; justify-content: center; margin-bottom: 8px; }
.tstack .tdev { width: 64px; }
.tstack .tdev + .tdev { margin-inline-start: -22px; }
.tstack .tdev:nth-child(2) { transform: translateY(-8px); z-index: 1; }
.tnavrow { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 8px; }
.tarrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge2); background: var(--card); color: var(--ink); }
.tarrow svg, .tallhead svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tcount { min-width: 96px; text-align: center; color: var(--mute); font-size: 14px; }
.tsay { margin: 12px auto 0; padding: 0 20px; max-width: 46ch; text-align: center; color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.tact { display: grid; gap: 8px; margin-top: 14px; }
/* On phones the choice is always in reach: the actions ride the bottom of the screen. */
@media (max-width: 979px) {
  .tact { position: sticky; bottom: calc(10px + var(--safe-b)); z-index: 20; margin-inline: -8px; padding: 10px; border-radius: 22px; background: rgba(20, 24, 36, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid var(--edge2); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
  .tact .btn.big { min-height: 52px; }
  .tact .btn.tall { min-height: 42px; font-size: 14.5px; }
  .tstep .h1 { font-size: 28px; }
}
.tact .btn[disabled] { opacity: 0.45; cursor: default; box-shadow: none; }
.btn.tall { border-style: dashed; }

/* 2 · all nineteen */
.tallhead { display: flex; margin: -4px 0 10px; }
.tallhead .btn { gap: 4px; padding-inline: 8px; }
.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
.tcell { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); text-align: center; }
.tcell b { font-size: 13px; font-weight: 600; line-height: 1.4; }
.tcell.mine .tdev { box-shadow: 0 0 0 2px var(--sky), 0 16px 30px rgba(0, 0, 0, 0.45); }
@media (min-width: 640px) { .tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 980px) { .tgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* 3 · one look, large */
.tfocus { padding-top: 6px; }

/* 4 · the chosen look lands */
.tchosen { display: grid; gap: 20px; justify-items: center; }
.tchosen-side { width: 100%; }
.tpicked { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.tpicked .ok { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sky); color: var(--bg); }
.tpicked .ok svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; }
.tfeats { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--ink); }
@media (min-width: 980px) {
  .tpick { margin: 0; }
  .tcar { --w: 250px; justify-content: center; padding-inline: 0; overflow-x: visible; }
  .tact { grid-template-columns: 1fr 1fr; max-width: 640px; margin-inline: auto; }
  .tchosen { grid-template-columns: 340px minmax(0, 1fr); align-items: center; max-width: 900px; margin-inline: auto; justify-items: stretch; }
  .tchosen .tsay { text-align: start; padding: 0; margin-inline: 0; }
}

/* «أضف لمستك» — optional, folded */
.ttouch { padding: 0; margin-top: 18px; }
.ttouch > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-weight: 600; }
.ttouch > summary::-webkit-details-marker { display: none; }
.ttouch > summary small { color: var(--dim); font-weight: 400; font-size: 13px; margin-inline-start: 6px; }
.ttouch > summary svg { width: 20px; height: 20px; fill: none; stroke: var(--mute); stroke-width: 2; transition: transform 0.25s; }
.ttouch[open] > summary svg { transform: rotate(-90deg); }
.ttouch-in { padding: 0 20px 20px; }
.ttouch textarea { width: 100%; padding: 12px; border-radius: 14px; border: 1px solid var(--edge2); background: var(--card); color: var(--ink); font-size: 16px; line-height: 1.7; resize: vertical; }
.tdock { justify-content: space-between; }
.tdock .btn.primary { flex: 1 1 220px; }

.tq { margin-top: 18px; }
.tq h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.topts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.topt { position: relative; display: block; cursor: pointer; }
.topt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.topt > span { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; padding: 12px 4px 10px; border-radius: 16px; border: 1px solid var(--edge); background: var(--card); text-align: center; transition: border-color 0.2s, background-color 0.2s; }
.topt .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 13px; background: var(--card2); border: 1px solid var(--edge); color: var(--ink); }
.topt .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topt .ico.m-light { background: #f5f1e9; color: #1d1b17; border-color: transparent; }
.topt .ico.m-dark { background: #0c0d12; color: #f2f3f7; }
.topt .ico.m-auto { background: linear-gradient(135deg, #f5f1e9 50%, #0c0d12 50%); color: #8fb2ff; }
.topt .ico .fillc { fill: currentColor; }
.topt b { font-size: 14px; font-weight: 600; line-height: 1.4; }
.topt small { color: var(--mute); font-size: 12px; line-height: 1.4; }
.topt input:checked + span { border-color: rgba(143, 178, 255, 0.85); background: rgba(143, 178, 255, 0.1); box-shadow: 0 0 0 3px rgba(143, 178, 255, 0.16); }
.topt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.tview:focus-visible, .tcell:focus-visible, .tmore:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

/* the chosen look, small, on the payment page */
.rlook { display: flex; align-items: center; gap: 16px; }
.rlook .tdev { flex: 0 0 76px; }
.rlook-t { display: grid; gap: 2px; min-width: 0; }
.rlook-t b { font-size: 17px; font-weight: 600; }
.rlook-t .link { margin-top: 4px; justify-self: start; }
