
  :root{
    direction: rtl;
    --bg: #170B29;
    --bg-elevated: #211236;
    --surface-2: #2B1A47;
    --ink: #F3EEFA;
    --ink-soft: #C9BEDD;
    --ink-faint: #8F82AC;
    --border: #3A2760;
    --accent: #FFB020;
    --accent-ink: #FFCB6B;
    --accent-soft-bg: #4A3418;
    --accent2: #2FE0D0;
    --accent2-soft-bg: #0F3D3A;
    --accent3: #B98AE0;
    --accent3-soft-bg: #3A2A55;
    --pink: #FF2E93;
    --pink-soft-bg: #4A1236;
    --shadow: rgba(0,0,0,.5);
    --sprocket: #3A2760;
    --studio-black: #16130F;
    --flag-green: #0B6E4F;
    --wall-burgundy: #2A1310;
    --light-band: #C97444;
    --tabletop-ivory: #ECE4D3;
    --oxblood: #3A1310;
    --denim-blue: #5C7C93;
    --charcoal: #242220;
    --shirt-fabric: #C9D2D4;
    --concrete: #B9B2A2;
    --tile-wall: #E4DCC9;
    --fabric-ivory: #EDE6D8;
    --powder-blue: #C3D6E3;
    --sage-table: #C7D2C0;
    --offwhite: #F3F1EA;
    --mint-white: #E7F1EB;
    --taupe-brown: #8C7461;
    --thobe-white: #F6F4EE;
    --waffle-brown: #8B6A4A;

    --ill-ink: #2A2A2E;
    --ill-ink-faint: #8A929A;
    --ill-border: #D3D9DB;
    --ill-bg-elevated: #FFFFFF;
    --ill-surface: #E4E8EA;
  }

  :root[data-theme="light"]{
    --bg: #FBF7F0;
    --bg-elevated: #FFFFFF;
    --surface-2: #F3ECFA;
    --ink: #241542;
    --ink-soft: #4B3C68;
    --ink-faint: #8981A3;
    --border: #E4DAF2;
    --accent: #C97A00;
    --accent-ink: #8A5A00;
    --accent-soft-bg: #FFF3D9;
    --accent2: #0E9C8C;
    --accent2-soft-bg: #DEFBF5;
    --accent3: #7C4FC7;
    --accent3-soft-bg: #F1E7FC;
    --pink: #E0177A;
    --pink-soft-bg: #FFE3F0;
    --shadow: rgba(40,20,60,.12);
    --sprocket: #E4DAF2;
  }

  *{ box-sizing: border-box; }
  html{ direction: rtl; }
  body{
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Tajawal", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
  }

  h1,h2,h3{ font-family: "Baloo Bhaijaan 2", "Tajawal", sans-serif; text-wrap: balance; margin: 0; }

  a{ color: inherit; }
  button{ font-family: inherit; }

  .wrap{ max-width: 1180px; margin: 0 auto; padding: 28px 20px 80px; }

  .top{
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 8px 8px 22px; margin-bottom: 26px; border-bottom: 1px solid var(--border);
  }
  .brand{ display: flex; align-items: center; gap: 12px; }
  .brand svg{ width: 44px; height: 44px; flex-shrink: 0; }
  .brand-text b{ font-family: "Syne", sans-serif; font-size: 1.5rem; letter-spacing: .04em; font-weight: 800; display:block; }
  .brand-text span{ font-size: .8rem; color: var(--ink-soft); }
  .logo-mark{ width:44px; height:44px; object-fit:contain; display:block; filter:drop-shadow(0 2px 5px rgba(0,0,0,.3)); } @media (max-width:640px){ .logo-mark{ width:30px; height:30px; } }

  .new-banner{
    text-align: center; font-size: .85rem; color: var(--ink-soft); background: var(--surface-2);
    border: 1px dashed var(--border); border-radius: 999px; padding: 8px 16px; margin-bottom: 26px;
  }

  .connect{
    margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  }
  .connect h3{ font-size: 1rem; color: var(--ink); }
  .connect p{ font-size: .82rem; color: var(--ink-faint); margin: -8px 0 0; }
  .connect-links{ display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .connect-link{
    display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 999px;
    padding: 9px 18px; font-size: .85rem; transition: border-color .15s, transform .15s;
  }
  .connect-link:hover{ border-color: var(--pink); transform: translateY(-1px); }
  .connect-link svg{ width: 20px; height: 20px; flex-shrink: 0; }

  .legal-footer{
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border);
    text-align: center; display: flex; flex-direction: column; gap: 10px;
  }
  .legal-footer .legal-oath{
    color: var(--accent-ink); background: var(--accent-soft-bg); border-radius: 10px;
    padding: 10px 16px; font-weight: 600; font-size: .82rem; line-height: 1.85; max-width: 70ch; margin: 0 auto;
  }
  .legal-footer .legal-line{ color: var(--ink-faint); font-size: .78rem; margin: 0; }
  .legal-footer .legal-made{ color: var(--ink-faint); font-size: .78rem; margin: 0; }

  .hero{ display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-bottom: 34px; }
  .hero h1{ font-size: clamp(1.6rem, 2.4vw, 2.15rem); line-height: 1.35; margin-bottom: 14px; }
  .hero p{ color: var(--ink-soft); font-size: .98rem; line-height: 1.9; max-width: 60ch; }
  .legend{
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px;
    padding: 18px 20px; box-shadow: 0 6px 18px var(--shadow);
  }
  .legend h3{ font-size: .82rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
  .legend-row{ display: flex; align-items: center; gap: 10px; font-size: .88rem; padding: 6px 0; }
  .legend-row + .legend-row{ border-top: 1px dashed var(--border); }
  .dot{ width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
  .dot.fixed{ background: var(--ink-faint); opacity: .5; }
  .dot-accent1{ background: var(--accent); }
  .dot-accent2{ background: var(--accent2); }
  .top-actions{ display: flex; align-items: center; gap: 10px; }

  .steps{ list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .steps li{ display: flex; align-items: flex-start; gap: 12px; }
  .step-num{
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--pink);
    color: #fff; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: .95rem;
    display: flex; align-items: center; justify-content: center;
  }
  .steps li:nth-child(2) .step-num{ background: var(--accent2); }
  .steps li:nth-child(3) .step-num{ background: var(--accent3); }
  .steps li .step-text{ display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
  .steps li b{ font-size: .95rem; }
  .steps li span{ font-size: .85rem; color: var(--ink-soft); }

  @media (max-width: 860px){ .hero{ grid-template-columns: 1fr; } }

  .group-tabs{ display: flex; gap: 8px; margin-bottom: 14px; }
  .gtab{
    border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink-soft);
    border-radius: 10px; padding: 10px 22px; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 700;
    font-size: .92rem; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
  }
  .gtab:hover{ border-color: var(--pink); }
  .gtab.active{ background: var(--pink); color: #fff; border-color: var(--pink); }
  .gtab:focus-visible{ outline: 2px solid var(--pink); outline-offset: 2px; }
  @media (max-width: 640px){
    .group-tabs{ flex-wrap: wrap; gap: 6px; }
    .gtab{ padding: 8px 14px; font-size: .86rem; }
    .top{ gap: 10px; }
    .brand{ min-width: 0; gap: 8px; }
    .brand-text{ min-width: 0; }
    .top-actions{ gap: 6px; flex-shrink: 0; }
    .top-actions .theme-toggle{ width: 34px; height: 34px; font-size: .92rem; }
  }

  .filters{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
  .chip{
    border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink-soft);
    border-radius: 999px; padding: 8px 16px; font-size: .85rem; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
  }
  .chip:hover{ border-color: var(--pink); color: var(--ink); }
  .chip.active{ background: var(--pink); color: #fff; border-color: var(--pink); }
  .chip:focus-visible, button:focus-visible, .copy-btn:focus-visible{ outline: 2px solid var(--pink); outline-offset: 2px; }

  .grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
  .card{
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: 0 8px 22px var(--shadow); display: flex; flex-direction: column;
    scroll-margin-top: 20px;
  }
  .card:target{ outline: 2px solid var(--pink); outline-offset: 3px; }
  .frame{ position: relative; aspect-ratio: 4/3; background: var(--surface-2); }
  .frame svg{ width: 100%; height: 100%; display: block; }
  .card-photo{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; background: var(--surface-2); }
  .card-photo.err{ display: none; }
  .num-badge{ position: absolute; bottom: 8px; left: 8px; z-index: 3; background: rgba(10,10,10,.72); color: #fff; font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .5px; }
  .cam-badge{
    position: absolute; top: 8px; left: 8px; z-index: 2; direction: rtl;
    background: rgba(10,10,10,.62); color: #fff; font-size: .68rem; line-height: 1.4;
    padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  }

  .type-badge{
    position: absolute; top: 8px; right: 8px; z-index: 2; direction: rtl;
    font-size: .68rem; line-height: 1.4; padding: 4px 9px; border-radius: 999px;
    white-space: nowrap; font-weight: 600; color: #fff;
  }
  .type-badge.video{ background: rgba(255,46,147,.92); }
  .type-badge.image{ background: rgba(140,111,224,.92); }

  .card-body{ padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
  .card-meta{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .cat{ font-size: .78rem; color: var(--ink-faint); }
  .tool{
    display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink-soft);
    border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
  }
  .tool i{ width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); }

  .prompt{
    direction: ltr; text-align: left; font-family: "IBM Plex Mono", monospace; font-size: .82rem;
    line-height: 1.75; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 15px; max-height: 220px; overflow-y: auto;
  }
  .prompt mark.v1{ background: var(--accent-soft-bg); color: var(--accent-ink); border-radius: 3px; padding: 0 2px; font-weight: 600; }
  .prompt mark.v2{ background: var(--accent2-soft-bg); color: var(--accent2); border-radius: 3px; padding: 0 2px; font-weight: 600; }
  .prompt mark.v3{ background: var(--accent3-soft-bg); color: var(--accent3); border-radius: 3px; padding: 0 2px; font-weight: 600; } .showcase{ margin: 48px auto 8px; text-align: center; } .showcase-title{ font-size: 22px; font-weight: 700; margin: 0 0 4px; } .showcase-sub{ font-size: 14px; color: var(--ink-faint); margin: 0 0 22px; } .showcase-viewport{ overflow: hidden; width: 100%; direction: ltr; } .showcase-track{ display: flex; direction: ltr; width: max-content; animation: shscroll 45s linear infinite; } @media (hover: hover){ .showcase-viewport:hover .showcase-track{ animation-play-state: paused; } } .showcase-img{ height: 280px; width: auto; flex: 0 0 auto; border-radius: 14px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.28); margin-right: 14px; } .no-code{ margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-faint); } .store-btn{ display: inline-block; padding: 11px 24px; border-radius: 10px; background: #ff2e93; color: #ffffff; font-weight: 700; text-decoration: none; } .store-btn:hover{ opacity: .9; } @keyframes shscroll{ from{ transform: translateX(0); } to{ transform: translateX(-20%); } } @media (max-width: 640px){ .showcase-img{ height: 200px; } }
  .prompt .sig{ color: var(--ink-faint); font-style: italic; opacity: .75; }

  .desc{
    font-size: .84rem; color: var(--ink-soft); background: var(--surface-2);
    border-radius: 10px; padding: 10px 12px; line-height: 1.75; direction: rtl; text-align: right;
  }

  .swap{ display: flex; flex-direction: column; gap: 6px; font-size: .82rem; }
  .swap-row{ display: flex; gap: 8px; align-items: baseline; }
  .swap-row b{ flex-shrink: 0; font-size: .74rem; padding: 2px 8px; border-radius: 999px; }
  .swap-row.change b{ color: var(--accent-ink); background: var(--accent-soft-bg); }
  .swap-row.keep b{ color: var(--ink-faint); background: var(--surface-2); }
  .swap-row span{ color: var(--ink-soft); }

  .note{
    font-size: .78rem; color: var(--pink); background: var(--pink-soft-bg);
    border: 1px solid var(--pink); border-radius: 8px; padding: 7px 11px; line-height: 1.6;
  }

  .card-foot{ display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
  .copy-btn{
    flex: 1; border: none; background: var(--pink); color: #fff;
    border-radius: 999px; padding: 11px 12px; font-size: .88rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: "Baloo Bhaijaan 2", sans-serif;
    transition: filter .15s, background .15s, color .15s;
  }
  .copy-btn:hover{ filter: brightness(1.1); }
  .copy-btn.done{ background: var(--accent2); color: var(--studio-black); }

  footer{ margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: .82rem; line-height: 1.9; }
  footer a{ color: var(--pink); }

  .disclaimer{
    background: var(--bg-elevated); border: 1.5px solid var(--pink); border-radius: 16px;
    padding: 22px 24px; margin-bottom: 30px; box-shadow: 0 0 0 4px var(--pink-soft-bg);
  }
  .disclaimer h2{ color: var(--pink); font-size: 1.15rem; margin-bottom: 10px; }
  .disclaimer p{ color: var(--ink-soft); font-size: .9rem; line-height: 1.85; margin: 0 0 10px; }
  .disclaimer .oath{ color: var(--accent-ink); background: var(--accent-soft-bg); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
  .disclaimer .social{ margin-top: 12px; font-size: .85rem; color: var(--ink-faint); direction: ltr; text-align: right; }

  .gate-intro{ text-align: center; max-width: 640px; margin: 10px auto 30px; }
  .gate-intro h1{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; }
  .gate-intro p{ color: var(--ink-soft); font-size: .96rem; line-height: 1.85; }
  .gate .steps{ max-width: 420px; margin: 24px auto 0; text-align: right; }
  .demo-label{
    text-align: center; font-family: "Baloo Bhaijaan 2", sans-serif; color: var(--ink-faint);
    font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 40px 0 14px;
  }
  .demo-grid{ display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; max-width: 460px; margin: 0 auto; }
  .unlock-box{
    max-width: 420px; margin: 46px auto 0; background: var(--bg-elevated); border: 1.5px solid var(--pink);
    border-radius: 18px; padding: 26px 26px 22px; text-align: center; box-shadow: 0 0 0 4px var(--pink-soft-bg);
  }
  .unlock-box h3{ font-size: 1.05rem; margin-bottom: 6px; }
  .unlock-box p{ color: var(--ink-soft); font-size: .85rem; margin: 0 0 16px; }
  .unlock-row{ display: flex; gap: 8px; }
  .unlock-row input{
    flex: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px; color: var(--ink); font-size: 1rem; font-family: "IBM Plex Mono", monospace;
    text-align: center; direction: ltr;
  }
  .unlock-row input:focus{ outline: 2px solid var(--pink); outline-offset: 1px; }
  .unlock-row button{
    background: var(--pink); color: #fff; border: none; border-radius: 10px; padding: 0 22px;
    font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 700; font-size: .95rem; cursor: pointer;
  }
  .unlock-row button:hover{ filter: brightness(1.1); }
  .unlock-error{ color: var(--pink); font-size: .82rem; margin-top: 10px; min-height: 1.2em; }

  .theme-toggle{
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--ink); font-size: 1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: border-color .15s;
  }
  .theme-toggle:hover{ border-color: var(--pink); }
  .logout-btn{ font-size: 1.05rem; }
  .logout-btn[hidden]{ display:none; }
  .theme-toggle[hidden]{ display:none; }

  .flag-badges{ position: absolute; bottom: 8px; right: 8px; z-index: 3; display: flex; gap: 6px; direction: rtl; }
  .flag-badge{ font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; color: #fff; white-space: nowrap; }
  .flag-badge.new{ background: rgba(47,224,208,.95); color: #062b28; }
  .flag-badge.hot{ background: rgba(255,120,40,.95); }

  .fav-btn{
    flex: 0 0 44px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink-soft);
    border-radius: 999px; font-size: 1.1rem; cursor: pointer; transition: border-color .15s, color .15s, transform .15s;
  }
  .fav-btn:hover{ border-color: var(--accent); }
  .fav-btn.on{ color: var(--accent); border-color: var(--accent); }
  .fav-btn:active{ transform: scale(.9); }

  .open-links{ display: flex; gap: 8px; margin-top: 8px; }
  .open-links[hidden]{ display: none; }
  .open-btn{
    flex: 1; text-align: center; text-decoration: none; border: 1px solid var(--border); background: var(--surface-2);
    color: var(--ink); border-radius: 999px; padding: 8px 10px; font-size: .8rem; font-weight: 700;
  }
  .open-btn:hover{ border-color: var(--pink); }

  .empty-state{ grid-column: 1 / -1; text-align: center; color: var(--ink-soft); padding: 40px 16px; border: 1px dashed var(--border); border-radius: 16px; }

  .dev-modal{ position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .dev-modal[hidden]{ display: none; }
  .dev-box{ width: 100%; max-width: 420px; background: var(--bg-elevated); color: var(--ink); border: 1px solid var(--border); border-radius: 18px; padding: 18px; direction: rtl; }
  .dev-head{ display: flex; align-items: center; justify-content: space-between; font-size: 1.1rem; margin-bottom: 6px; }
  .dev-close{ border: none; background: none; color: var(--ink-soft); font-size: 1.1rem; cursor: pointer; }
  .dev-sub{ color: var(--ink-soft); font-size: .88rem; margin-bottom: 12px; }
  .dev-row{ display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; background: var(--surface-2); }
  .dev-row .dev-label{ flex: 1; font-weight: 700; }
  .dev-row .dev-meta{ display: block; font-weight: 400; font-size: .75rem; color: var(--ink-soft); }
  .dev-tag{ font-size: .7rem; background: var(--accent2); color: #062b28; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
  .dev-rm{ border: 1px solid var(--pink); background: none; color: var(--pink); border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
  .dev-rm:disabled{ opacity: .5; cursor: default; }
  .whatsnew{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 14px; margin-bottom: 22px; border: 1px solid var(--accent2); border-radius: 14px; background: var(--surface-2); }
  .whatsnew[hidden]{ display: none; }
  .whatsnew-text{ flex: 1; min-width: 180px; font-weight: 700; font-size: .95rem; }
  .whatsnew-btn{ border: none; background: var(--pink); color: #fff; border-radius: 999px; padding: 7px 14px; font-family: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
  .whatsnew-btn.alt{ background: var(--accent2); color: #062b28; }
  .whatsnew-btn[hidden]{ display: none; }
  .whatsnew-x{ border: none; background: none; color: var(--ink-soft); font-size: 1rem; cursor: pointer; padding: 4px 6px; }
  .dev-code{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px dashed var(--accent2); border-radius: 12px; background: var(--surface-2); }
  .dev-code[hidden]{ display: none; }
  .dev-code-label{ flex: 1; font-weight: 700; font-size: .88rem; }
  .dev-code-val{ order: 5; flex-basis: 100%; min-width: 0; direction: ltr; text-align: center; font-family: "IBM Plex Mono", monospace; font-size: 1.02rem; letter-spacing: .06em; white-space: nowrap; overflow-x: auto; padding: 4px 0 2px; }
  .dev-code-note{ order: 6; }
  .dev-code-val[hidden], .dev-code-btn[hidden]{ display: none; }
  .dev-code-btn{ border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
  .dev-code-btn:hover{ border-color: var(--pink); }
  .dev-code-note{ flex-basis: 100%; font-size: .78rem; color: var(--ink-soft); }
  .dev-code-note[hidden]{ display: none; }
  .dev-note{ color: var(--ink-faint); font-size: .75rem; margin-top: 6px; }

  /* ===== Plans (v66) ===== */
  .plan-badge{ border: 1px solid var(--accent); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-family: "Syne", "Baloo Bhaijaan 2", sans-serif; font-weight: 700; font-size: .8rem; cursor: pointer; white-space: nowrap; }
  .plan-badge:hover{ border-color: var(--pink); }
  .plan-badge.top-plan{ border-color: var(--accent); color: var(--accent); }
  .plan-badge[hidden]{ display: none; }
  /* Narrow phones: the top bar has no room (the logo would wrap); the plan lives in «أجهزتي» and on locked cards there. */
  @media (max-width: 520px){ .plan-badge{ display: none; } }
  .dev-plan{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border: 1px solid var(--accent); border-radius: 12px; background: var(--surface-2); }
  .dev-plan[hidden]{ display: none; }
  .dev-plan-name{ flex: 1; font-weight: 700; font-size: .9rem; }
  .card.locked .card-photo{ filter: saturate(.75) brightness(.8); }
  .lock-badge{ position: absolute; top: 8px; left: 8px; z-index: 3; background: rgba(10,10,10,.78); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
  .lock-panel{ display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 12px; border: 1px dashed var(--accent); border-radius: 14px; background: var(--surface-2); }
  .lock-panel b{ font-size: .95rem; }
  .lock-panel span{ color: var(--ink-soft); font-size: .84rem; }
  .upgrade-btn{ border: none; background: var(--accent); color: #1a0f00; border-radius: 999px; padding: 10px 14px; font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 700; font-size: .9rem; cursor: pointer; }
  .upgrade-btn:hover{ filter: brightness(1.08); }
  .up-box{ max-width: 460px; }
  .up-opt{ display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; background: var(--surface-2); }
  .up-opt > div:first-child{ flex: 1; min-width: 160px; }
  .up-opt b{ display: block; font-family: "Syne", "Baloo Bhaijaan 2", sans-serif; font-size: 1.05rem; }
  .up-opt span{ color: var(--ink-soft); font-size: .8rem; }
  .up-price{ font-weight: 800; color: var(--accent); white-space: nowrap; }
  .up-buy{ flex-basis: 100%; text-align: center; text-decoration: none; background: var(--pink); color: #fff; border-radius: 999px; padding: 9px 12px; font-weight: 700; font-size: .88rem; }
  .up-soon{ flex-basis: 100%; text-align: center; color: var(--ink-soft); font-size: .8rem; border: 1px dashed var(--border); border-radius: 999px; padding: 7px 10px; }
  .up-top{ padding: 14px; border: 1px solid var(--accent); border-radius: 14px; text-align: center; font-weight: 700; margin-bottom: 10px; }
  .up-redeem{ display: flex; flex-direction: column; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
  .up-redeem span{ color: var(--ink-soft); font-size: .8rem; }
  .up-row{ display: flex; gap: 8px; }
  .up-input{ flex: 1; min-width: 0; background: var(--surface-2); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-family: "IBM Plex Mono", monospace; font-size: .9rem; }
  .up-input:focus{ outline: none; border-color: var(--accent); }
  .up-go{ border: none; background: var(--pink); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .up-go:disabled{ opacity: .6; cursor: default; }
  .up-msg{ min-height: 1.2em; font-size: .84rem; font-weight: 700; }
  .up-msg.ok{ color: var(--accent2); }
  .up-msg.err{ color: var(--pink); }

  /* ===== Motion & 3D (v60) ===== */
  .bg-fx{ position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .blob{ position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .32; will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
  .blob.b1{ top: -14vmax; right: -12vmax; background: radial-gradient(circle, var(--pink) 0%, transparent 68%); }
  .blob.b2{ bottom: -18vmax; left: -14vmax; background: radial-gradient(circle, var(--accent3) 0%, transparent 68%); animation-duration: 30s; }
  .blob.b3{ top: 38%; left: 30%; width: 32vmax; height: 32vmax; opacity: .18; background: radial-gradient(circle, var(--accent2) 0%, transparent 68%); animation-duration: 36s; animation-delay: -10s; }
  :root[data-theme="light"] .blob{ opacity: .2; }
  :root[data-theme="light"] .blob.b3{ opacity: .12; }
  @keyframes drift{ 0%{ transform: translate(0, 0) scale(1); } 50%{ transform: translate(6vmax, -4vmax) scale(1.12); } 100%{ transform: translate(-5vmax, 5vmax) scale(.94); } }

  .logo-mark{ animation: logoFloat 5s ease-in-out infinite; }
  @keyframes logoFloat{ 0%, 100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-3px) rotate(-4deg); } }

  .gate-hero{ display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 28px; margin: 6px 0 4px; }
  .gate-hero .gate-intro{ margin: 0; max-width: none; text-align: right; }
  .gate-hero .steps{ margin: 24px 0 0; }
  .rotator{ font-family: "Baloo Bhaijaan 2", sans-serif; font-weight: 800; font-size: clamp(1.1rem, 2.2vw, 1.45rem); color: var(--ink); margin: 0 0 12px; }
  .rot-word{ display: inline-block; background: linear-gradient(90deg, var(--pink), var(--accent3), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 2px; }
  .rot-word.out{ animation: rotOut .32s ease forwards; }
  .rot-word.in{ animation: rotIn .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes rotOut{ to{ opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
  @keyframes rotIn{ from{ opacity: 0; transform: translateY(12px); filter: blur(4px); } to{ opacity: 1; transform: none; filter: none; } }

  .stack3d{ position: relative; height: 410px; perspective: 1200px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .stack3d-tilt{ transform-style: preserve-3d; transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg)); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
  .stack3d-float{ position: relative; width: 230px; height: 310px; transform-style: preserve-3d; animation: float3d 6s ease-in-out infinite; }
  @media (hover: none), (pointer: coarse){ .stack3d-tilt{ animation: sway3d 9s ease-in-out infinite; } }
  @keyframes sway3d{ 0%, 100%{ transform: rotateX(8deg) rotateY(-20deg); } 50%{ transform: rotateX(4deg) rotateY(14deg); } }
  @keyframes float3d{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
  .s3-card{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 28px 60px rgba(0,0,0,.45); background: var(--surface-2); }
  .s3-card.c1{ transform: translate3d(-80px, 18px, -90px) rotateZ(-9deg); filter: brightness(.82); }
  .s3-card.c2{ transform: translate3d(80px, 10px, -50px) rotateZ(8deg); filter: brightness(.9); }
  .s3-card.c3{ transform: translate3d(0, 0, 30px); }
  .s3-chip{ position: absolute; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: 7px 12px; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 24px rgba(0,0,0,.25); animation: chipBob 4.5s ease-in-out infinite; }
  :root[data-theme="light"] .s3-chip{ background: rgba(255,255,255,.82); border-color: var(--border); }
  .s3-chip.chip1{ top: 22px; right: -52px; --z: 110px; }
  .s3-chip.chip2{ bottom: 78px; left: -66px; --z: 140px; animation-delay: -1.5s; }
  .s3-chip.chip3, :root[data-theme="light"] .s3-chip.chip3{ bottom: -10px; right: 12px; --z: 90px; animation-delay: -3s; background: var(--pink); color: #fff; border-color: transparent; }
  @keyframes chipBob{ 0%, 100%{ transform: translateZ(var(--z, 90px)) translateY(0); } 50%{ transform: translateZ(var(--z, 90px)) translateY(-8px); } }
  @media (max-width: 860px){
    .gate-hero{ grid-template-columns: 1fr; gap: 6px; }
    .gate-hero .gate-intro{ text-align: center; }
    .gate-hero .steps{ margin: 24px auto 0; }
  }
  @media (max-width: 640px){
    .stack3d{ height: 300px; }
    .stack3d-float{ width: 168px; height: 228px; }
    .s3-card.c1{ transform: translate3d(-58px, 14px, -80px) rotateZ(-9deg); }
    .s3-card.c2{ transform: translate3d(58px, 8px, -45px) rotateZ(8deg); }
    .s3-chip{ font-size: .7rem; padding: 6px 10px; }
    .s3-chip.chip1{ right: -34px; }
    .s3-chip.chip2{ left: -44px; bottom: 60px; }
  }

  .unlock-box{ animation: glowPulse 3.4s ease-in-out infinite; }
  @keyframes glowPulse{ 0%, 100%{ box-shadow: 0 0 0 4px var(--pink-soft-bg), 0 0 0 0 rgba(255,46,147,0); } 50%{ box-shadow: 0 0 0 4px var(--pink-soft-bg), 0 0 36px 4px rgba(255,46,147,.32); } }
  .whatsnew{ position: relative; overflow: hidden; }
  .whatsnew::before{ content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 4.5s ease-in-out infinite; }
  @keyframes sheen{ 0%{ transform: translateX(-100%); } 60%, 100%{ transform: translateX(100%); } }
  #fullApp:not([hidden]){ animation: appIn .6s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes appIn{ from{ opacity: 0; transform: translateY(18px); } to{ opacity: 1; transform: none; } }

  .reveal, .card.reveal, .sk-card.reveal{ opacity: 0; transform: translateY(26px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
  .reveal.in, .card.reveal.in, .sk-card.reveal.in{ opacity: 1; transform: none; }

  @media (hover: hover) and (pointer: fine){
    .card, .sk-card{ position: relative; transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
    .card.tilting, .sk-card.tilting{ transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: 0 24px 48px var(--shadow); transition-duration: .12s; }
    .card::after, .sk-card::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.13), transparent 45%); opacity: 0; transition: opacity .3s; }
    .card.tilting::after, .sk-card.tilting::after{ opacity: 1; }
  }

  .burst{ position: fixed; left: var(--x); top: var(--y); z-index: 9999; width: 8px; height: 8px; border-radius: 2px; background: var(--c); pointer-events: none; animation: burstFly var(--dur, .8s) cubic-bezier(.15,.7,.3,1) forwards; }
  @keyframes burstFly{ from{ transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; } to{ transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.4) rotate(var(--rot)); opacity: 0; } }
  .fav-btn.pop{ animation: favPop .45s cubic-bezier(.2,.7,.2,1); }
  @keyframes favPop{ 0%{ transform: scale(1); } 40%{ transform: scale(1.45); } 70%{ transform: scale(.9); } 100%{ transform: scale(1); } }
  .sk-new, .flag-badge.new{ animation: badgePulse 2.4s ease-in-out infinite; }
  @keyframes badgePulse{ 0%, 100%{ box-shadow: 0 0 0 0 rgba(47,224,208,.5); } 50%{ box-shadow: 0 0 0 6px rgba(47,224,208,0); } }

  /* ===== v61: counter, explainer, install, finder, ratings, campaign, tour ===== */

  .explain{ margin: 44px auto 6px; max-width: 880px; }
  .explain-title{ text-align: center; font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin-bottom: 18px; }
  .explain-title span{ display: block; font-size: .85rem; font-weight: 600; color: var(--ink-faint); margin-top: 4px; font-family: "Tajawal", sans-serif; }
  .explain-wrap{ display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; justify-content: center; }

  /* Phone in 3D: the stage floats, the phone tilts (mouse on desktop, sway on touch). One loop = 10s. */
  .phone-stage{ position: relative; perspective: 1100px; padding: 10px 26px 34px; }
  .phone-float{ transform-style: preserve-3d; animation: phoneFloat 6s ease-in-out infinite; }
  @keyframes phoneFloat{ 0%, 100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }
  .phone{ position: relative; width: 214px; height: 420px; border-radius: 38px; padding: 12px; background: linear-gradient(145deg, #2a1b44, #0d0718 60%); box-shadow: 0 34px 70px rgba(10,5,25,.45), inset 0 0 0 2px rgba(255,255,255,.08), inset 0 0 0 6px #0d0718; transform-style: preserve-3d; transform: rotateY(var(--pry, -14deg)) rotateX(var(--prx, 5deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  @media (hover: none), (pointer: coarse){ .phone{ animation: phoneSway 8s ease-in-out infinite; } }
  @keyframes phoneSway{ 0%, 100%{ transform: rotateY(-16deg) rotateX(5deg); } 50%{ transform: rotateY(12deg) rotateX(3deg); } }
  .phone-btn{ position: absolute; width: 4px; border-radius: 3px; background: #2d1d4a; }
  .phone-btn.pb1{ left: -3px; top: 92px; height: 34px; } .phone-btn.pb2{ left: -3px; top: 136px; height: 54px; } .phone-btn.pb3{ right: -3px; top: 120px; height: 70px; }
  .phone-shadow{ position: absolute; left: 50%; bottom: 4px; width: 170px; height: 22px; margin-left: -85px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10,5,25,.45), transparent); animation: shadowPulse 6s ease-in-out infinite; }
  @keyframes shadowPulse{ 0%, 100%{ transform: scale(1); opacity: .9; } 50%{ transform: scale(.82); opacity: .55; } }
  .screen{ position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #FBF7F0; }
  .status{ position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px 0; direction: ltr; font-size: .62rem; font-weight: 800; color: #241542; }
  .status .bars{ display: flex; align-items: flex-end; gap: 2px; }
  .status .bars i{ display: block; width: 3px; background: #241542; border-radius: 1px; }
  .status .bars i:nth-child(1){ height: 4px; } .status .bars i:nth-child(2){ height: 6px; } .status .bars i:nth-child(3){ height: 8px; }
  .status .bars b{ display: block; width: 16px; height: 8px; margin-left: 4px; border-radius: 2px; border: 1.5px solid #241542; background: linear-gradient(90deg, #241542 70%, transparent 70%); }
  /* Status bar turns white while the dark result image is on screen. */
  .status{ animation: statusInk 10s infinite; }
  .status .bars i, .status .bars b{ animation: statusFill 10s infinite; }
  @keyframes statusInk{ 0%, 66%{ color: #241542; } 69%, 97%{ color: #fff; } 100%{ color: #241542; } }
  @keyframes statusFill{ 0%, 66%{ background-color: #241542; border-color: #241542; } 69%, 97%{ background-color: #fff; border-color: #fff; } 100%{ background-color: #241542; border-color: #241542; } }
  .story{ position: absolute; top: 24px; left: 12px; right: 12px; z-index: 6; display: flex; gap: 4px; direction: rtl; }
  .story i{ flex: 1; height: 3px; border-radius: 2px; background: rgba(36,21,66,.15); overflow: hidden; }
  .story u{ display: block; height: 100%; background: #E0177A; transform: scaleX(0); transform-origin: right; animation: 10s linear infinite; }
  .story .p1{ animation-name: barA; } .story .p2{ animation-name: barB; } .story .p3{ animation-name: barC; }
  @keyframes barA{ 0%{ transform: scaleX(0); } 33%, 100%{ transform: scaleX(1); } }
  @keyframes barB{ 0%, 33%{ transform: scaleX(0); } 66%, 100%{ transform: scaleX(1); } }
  @keyframes barC{ 0%, 66%{ transform: scaleX(0); } 99%, 100%{ transform: scaleX(1); } }
  .glare{ position: absolute; inset: 0; z-index: 8; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 49%, transparent 60%); transform: translateX(-130%); animation: glareSweep 5s ease-in-out infinite; }
  @keyframes glareSweep{ 0%, 55%{ transform: translateX(-130%); } 80%, 100%{ transform: translateX(130%); } }

  .scene{ position: absolute; inset: 0; padding-top: 34px; opacity: 0; animation: 10s infinite both; }
  .scene.s1{ animation-name: sceneA; } .scene.s2{ animation-name: sceneB; } .scene.s3{ animation-name: sceneC; background: #170B29; padding-top: 0; }
  @keyframes sceneA{ 0%{ opacity: 0; transform: translateX(26px); } 3%, 31%{ opacity: 1; transform: none; } 35%, 100%{ opacity: 0; transform: translateX(-26px); } }
  @keyframes sceneB{ 0%, 33%{ opacity: 0; transform: translateX(26px); } 37%, 64%{ opacity: 1; transform: none; } 68%, 100%{ opacity: 0; transform: translateX(-26px); } }
  @keyframes sceneC{ 0%, 66%{ opacity: 0; transform: scale(1.04); } 70%, 96%{ opacity: 1; transform: none; } 100%{ opacity: 0; } }

  .app-top{ padding: 8px 14px 6px; font-weight: 800; font-size: .8rem; color: #241542; }
  .app-top span{ color: #E0177A; }
  .mini-card{ margin: 4px 12px 0; padding: 10px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(40,20,60,.14); }
  .mini-img{ height: 96px; border-radius: 10px; background: linear-gradient(135deg, #B98AE0, #FF2E93); background-size: 200% 200%; animation: imgShift 10s ease-in-out infinite; }
  @keyframes imgShift{ 0%, 100%{ background-position: 0% 50%; } 50%{ background-position: 100% 50%; } }
  .mini-lines{ display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
  .mini-lines i{ display: block; height: 7px; border-radius: 4px; background: #E4DAF2; font-style: normal; }
  .mini-lines i.short{ width: 60%; }
  .mini-lines i.hl{ height: auto; padding: 2px 6px; font-size: .62rem; font-weight: 700; color: #8A5A00; background: #FFF3D9; width: max-content; animation: hlPulse 10s infinite; }
  @keyframes hlPulse{ 0%, 4%{ box-shadow: 0 0 0 0 rgba(201,122,0,0); } 8%{ box-shadow: 0 0 0 5px rgba(201,122,0,.35); } 12%, 100%{ box-shadow: 0 0 0 0 rgba(201,122,0,0); } }
  .mini-copy{ position: relative; height: 28px; border-radius: 999px; background: #E0177A; color: #fff; font-size: .66rem; font-weight: 700; overflow: hidden; animation: copyBg 10s infinite; }
  @keyframes copyBg{ 0%, 17%{ background: #E0177A; } 19%, 31%{ background: #0E9C8C; } 34%, 100%{ background: #E0177A; } }
  .mini-copy .lbl{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; animation: 10s infinite; }
  .mini-copy .la{ animation-name: lblA; } .mini-copy .lb{ animation-name: lblB; opacity: 0; }
  @keyframes lblA{ 0%, 17%{ opacity: 1; transform: none; } 19%, 31%{ opacity: 0; transform: translateY(-8px); } 34%, 100%{ opacity: 1; transform: none; } }
  @keyframes lblB{ 0%, 17%{ opacity: 0; transform: translateY(8px); } 19%, 31%{ opacity: 1; transform: none; } 34%, 100%{ opacity: 0; } }
  .ripple{ position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); opacity: 0; animation: ripple 10s infinite; }
  @keyframes ripple{ 0%, 16%{ transform: scale(0); opacity: 0; } 17%{ transform: scale(.4); opacity: .9; } 23%, 100%{ transform: scale(9); opacity: 0; } }
  .finger{ position: absolute; left: 50%; top: 248px; font-size: 1.7rem; opacity: 0; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); animation: finger 10s infinite; }
  @keyframes finger{ 0%, 8%{ opacity: 0; transform: translate(60px, 70px); } 13%{ opacity: 1; transform: translate(-6px, 6px); } 16%{ transform: translate(-6px, 6px) scale(1); } 17.5%{ transform: translate(-6px, 10px) scale(.85); } 19%{ transform: translate(-6px, 6px) scale(1); } 26%{ opacity: 1; } 30%, 100%{ opacity: 0; transform: translate(40px, 60px); } }

  .chat-top{ padding: 8px 14px 10px; font-weight: 800; font-size: .85rem; color: #4B3C68; border-bottom: 1px solid #E4DAF2; }
  .bubble{ margin: 16px 12px 0 40px; padding: 10px; border-radius: 14px 14px 4px 14px; background: #F3ECFA; display: flex; flex-direction: column; gap: 6px; opacity: 0; animation: bubble 10s infinite; }
  @keyframes bubble{ 0%, 37%{ opacity: 0; transform: translateY(10px) scale(.96); } 40%, 100%{ opacity: 1; transform: none; } }
  .bubble i{ display: block; height: 7px; border-radius: 4px; background: #D9CCF0; transform-origin: right; transform: scaleX(0); animation: 10s infinite; }
  .bubble .t1{ animation-name: typeA; } .bubble .t2{ animation-name: typeB; } .bubble .t3{ animation-name: typeC; width: 55%; }
  @keyframes typeA{ 0%, 40%{ transform: scaleX(0); } 44%, 100%{ transform: scaleX(1); } }
  @keyframes typeB{ 0%, 44%{ transform: scaleX(0); } 48%, 100%{ transform: scaleX(1); } }
  @keyframes typeC{ 0%, 48%{ transform: scaleX(0); } 51%, 100%{ transform: scaleX(1); } }
  .attach{ margin: 10px 12px 0 40px; padding: 7px 10px; border-radius: 10px; border: 1px dashed #B98AE0; font-size: .66rem; color: #7C4FC7; background: #fff; opacity: 0; animation: attach 10s infinite; }
  @keyframes attach{ 0%, 51%{ opacity: 0; transform: scale(.6); } 54%{ opacity: 1; transform: scale(1.08); } 56%, 100%{ opacity: 1; transform: none; } }
  .thinking{ display: flex; gap: 5px; margin: 14px 14px 0; opacity: 0; animation: thinkShow 10s infinite; }
  .thinking i{ display: block; width: 7px; height: 7px; border-radius: 50%; background: #B98AE0; animation: dot 0.9s ease-in-out infinite; }
  .thinking i:nth-child(2){ animation-delay: .15s; } .thinking i:nth-child(3){ animation-delay: .3s; }
  @keyframes thinkShow{ 0%, 57%{ opacity: 0; } 59%, 64%{ opacity: 1; } 66%, 100%{ opacity: 0; } }
  @keyframes dot{ 0%, 100%{ transform: translateY(0); opacity: .5; } 50%{ transform: translateY(-5px); opacity: 1; } }
  .send{ position: absolute; bottom: 16px; left: 14px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #E0177A; color: #fff; font-size: .8rem; box-shadow: 0 6px 14px rgba(224,23,122,.35); animation: sendPress 10s infinite; }
  @keyframes sendPress{ 0%, 55%{ transform: scale(1); } 57%{ transform: scale(.78); } 60%, 100%{ transform: scale(1); } }

  .result{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: resultIn 10s infinite; }
  @keyframes resultIn{ 0%, 66%{ clip-path: circle(0% at 50% 55%); filter: blur(10px); transform: scale(1.12); } 74%{ clip-path: circle(80% at 50% 55%); filter: none; } 96%{ transform: scale(1); } 100%{ clip-path: circle(80% at 50% 55%); transform: scale(1); } }
  .spark{ position: absolute; color: #FFB020; font-size: 1.1rem; text-shadow: 0 0 8px rgba(255,176,32,.8); opacity: 0; animation: 10s infinite; }
  .spark.k1{ top: 70px; right: 26px; animation-name: sparkA; } .spark.k2{ top: 180px; left: 22px; animation-name: sparkB; font-size: .9rem; } .spark.k3{ bottom: 120px; right: 40px; animation-name: sparkC; font-size: .8rem; }
  @keyframes sparkA{ 0%, 73%{ opacity: 0; transform: scale(0) rotate(0); } 76%{ opacity: 1; transform: scale(1.3) rotate(45deg); } 80%, 88%{ opacity: 1; transform: scale(1) rotate(90deg); } 92%, 100%{ opacity: 0; } }
  @keyframes sparkB{ 0%, 76%{ opacity: 0; transform: scale(0); } 79%{ opacity: 1; transform: scale(1.3) rotate(30deg); } 83%, 90%{ opacity: 1; transform: scale(1); } 94%, 100%{ opacity: 0; } }
  @keyframes sparkC{ 0%, 79%{ opacity: 0; transform: scale(0); } 82%{ opacity: 1; transform: scale(1.3); } 86%, 92%{ opacity: 1; transform: scale(1); } 96%, 100%{ opacity: 0; } }
  .heart{ position: absolute; top: 56px; left: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #E0177A; font-size: .7rem; font-weight: 800; opacity: 0; animation: heartUp 10s infinite; }
  @keyframes heartUp{ 0%, 79%{ opacity: 0; transform: translateY(18px) scale(.8); } 83%, 94%{ opacity: 1; transform: none; } 98%, 100%{ opacity: 0; transform: translateY(-8px); } }
  .result-tag{ position: absolute; bottom: 18px; left: 50%; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.94); color: #241542; font-size: .74rem; font-weight: 800; white-space: nowrap; opacity: 0; transform: translateX(-50%); animation: tagUp 10s infinite; }
  @keyframes tagUp{ 0%, 73%{ opacity: 0; transform: translate(-50%, 16px); } 77%, 96%{ opacity: 1; transform: translate(-50%, 0); } 100%{ opacity: 0; transform: translate(-50%, 0); } }

  .explain-steps{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .explain-steps li{ position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 16px; border-radius: 16px; background: var(--bg-elevated); border: 1px solid var(--border); border-right: 4px solid var(--border); animation: 10s infinite both; }
  .explain-steps li b{ font-size: 1rem; }
  .explain-steps li span{ font-size: .84rem; color: var(--ink-soft); }
  .explain-steps .bar{ position: absolute; right: 0; bottom: 0; left: 0; height: 3px; transform-origin: right; transform: scaleX(0); animation: 10s linear infinite; }
  .explain-steps .e1{ animation-name: stepA; } .explain-steps .e2{ animation-name: stepB; } .explain-steps .e3{ animation-name: stepC; }
  .explain-steps .e1 .bar{ background: var(--pink); animation-name: barA2; } .explain-steps .e2 .bar{ background: var(--accent2); animation-name: barB2; } .explain-steps .e3 .bar{ background: var(--accent3); animation-name: barC2; }
  @keyframes stepA{ 0%, 32%{ border-right-color: var(--pink); box-shadow: 0 10px 26px var(--shadow); transform: translateX(-4px); } 34%, 100%{ border-right-color: var(--border); box-shadow: none; transform: none; } }
  @keyframes stepB{ 0%, 33%{ border-right-color: var(--border); box-shadow: none; transform: none; } 35%, 65%{ border-right-color: var(--accent2); box-shadow: 0 10px 26px var(--shadow); transform: translateX(-4px); } 67%, 100%{ border-right-color: var(--border); box-shadow: none; transform: none; } }
  @keyframes stepC{ 0%, 66%{ border-right-color: var(--border); box-shadow: none; transform: none; } 68%, 99%{ border-right-color: var(--accent3); box-shadow: 0 10px 26px var(--shadow); transform: translateX(-4px); } 100%{ transform: none; } }
  @keyframes barA2{ 0%{ transform: scaleX(0); opacity: 1; } 33%{ transform: scaleX(1); opacity: 1; } 34%, 100%{ transform: scaleX(1); opacity: 0; } }
  @keyframes barB2{ 0%, 33%{ transform: scaleX(0); opacity: 1; } 66%{ transform: scaleX(1); opacity: 1; } 67%, 100%{ transform: scaleX(1); opacity: 0; } }
  @keyframes barC2{ 0%, 66%{ transform: scaleX(0); opacity: 1; } 99%{ transform: scaleX(1); opacity: 1; } 100%{ transform: scaleX(1); opacity: 0; } }
  @media (max-width: 640px){ .explain-wrap{ grid-template-columns: 1fr; justify-items: center; gap: 18px; } .explain-steps{ width: 100%; } .phone{ width: 200px; height: 392px; } .finger{ top: 236px; } }

  .install-tip{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; margin-bottom: 22px; border: 1px solid var(--accent3); border-radius: 14px; background: var(--surface-2); }
  .install-tip[hidden]{ display: none; }
  .install-tip img{ width: 40px; height: 40px; border-radius: 10px; }
  .install-text{ flex: 1; min-width: 180px; font-weight: 700; font-size: .9rem; }

  .finder{ display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
  .finder-q{ width: 100%; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink); font-family: inherit; font-size: .95rem; }
  .finder-q:focus{ outline: 2px solid var(--pink); outline-offset: 1px; }
  .finder-row{ display: flex; flex-wrap: wrap; gap: 8px; }
  .seg{ display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
  .seg-btn{ border: none; background: none; color: var(--ink-soft); font-family: inherit; font-size: .8rem; font-weight: 700; padding: 6px 11px; border-radius: 9px; cursor: pointer; }
  .seg-btn.on{ background: var(--bg-elevated); color: var(--ink); box-shadow: 0 2px 8px var(--shadow); }
  .finder-count{ font-size: .8rem; color: var(--ink-faint); min-height: 1em; }

  .rate-btn{ border: 1px solid var(--border); background: var(--bg-elevated); color: var(--ink-soft); border-radius: 999px; min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: .9rem; cursor: pointer; flex-shrink: 0; filter: grayscale(.6); transition: filter .15s, border-color .15s, transform .15s; }
  .rate-btn span{ font-size: .75rem; font-weight: 700; }
  .rate-btn span:empty{ display: none; }
  .rate-btn:hover{ filter: none; }
  .rate-btn.on{ filter: none; border-color: var(--accent2); background: var(--accent2-soft-bg); color: var(--ink); }
  .rate-btn.down.on{ border-color: var(--pink); background: var(--pink-soft-bg); }
  .rate-btn:active{ transform: scale(.9); }

  .camp-intro{ grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, var(--pink-soft-bg), var(--accent3-soft-bg)); border: 1px solid var(--border); }
  .camp-intro b{ font-size: 1.1rem; }
  .camp-intro span{ font-size: .88rem; color: var(--ink-soft); line-height: 1.8; }
  .camp-ready{ background: linear-gradient(135deg, var(--accent-soft-bg), var(--pink-soft-bg)); border-color: var(--accent); }
  .camp-step{ grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
  .camp-step b{ display: block; font-size: 1.05rem; }
  .camp-step span{ font-size: .82rem; color: var(--ink-soft); }
  .camp-num{ flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pink); color: #fff; font-weight: 800; font-family: "Baloo Bhaijaan 2", sans-serif; }

  .tour{ position: fixed; inset: 0; z-index: 10000; }
  .tour-spot{ position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(10,5,20,.66); transition: left .3s, top .3s, width .3s, height .3s; pointer-events: none; }
  .tour-tip{ position: fixed; padding: 14px 16px; border-radius: 16px; background: var(--bg-elevated); color: var(--ink); border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(0,0,0,.4); transition: top .3s, left .3s; }
  .tour-count{ font-size: .72rem; color: var(--ink-faint); font-weight: 700; }
  .tour-text{ margin: 6px 0 12px; font-size: .92rem; line-height: 1.8; }
  .tour-row{ display: flex; justify-content: space-between; gap: 8px; }
  .tour-next{ border: none; background: var(--pink); color: #fff; border-radius: 999px; padding: 8px 18px; font-family: inherit; font-weight: 800; cursor: pointer; }
  .tour-skip{ border: none; background: none; color: var(--ink-faint); font-family: inherit; font-weight: 700; cursor: pointer; }

  .app-logo{ width: 18px; height: 18px; border-radius: 5px; object-fit: cover; vertical-align: -4px; margin-left: 5px; box-shadow: 0 1px 3px rgba(36,21,66,.25); }
  .to-top{ position: fixed; left: 18px; bottom: 22px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--pink); color: #fff; font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(224,23,122,.35); opacity: 0; pointer-events: none; transform: translateY(14px) scale(.9); transition: opacity .25s, transform .25s; }
  .to-top.show{ opacity: 1; pointer-events: auto; transform: none; }
  .to-top:hover{ filter: brightness(1.1); }
  .to-top:focus-visible{ outline: 2px solid var(--ink); outline-offset: 3px; }
  @media (max-width: 640px){ .to-top{ left: 14px; bottom: 16px; width: 42px; height: 42px; } }
  /* Reduced motion: switch every effect off (also fixes the showcase marquee flicker). */
  @media (prefers-reduced-motion: reduce){
    .blob, .logo-mark, .stack3d-tilt, .stack3d-float, .s3-chip, .unlock-box, .whatsnew::before, .rot-word, #fullApp, .showcase-track, .sk-new, .flag-badge.new, .fav-btn.pop,
    .phone-float, .phone, .phone-shadow, .glare, .story u, .status, .status .bars i, .status .bars b, .scene, .mini-img, .mini-lines .hl, .mini-copy, .mini-copy .lbl, .ripple, .finger,
    .bubble, .bubble i, .attach, .thinking, .thinking i, .send, .result, .spark, .heart, .result-tag, .explain-steps li, .explain-steps .bar{ animation: none !important; }
    /* Static explainer: show the finished result. */
    .scene.s3{ opacity: 1; }
    .result{ clip-path: none; }
    .result-tag{ opacity: 1; }
    .status{ color: #fff; } .status .bars i, .status .bars b{ background-color: #fff; border-color: #fff; }
    .tour-spot, .tour-tip, .to-top{ transition: none; }
    .burst{ display: none; }
  }


/* ===== صمم واجهتك (v67): skins / fonts / layouts / size ===== */
html[data-skin="royal"]{ --bg:#0E0C08; --bg-elevated:#18140C; --surface-2:#241D10; --ink:#F6EFDD; --ink-soft:#D8C9A3; --ink-faint:#9C8B63; --border:#3A2F18; --accent:#E8B84B; --accent-ink:#F2CC6B; --accent-soft-bg:#3A2E12; --accent2:#C9A24A; --accent2-soft-bg:#2E2410; --accent3:#D4B36A; --accent3-soft-bg:#2E2410; --pink:#D4AF37; --pink-soft-bg:#2E2410; --shadow:rgba(0,0,0,.6); }
html[data-skin="ocean"]{ --bg:#0C1420; --bg-elevated:#121E30; --surface-2:#182942; --ink:#E8EFF8; --ink-soft:#B3C4DA; --ink-faint:#7A8BA3; --border:#25374F; --accent:#4FA8FF; --accent-ink:#7FC0FF; --accent-soft-bg:#12304F; --accent2:#2FD4C8; --accent2-soft-bg:#0F3A37; --accent3:#7FA8E0; --accent3-soft-bg:#1C2E47; --pink:#4FA8FF; --pink-soft-bg:#12304F; --shadow:rgba(0,0,0,.55); }
html[data-skin="forest"]{ --bg:#0C140F; --bg-elevated:#121E16; --surface-2:#18291E; --ink:#E9F3EC; --ink-soft:#B5CDBD; --ink-faint:#7C9685; --border:#26402E; --accent:#43C66B; --accent-ink:#6FD98D; --accent-soft-bg:#123A1E; --accent2:#2FD4A8; --accent2-soft-bg:#0F3A2C; --accent3:#7FD48A; --accent3-soft-bg:#1C3A24; --pink:#43C66B; --pink-soft-bg:#123A1E; --shadow:rgba(0,0,0,.55); }
html[data-skin="rose"]{ --bg:#FBF4F7; --bg-elevated:#FFFFFF; --surface-2:#FCEAF1; --ink:#3A1F2E; --ink-soft:#7A5668; --ink-faint:#AE8E9D; --border:#F0D3E0; --accent:#E0177A; --accent-ink:#C01466; --accent-soft-bg:#FBDDE9; --accent2:#D6568A; --accent2-soft-bg:#FBDDE9; --accent3:#C77AA8; --accent3-soft-bg:#F6E0EC; --pink:#E0177A; --pink-soft-bg:#FBDDE9; --shadow:rgba(180,100,140,.18); }
html[data-skin="mono"]{ --bg:#F6F7F9; --bg-elevated:#FFFFFF; --surface-2:#EEF1F4; --ink:#1B2230; --ink-soft:#525E70; --ink-faint:#8A95A5; --border:#E0E5EC; --accent:#2563EB; --accent-ink:#1D4ED8; --accent-soft-bg:#E4ECFB; --accent2:#0EA5A0; --accent2-soft-bg:#DCF2F1; --accent3:#6B7CE0; --accent3-soft-bg:#E6E9FB; --pink:#2563EB; --pink-soft-bg:#E4ECFB; --shadow:rgba(30,50,90,.12); }
html[data-skin="pure"]{ --bg:#FFFFFF; --bg-elevated:#FFFFFF; --surface-2:#F4F4F5; --ink:#18181B; --ink-soft:#52525B; --ink-faint:#A1A1AA; --border:#E7E7EA; --accent:#18181B; --accent-ink:#000000; --accent-soft-bg:#F1F1F3; --accent2:#18181B; --accent2-soft-bg:#F1F1F3; --accent3:#52525B; --accent3-soft-bg:#F1F1F3; --pink:#18181B; --pink-soft-bg:#F1F1F3; --shadow:rgba(0,0,0,.07); }
/* light-flavored skins: calm the glow blobs */
html[data-skin="rose"] .blob, html[data-skin="mono"] .blob{ opacity:.18; }
html[data-skin="pure"] .blob{ opacity:0; }
html[data-skin="pure"] .card, html[data-skin="pure"] .sk-card{ box-shadow:0 1px 3px rgba(0,0,0,.05); }
html[data-skin="royal"] .blob{ opacity:.3; }

/* fonts (prompt text stays monospace) */
html[data-font="cairo"] body, html[data-font="cairo"] body :not(.prompt):not(code){ font-family:"Cairo",sans-serif !important; }
html[data-font="almarai"] body, html[data-font="almarai"] body :not(.prompt):not(code){ font-family:"Almarai",sans-serif !important; }
html[data-font="rubik"] body, html[data-font="rubik"] body :not(.prompt):not(code){ font-family:"Rubik","Tajawal",sans-serif !important; }
html[data-font="ibm"] body, html[data-font="ibm"] body :not(.prompt):not(code){ font-family:"IBM Plex Sans Arabic",sans-serif !important; }

/* card layouts */
html[data-layout="large"] .grid{ grid-template-columns:1fr; max-width:560px; margin-inline:auto; }
html[data-layout="cozy"] .grid{ grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; }
html[data-layout="cozy"] .card .swap, html[data-layout="cozy"] .card .desc{ display:none; }
html[data-layout="gallery"] .grid{ grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
html[data-layout="gallery"] .card .prompt, html[data-layout="gallery"] .card .swap, html[data-layout="gallery"] .card .desc, html[data-layout="gallery"] .card .card-foot{ display:none; }
html[data-layout="gallery"] .card:hover .prompt, html[data-layout="gallery"] .card:hover .card-foot{ display:block; }
html[data-layout="gallery"] .card:hover .card-foot{ display:flex; }

/* font size */
html[data-size="s"]{ font-size:15px; }
html[data-size="l"]{ font-size:18.5px; }

/* customizer modal */
.design-box{ max-width:440px; }
.dsn-sec{ margin-bottom:16px; }
.dsn-lbl{ font-size:.82rem; color:var(--ink-soft); font-weight:700; margin-bottom:8px; }
.dsn-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.dsn-opt{ border:1px solid var(--border); background:var(--surface-2); color:var(--ink-soft); border-radius:11px; padding:9px 13px; font-size:.84rem; font-weight:700; cursor:pointer; font-family:inherit; transition:.15s; display:flex; align-items:center; gap:7px; }
.dsn-opt:hover{ border-color:var(--accent); color:var(--ink); }
.dsn-opt.on{ border-color:var(--accent); background:var(--accent-soft-bg); color:var(--accent-ink); }
.dsn-sw{ width:16px; height:16px; border-radius:50%; border:1px solid rgba(255,255,255,.25); flex:0 0 auto; }
.dsn-sw[data-sk=""]{ background:linear-gradient(135deg,#FF2E93,#B98AE0); }
.dsn-sw[data-sk="royal"]{ background:linear-gradient(135deg,#E8B84B,#D4AF37); }
.dsn-sw[data-sk="ocean"]{ background:linear-gradient(135deg,#4FA8FF,#2FD4C8); }
.dsn-sw[data-sk="forest"]{ background:linear-gradient(135deg,#43C66B,#2FD4A8); }
.dsn-sw[data-sk="rose"]{ background:linear-gradient(135deg,#E0177A,#D6568A); }
.dsn-sw[data-sk="mono"]{ background:linear-gradient(135deg,#2563EB,#0EA5A0); }
.dsn-sw[data-sk="pure"]{ background:linear-gradient(135deg,#18181B 50%,#F4F4F5 50%); }
.dsn-reset{ width:100%; margin-top:6px; border:1px solid var(--border); background:none; color:var(--ink-soft); border-radius:12px; padding:11px; font-family:inherit; font-weight:700; font-size:.86rem; cursor:pointer; }
.dsn-reset:hover{ border-color:var(--pink); color:var(--ink); }