@font-face{font-family:'Readex Pro';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/readex-pro-arabic-300-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:300;font-display:swap;src:url(/fonts/readex-pro-latin-300-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/readex-pro-arabic-400-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/readex-pro-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/readex-pro-arabic-500-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/readex-pro-latin-500-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/readex-pro-arabic-600-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/readex-pro-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/readex-pro-arabic-700-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/readex-pro-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* lovotech review — brand tokens from brand.json (navy retired, gold = hairline/text only, no Arabic letter-spacing) */
:root {
  --blue: #1055C9;
  --ink: #F4F5F8;
  --indigo: #2E3192;
  --gold: #E5C95F;
  --teal: #41A79A;
  --gray: #67687A;
  --white: #FFFFFF;
  --line: rgba(46, 49, 146, .12);
  --shadow: 0 1px 2px rgba(46, 49, 146, .06), 0 12px 32px -12px rgba(46, 49, 146, .22);
  --r: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--indigo);
  font-family: 'Readex Pro', system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img, video { display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[hidden] { display: none !important; }

/* ---------- shared bits ---------- */
.logo { color: var(--indigo); display: block; }
.logo svg { display: block; height: 100%; width: auto; }
.logo-text { display: inline-flex; align-items: center; height: 100%; font-weight: 700; font-size: 18px; line-height: 1; }
.login-hero .logo-text { font-size: 32px; }
.welcome-mark .logo-text { font-size: 44px; }
.eyebrow { font-size: 12px; color: var(--gray); font-weight: 400; }
.rule { height: 1px; background: var(--gold); border: 0; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  font-weight: 500; font-size: 15px; transition: transform .15s, background .15s, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #0d4ab0; }
.btn-ghost { background: transparent; color: var(--indigo); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(46, 49, 146, .3); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-danger { color: #B3261E; box-shadow: inset 0 0 0 1px rgba(179, 38, 30, .25); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--gray); }
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 12px;
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16, 85, 201, .12); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.7; }
.err { color: #B3261E; font-size: 13px; min-height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--white); color: var(--indigo);
}
.chip[aria-pressed="true"] { background: var(--indigo); color: var(--white); box-shadow: none; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-pending { color: var(--blue); }
.st-changes { color: #A8871C; }
.st-approved { color: var(--teal); }
.st-published { color: var(--gray); }

.toast {
  position: fixed; inset-inline: 16px; bottom: calc(20px + var(--safe-b)); margin: auto; max-width: 420px;
  background: var(--indigo); color: var(--white); border-radius: 14px; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 14px; z-index: 90; box-shadow: var(--shadow); animation: up .25s ease;
}
.toast button { color: var(--gold); font-weight: 600; font-size: 14px; }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; background: var(--blue); color: var(--white); }
.login-hero { padding: calc(48px + var(--safe-t)) 28px 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; max-width: 520px; width: 100%; margin: 0 auto; }
.login-hero .logo { color: var(--white); height: 44px; }
.login-hero h1 { font-weight: 600; font-size: 34px; line-height: 1.35; margin: 0; }
.login-hero p { margin: 0; font-weight: 300; opacity: .82; line-height: 1.7; }
.login-hero .rule { width: 64px; }
.login-panel { background: var(--ink); color: var(--indigo); border-radius: 28px 28px 0 0; padding: 28px 28px calc(28px + var(--safe-b)); }
.login-form { width: 100%; max-width: 400px; margin: 0 auto; display: grid; gap: 14px; }
.login-title { margin-bottom: 6px; }
.login-title h2 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.login-title p { margin: 0; font-size: 13px; color: var(--gray); line-height: 1.7; }
.login-form .err:empty { display: none; }
.login-form .btn { height: 52px; margin-top: 6px; }
.login-foot { text-align: center; font-size: 12px; color: var(--gray); margin-top: 8px; }
@media (min-width: 900px) {
  .login { grid-template-rows: none; grid-template-columns: 1.1fr 1fr; }
  .login-hero { justify-content: center; padding: 64px; max-width: 640px; }
  .login-hero h1 { font-size: 48px; }
  .login-panel { border-radius: 0; display: grid; align-content: center; padding: 64px; }
  .login-title h2 { font-size: 26px; }
}

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; background: rgba(244, 245, 248, .92); backdrop-filter: blur(12px);
  padding: calc(10px + var(--safe-t)) 16px 10px; display: flex; align-items: center; gap: 12px; justify-content: space-between;
}
.bar .logo { height: 26px; }
/* admin: keep the bar's edges in line with the 1200px content column */
.admin .bar { padding-inline: max(16px, calc((100% - 1200px) / 2 + 16px)); box-shadow: 0 1px 0 var(--line); }
.bar-mid { font-size: 13px; color: var(--gray); }
.bar-mid b { color: var(--indigo); font-weight: 600; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--indigo); }
.icon-btn:hover { background: rgba(46, 49, 146, .06); }

/* ---------- owner deck ---------- */
.deck-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.stage { flex: 1; position: relative; display: grid; place-items: center; padding: 4px 16px 0; min-height: 0; }
.stack { position: relative; width: var(--w, 320px); height: var(--h, 480px); }
.card {
  position: absolute; inset: 0; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column; touch-action: none; user-select: none; -webkit-user-select: none;
  transform-origin: 50% 100%; will-change: transform;
}
.card.back { transform: translateY(12px) scale(.95); pointer-events: none; transition: transform .3s; }
.card.back .info > *, .card.back2 .info > *, .card.back .bars, .card.back2 .bars, .card.back .nav { visibility: hidden; }
.card.back2 { transform: translateY(22px) scale(.9); pointer-events: none; }
.card.anim { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.media { position: relative; flex: 1; min-height: 0; background: #E9EBF1; overflow: hidden; }
.media img, .media video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .18s; }
.media .slide.on { opacity: 1; }
.bars { position: absolute; top: 10px; inset-inline: 10px; display: flex; gap: 4px; direction: ltr; z-index: 3; }
.bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
.bars i.on { background: var(--white); }
.nav { position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--indigo); display: grid; place-items: center; z-index: 3; opacity: 0; transition: opacity .2s; pointer-events: none; }
.nav .icon { width: 18px; height: 18px; }
.nav.prev { left: 10px; } .nav.next { right: 10px; }
.card:hover .nav.show { opacity: 1; }
.counter { display: none; position: absolute; top: 22px; left: 12px; z-index: 3; font-size: 11px; background: rgba(5, 9, 26, .55); color: var(--white); border-radius: 999px; padding: 3px 9px; direction: ltr; }
.mute { position: absolute; bottom: 12px; left: 12px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; background: rgba(5, 9, 26, .55); color: var(--white); display: grid; place-items: center; }
.mute .icon { width: 18px; height: 18px; }
.stamp {
  position: absolute; top: 34px; z-index: 4; padding: 6px 16px; border-radius: 10px; font-weight: 700; font-size: 26px;
  border: 3px solid currentColor; background: rgba(255, 255, 255, .9); opacity: 0; pointer-events: none;
}
.stamp.yes { left: 22px; color: var(--teal); transform: rotate(-12deg); }
.stamp.no { right: 22px; color: var(--indigo); transform: rotate(12deg); }
.stamp.no::after { content: ''; position: absolute; inset-inline: 10px; bottom: 4px; height: 2px; background: var(--gold); }
.info { padding: 12px 16px 14px; display: grid; gap: 4px; border-top: 1px solid var(--line); }
.info h2 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prev-note { margin-top: 6px; font-size: 12px; color: var(--gray); border-inline-start: 2px solid var(--gold); padding-inline-start: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prev-note b { color: var(--indigo); font-weight: 500; }

.actions { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 14px 16px calc(18px + var(--safe-b)); }
.act { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--gray); }
.act .disc { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow); transition: transform .15s; }
.act .disc .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.act:active .disc { transform: scale(.92); }
.act.yes .disc { background: var(--teal); color: var(--white); }
.act.no .disc { color: var(--indigo); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--gold); }
.act.mid .disc { width: 48px; height: 48px; color: var(--gray); }
.act.mid .disc .icon { width: 22px; height: 22px; }
.keys { text-align: center; font-size: 11px; color: var(--gray); opacity: .7; margin-top: -8px; padding-bottom: 10px; }
@media (hover: none) { .keys { display: none; } }

.empty { text-align: center; display: grid; gap: 14px; justify-items: center; max-width: 320px; padding: 24px; }
.empty h2 { margin: 0; font-weight: 600; font-size: 22px; }
.empty p { margin: 0; color: var(--gray); line-height: 1.7; font-size: 14px; }
.empty .rule { width: 48px; }
.empty svg.art { width: 120px; height: 120px; color: var(--indigo); }

/* ---------- sheets / modals ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 9, 26, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  background: var(--ink); width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + var(--safe-b)); animation: sheet .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet.wide { max-width: 980px; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(46, 49, 146, .18); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 4px; font-size: 20px; font-weight: 600; }
.sheet .sub { margin: 0 0 16px; color: var(--gray); font-size: 13px; }
.sheet .stack-y { display: grid; gap: 16px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 700px) {
  .scrim { align-items: center; }
  .sheet { border-radius: 24px; padding: 24px 28px; }
  .grab { display: none; }
}
.caption { white-space: pre-wrap; line-height: 1.85; font-size: 14px; background: var(--white); border-radius: 14px; padding: 14px 16px; margin: 0; border: 1px solid var(--line); }
.strip { display: flex; gap: 6px; overflow-x: auto; direction: ltr; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.strip > * { flex: 0 0 auto; height: 260px; width: auto; scroll-snap-align: start; border-radius: 6px; background: #E9EBF1; }
.strip.pano { gap: 0; }
.strip.pano > * { border-radius: 0; }
.strip img, .strip video { height: 260px; width: auto; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.label-row h4 { margin: 0; font-size: 14px; font-weight: 600; }
.linkish { font-size: 12px; color: var(--blue); }

/* ---------- history / timeline ---------- */
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.tl::before { content: ''; position: absolute; top: 18px; bottom: 0; inset-inline-start: 8px; width: 1px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 17px; height: 17px; border-radius: 50%; margin-top: 3px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.tl.v .dot { box-shadow: inset 0 0 0 5px var(--blue); }
.tl.approve .dot { box-shadow: inset 0 0 0 5px var(--teal); }
.tl.changes .dot { box-shadow: inset 0 0 0 5px var(--gold); }
.tl .t { font-size: 13px; font-weight: 500; }
.tl .m { font-size: 11px; color: var(--gray); }
.tl .c { font-size: 14px; line-height: 1.75; margin-top: 4px; white-space: pre-wrap; }
.tl .tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tl .tags span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(46, 49, 146, .07); }

/* ---------- admin ---------- */
.admin { min-height: 100dvh; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 8px 16px 64px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 14px; }
.admin-head h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.3; }
.admin-head .eyebrow { margin-bottom: 4px; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .admin-head-actions { width: 100%; flex-direction: row-reverse; }
  .admin-head-actions .btn { flex: 1; }
}
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 14px; font-size: 14px; color: var(--gray); white-space: nowrap; position: relative; }
.tab b { font-weight: 500; font-size: 11px; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(46, 49, 146, .07); }
.tab[aria-selected="true"] { color: var(--indigo); font-weight: 500; }
.tab[aria-selected="true"] b { background: var(--indigo); color: var(--white); }
.tab[aria-selected="true"]::after { content: ''; position: absolute; inset-inline: 10px; bottom: -1px; height: 2px; background: var(--indigo); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.tile { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); text-align: start; display: flex; flex-direction: column; transition: transform .2s; }
.tile:hover { transform: translateY(-2px); }
.tile .thumb { aspect-ratio: 4 / 5; background: #E9EBF1; position: relative; overflow: hidden; }
.tile .thumb img, .tile .thumb video { width: 100%; height: 100%; object-fit: cover; }
.tile .badge { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 11px; background: rgba(5, 9, 26, .6); color: var(--white); padding: 2px 8px; border-radius: 999px; direction: ltr; }
.tile .body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.tile .title { font-weight: 500; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile .fb { font-size: 12px; color: var(--gray); line-height: 1.6; border-inline-start: 2px solid var(--gold); padding-inline-start: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.admin-empty { padding: 64px 16px; text-align: center; color: var(--gray); }

.detail { display: grid; gap: 24px; }
.detail > * { min-width: 0; }
@media (min-width: 860px) { .detail { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.detail-media .strip > *, .detail-media .strip img, .detail-media .strip video { height: 380px; }
@media (max-width: 600px) { .detail-media .strip > *, .detail-media .strip img, .detail-media .strip video { height: 280px; } }
.detail-side { display: grid; gap: 18px; }
.ver-switch { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: 12px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 38px; border-radius: 9px; font-size: 13px; color: var(--gray); }
.seg button[aria-pressed="true"] { background: var(--indigo); color: var(--white); }
.drop {
  border: 1.5px dashed rgba(46, 49, 146, .25); border-radius: 14px; padding: 22px; text-align: center; color: var(--gray);
  font-size: 14px; background: var(--white); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--blue); background: rgba(16, 85, 201, .04); }
.drop b { color: var(--blue); font-weight: 500; }
.previews { display: flex; gap: 8px; overflow-x: auto; direction: ltr; padding: 4px 0; }
.pv { position: relative; flex: 0 0 auto; width: 84px; height: 105px; border-radius: 8px; overflow: hidden; background: #E9EBF1; }
.pv img, .pv video { width: 100%; height: 100%; object-fit: cover; }
.pv .n { position: absolute; bottom: 4px; left: 4px; font-size: 10px; background: rgba(5, 9, 26, .6); color: #fff; border-radius: 6px; padding: 1px 6px; }
.pv .x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(5, 9, 26, .6); color: #fff; font-size: 14px; line-height: 22px; }
.pv .mv { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(5, 9, 26, .6); color: #fff; font-size: 12px; line-height: 22px; }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }

.menu { position: absolute; top: calc(54px + var(--safe-t)); inset-inline-end: 12px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 200px; z-index: 40; animation: fade .15s; }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-size: 14px; text-align: start; }
.menu button:hover { background: var(--ink); }
.menu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }

/* ---------- first-run tour (blue surface, white type, gold hairline) ---------- */
.tour {
  position: fixed; inset: 0; z-index: 100; background: var(--blue); color: var(--white);
  display: flex; flex-direction: column; padding: calc(16px + var(--safe-t)) 24px calc(20px + var(--safe-b));
  animation: fade .25s ease; overflow: hidden;
}
.tour-top { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.tour-top .logo { color: var(--white); height: 22px; }
.tour-skip { color: rgba(255, 255, 255, .75); font-size: 14px; padding: 8px; }
.tour-art { flex: 1; display: grid; place-items: center; min-height: 0; position: relative; }
.tour-text { max-width: 440px; margin: 0 auto; width: 100%; text-align: center; display: grid; gap: 10px; padding-bottom: 8px; }
.tour-text h2 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.4; }
.tour-text p { margin: 0; font-weight: 300; line-height: 1.8; opacity: .88; font-size: 15px; }
.tour-text .rule { width: 48px; margin: 0 auto; }
.tour-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0; direction: ltr; }
.tour-dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .35); transition: width .25s, background .25s; }
.tour-dots i.on { width: 22px; background: var(--white); }
.tour-btns { display: grid; gap: 10px; max-width: 440px; width: 100%; margin: 0 auto; }
.tour-btns .btn { height: 54px; font-size: 16px; }
.btn-white { background: var(--white); color: var(--blue); font-weight: 600; }
.btn-line { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.tour-note { font-size: 13px; text-align: center; opacity: .8; line-height: 1.7; min-height: 22px; }
.tour-step { animation: stepIn .35s cubic-bezier(.2, .8, .2, 1); display: contents; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-16px); } }

/* mini phone used by the illustrations */
.mini { width: 168px; height: 250px; position: relative; }
.mini-card {
  position: absolute; inset: 0; border-radius: 16px; background: var(--white); box-shadow: 0 18px 40px -12px rgba(5, 9, 26, .45);
  overflow: hidden; display: flex; flex-direction: column;
}
.mini-card .m-img { flex: 1; background: linear-gradient(160deg, #E9EBF1 0 52%, var(--blue) 52% 100%); position: relative; }
.mini-card .m-img::before { content: ''; position: absolute; top: 16px; inset-inline: 18px; height: 8px; border-radius: 4px; background: var(--indigo); opacity: .85; }
.mini-card .m-img::after { content: ''; position: absolute; top: 32px; inset-inline-end: 18px; width: 60%; height: 6px; border-radius: 3px; background: var(--gold); }
.mini-card .m-info { height: 46px; padding: 10px 12px; display: grid; gap: 6px; }
.mini-card .m-info i { display: block; height: 6px; border-radius: 3px; background: rgba(46, 49, 146, .18); }
.mini-card .m-info i:last-child { width: 60%; background: rgba(46, 49, 146, .4); }
.mini-back { transform: translateY(10px) scale(.94); opacity: .55; }
.mini-stamp { position: absolute; top: 20px; padding: 3px 10px; border-radius: 6px; border: 2px solid currentColor; background: rgba(255, 255, 255, .92); font-weight: 700; font-size: 15px; opacity: 0; }
.mini-stamp.yes { left: 12px; color: var(--teal); transform: rotate(-12deg); }
.mini-stamp.no { right: 12px; color: var(--indigo); transform: rotate(12deg); }
.finger { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 8px rgba(255, 255, 255, .22); z-index: 3; }

.art-right .mini-card.front { animation: swipeR 2.6s infinite cubic-bezier(.5, 0, .3, 1); }
.art-right .mini-stamp.yes { animation: stampOn 2.6s infinite; }
.art-right .finger { top: 55%; left: 40%; animation: fingerR 2.6s infinite cubic-bezier(.5, 0, .3, 1); }
@keyframes swipeR { 0%, 18% { transform: none; } 55% { transform: translateX(70px) rotate(8deg); } 75% { transform: translateX(260px) rotate(24deg); opacity: 1; } 76%, 88% { transform: none; opacity: 0; } 100% { opacity: 1; } }
@keyframes fingerR { 0%, 18% { transform: none; opacity: 1; } 55% { transform: translateX(70px); } 70%, 100% { transform: translateX(110px); opacity: 0; } }
@keyframes stampOn { 0%, 30% { opacity: 0; } 50%, 74% { opacity: 1; } 76%, 100% { opacity: 0; } }

.art-left .mini-card.front { animation: swipeL 3.2s infinite cubic-bezier(.5, 0, .3, 1); }
.art-left .mini-stamp.no { animation: stampOnL 3.2s infinite; }
.art-left .finger { top: 55%; left: 40%; animation: fingerL 3.2s infinite cubic-bezier(.5, 0, .3, 1); }
.art-left .mini-sheet { position: absolute; inset-inline: -36px; bottom: -26px; height: 128px; border-radius: 18px 18px 0 0; background: var(--ink); padding: 14px; display: grid; gap: 8px; align-content: start; animation: sheetUp 3.2s infinite; z-index: 4; box-shadow: 0 -10px 30px -10px rgba(5, 9, 26, .4); }
.mini-sheet b { font-size: 12px; color: var(--indigo); font-weight: 600; }
.mini-sheet span { display: block; height: 34px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); position: relative; }
.mini-sheet span::after { content: ''; position: absolute; top: 12px; inset-inline-start: 10px; height: 8px; width: 0; border-radius: 4px; background: rgba(46, 49, 146, .35); animation: typing 3.2s infinite; }
.mini-sheet em { justify-self: start; height: 22px; width: 90px; border-radius: 999px; background: var(--blue); }
@keyframes swipeL { 0%, 15% { transform: none; } 45%, 92% { transform: translateX(-60px) rotate(-9deg); } 100% { transform: none; } }
@keyframes fingerL { 0%, 15% { transform: none; opacity: 1; } 45% { transform: translateX(-60px); opacity: 1; } 55%, 100% { transform: translateX(-60px); opacity: 0; } }
@keyframes stampOnL { 0%, 25% { opacity: 0; } 40%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sheetUp { 0%, 45% { transform: translateY(110%); } 55%, 90% { transform: none; } 100% { transform: translateY(110%); } }
@keyframes typing { 0%, 58% { width: 0; } 85%, 100% { width: 70%; } }

.art-tap .bars-mini { position: absolute; top: 8px; inset-inline: 10px; display: flex; gap: 3px; direction: ltr; z-index: 2; }
.art-tap .bars-mini i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .5); }
.art-tap .bars-mini i:first-child { background: var(--white); }
.art-tap .bars-mini i:nth-child(2) { animation: barOn 2.4s infinite; }
.art-tap .m-img.s2 { position: absolute; inset: 0 0 46px 0; background: linear-gradient(200deg, var(--blue) 0 48%, #E9EBF1 48% 100%); animation: slideOn 2.4s infinite; }
.art-tap .finger { top: 40%; right: 16px; animation: tap 2.4s infinite; }
.art-tap .zone { position: absolute; top: 0; bottom: 46px; right: 0; width: 50%; border-inline-start: 1px dashed rgba(46, 49, 146, .35); z-index: 2; animation: zone 2.4s infinite; }
@keyframes tap { 0%, 30% { transform: scale(1); opacity: 0; } 38% { opacity: 1; } 45% { transform: scale(.8); } 55% { transform: scale(1); opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes slideOn { 0%, 44% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes barOn { 0%, 44% { background: rgba(255, 255, 255, .5); } 50%, 92% { background: var(--white); } 100% { background: rgba(255, 255, 255, .5); } }
@keyframes zone { 0%, 30% { background: transparent; } 45% { background: rgba(16, 85, 201, .08); } 60%, 100% { background: transparent; } }

.art-push { width: 300px; max-width: 100%; display: grid; gap: 14px; justify-items: center; }
.art-push svg.bell { width: 92px; height: 92px; color: var(--white); animation: ring 2.8s infinite; transform-origin: 50% 12%; }
@keyframes ring { 0%, 60%, 100% { transform: none; } 64% { transform: rotate(14deg); } 68% { transform: rotate(-12deg); } 72% { transform: rotate(8deg); } 76% { transform: rotate(-4deg); } }
.notif {
  width: 100%; background: rgba(255, 255, 255, .94); color: #111; border-radius: 18px; padding: 10px 12px; display: grid;
  grid-template-columns: 38px 1fr; gap: 10px; align-items: center; box-shadow: 0 14px 30px -12px rgba(5, 9, 26, .5); text-align: start;
  animation: notifIn 2.8s infinite;
}
.notif img { width: 38px; height: 38px; border-radius: 9px; }
.notif b { display: block; font-size: 13px; font-weight: 600; }
.notif span { display: block; font-size: 12px; color: #555; }
.notif .hd { display: flex; justify-content: space-between; font-size: 11px; color: #777; margin-bottom: 2px; }
@keyframes notifIn { 0%, 10% { transform: translateY(-24px); opacity: 0; } 22%, 88% { transform: none; opacity: 1; } 100% { transform: translateY(-24px); opacity: 0; } }

.art-install { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.inst { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 12px 14px; text-align: start; font-size: 14px; line-height: 1.6; }
.inst .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--blue); font-weight: 600; font-size: 14px; }
.inst .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.inst .ic .icon { width: 20px; height: 20px; }
.inst .ic img { width: 30px; height: 30px; border-radius: 7px; }
.inst-arrow { position: fixed; bottom: calc(6px + var(--safe-b)); left: 50%; margin-left: -14px; width: 28px; height: 28px; color: var(--white); animation: bob 1.4s infinite ease-in-out; }
@keyframes bob { 50% { transform: translateY(6px); } }

.welcome-mark { color: var(--white); display: grid; justify-items: center; gap: 18px; }
.welcome-mark .logo { height: 64px; color: var(--white); }
.welcome-mark .rule { width: 64px; }
@media (prefers-reduced-motion: reduce) { .tour *, .tour *::before, .tour *::after { animation: none !important; } }
