/* Template-page features that are the same in the orange (day) and violet (night) looks (split from orange-pages.css, 2026-12-02):
   the premium watermark, «اختار التصميم» + the «بريميوم» switch, the six-design grid, the premium design lock. */
/* watermark over the preview of a premium design (no subscription): small «بريميوم · استوديو دريمز» tiled on a slant,
   white with a dark rim so it reads on light and dark videos; clicks go through to the player */
.phone { position: relative; }
.wm { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='120' viewBox='0 0 170 120'%3E%3Cg transform='rotate(-24 85 60)' font-family='IBM Plex Sans Arabic,Tahoma,sans-serif' text-anchor='middle' fill='%23ffffff' fill-opacity='.62' stroke='%23000000' stroke-opacity='.22' stroke-width='.6' paint-order='stroke'%3E%3Ctext x='85' y='58' font-size='17' font-weight='700'%3E%D8%A8%D8%B1%D9%8A%D9%85%D9%8A%D9%88%D9%85%3C/text%3E%3Ctext x='85' y='76' font-size='9.5'%3E%D8%A7%D8%B3%D8%AA%D9%88%D8%AF%D9%8A%D9%88 %D8%AF%D8%B1%D9%8A%D9%85%D8%B2%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 85px; }
/* «اختار التصميم» + the «بريميوم» switch on one line */
.g-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.g-head h3 { margin-bottom: 0; }
.pro-only { gap: 8px; }
.pro-only .pro-badge { font-size: 13px; padding: 4px 11px; }
.cos[hidden] { display: none; }
.pro-only input:checked + .knob { background: linear-gradient(135deg, #f7e08a, #e0b23f); }
/* six wedding designs now: one row of six, or two rows of three on a phone */
.designs { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 640px) { .designs { grid-template-columns: repeat(3, 1fr); } }
/* premium wedding design tile (e.g. «خطوبة»): the same gold running frame + glass lock as the kids costumes */
.ds .ph { position: relative; display: block; width: 100%; border-radius: 12px; }
.ds .ph img { display: block; }
.ds.lock .ph { padding: 2.5px; border-radius: 14px; overflow: visible;
  background: conic-gradient(from var(--ga, 0deg), #a8791f, #e9c66a 12%, #fff4c8 18%, #e9c66a 24%, #a8791f 40%, #d9b04f 62%, #a8791f 84%, #a8791f);
  box-shadow: 0 0 12px rgba(240, 196, 90, .45); animation: gold-run 3.6s linear infinite; }
.ds.lock .ph img { filter: brightness(.72) saturate(.85); border-radius: 11px; }
.ds .lk { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 16px rgba(20, 10, 60, .35);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: transform .2s; }
.ds .lk svg { width: 50%; height: 50%; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.ds.lock:hover .lk { transform: scale(1.08); }
@property --ga { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes gold-run { to { --ga: 360deg; } }

/* phones (Amer, 2026-12-02): the top bar wrapped into two lines. «كل القوالب» becomes a round arrow, the logo stays on one line */
@media (max-width: 430px) {
  .ed-top { gap: 8px; flex-wrap: nowrap; }
  .ed-top > * { white-space: nowrap; flex-shrink: 0; }
  .ed-top .back { font-size: 0; width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
  /* Amer: a glowing orange circle with an X; it goes back to all the templates */
  .ed-top .back { position: relative; display: grid; place-items: center; border: 0; background: radial-gradient(circle at 35% 30%, #ffb15c, #ff6a00 70%); box-shadow: 0 0 0 0 rgba(255, 122, 0, .55), 0 6px 16px rgba(255, 106, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5); animation: back-glow 2.2s ease-in-out infinite; }
  .ed-top .back::before { content: ""; position: absolute; width: 12px; height: 12px;
    background: linear-gradient(45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, #fff 43%, #fff 57%, transparent 57%); border-radius: 2px; }
  @keyframes back-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .5), 0 0 12px rgba(255, 140, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .5); } 50% { box-shadow: 0 0 0 5px rgba(255, 122, 0, 0), 0 0 18px rgba(255, 140, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .5); } }
  .ed-top .logo { font-size: 16px; gap: 6px; }
  .ed-top .logo-mark { width: 30px; height: 30px; }
}

/* Amer (2026-12-02): the voice is paid with credits now, not a subscription: no «بريميوم» pill beside the voice switch */
.toggle.pro .pro-badge { display: none; }

/* Amer (2026-12-02): no black «استوديو دريمز» text beside the orange mark (kept for screen readers only) */
.logo > span:not(.logo-mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
