:root {
  --bg: #0b0f1a;
  --bg-deep: #070b14;
  --panel: rgba(17, 24, 39, 0.86);
  --panel-strong: rgba(17, 24, 39, 0.96);
  --panel-soft: rgba(17, 24, 37, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f7f9fc;
  --muted: #9da9bc;
  --muted-strong: #738096;
  --violet: #7c3aed;
  --violet-soft: rgba(124, 58, 237, 0.18);
  --cyan: #2563eb;
  --cyan-soft: rgba(37, 99, 235, 0.16);
  --amber: #60a5fa;
  --amber-soft: rgba(96, 165, 250, 0.18);
  --green: #8b5cf6;
  --danger: #7c3aed;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.18), transparent 25%),
    radial-gradient(circle at 92% 10%, rgba(124, 58, 237, 0.16), transparent 18%),
    radial-gradient(circle at 70% 68%, rgba(37, 99, 235, 0.11), transparent 20%),
    linear-gradient(180deg, #0b0f1a 0%, #0b1020 50%, #070b14 100%);
  color: var(--text);
  overflow-x: hidden;
}

body.apps-modal-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 95%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.line-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.38;
}

.orb-a {
  top: -120px;
  left: -90px;
  background: rgba(37, 99, 235, 0.24);
}

.orb-b {
  right: -120px;
  bottom: 8%;
  background: rgba(124, 58, 237, 0.18);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0%, rgba(5, 9, 19, 0.3) 70%, rgba(5, 9, 19, 0.8) 100%);
}

.page-shell {
  position: relative;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 52px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 20px 0 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(6, 10, 18, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.1rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: inline-flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a.is-current {
  color: var(--text);
}

.site-nav a.is-current::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.2);
}

.button.primary {
  background: linear-gradient(135deg, var(--violet), #6378ff 55%, var(--cyan));
  box-shadow: 0 18px 40px rgba(99, 120, 255, 0.26);
}

.button.secondary,
.button.ghost,
.button.tertiary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.button.ghost {
  background: rgba(73, 212, 255, 0.08);
  border-color: rgba(73, 212, 255, 0.16);
}

.button.tertiary {
  min-height: 42px;
  padding-inline: 16px;
}

.button.compact {
  min-height: 46px;
}

.button.mini {
  min-height: 42px;
  padding-inline: 16px;
}

.button.large {
  min-width: 170px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
  padding: 14px 0 34px;
}

.hero-sales {
  align-items: center;
}

.hero-badges,
.hero-actions,
.hero-metrics,
.template-group,
.topbar-links,
.detail-tags,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill,
.plan-tag,
.rare-badge,
.live-label,
.upgrade-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.pill.accent,
.plan-tag,
.rare-badge {
  background: linear-gradient(135deg, rgba(135, 107, 255, 0.22), rgba(73, 212, 255, 0.12));
  border: 1px solid rgba(73, 212, 255, 0.16);
}

.pill.soft {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.eyebrow,
.mini-label {
  margin: 0;
  color: var(--cyan);
  font-family: "Manrope", sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.cta-section h2 {
  margin: 0;
  font-family: "Manrope", "Tajawal", sans-serif;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(2.9rem, 5vw, 5.1rem);
  max-width: 10.5ch;
  margin: 12px 0 18px;
}

.hero-lead,
.section-heading p,
.why-panel p,
.metric-card span,
.feature-card p,
.sound-card p,
.workflow-card span,
.faq-card p,
.price-card p,
.price-list li,
.upgrade-card p,
.tool-explain p,
.mix-control span,
.explain-status,
.unmix-card p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-lead {
  max-width: 62ch;
}

.hero-metrics {
  margin-top: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-trust > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  text-align: center;
}

.hero-trust > span .line-icon {
  color: var(--cyan);
}

.home-promise {
  margin-top: 22px;
}

.metric-card,
.why-panel,
.feature-card,
.sound-card,
.workflow-card,
.faq-card,
.price-card,
.coverage-card,
.unmix-card,
.explain-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.84), rgba(7, 10, 17, 0.92));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.metric-card:hover,
.why-panel:hover,
.feature-card:hover,
.sound-card:hover,
.workflow-card:hover,
.faq-card:hover,
.price-card:hover,
.comparison-card:hover,
.preview-card:hover,
.flow-step:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.metric-card {
  flex: 1 1 180px;
  min-width: 160px;
  padding: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "Manrope", sans-serif;
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
}

.why-panel {
  padding: 24px;
}

.why-panel h3 {
  margin: 10px 0 12px;
  font-size: 1.45rem;
}

.why-panel.emphasis {
  background:
    radial-gradient(circle at top left, rgba(135, 107, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(14, 20, 34, 0.92), rgba(8, 11, 19, 0.98));
}

.problem-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.problem-list span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.subpage-main {
  display: grid;
  gap: 20px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: start;
  padding: 10px 0 8px;
}

.page-hero-copy,
.page-hero-card,
.comparison-card,
.preview-card,
.flow-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.84), rgba(7, 10, 17, 0.92));
  box-shadow: var(--shadow);
}

.page-hero-copy {
  padding: 30px;
}

.page-hero-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.page-hero-copy p {
  color: var(--muted);
  line-height: 1.8;
}

.page-hero-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.page-hero-card strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

.page-hero-card span {
  color: var(--muted);
  line-height: 1.8;
}

.mockup-card {
  overflow: hidden;
  padding: 0;
}

.mockup-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.tab-shell {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.84), rgba(7, 10, 17, 0.92));
  box-shadow: var(--shadow);
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-button,
.switch-chip,
.preview-chip {
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tab-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
}

.tab-button.is-active,
.switch-chip.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(124, 58, 237, 0.22));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.18);
}

.tab-button:hover,
.switch-chip:hover,
.preview-chip:hover {
  transform: translateY(-1px);
}

.tab-panel {
  display: block;
}

.feature-columns,
.preview-grid,
.comparison-grid {
  display: grid;
  gap: 18px;
}

.feature-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card-rich {
  padding: 22px;
}

.example-note {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.8;
}

.preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.preview-card {
  padding: 22px;
}

.preview-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
}

.preview-card span {
  display: block;
  color: var(--muted);
  line-height: 1.8;
}

.preview-chip {
  margin-top: 16px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--text);
  font-weight: 800;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.preview-chip.is-playing {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.22));
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.22);
}

.neon-card,
.neon-section {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.2), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.2), transparent 20%),
    linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(7, 10, 18, 0.98));
}

.neon-section {
  padding: 30px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.16);
}

.neon-preview {
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.12);
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-step {
  padding: 22px;
}

.flow-step strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
}

.flow-step span {
  color: var(--muted);
  line-height: 1.8;
}

.progress-demo {
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.92), rgba(8, 11, 19, 0.98));
  box-shadow: var(--shadow);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.progress-head span {
  color: var(--muted);
}

.progress-track {
  min-height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.progress-fill {
  position: relative;
  width: 0;
  min-height: 16px;
  border-radius: inherit;
  transition: width 900ms ease;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  background-size: 180% 100%;
  animation: gradientShift 4s linear infinite;
}

.progress-fill.is-animated {
  width: var(--progress-width, 84%);
}

.pricing-switch {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  margin-bottom: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.switch-chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.popular-card {
  overflow: hidden;
}

.popular-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.92), rgba(124, 58, 237, 0.82));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.comparison-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comparison-card {
  padding: 24px;
}

.comparison-card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
}

.comparison-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.floating-cta {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.28);
  animation: pulseGlow 2.6s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 180% 50%;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.22);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 24px 46px rgba(124, 58, 237, 0.34);
  }
}

@keyframes demoScrub {
  0% {
    width: 34%;
  }
  100% {
    width: 78%;
  }
}

.hero-demo-card,
.sales-card,
.feature-link-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(12, 18, 29, 0.84), rgba(7, 10, 17, 0.92));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-demo-card:hover,
.sales-card:hover,
.feature-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.hero-demo-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.demo-card-head,
.feature-link-head,
.panel-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-card-head strong {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
}

.demo-stage {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.demo-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.demo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 22, 0.18) 0%, rgba(7, 11, 19, 0.78) 100%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 26%),
    radial-gradient(circle at 82% 14%, rgba(124, 58, 237, 0.18), transparent 22%);
  pointer-events: none;
}

.demo-play {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(7, 11, 19, 0.64);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.demo-play:hover,
.demo-play:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.24);
}

.hero-demo-card[data-demo-paused="true"] .demo-play {
  border-color: rgba(37, 99, 235, 0.3);
}

.hero-demo-card[data-demo-paused="true"] .demo-scrub span {
  animation-play-state: paused;
}

.demo-overlay {
  position: absolute;
  inset: auto 18px 68px;
  z-index: 1;
  display: grid;
  gap: 12px;
  max-width: 72%;
}

.demo-kicker {
  margin: 0;
  color: #dbeafe;
  font-size: 0.9rem;
  font-weight: 700;
}

.demo-overlay strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.demo-overlay span {
  color: #e8eefb;
  line-height: 1.8;
}

.demo-progress {
  display: grid;
  gap: 10px;
  max-width: 440px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(7, 11, 19, 0.5);
  backdrop-filter: blur(12px);
}

.demo-progress small {
  color: #ced8ee;
}

.demo-controls {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.demo-scrub {
  flex: 1 1 auto;
  min-height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.demo-scrub span {
  display: block;
  width: 58%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  animation: demoScrub 3.2s ease-in-out infinite alternate;
}

.demo-sidecards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sales-card {
  padding: 18px;
}

.mini-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--cyan);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.16);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.icon-violet {
  color: var(--violet);
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.14);
}

.icon-blue {
  color: #60a5fa;
}

.section-compact {
  padding-top: 18px;
}

.section-heading-tight {
  margin-bottom: 18px;
}

.feature-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-link-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.feature-link-head {
  align-items: flex-start;
  justify-content: flex-start;
}

.feature-link-head > div {
  display: grid;
  gap: 2px;
}

.feature-link-head h3 {
  margin: 0;
  font-size: 1.3rem;
}

.feature-link-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-link-meta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.feature-link-meta .line-icon {
  color: var(--cyan);
}

.section-actions {
  margin-top: 20px;
}

.compact-preview strong {
  font-size: 2.2rem;
}

.compact-preview p {
  margin-bottom: 0;
}

.cta-section-slim h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.comparison-card .card-icon {
  margin-bottom: 16px;
}

.hero-studio {
  position: relative;
}

.editor-shell {
  position: relative;
  padding: 18px;
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top left, rgba(135, 107, 255, 0.16), transparent 22%),
    radial-gradient(circle at 80% 10%, rgba(73, 212, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(6, 9, 15, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.editor-shell[data-mode="pro"] {
  border-color: rgba(111, 141, 255, 0.2);
}

.editor-topbar,
.panel-header,
.preview-header,
.tool-explain-header,
.unmix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-inline {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.topbar-links span {
  color: var(--muted);
  font-size: 0.88rem;
}

.mode-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mode-chip,
.template-chip,
.inspector-tab,
.sidebar-item {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.mode-chip {
  min-height: 42px;
  padding: 0 16px;
  font-weight: 800;
}

.mode-chip.is-active,
.template-chip.is-active,
.inspector-tab.is-active,
.sidebar-item.is-active {
  background: linear-gradient(135deg, rgba(135, 107, 255, 0.2), rgba(73, 212, 255, 0.14));
  color: var(--text);
}

.editor-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 320px;
  gap: 16px;
  margin-top: 18px;
}

.app-sidebar,
.project-panel,
.inspector-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.app-sidebar {
  padding: 16px;
  display: grid;
  gap: 16px;
}

.new-project {
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--violet), #6572ff);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-menu {
  display: grid;
  gap: 8px;
}

.sidebar-item {
  min-height: 42px;
  padding-inline: 14px;
  text-align: right;
  font-weight: 700;
}

.upgrade-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 19, 33, 0.98), rgba(11, 14, 25, 0.98));
  border: 1px solid rgba(135, 107, 255, 0.14);
}

.upgrade-card strong {
  display: block;
  margin-bottom: 8px;
}

.upgrade-pill {
  margin-top: 10px;
  background: rgba(111, 141, 255, 0.14);
  border: 1px solid rgba(111, 141, 255, 0.18);
  color: var(--amber);
}

.project-panel {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.panel-header h2 {
  margin: 6px 0 0;
  font-size: 1.5rem;
}

.template-chip {
  min-height: 38px;
  padding-inline: 14px;
  font-weight: 800;
}

.media-preview {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.live-label {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-label.muted {
  color: var(--muted);
}

.preview-window {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin-top: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.editor-shell[data-mode="pro"] .preview-window img {
  filter: saturate(1.14) contrast(1.08);
}

.preview-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 5, 13, 0.82) 100%);
}

.preview-copy {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-width: 70%;
}

.preview-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
}

.preview-copy span {
  color: #ecf1f8;
  line-height: 1.7;
}

.track-strip {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.track-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.track-row span {
  color: var(--muted);
  font-size: 0.86rem;
}

.track-fill {
  position: relative;
  overflow: hidden;
  min-height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.track-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.video-fill::after {
  width: 84%;
  background: linear-gradient(90deg, rgba(135, 107, 255, 0.84), rgba(73, 212, 255, 0.58));
}

.fx-fill::after {
  width: 52%;
  background: linear-gradient(90deg, rgba(111, 141, 255, 0.92), rgba(135, 107, 255, 0.42));
}

.voice-fill::after {
  width: 64%;
  background: linear-gradient(90deg, rgba(73, 212, 255, 0.78), rgba(73, 212, 255, 0.22));
}

.music-fill::after {
  width: 74%;
  background: linear-gradient(90deg, rgba(135, 107, 255, 0.88), rgba(73, 212, 255, 0.28));
}

.editor-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.inspector-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.inspector-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.inspector-tab {
  min-height: 40px;
  padding-inline: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(73, 212, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(73, 212, 255, 0.08);
}

.library-list {
  display: grid;
  gap: 10px;
  min-height: 282px;
}

.library-item {
  width: 100%;
  text-align: right;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease;
}

.library-item:hover,
.library-item:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(73, 212, 255, 0.22);
}

.library-item.is-selected {
  background: linear-gradient(135deg, rgba(135, 107, 255, 0.14), rgba(73, 212, 255, 0.08));
  border-color: rgba(73, 212, 255, 0.22);
}

.library-item strong {
  display: block;
  margin-bottom: 6px;
}

.library-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.tool-explain {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 18, 29, 0.94), rgba(8, 11, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tool-explain strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.detail-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-audio {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-audio-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-audio-head span {
  font-weight: 800;
  color: var(--text);
}

.detail-audio-head small {
  color: var(--muted);
}

.detail-audio audio {
  width: 100%;
  min-height: 44px;
  border-radius: 14px;
}

.voice-studio {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.voice-studio-head {
  display: grid;
  gap: 6px;
}

.voice-studio-head span {
  font-weight: 800;
  color: var(--text);
}

.voice-studio-head small {
  color: var(--muted);
  line-height: 1.6;
}

.voice-field {
  display: grid;
  gap: 8px;
}

.voice-field span {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
}

.voice-field textarea,
.voice-field input,
.voice-field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.voice-field textarea {
  resize: vertical;
  min-height: 128px;
}

.voice-field textarea:focus,
.voice-field input:focus,
.voice-field select:focus {
  border-color: rgba(73, 212, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(73, 212, 255, 0.08);
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.voice-grid.compact {
  align-items: stretch;
}

.voice-metric {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.voice-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.voice-metric strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promise-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 10px 0 22px;
  padding: 18px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.promise-strip span {
  position: relative;
  padding-inline-start: 18px;
  color: var(--muted);
}

.promise-strip span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.section {
  padding: 42px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid rgba(73, 212, 255, 0.18);
  background: rgba(73, 212, 255, 0.08);
  color: var(--cyan);
  font-size: 0.84rem;
  font-weight: 800;
}

.pricing-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
}

.unmix-grid,
.feature-grid,
.sound-grid,
.workflow-grid,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.unmix-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
}

.unmix-card,
.explain-card,
.why-panel,
.sound-card,
.feature-card,
.workflow-card,
.faq-card,
.price-card {
  padding: 22px;
}

.unmix-head h3,
.sound-card h3,
.feature-card h3,
.price-card h3,
.faq-card h3 {
  margin: 8px 0 10px;
  font-size: 1.3rem;
}

.mix-bars {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.mix-control {
  display: grid;
  gap: 8px;
}

.mix-control input {
  width: 100%;
  accent-color: var(--violet);
}

.mix-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 24px 0 18px;
}

.mix-column {
  min-width: 82px;
  text-align: center;
}

.mix-column strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
}

.mix-column span {
  color: var(--muted);
  font-size: 0.84rem;
}

.mix-meter {
  display: grid;
  gap: 10px;
}

.mix-progress {
  height: 20px;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.mix-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--mix-width, 50%);
  border-radius: inherit;
}

.mix-progress.vocals::after {
  background: linear-gradient(90deg, rgba(73, 212, 255, 0.88), rgba(73, 212, 255, 0.3));
}

.mix-progress.music::after {
  background: linear-gradient(90deg, rgba(135, 107, 255, 0.9), rgba(73, 212, 255, 0.34));
}

.explain-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(73, 212, 255, 0.14);
  background: rgba(73, 212, 255, 0.08);
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(135, 107, 255, 0.2), rgba(73, 212, 255, 0.1));
  font-family: "Manrope", sans-serif;
  font-weight: 800;
}

.sound-grid,
.pricing-grid,
.faq-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: "Manrope", sans-serif;
}

.price-card.free {
  border-color: rgba(73, 212, 255, 0.16);
}

.price-card.featured {
  transform: translateY(-8px);
  border-color: rgba(73, 212, 255, 0.18);
  background:
    radial-gradient(circle at top left, rgba(135, 107, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(12, 18, 29, 0.88), rgba(7, 10, 17, 0.98));
}

.price-card strong {
  display: block;
  margin: 14px 0;
  font-family: "Manrope", sans-serif;
  font-size: 2.7rem;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.price-list li {
  position: relative;
  padding-inline-start: 22px;
}

.price-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(135, 107, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(12, 18, 29, 0.92), rgba(7, 10, 17, 0.98));
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 28px 0 8px;
  color: var(--muted-strong);
}

.site-footer p,
.site-footer span,
.site-footer small {
  margin: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-home {
  font-family: "Inter", "Tajawal", "Segoe UI", sans-serif;
}

.dashboard-home .page-shell {
  width: min(1320px, calc(100% - 36px));
  padding-bottom: 56px;
}

.dashboard-home-main {
  display: grid;
  gap: 30px;
}

.dashboard-masthead {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 28px 0 14px;
}

.dashboard-masthead::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 180px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(124, 58, 237, 0.34), transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}

.masthead-lockup {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}

.masthead-logo {
  width: 132px;
  height: 132px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.98), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(124, 58, 237, 0.3);
}

.masthead-copy {
  display: grid;
  gap: 8px;
}

.masthead-copy h1 {
  margin: 0;
  font-size: clamp(4.2rem, 9vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.masthead-copy p {
  margin: 0;
  color: rgba(237, 242, 248, 0.65);
  letter-spacing: 0.38em;
  font-size: 0.9rem;
}

.dashboard-frame {
  position: relative;
  width: min(1148px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(10, 13, 22, 0.98), rgba(8, 11, 18, 0.98)),
    rgba(10, 13, 22, 0.96);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.dashboard-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 13%, rgba(124, 58, 237, 0.12), transparent 22%),
    radial-gradient(circle at 70% 14%, rgba(37, 99, 235, 0.08), transparent 20%);
  pointer-events: none;
}

.dashboard-sidebar,
.dashboard-main {
  position: relative;
  z-index: 1;
}

.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 736px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(8, 11, 18, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-top {
  display: grid;
  gap: 18px;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px 10px;
}

.sidebar-brand-logo {
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 4px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.98), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  box-shadow: 0 14px 34px rgba(124, 58, 237, 0.24);
}

.sidebar-brand strong,
.account-meta strong {
  display: block;
  font-weight: 700;
}

.sidebar-brand small,
.account-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  width: 100%;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.sidebar-link:hover,
.sidebar-link:focus-visible {
  transform: translateX(2px);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.1);
}

.sidebar-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.04);
}

.sidebar-link.is-active .line-icon {
  color: #b88cff;
}

.sidebar-link-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.94), rgba(37, 99, 235, 0.9));
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.sidebar-button {
  cursor: pointer;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.sidebar-account:hover,
.sidebar-account:focus-visible,
.sidebar-account.is-active {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(124, 58, 237, 0.18);
  box-shadow: 0 18px 34px rgba(24, 18, 44, 0.34);
}

.account-avatar-image {
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 5px;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.98), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.dashboard-sidebar-backdrop,
.dashboard-menu-toggle {
  display: none;
}

.dashboard-main {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 18px 22px 22px;
}

.dashboard-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-top-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.dashboard-menu-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.dashboard-window-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.dashboard-window-controls span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-window-controls span:nth-child(2) {
  background: rgba(124, 58, 237, 0.42);
}

.dashboard-window-controls span:nth-child(3) {
  background: rgba(255, 255, 255, 0.15);
}

.home-theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  min-height: 62px;
  padding: 0 24px 0 84px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(76, 21, 163, 0.98), rgba(104, 63, 255, 0.94));
  color: #fff;
  box-shadow: 0 18px 36px rgba(76, 21, 163, 0.26);
  cursor: pointer;
  transition: transform 180ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
}

.home-theme-toggle:hover,
.home-theme-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 42px rgba(104, 63, 255, 0.28);
}

.home-theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.14), 0 22px 42px rgba(104, 63, 255, 0.24);
}

.home-theme-thumb {
  position: absolute;
  top: 7px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
  transition: left 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.home-theme-glyph {
  font-size: 1.4rem;
  line-height: 1;
  color: #5b21b6;
  transition: color 220ms ease, transform 220ms ease;
}

.home-theme-label {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Inter", "Tajawal", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-theme-toggle.is-day {
  padding: 0 84px 0 24px;
  background: linear-gradient(135deg, rgba(8, 170, 221, 0.96), rgba(115, 223, 255, 0.92));
  box-shadow: 0 18px 36px rgba(8, 170, 221, 0.22);
}

.home-theme-toggle.is-day .home-theme-thumb {
  left: calc(100% - 56px);
}

.home-theme-toggle.is-day .home-theme-glyph {
  color: #f5b400;
  transform: rotate(18deg);
}

.dashboard-language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 18, 29, 0.96), rgba(28, 21, 48, 0.94));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(18, 16, 39, 0.24);
  transition: transform 180ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.dashboard-language-toggle:hover,
.dashboard-language-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 20px 38px rgba(29, 20, 59, 0.28);
}

.dashboard-language-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 20px 38px rgba(29, 20, 59, 0.22);
}

.dashboard-language-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.24));
  font-family: "Inter", "Tajawal", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dashboard-language-track {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dashboard-language-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Inter", "Tajawal", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.dashboard-language-toggle[data-active-locale="ar"] .dashboard-language-chip[data-locale-chip="ar"],
.dashboard-language-toggle[data-active-locale="en"] .dashboard-language-chip[data-locale-chip="en"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(124, 58, 237, 0.3));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

body[data-site-locale="ar"] .dashboard-language-chip[data-locale-chip="ar"] {
  letter-spacing: 0;
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-language-toggle {
  border-color: rgba(92, 125, 174, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(229, 239, 255, 0.98));
  color: #10223a;
  box-shadow: 0 18px 30px rgba(120, 145, 190, 0.16);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-language-chip {
  color: rgba(16, 34, 58, 0.68);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-language-toggle[data-active-locale="ar"] .dashboard-language-chip[data-locale-chip="ar"],
body.dashboard-home-root[data-home-theme="day"] .dashboard-language-toggle[data-active-locale="en"] .dashboard-language-chip[data-locale-chip="en"] {
  color: #10223a;
  box-shadow: 0 10px 20px rgba(120, 145, 190, 0.14);
}

.dashboard-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 18px;
}

.dashboard-intro,
.dashboard-hero-art,
.dashboard-empty,
.update-row,
.apps-modal-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 19, 28, 0.9), rgba(9, 12, 20, 0.98));
  box-shadow: var(--shadow);
}

.dashboard-intro {
  display: grid;
  align-content: center;
  min-height: 232px;
  padding: 30px;
}

.dashboard-intro h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
}

.dashboard-intro p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.dashboard-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(100%, 420px);
  min-height: 56px;
  margin-top: 28px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-search:focus-within {
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.08);
}

.dashboard-search .line-icon {
  color: var(--muted);
}

.dashboard-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.dashboard-search input::placeholder {
  color: rgba(157, 169, 188, 0.72);
}

.dashboard-hero-art {
  position: relative;
  min-height: 232px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(13, 16, 26, 0.96) 0%, rgba(48, 19, 87, 0.92) 56%, rgba(16, 24, 40, 0.98) 100%);
}

.dashboard-hero-art::before,
.dashboard-hero-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.dashboard-hero-art::before {
  inset: 8% -18% auto auto;
  width: 360px;
  height: 260px;
  background:
    radial-gradient(circle at 26% 30%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 58% 40%, rgba(124, 58, 237, 0.42), transparent 34%),
    radial-gradient(circle at 76% 36%, rgba(37, 99, 235, 0.32), transparent 40%);
  filter: blur(18px);
}

.dashboard-hero-art::after {
  right: -20px;
  bottom: -10px;
  width: 88%;
  height: 72%;
  border-radius: 100px 0 0 0;
  background:
    linear-gradient(150deg, transparent 24%, rgba(255, 255, 255, 0.12) 42%, transparent 56%),
    linear-gradient(180deg, transparent 10%, rgba(124, 58, 237, 0.1) 100%);
  transform: rotate(-10deg);
  opacity: 0.76;
}

.art-explore {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.art-explore:hover,
.art-explore:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.22);
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-section-head h3 {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.dashboard-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}

.dashboard-link:hover,
.dashboard-link:focus-visible {
  color: var(--text);
  transform: translateX(2px);
}

.dashboard-link-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.dashboard-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 184px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 29, 0.94), rgba(10, 13, 20, 0.98));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-card:hover,
.tool-card:focus-visible,
.update-row:hover,
.apps-modal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.tool-card[hidden] {
  display: none;
}

.tool-card-menu {
  position: absolute;
  top: 12px;
  right: 12px;
  color: rgba(255, 255, 255, 0.36);
  letter-spacing: 0.16em;
}

.app-card-tile,
.app-update-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-update-tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.app-card-tile img,
.app-update-tile img {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  object-fit: contain;
  padding: 7px;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0.98), rgba(8, 11, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.app-update-tile img {
  width: 32px;
  height: 32px;
  padding: 4px;
  border-radius: 10px;
}

.app-card-tile span,
.app-update-tile span,
.app-card-tile .line-icon {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.app-card.theme-design .app-card-tile {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.32), rgba(37, 99, 235, 0.14));
}

.app-card.theme-motion .app-card-tile {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.3), rgba(157, 23, 77, 0.16));
}

.app-card.theme-audio .app-card-tile {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.28), rgba(13, 148, 136, 0.14));
}

.app-card.theme-3d .app-card-tile {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.3), rgba(180, 83, 9, 0.16));
}

.tool-card-copy {
  display: grid;
  gap: 6px;
}

.tool-card strong,
.update-meta strong,
.apps-modal-card strong {
  font-weight: 700;
}

.tool-card small,
.update-meta p,
.dashboard-empty span,
.apps-modal-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-top: auto;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.18);
  color: rgba(235, 240, 248, 0.84);
  font-size: 0.74rem;
  font-weight: 700;
}

.dashboard-empty {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-style: dashed;
  border-color: rgba(124, 58, 237, 0.24);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-empty strong {
  font-weight: 700;
}

body.dashboard-home-root,
body.dashboard-home-root::after,
body.dashboard-home-root .bg-orb,
body.dashboard-home-root .dashboard-frame,
body.dashboard-home-root .dashboard-frame::before,
body.dashboard-home-root .dashboard-sidebar,
body.dashboard-home-root .dashboard-main,
body.dashboard-home-root .dashboard-intro,
body.dashboard-home-root .dashboard-hero-art,
body.dashboard-home-root .dashboard-empty,
body.dashboard-home-root .update-row,
body.dashboard-home-root .apps-modal-card,
body.dashboard-home-root .tool-card,
body.dashboard-home-root .sidebar-link,
body.dashboard-home-root .sidebar-account,
body.dashboard-home-root .dashboard-search,
body.dashboard-home-root .art-explore,
body.dashboard-home-root .app-card-tile,
body.dashboard-home-root .app-update-tile {
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease, opacity 220ms ease, transform 180ms ease;
}

body.dashboard-home-root[data-home-theme="day"] {
  --text: #10223a;
  --muted: #5f738d;
  --muted-strong: #475a73;
  background:
    radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.16), transparent 24%),
    radial-gradient(circle at 92% 10%, rgba(124, 58, 237, 0.12), transparent 18%),
    radial-gradient(circle at 70% 68%, rgba(14, 165, 233, 0.12), transparent 20%),
    linear-gradient(180deg, #eef6ff 0%, #dcebff 54%, #e7f0ff 100%);
}

body.dashboard-home-root[data-home-theme="day"]::after {
  background: linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
}

body.dashboard-home-root[data-home-theme="day"] .bg-grid {
  background: radial-gradient(circle at center, transparent 0%, rgba(255, 255, 255, 0.14) 60%, rgba(214, 228, 249, 0.5) 100%);
}

body.dashboard-home-root[data-home-theme="day"] .orb-a {
  background: rgba(37, 99, 235, 0.2);
}

body.dashboard-home-root[data-home-theme="day"] .orb-b {
  background: rgba(14, 165, 233, 0.18);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-frame {
  border-color: rgba(92, 125, 174, 0.2);
  box-shadow: 0 28px 72px rgba(109, 140, 191, 0.16);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-frame::before {
  background:
    radial-gradient(circle at 82% 13%, rgba(124, 58, 237, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(229, 239, 255, 0.96));
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-sidebar {
  border-right-color: rgba(92, 125, 174, 0.12);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.88), rgba(231, 240, 252, 0.96));
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-main {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(234, 243, 255, 0.5));
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-intro,
body.dashboard-home-root[data-home-theme="day"] .dashboard-hero-art,
body.dashboard-home-root[data-home-theme="day"] .dashboard-empty,
body.dashboard-home-root[data-home-theme="day"] .update-row,
body.dashboard-home-root[data-home-theme="day"] .apps-modal-card,
body.dashboard-home-root[data-home-theme="day"] .tool-card {
  border-color: rgba(92, 125, 174, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(235, 243, 255, 0.94));
  box-shadow: 0 18px 44px rgba(120, 145, 190, 0.12);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-search {
  border-color: rgba(92, 125, 174, 0.14);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-search .line-icon {
  color: rgba(71, 90, 115, 0.86);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-search input {
  color: #10223a;
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-search input::placeholder {
  color: rgba(95, 115, 141, 0.86);
}

body.dashboard-home-root[data-home-theme="day"] .sidebar-link {
  color: rgba(16, 34, 58, 0.82);
}

body.dashboard-home-root[data-home-theme="day"] .sidebar-link:hover,
body.dashboard-home-root[data-home-theme="day"] .sidebar-link:focus-visible {
  background: rgba(79, 124, 255, 0.08);
  border-color: rgba(79, 124, 255, 0.1);
}

body.dashboard-home-root[data-home-theme="day"] .sidebar-link.is-active {
  background: rgba(79, 124, 255, 0.12);
  border-color: rgba(79, 124, 255, 0.14);
}

body.dashboard-home-root[data-home-theme="day"] .sidebar-link-badge {
  border-color: rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.1));
  color: #2d4e74;
}

body.dashboard-home-root[data-home-theme="day"] .sidebar-account {
  border-color: rgba(92, 125, 174, 0.14);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 28px rgba(120, 145, 190, 0.12);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-window-controls span {
  border-color: rgba(16, 34, 58, 0.1);
  background: rgba(255, 255, 255, 0.7);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-window-controls span:nth-child(2) {
  background: rgba(14, 165, 233, 0.35);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-window-controls span:nth-child(3) {
  background: rgba(79, 124, 255, 0.24);
}

body.dashboard-home-root[data-home-theme="day"] .tool-card-menu {
  color: rgba(16, 34, 58, 0.32);
}

body.dashboard-home-root[data-home-theme="day"] .art-explore {
  background: linear-gradient(135deg, #0ea5e9, #60a5fa 52%, #7c3aed);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.22);
}

body.dashboard-home-root[data-home-theme="day"] .dashboard-sidebar-backdrop {
  background: rgba(191, 211, 241, 0.52);
}

.update-list {
  display: grid;
  gap: 14px;
}

.update-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.update-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.update-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.app-update-tile.motion {
  background: linear-gradient(180deg, rgba(236, 72, 153, 0.3), rgba(157, 23, 77, 0.16));
}

.apps-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.apps-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.apps-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(12px);
}

.apps-modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 12px));
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.98), rgba(8, 11, 18, 0.99));
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.56);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.apps-modal.is-open .apps-modal-panel {
  transform: translateY(0) scale(1);
}

.apps-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.apps-modal-head h3 {
  margin: 8px 0 0;
  font-size: 1.8rem;
}

.apps-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.apps-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apps-modal-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.dashboard-page-main {
  display: grid;
  gap: 20px;
}

.page-banner,
.page-card,
.plan-card,
.audio-preview-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 19, 28, 0.9), rgba(9, 12, 20, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-banner::before,
.page-card::before,
.plan-card::before {
  content: "";
  position: absolute;
  inset: auto -18% -24% auto;
  width: 220px;
  height: 180px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16), transparent 64%);
  pointer-events: none;
}

.page-banner {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.page-banner-header,
.page-cta-strip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.page-banner-copy,
.page-card-copy,
.setting-copy,
.audio-preview-meta,
.page-cta-copy,
.profile-copy {
  display: grid;
  gap: 8px;
}

.page-banner-copy h3,
.page-card-title h4,
.plan-top h4,
.page-cta-copy h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.page-banner-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
}

.page-banner-copy p,
.page-card-title p,
.plan-card p,
.page-cta-strip p,
.audio-preview-meta span,
.setting-copy span,
.page-note,
.profile-copy span,
.mini-list span,
.account-meta-list span {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.page-banner-badges,
.page-inline-actions,
.page-stat-row,
.page-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill,
.detail-pill,
.setting-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.08);
  color: rgba(240, 243, 250, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.soft,
.detail-pill.soft,
.setting-pill.soft {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.page-hero-stats,
.page-summary-grid,
.dashboard-page-grid,
.plan-grid,
.settings-grid,
.audio-preview-grid,
.account-layout {
  display: grid;
  gap: 16px;
}

.page-hero-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(320px, 100%);
}

.page-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-page-grid,
.audio-preview-grid,
.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-page-grid.two-up,
.settings-grid,
.account-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-stat {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.page-stat strong,
.profile-copy strong,
.setting-copy strong {
  font-weight: 700;
}

.page-card,
.plan-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.page-card:hover,
.page-card:focus-visible,
.plan-card:hover,
.plan-card:focus-visible,
.audio-preview-item:hover,
.audio-preview-item:focus-within {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.page-card-anchor {
  scroll-margin-top: 120px;
}

.page-card-header,
.plan-top,
.audio-preview-item,
.setting-row,
.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.page-card-icon,
.profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(124, 58, 237, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(17, 20, 31, 0.34);
}

.page-card-icon img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-card-icon img {
  padding: 8px;
}

.page-card-icon .line-icon,
.profile-avatar .line-icon {
  width: 1.3rem;
  height: 1.3rem;
}

.profile-avatar {
  width: 70px;
  height: 70px;
  padding: 10px;
}

.page-card-title,
.plan-copy {
  display: grid;
  gap: 6px;
}

.page-card-list,
.plan-list,
.mini-list,
.account-meta-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-card-list li,
.plan-list li,
.mini-list li,
.account-meta-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.page-card-list .line-icon,
.plan-list .line-icon,
.mini-list .line-icon,
.account-meta-list .line-icon {
  flex: none;
  margin-top: 3px;
  color: #8cb7ff;
}

.plan-card.is-popular {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 26px 54px rgba(39, 17, 74, 0.36);
}

.plan-price {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
}

.plan-helper {
  color: var(--muted);
}

.audio-preview-item {
  align-items: center;
  padding: 16px 18px;
}

.audio-preview-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.setting-row {
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-cta-strip {
  padding: 22px 24px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 22, 34, 0.96), rgba(34, 18, 61, 0.96));
}

.image-editor-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.image-editor-panel,
.image-control-panel {
  min-height: 100%;
}

.editor-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: var(--editor-aspect, 1 / 1);
  min-height: 480px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.98), rgba(8, 11, 18, 0.98)),
    radial-gradient(circle at 22% 18%, rgba(37, 99, 235, 0.14), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.18), transparent 28%);
  overflow: hidden;
}

.editor-preview-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.editor-preview-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: filter 180ms ease, transform 180ms ease;
  will-change: filter, transform;
}

.editor-preview-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.38);
}

.editor-meta-strip,
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.editor-meta-strip .page-stat {
  flex: 1 1 220px;
}

.editor-toolbar .button {
  flex: 0 0 auto;
}

.editor-upload-input {
  display: none;
}

.editor-status-box {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(124, 58, 237, 0.06);
}

.editor-status-box strong {
  font-weight: 700;
}

.editor-status-box span {
  color: var(--muted);
  line-height: 1.7;
}

.editor-select,
.editor-text-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.editor-select:focus-visible,
.editor-text-input:focus-visible {
  outline: none;
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preset-button {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.preset-button:hover,
.preset-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
}

.preset-button.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.24));
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: 0 18px 36px rgba(39, 17, 74, 0.28);
}

.button.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.24));
  border-color: rgba(124, 58, 237, 0.22);
}

.control-group {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.control-group:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.slider-group {
  display: grid;
  gap: 12px;
}

.slider-field {
  display: grid;
  gap: 8px;
}

.slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slider-head strong,
.slider-head output {
  font-size: 0.95rem;
}

.slider-head output {
  color: var(--muted);
  font-weight: 700;
}

.slider-field input[type="range"] {
  width: 100%;
  accent-color: #7c3aed;
}

.color-field input[type="color"] {
  width: 100%;
  height: 52px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.editor-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.processing-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(4, 7, 13, 0.76);
  backdrop-filter: blur(14px);
}

.processing-panel {
  width: min(440px, calc(100% - 24px));
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  border-radius: 30px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: linear-gradient(180deg, rgba(13, 18, 29, 0.96), rgba(8, 11, 19, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.processing-orb {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.94), rgba(37, 99, 235, 0.88));
  box-shadow: 0 20px 50px rgba(124, 58, 237, 0.28);
  animation: processingPulse 1.6s ease-in-out infinite;
}

.processing-panel strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
}

.processing-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

@keyframes processingPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.24);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 24px 58px rgba(124, 58, 237, 0.34);
  }
}

.dashboard-home .site-footer {
  padding-top: 18px;
  text-align: center;
}

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

  .page-hero {
    grid-template-columns: 1fr;
  }

  .editor-grid {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .inspector-panel {
    grid-column: 1 / -1;
  }

  .unmix-grid {
    grid-template-columns: 1fr;
  }

  .why-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-link-grid,
  .feature-columns,
  .preview-grid,
  .flow-board,
  .comparison-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-sidecards,
  .sound-grid,
  .workflow-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100% - 20px, 100%);
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 14px 18px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    order: 2;
  }

  .inspector-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-copy {
    max-width: 88%;
  }

  .feature-link-grid,
  .feature-grid,
  .sound-grid,
  .workflow-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .demo-sidecards,
  .feature-columns,
  .preview-grid,
  .flow-board,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .demo-stage {
    min-height: 360px;
  }

  .demo-overlay {
    max-width: 84%;
  }

  .voice-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    margin-top: 12px;
  }

  .button,
  .button.large {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-trust,
  .tab-buttons,
  .problem-list {
    width: 100%;
  }

  .metric-card {
    min-width: 100%;
  }

  .mode-switch,
  .template-group,
  .hero-badges,
  .topbar-left,
  .topbar-links {
    width: 100%;
  }

  .hero-trust > span {
    justify-content: flex-start;
  }

  .demo-play {
    inset-inline-start: 12px;
  }

  .demo-controls {
    inset-inline-start: 12px;
    inset-inline-end: 12px;
  }

  .demo-overlay {
    inset-inline: 12px;
    bottom: 64px;
    max-width: calc(100% - 24px);
  }

  .preview-window {
    min-height: 260px;
  }

  .mix-visual {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promise-strip {
    border-radius: 28px;
    justify-content: flex-start;
  }

  .pricing-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .floating-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 1200px) {
  .dashboard-home .page-shell {
    width: min(100% - 24px, 100%);
  }

  .dashboard-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .apps-modal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .dashboard-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-masthead {
    padding-top: 4px;
  }

  .image-editor-shell,
  .page-summary-grid,
  .dashboard-page-grid,
  .audio-preview-grid,
  .plan-grid,
  .settings-grid,
  .account-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-editor-shell {
    grid-template-columns: 1fr;
  }

  .masthead-lockup {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .masthead-logo {
    width: 110px;
    height: 110px;
  }

  .masthead-copy h1 {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

  .dashboard-frame {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .dashboard-main-top {
    flex-wrap: wrap;
    gap: 12px;
  }

  .dashboard-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-menu-toggle {
    display: inline-flex;
  }

  .dashboard-sidebar {
    position: fixed;
    inset: 16px auto 16px 16px;
    width: min(292px, calc(100% - 32px));
    min-height: auto;
    border-right: 0;
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.54);
    transform: translateX(-120%);
    transition: transform 220ms ease;
    z-index: 140;
  }

  .dashboard-frame.is-sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(4, 7, 13, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 130;
  }

  .dashboard-frame.is-sidebar-open .dashboard-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .update-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .dashboard-link {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-language-toggle,
  .home-theme-toggle {
    width: 100%;
  }

  .page-banner,
  .page-card,
  .plan-card,
  .audio-preview-item,
  .page-cta-strip {
    padding: 18px;
  }

  .page-summary-grid,
  .dashboard-page-grid,
  .audio-preview-grid,
  .plan-grid,
  .settings-grid,
  .account-layout,
  .page-hero-stats {
    grid-template-columns: 1fr;
  }

  .preset-grid,
  .editor-action-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-intro,
  .dashboard-hero-art,
  .update-row,
  .tool-card,
  .dashboard-empty,
  .apps-modal-card {
    padding: 18px;
  }

  .dashboard-search {
    width: 100%;
    min-height: 52px;
  }

  .dashboard-card-grid {
    grid-template-columns: 1fr;
  }

  .apps-modal-grid {
    grid-template-columns: 1fr;
  }

  .apps-modal-panel {
    padding: 18px;
  }

  .update-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .audio-preview-item,
  .profile-header,
  .page-banner-header,
  .page-cta-strip,
  .editor-toolbar,
  .editor-meta-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-toolbar .button {
    width: 100%;
  }

  .editor-preview-frame {
    min-height: 320px;
    padding: 16px;
  }

  .dashboard-home .button,
  .dashboard-home .button.large,
  .dashboard-home .button.compact {
    width: 100%;
  }
}

.image-editor-page {
  gap: 18px;
}

.editor-page-header {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-color: rgba(124, 58, 237, 0.18);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.16), transparent 28%),
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(14, 18, 29, 0.94), rgba(8, 11, 19, 0.98));
}

.editor-page-headline {
  display: grid;
  gap: 12px;
}

.editor-eyebrow,
.editor-surface-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(124, 58, 237, 0.08);
  color: rgba(233, 237, 247, 0.92);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.editor-page-header h2,
.editor-preview-copy h3,
.editor-tools-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  font-weight: 700;
}

.editor-preview-copy h3,
.editor-tools-copy h3 {
  font-size: 1.55rem;
}

.editor-page-header p,
.editor-preview-copy p,
.editor-tools-copy p,
.editor-export-note,
.editor-status-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.editor-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-page-actions .button {
  min-width: 150px;
}

.editor-page-search {
  width: min(100%, 560px);
}

.editor-workspace-grid,
.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.editor-preview-panel,
.editor-tools-panel,
.canvas-section,
.tools-panel {
  min-width: 0;
  min-height: 100%;
}

.editor-preview-panel,
.canvas-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  overflow: hidden;
}

.editor-preview-head,
.editor-tools-head,
.editor-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.editor-preview-copy,
.editor-tools-copy {
  display: grid;
  gap: 10px;
}

.editor-preview-frame,
.canvas-box {
  width: 100%;
  height: 500px;
  min-height: 500px;
  max-height: 500px;
  padding: 20px;
  border-radius: 24px;
  border: 1px dashed rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: auto;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 24px 54px rgba(0, 0, 0, 0.34);
}

.editor-preview-frame.is-empty,
.canvas-box.is-empty {
  cursor: pointer;
}

.editor-preview-frame.is-drag-over,
.canvas-box.is-drag-over {
  border-color: rgba(124, 58, 237, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(124, 58, 237, 0.22),
    0 0 0 6px rgba(124, 58, 237, 0.08),
    0 28px 60px rgba(26, 18, 48, 0.4);
  background:
    linear-gradient(180deg, rgba(12, 15, 24, 0.98), rgba(11, 14, 22, 0.98)),
    radial-gradient(circle at center, rgba(124, 58, 237, 0.12), transparent 56%);
}

.editor-preview-canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 22px;
}

.editor-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editor-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-status-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
}

.editor-status-card span {
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editor-status-card strong {
  font-size: 1.04rem;
  font-weight: 800;
}

.editor-tools-panel,
.tools-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: sticky;
  top: 20px;
}

.editor-tools-panel::-webkit-scrollbar,
.tools-panel::-webkit-scrollbar {
  width: 10px;
}

.editor-tools-panel::-webkit-scrollbar-thumb,
.tools-panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.56), rgba(124, 58, 237, 0.62));
}

.editor-tab-buttons,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.editor-tab-buttons .tab-button {
  min-height: 100px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  line-height: 1.35;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.editor-tab-buttons .tab-button:hover,
.editor-tab-buttons .tab-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.26);
  box-shadow: 0 18px 38px rgba(26, 18, 48, 0.28);
}

.editor-tab-buttons .tab-button.is-active {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.24));
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 20px 40px rgba(33, 18, 61, 0.3);
}

.editor-tab-panel {
  display: none;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(15, 19, 28, 0.82), rgba(8, 11, 19, 0.94)),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 36%);
  align-content: start;
  overflow: hidden;
}

.editor-tab-panel.is-active {
  display: grid;
}

.editor-preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slider-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.78), rgba(124, 58, 237, 0.82));
  outline: none;
}

.slider-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #0b0f1a;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  cursor: pointer;
}

.slider-field input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.78), rgba(124, 58, 237, 0.82));
}

.slider-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #0b0f1a;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
  cursor: pointer;
}

.editor-transform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-transform-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.editor-transform-button:hover,
.editor-transform-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 16px 36px rgba(25, 16, 46, 0.28);
}

.editor-transform-button.reset {
  grid-column: 1 / -1;
}

.editor-transform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(124, 58, 237, 0.26));
  color: #f8f9ff;
  font-size: 1rem;
  line-height: 1;
}

.editor-export-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background:
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(17, 20, 31, 0.96), rgba(10, 13, 22, 0.98));
}

.editor-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editor-working-tools-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-preview-panel:hover,
.editor-preview-panel:focus-within,
.editor-tools-panel:hover,
.editor-tools-panel:focus-within {
  transform: none;
}

@media (max-width: 900px) {
  .editor-workspace-grid {
    grid-template-columns: 1fr;
  }

  .editor-tools-panel,
  .tools-panel {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .editor-preview-frame,
  .canvas-box {
    height: 460px;
    min-height: 460px;
    max-height: 460px;
  }
}

@media (max-width: 860px) {
  .editor-page-header,
  .editor-preview-panel,
  .editor-tools-panel {
    padding: 18px;
  }

  .editor-status-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .editor-page-actions,
  .editor-preview-actions,
  .editor-panel-head,
  .editor-preview-head,
  .editor-tools-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-page-actions .button,
  .editor-preview-actions .button,
  .editor-export-actions,
  .editor-export-actions .button {
    width: 100%;
  }

  .editor-status-grid,
  .editor-working-tools-grid,
  .editor-transform-grid,
  .editor-tab-buttons,
  .editor-export-actions,
  .editor-action-grid,
  .preset-grid {
    grid-template-columns: 1fr;
  }

  .editor-preview-frame,
  .canvas-box {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }

  .editor-page-header h2 {
    font-size: 1.9rem;
  }
}
