/* AHD Storage — Sultan Red / Black luxury (global dark grid) */
:root {
  --ink: #f2eef0;
  --ink-2: #d4cdd4;
  --mute: #9a929c;
  --mute-2: #756e78;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --bg: #07060a;
  --bg-2: #121016;
  --card: rgba(18, 16, 22, 0.78);
  --side: rgba(10, 9, 12, 0.92);
  --side-2: #16141a;
  --side-text: #c9c4cc;
  --accent: #b91c2c;
  --accent-2: #9f1524;
  --accent-soft: rgba(185, 28, 44, 0.16);
  --warm: #d4a017;
  --ok: #6fbf94;
  --danger: #d4727e;
  --radius: 16px;
  --radius-lg: 22px;
  --font: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --display: "Syne", "IBM Plex Sans Arabic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  --ahd-bg:
    radial-gradient(ellipse 55% 50% at 92% 35%, rgba(185, 28, 44, 0.22), transparent 58%),
    radial-gradient(ellipse 40% 35% at 8% 90%, rgba(185, 28, 44, 0.08), transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    url("/assets/bg-grid.png");
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #07060a;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: #07060a;
  background-image: var(--ahd-bg);
  background-size: auto, auto, 52px 52px, 52px 52px, cover;
  background-position: center, center, 0 0, 0 0, center;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; }

.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.72rem 1.15rem; border-radius: 10px; font-weight: 600; font-size: 0.92rem;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-ink { background: #f2eef0; color: #0c0b0e; }
.btn-warm { background: var(--warm); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn-side {
  color: var(--side-text); border: 1px solid rgba(255,255,255,0.1);
}
.btn-side:hover { background: rgba(255,255,255,0.06); color: #fff; }
.btn-danger {
  color: var(--danger); border: 1px solid rgba(177,75,90,0.22);
}
.btn-danger:hover { background: rgba(177,75,90,0.07); }
.btn-sm { padding: 0.42rem 0.75rem; font-size: 0.8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-soft {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.brand {
  font-family: var(--display);
  font-weight: 800; letter-spacing: -0.04em;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand-mark,
.brand-avatar {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  border: 1.5px solid rgba(185, 28, 44, 0.55);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
  background: #0c0b0e;
}
.brand-mark {
  display: inline-block;
  background: #0c0b0e url("/assets/brand-character.png") center 18% / cover no-repeat;
  clip-path: none;
}

/* ——— Marketing nav / hero ——— */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; padding: 1rem 1.25rem;
}
.nav-inner {
  width: min(1120px, 100%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.65rem 0.5rem 1rem; border-radius: 14px;
  background: rgba(26, 28, 34, 0.72); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08); color: #e8eaee;
}
.nav-links { display: flex; gap: 0.2rem; align-items: center; font-size: 0.88rem; font-weight: 600; }
.nav-links a { opacity: 0.75; padding: 0.4rem 0.7rem; border-radius: 8px; }
.nav-links a:hover { opacity: 1; background: rgba(255,255,255,0.06); }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: #f2eef0;
  background: transparent;
  overflow: visible;
  padding: 7.5rem 0 5rem;
  margin-bottom: -2rem;
}
.hero-media { display: none; }
.hero-portrait {
  position: absolute;
  left: 0;
  bottom: 0;
  top: 0;
  width: min(54vw, 680px);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.75) 78%,
    rgba(0, 0, 0, 0.25) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.75) 78%,
    rgba(0, 0, 0, 0.25) 90%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.hero-portrait img {
  width: auto;
  height: min(94dvh, 920px);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  mix-blend-mode: lighten;
  animation: portraitIn 1.1s var(--ease) both;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: clamp(1.25rem, 5vw, 4.5rem);
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}
.hero-brand {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.8rem); line-height: 0.92;
  letter-spacing: -0.07em; margin: 0 0 1.15rem;
}
.hero-brand span { display: block; color: #e8b4ba; }
.hero-lead {
  max-width: 30rem; margin: 0 0 1.5rem;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem); color: rgba(242,238,240,0.7); font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.hero-note { margin-top: 1rem; font-size: 0.84rem; color: rgba(242,238,240,0.4); }

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 5.5rem 0 2.5rem;
    min-height: auto;
  }
  .hero-portrait {
    position: relative;
    width: 100%;
    height: 46vh;
    min-height: 280px;
    left: auto;
    top: auto;
    bottom: auto;
    order: -1;
    margin-bottom: -2.5rem;
  }
  .hero-portrait img {
    height: 100%;
    max-height: 46vh;
  }
  .hero-content {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
    padding-bottom: 1rem;
  }
}
@keyframes portraitIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes drift { to { background-position: 60px 60px; } }
@keyframes floaty {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-16px, 12px) scale(1.04); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: rise .8s var(--ease) both; }
.reveal-delay-1 { animation-delay: .1s; }
.reveal-delay-2 { animation-delay: .2s; }
.reveal-delay-3 { animation-delay: .3s; }

.section { padding: 4.5rem 0; position: relative; z-index: 2; }
.link-guarantee {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  align-items: start;
  margin-bottom: 2rem;
  padding: 1.15rem 1.25rem;
  border-radius: 18px;
  border: 1px solid rgba(185, 28, 44, 0.4);
  background:
    linear-gradient(135deg, rgba(185, 28, 44, 0.14), rgba(12, 11, 14, 0.55) 55%),
    rgba(18, 16, 20, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.link-guarantee-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f0a8b0;
  background: rgba(12, 11, 14, 0.7);
  border: 1px solid rgba(185, 28, 44, 0.5);
  box-shadow: 0 0 0 4px rgba(185, 28, 44, 0.12);
}
.link-guarantee-mark svg { width: 1.45rem; height: 1.45rem; }
.link-guarantee strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.link-guarantee p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42rem;
}

.section-head { max-width: 36rem; margin-bottom: 2rem; }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.65rem;
}
h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.1; margin: 0 0 0.7rem;
  color: var(--ink);
}
.section-head p { margin: 0; color: var(--mute); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .nav-links .hide-sm { display: none; }
}

.feature-rail { display: grid; gap: 0.6rem; }
.feature-row {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.75rem;
  padding: 1.15rem 1.2rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(12px);
}
.feature-row strong { font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.02em; }
.feature-row p { margin: 0.25rem 0 0; color: var(--mute); font-size: 0.92rem; }
.feature-idx { font-family: var(--display); font-weight: 800; color: var(--accent); font-size: 1.05rem; }

.media-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin-bottom: 2rem;
}
@media (max-width: 900px) { .media-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .media-strip { grid-template-columns: 1fr; } }

.media-tile {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(185, 28, 44, 0.22);
  background: linear-gradient(165deg, #16141a 0%, #0e0c10 100%);
  color: #f2eef0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.media-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 28, 44, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.media-tile-visual {
  position: relative;
  aspect-ratio: 1.15;
  overflow: hidden;
  background: #0c0b0e;
}
.media-tile-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.55;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.02);
  transition: transform .45s var(--ease), opacity .3s;
}
.media-tile--image:hover .media-tile-visual > img {
  opacity: 0.72;
  transform: scale(1.06);
}
.media-tile--video:hover .media-tile-visual > img {
  opacity: 0.78;
}
.media-tile-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 35%, rgba(12, 11, 14, 0.92) 100%),
    radial-gradient(circle at 80% 20%, rgba(185, 28, 44, 0.28), transparent 55%);
  pointer-events: none;
}
.media-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.media-tile-ico {
  position: absolute;
  inset-inline-start: 0.9rem;
  bottom: 0.85rem;
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f0a8b0;
  background: rgba(12, 11, 14, 0.72);
  border: 1px solid rgba(185, 28, 44, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.media-tile-ico svg {
  width: 1.35rem;
  height: 1.35rem;
}
.media-tile-body {
  padding: 0.95rem 1rem 1.1rem;
  display: grid;
  gap: 0.25rem;
}
.media-tile-body b {
  font-family: var(--display);
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.media-tile-body span {
  font-size: 0.78rem;
  color: #9a929e;
  letter-spacing: 0.02em;
}
.media-tile--image .media-tile-ico { color: #f2eef0; }
.media-tile--gif .media-tile-ico { color: #e8955c; border-color: rgba(232, 149, 92, 0.45); }
.media-tile--video .media-tile-ico { color: #e03a4a; }
.media-tile--audio .media-tile-ico { color: #c9a08a; border-color: rgba(201, 160, 138, 0.4); }

/* —— صور: فلاش خفيف —— */
.media-fx--shutter {
  background: transparent;
  animation: shutterFlash 4.5s ease-in-out infinite;
}
@keyframes shutterFlash {
  0%, 88%, 100% { background: transparent; }
  90% { background: rgba(255, 245, 240, 0.18); }
  93% { background: transparent; }
}

/* —— متحرك: الشخصية تتحرك + إطار GIF —— */
.media-tile--gif .media-live {
  animation: gifLive 1.1s steps(2, end) infinite, gifFloat 2.8s ease-in-out infinite;
  opacity: 0.7;
  filter: saturate(1.05) contrast(1.08) hue-rotate(0deg);
}
.media-tile--gif:hover .media-live {
  opacity: 0.85;
  animation-duration: 0.75s, 2s;
}
@keyframes gifLive {
  0% { transform: scale(1.04) translate(0, 0) rotate(-0.4deg); filter: saturate(1.05) contrast(1.05) hue-rotate(-4deg); }
  50% { transform: scale(1.08) translate(1.5%, -1.2%) rotate(0.6deg); filter: saturate(1.2) contrast(1.12) hue-rotate(6deg); }
  100% { transform: scale(1.04) translate(0, 0) rotate(-0.4deg); filter: saturate(1.05) contrast(1.05) hue-rotate(-4deg); }
}
@keyframes gifFloat {
  0%, 100% { object-position: center 8%; }
  50% { object-position: center 18%; }
}
.media-fx--gif .gif-frame {
  position: absolute;
  inset: 10% 12%;
  border: 1.5px dashed rgba(232, 149, 92, 0.55);
  border-radius: 10px;
  animation: gifFramePulse 1.6s ease-in-out infinite;
}
@keyframes gifFramePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.98); }
  50% { opacity: 0.85; transform: scale(1); }
}
.media-fx--gif .gif-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
  color: #1a120c;
  background: linear-gradient(135deg, #f0b27a, #e07a3a);
  box-shadow: 0 6px 16px rgba(224, 122, 58, 0.35);
  animation: gifBadgeBlink 1.4s steps(2, end) infinite;
}
@keyframes gifBadgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.media-fx--gif .gif-dots {
  position: absolute;
  bottom: 3.4rem;
  inset-inline-end: 0.85rem;
  display: flex;
  gap: 0.28rem;
}
.media-fx--gif .gif-dots i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #e8955c;
  opacity: 0.35;
  animation: gifDot 0.9s ease-in-out infinite;
}
.media-fx--gif .gif-dots i:nth-child(2) { animation-delay: 0.15s; }
.media-fx--gif .gif-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes gifDot {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* —— فيديو: تشغيل احترافي —— */
.media-tile--video .media-tile-visual > img {
  animation: videoKen 8s ease-in-out infinite alternate;
  opacity: 0.58;
}
@keyframes videoKen {
  0% { transform: scale(1.02) translateX(0); }
  100% { transform: scale(1.1) translateX(-2%); }
}
.media-fx--video .vid-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 2px,
    rgba(0, 0, 0, 0.08) 2px 3px
  );
  opacity: 0.45;
  mix-blend-mode: multiply;
}
.media-fx--video .vid-scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(224, 58, 74, 0.12), transparent);
  animation: videoScan 2.8s linear infinite;
}
@keyframes videoScan {
  0% { top: -30%; }
  100% { top: 110%; }
}
.media-fx--video .vid-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.1rem;
  height: 3.1rem;
  margin: -1.55rem 0 0 -1.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12, 11, 14, 0.55);
  border: 1.5px solid rgba(224, 58, 74, 0.65);
  box-shadow: 0 0 0 0 rgba(224, 58, 74, 0.45);
  backdrop-filter: blur(8px);
  animation: playPulse 2.2s ease-out infinite;
}
.media-fx--video .vid-play i {
  width: 0;
  height: 0;
  margin-inline-start: 0.15rem;
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #f2eef0;
}
@keyframes playPulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 58, 74, 0.5); transform: scale(1); }
  70% { box-shadow: 0 0 0 14px rgba(224, 58, 74, 0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(224, 58, 74, 0); transform: scale(1); }
}
.media-fx--video .vid-timecode {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.4rem;
  border-radius: 5px;
  color: #f2eef0;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(224, 58, 74, 0.35);
  animation: timecodeTick 1s steps(1, end) infinite;
}
@keyframes timecodeTick {
  0% { content: "00:12"; }
  25% { opacity: 0.85; }
  50% { opacity: 1; }
  100% { opacity: 0.9; }
}
.media-fx--video .vid-bar {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 3.35rem;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.media-fx--video .vid-bar i {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e03a4a, #f08a92);
  animation: videoProgress 4.5s ease-in-out infinite;
}
@keyframes videoProgress {
  0% { width: 8%; }
  50% { width: 72%; }
  100% { width: 28%; }
}

/* —— صوت: قرص CD يدور —— */
.media-tile--audio .media-tile-visual {
  background:
    radial-gradient(circle at 50% 42%, #2a2228 0%, #100e12 62%, #0c0b0e 100%);
}
.media-tile--audio .media-tile-visual::after {
  background: linear-gradient(180deg, transparent 45%, rgba(12, 11, 14, 0.88) 100%);
}
.media-fx--audio {
  display: grid;
  place-items: center;
  padding-bottom: 1.2rem;
}
.cd-disc {
  position: relative;
  width: min(68%, 9.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(201, 160, 138, 0.35),
    0 0 0 6px rgba(12, 11, 14, 0.65),
    0 16px 36px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(0, 0, 0, 0.45);
  animation: cdSpin 6.5s linear infinite;
  will-change: transform;
}
.media-tile--audio:hover .cd-disc {
  animation-duration: 3.2s;
}
.cd-disc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.92;
  filter: saturate(0.9) contrast(1.05);
}
.cd-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(
      circle at center,
      transparent 0 5px,
      rgba(255, 255, 255, 0.04) 5px 6px
    );
  mix-blend-mode: soft-light;
}
.cd-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22%;
  height: 22%;
  margin: -11% 0 0 -11%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3438, #0c0b0e 70%);
  box-shadow:
    0 0 0 3px rgba(201, 160, 138, 0.35),
    inset 0 0 8px rgba(0, 0, 0, 0.8);
  z-index: 2;
}
.cd-shine {
  position: absolute;
  inset: -10%;
  background: conic-gradient(
    from 20deg,
    transparent 0deg,
    rgba(255, 255, 255, 0.16) 40deg,
    transparent 80deg,
    transparent 180deg,
    rgba(224, 58, 74, 0.12) 220deg,
    transparent 280deg
  );
  animation: cdShine 2.8s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}
@keyframes cdSpin {
  to { transform: rotate(360deg); }
}
@keyframes cdShine {
  to { transform: rotate(-360deg); }
}
.eq-bars {
  position: absolute;
  bottom: 3.35rem;
  inset-inline-end: 0.9rem;
  display: flex;
  align-items: flex-end;
  gap: 0.22rem;
  height: 1.4rem;
  z-index: 3;
}
.eq-bars i {
  width: 0.22rem;
  border-radius: 99px;
  background: linear-gradient(180deg, #e8c4b0, #c9a08a);
  animation: eqBounce 0.85s ease-in-out infinite;
  transform-origin: bottom;
}
.eq-bars i:nth-child(1) { height: 35%; animation-delay: 0s; }
.eq-bars i:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.eq-bars i:nth-child(3) { height: 100%; animation-delay: 0.24s; }
.eq-bars i:nth-child(4) { height: 55%; animation-delay: 0.08s; }
.eq-bars i:nth-child(5) { height: 40%; animation-delay: 0.2s; }
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}
.media-tile-ico--cd {
  border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
  .media-fx--shutter,
  .media-tile--gif .media-live,
  .media-fx--gif .gif-frame,
  .media-fx--gif .gif-badge,
  .media-fx--gif .gif-dots i,
  .media-tile--video .media-tile-visual > img,
  .media-fx--video .vid-scan::after,
  .media-fx--video .vid-play,
  .media-fx--video .vid-bar i,
  .cd-disc,
  .cd-shine,
  .eq-bars i {
    animation: none !important;
  }
}

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative; padding: 1.3rem; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 100%;
  backdrop-filter: blur(12px); color: var(--ink);
}
.plan.featured {
  background: linear-gradient(165deg, #120e14, #0c0b0e); color: #f2eef0;
  border: 1px solid rgba(185,28,44,0.35); box-shadow: var(--shadow);
}
.plan-badge {
  position: absolute; top: 0.9rem; inset-inline-end: 0.9rem;
  background: var(--accent-soft); color: #f0a8b0;
  font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 6px;
}
.plan.featured .plan-badge { background: rgba(198,40,56,0.22); color: #f0a8b0; }
.plan h3 {
  font-family: var(--display); margin: 0; font-size: 1.25rem; letter-spacing: -0.02em;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.plan h3 small {
  font-family: var(--font); font-size: 0.75rem; font-weight: 600;
  opacity: 0.45; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-yearly {
  margin: -0.35rem 0 0.85rem; font-size: 0.8rem; color: var(--mute); min-height: 1.2em;
}
.plan-price {
  margin: 0.85rem 0; font-family: var(--display); font-weight: 800;
  font-size: 2.1rem; letter-spacing: -0.04em; line-height: 1;
}
.plan-price small { font-size: 0.85rem; font-weight: 600; opacity: 0.55; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; }
.plan li {
  padding: 0.4rem 0; border-top: 1px solid var(--line);
  font-size: 0.88rem; color: var(--mute);
}
.plan.featured li { border-color: rgba(255,255,255,0.08); color: rgba(232,234,238,0.6); }

.cta-band {
  margin: 0 1.25rem 2.5rem; border-radius: 22px; padding: 3rem 1.4rem; text-align: center;
  background: linear-gradient(145deg, #1a1c22, #232830); color: #e8eaee; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 40%; aspect-ratio: 1; left: -8%; bottom: -40%;
  background: #b91c2c; filter: blur(80px); opacity: 0.22;
}
.cta-band h2 { position: relative; color: #f0f2f5; }
.cta-band p { position: relative; color: rgba(232,234,238,0.6); max-width: 30rem; margin: 0 auto 1.3rem; }

.footer {
  padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.88rem;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer .brand { color: var(--ink); }

/* Auth */
.auth-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background: transparent;
}
.auth-card {
  width: min(400px, 100%); background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 1.6rem; box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.auth-card h1 {
  font-family: var(--display); letter-spacing: -0.03em; font-size: 1.55rem; margin: 0.55rem 0 0.25rem;
}
.auth-card .sub { color: var(--mute); margin: 0 0 1.1rem; font-size: 0.92rem; }
.google-box {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.85rem;
  justify-items: stretch;
}
.google-box[hidden] { display: none !important; }
.google-box [data-google-btn] {
  display: flex;
  justify-content: center;
  min-height: 44px;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mute);
  font-size: 0.8rem;
  font-weight: 600;
}
.auth-or::before,
.auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or span { flex-shrink: 0; }
.auth-card .field input,
.auth-card .field select,
.auth-card .field textarea {
  border-radius: 999px;
  padding-inline: 1.1rem;
}
.auth-card .field textarea { border-radius: 18px; }
.auth-card .btn {
  border-radius: 999px;
}
.field { margin-bottom: 0.75rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 0.7rem 0.85rem; background: #16141a; color: #f2eef0;
  color-scheme: dark;
}
.field select option {
  background: #16141a;
  color: #f2eef0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(185,28,44,0.45);
  box-shadow: 0 0 0 3px rgba(185,28,44,0.12);
}
.field textarea { min-height: 88px; resize: vertical; }

.alert {
  padding: 0.65rem 0.8rem; border-radius: 10px; margin-bottom: 0.75rem;
  font-size: 0.88rem; font-weight: 600;
}
.alert-error { background: rgba(177,75,90,0.15); color: #f0a8b0; }
.alert-ok { background: rgba(61,122,92,0.15); color: var(--ok); }
.alert-info { background: var(--accent-soft); color: #f0a8b0; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem;
  backdrop-filter: blur(12px);
}
.panel + .panel { margin-top: 0.75rem; }
.panel-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: 1.05rem; margin: 0 0 0.85rem;
}

.app-shell { min-height: 100vh; background: transparent; }
.app-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1.25rem; position: sticky; top: 0; z-index: 40;
  background: rgba(7, 6, 10, 0.72); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
}
.app-main { width: min(1040px, calc(100% - 2rem)); margin: 1.25rem auto 3rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.65rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat {
  padding: 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.stat span { display: block; font-size: 0.72rem; font-weight: 600; color: var(--mute); margin-bottom: 0.35rem; }
.stat strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; }

.dropzone {
  border: 1.5px dashed rgba(185,28,44,0.35); border-radius: 14px; padding: 2rem 1rem; text-align: center;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone h3 { font-family: var(--display); margin: 0 0 0.3rem; letter-spacing: -0.02em; }
.dropzone p { margin: 0 0 1rem; color: var(--mute); font-size: 0.9rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.toolbar input[type="search"] {
  border: 1px solid var(--line-2); border-radius: 10px; padding: 0.48rem 0.85rem;
  min-width: min(240px, 100%); background: rgba(255,255,255,0.04); color: var(--ink);
}
.empty { text-align: center; padding: 2rem 1rem; color: var(--mute); }
.progress {
  height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 0.5rem;
}
.progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), #e03a4a); border-radius: inherit;
  transition: width .35s var(--ease);
}
.chip {
  display: inline-flex; align-items: center; padding: 0.12rem 0.45rem; border-radius: 6px;
  background: var(--accent-soft); color: #f0a8b0; font-size: 0.7rem; font-weight: 600;
}
.chip-muted { background: rgba(255,255,255,0.06); color: var(--mute); }
.link-box { display: flex; gap: 0.3rem; align-items: center; min-width: 0; }
.link-box input {
  flex: 1; min-width: 0; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  border-radius: 8px; padding: 0.4rem 0.65rem; font-size: 0.72rem; direction: ltr; text-align: left; color: var(--mute);
}
.file-list { display: grid; gap: 0.5rem; }
.file-row {
  display: grid; grid-template-columns: 52px minmax(0,1.2fr) minmax(0,1.4fr) auto;
  gap: 0.75rem; align-items: center; padding: 0.65rem 0.75rem; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
@media (max-width: 820px) {
  .file-row { grid-template-columns: 48px 1fr; }
}
.file-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.file-thumb.placeholder {
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; color: var(--mute);
}
.file-name { font-weight: 700; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.file-actions { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: flex-end; }
.actions { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th, .file-table td {
  text-align: start; padding: 0.75rem 0.35rem; border-bottom: 1px solid var(--line); font-size: 0.88rem; vertical-align: middle;
}
.file-table th { color: var(--mute); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.preview { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }

/* ========== DASHBOARD STUDIO ========== */
.studio {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: transparent;
  color: var(--ink);
}
@media (max-width: 920px) {
  .studio { grid-template-columns: 1fr; }
  .studio-side { position: sticky; top: 0; z-index: 30; }
}

.studio-side {
  background: rgba(8, 7, 11, 0.82);
  backdrop-filter: blur(18px);
  color: var(--side-text);
  padding: 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 100vh;
  border-inline-end: 1px solid var(--line);
}
@media (max-width: 920px) {
  .studio-side {
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1rem;
  }
  .studio-nav, .studio-usage, .studio-side-foot { display: none; }
}

.studio-brand {
  color: #f0f2f5;
  font-size: 1.05rem;
}
.studio-brand .brand-avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-color: rgba(198, 40, 56, 0.7);
}
.studio-brand span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.studio-brand small {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mute-2);
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.studio-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--side-text);
  transition: background .2s, color .2s;
}
.studio-nav a[hidden] {
  display: none !important;
}
.studio-nav a:hover,
.studio-nav a.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.studio-nav .nav-ico {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 7px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
}

.studio-usage {
  margin-top: auto;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.studio-usage .usage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.studio-usage h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9c4cc;
  letter-spacing: 0.02em;
}
.studio-usage .usage-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f0a8b0;
  font-variant-numeric: tabular-nums;
}
.studio-usage .bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 0.85rem;
}
.studio-usage .bar > i {
  display: block;
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, #b91c2c, #e03a4a);
  border-radius: inherit;
  font-style: normal;
  transition: width 0.35s var(--ease);
}
.studio-usage .usage-rows {
  display: grid;
  gap: 0.45rem;
}
.studio-usage .usage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.studio-usage .usage-row span {
  color: #8f8793;
  font-weight: 600;
}
.studio-usage .usage-row strong {
  color: #f2eef0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: end;
  direction: ltr;
}

.studio-side-foot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.studio-main {
  min-width: 0;
  padding: 1.35rem 1.5rem 2.5rem;
}
@media (max-width: 920px) {
  .studio-main { padding: 1rem; }
}

.studio-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.studio-top h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.25rem;
  font-weight: 800;
}
.studio-top p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}
.studio-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.studio-search {
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  min-width: min(220px, 100%);
  color: var(--ink);
}
.studio-search::placeholder { color: var(--mute-2); }
.studio .btn-ghost {
  color: var(--ink-2);
  border-color: var(--line-2);
}
.studio .btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--ink);
}
.studio .btn-ink {
  background: #e8eaef;
  color: #0e1014;
}
.studio .btn-accent {
  background: var(--accent);
  color: #fff;
}
.studio .btn-accent:hover { background: var(--accent-2); }
.studio .panel {
  background: var(--card);
  border-color: var(--line);
}
.studio .chip {
  background: var(--accent-soft);
  color: #f0a8b0;
}
.studio .chip-muted {
  background: rgba(255,255,255,0.06);
  color: var(--mute);
}
.studio .link-box input {
  background: var(--bg);
  border-color: var(--line);
  color: var(--mute);
}
.studio .file-row {
  background: var(--card);
  border-color: var(--line);
}
.studio .file-row:hover {
  background: #1a1e27;
  border-color: var(--line-2);
  box-shadow: none;
}
.studio .alert-info {
  background: var(--accent-soft);
  color: #f0a8b0;
}

.upload-rail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 780px) {
  .upload-rail { grid-template-columns: 1fr; }
}

.upload-zone {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(198, 40, 56, 0.35);
  background:
    linear-gradient(145deg, rgba(198, 40, 56, 0.08), transparent 55%),
    var(--card);
  padding: 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.35rem;
  transition: border-color .2s, background .2s, transform .3s var(--ease);
}
.upload-zone.dragover {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
  transform: scale(1.005);
}
.upload-zone h2 {
  font-size: 1.15rem;
  margin: 0;
}
.upload-zone p {
  margin: 0 0 0.65rem;
  color: var(--mute);
  font-size: 0.88rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.qstat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(12px);
}
.qstat span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mute);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.qstat strong {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-top: 0.2rem;
}

.library-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.library-head h2 {
  font-size: 1.15rem;
  margin: 0;
}
.library-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.sel-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mute);
  cursor: pointer;
  user-select: none;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.sel-all input {
  width: 15px;
  height: 15px;
  accent-color: #c93a48;
  cursor: pointer;
}
.bulk-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.35rem 0.25rem 0.55rem;
  border-radius: 10px;
  background: rgba(185, 28, 44, 0.12);
  border: 1px solid rgba(185, 28, 44, 0.28);
}
.bulk-bar[hidden] { display: none !important; }
.bulk-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e8b4ba;
  margin-inline-end: 0.15rem;
}
.view-toggle {
  display: inline-flex;
  padding: 0.2rem;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  gap: 0.15rem;
  border: 1px solid var(--line);
}
.view-toggle button {
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mute);
}
.view-toggle button.active {
  background: rgba(255,255,255,0.1);
  color: var(--ink);
  box-shadow: none;
}
.file-check {
  position: absolute;
  top: 0.55rem;
  inset-inline-start: 0.55rem;
  z-index: 2;
  width: 18px;
  height: 18px;
  accent-color: #c93a48;
  cursor: pointer;
}
.media-card,
.file-row {
  position: relative;
}
.media-card.is-selected,
.file-row.is-selected {
  border-color: rgba(201, 58, 72, 0.55);
  box-shadow: 0 0 0 1px rgba(201, 58, 72, 0.25);
}
.file-row .file-check {
  position: static;
  margin-inline-end: 0.15rem;
  flex-shrink: 0;
}
.file-row {
  grid-template-columns: 22px 52px minmax(0,1.2fr) minmax(0,1.4fr) auto;
}
@media (max-width: 820px) {
  .file-row { grid-template-columns: 22px 48px 1fr; }
}

/* Media library grid */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}
.media-card,
.file-row {
  transition: transform .25s var(--ease), box-shadow .25s, border-color .2s, opacity .35s ease;
}
.media-card.is-new,
.file-row.is-new {
  opacity: 0;
  transform: translateY(8px);
}
.media-card.is-new.is-in,
.file-row.is-new.is-in {
  opacity: 1;
  transform: none;
}
.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}
.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.media-card .thumb-wrap {
  aspect-ratio: 1.15;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.media-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-card .thumb-wrap .ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: linear-gradient(160deg, #1c212b, #14171e);
}
.media-card .body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.media-card .name {
  font-weight: 700;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card .meta {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.media-card .row-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: auto;
}
.media-card .row-actions .btn { flex: 1; justify-content: center; }

.library-list .file-row { margin: 0; }

.empty-studio {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.25rem 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  color: var(--mute);
}
.empty-studio strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.studio .progress {
  background: rgba(255,255,255,0.08);
}
.studio .file-thumb.placeholder {
  background: #1c212b;
  color: var(--mute);
}

/* ——— Upload queue toast ——— */
.upload-queue {
  position: fixed;
  inset-inline-start: 1.1rem;
  bottom: 1.1rem;
  z-index: 120;
  width: min(340px, calc(100vw - 1.75rem));
  padding: 0.75rem 0.8rem 0.65rem;
  border-radius: 14px;
  background: rgba(18, 16, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  margin: 0;
  animation: uqIn 0.22s ease-out;
}
.upload-queue[hidden] { display: none !important; }
@keyframes uqIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.upload-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  padding-inline: 0.15rem;
}
.upload-queue-head strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ebe6ec;
}
.upload-queue-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.uq-action {
  border: 0;
  background: transparent;
  color: #9a929e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  line-height: 1.2;
}
.uq-action:hover { color: #ebe6ec; background: rgba(255,255,255,0.06); }
.uq-dismiss {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  color: #7a727e;
}
.upload-queue-list {
  display: grid;
  gap: 0.15rem;
  max-height: 220px;
  overflow-y: auto;
}
.uq-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 22px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.4rem 0.35rem;
  border-radius: 9px;
}
.uq-row:hover { background: rgba(255, 255, 255, 0.03); }
.uq-ico {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: #a89890;
  font-size: 0.8rem;
  overflow: hidden;
}
.uq-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uq-meta { min-width: 0; }
.uq-name {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e8e3e9;
}
.uq-sub {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: #827a86;
  direction: ltr;
  text-align: start;
  unicode-bidi: plaintext;
}
.uq-bar {
  margin-top: 0.3rem;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.uq-bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: #c93a48;
  border-radius: inherit;
  transition: width 0.1s linear;
}
.uq-status {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.uq-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: #d45a66;
  animation: spin 0.6s linear infinite;
}
.uq-done {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(88, 168, 120, 0.18);
  color: #6fbf94;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.uq-err {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(212, 114, 126, 0.18);
  color: #d4727e;
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.uq-skip { color: #6a626e; font-size: 0.75rem; }
.uq-x {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  color: #7a727e;
  font-size: 0.95rem;
  line-height: 1;
  background: transparent;
}
.uq-x:hover { color: #ebe6ec; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ——— Pricing & Admin polish ——— */
.nav-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }

.page-intro {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.page-intro h2 { margin-bottom: 0.55rem; }
.page-intro p { margin: 0; color: var(--mute); }

.pricing-page .pricing-grid {
  align-items: stretch;
}
.pricing-page .plan {
  min-height: 100%;
}
.order-panel {
  margin-top: 1.75rem;
  max-width: 560px;
  margin-inline: auto;
}
.order-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.order-panel-head .panel-title { margin: 0; }
.order-plan-name {
  margin: 0 0 1rem;
  color: #f0a8b0;
  font-weight: 700;
  font-size: 0.95rem;
}
.order-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 640px) {
  .order-fields { grid-template-columns: 1fr; }
}
.paypal-box {
  margin: 0.75rem 0 0.25rem;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.paypal-hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--mute);
  line-height: 1.45;
}
#paypalButtons {
  min-height: 45px;
}
.paypal-box[hidden],
#noteField[hidden],
#orderSubmit[hidden] {
  display: none !important;
}

.admin-page .stats { margin-bottom: 1.15rem; }

.admin-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.admin-tabs button {
  padding: 0.55rem 1rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--mute);
}
.admin-tabs button.active {
  background: rgba(185, 28, 44, 0.2);
  color: #f2eef0;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
  border: 1px solid var(--line);
  background: transparent;
}
.chip-btn.active {
  background: var(--accent-soft);
  border-color: rgba(185, 28, 44, 0.35);
  color: #f0a8b0;
}

.admin-cards {
  display: grid;
  gap: 0.75rem;
}
.admin-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 1rem;
}
.admin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-card-top strong {
  display: block;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.meta-line {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: var(--mute);
}
.admin-card-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
@media (max-width: 640px) {
  .admin-card-body { grid-template-columns: 1fr; }
}
.admin-card-body > div span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-card-body > div b {
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-word;
}
.admin-card-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-ok {
  background: rgba(111, 191, 148, 0.14);
  color: #6fbf94;
}
.status-wait {
  background: rgba(212, 160, 23, 0.14);
  color: #d4a017;
}
.status-bad {
  background: rgba(212, 114, 126, 0.14);
  color: #d4727e;
}

.plan-select,
select,
.field select {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #16141a;
  color: #f2eef0;
  color-scheme: dark;
}
.plan-select option,
select option,
.field select option {
  background: #16141a;
  color: #f2eef0;
}
.plan-select:focus,
select:focus,
.field select:focus {
  outline: none;
  border-color: rgba(185, 28, 44, 0.55);
  box-shadow: 0 0 0 3px rgba(185, 28, 44, 0.12);
}

