@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Canva Brand System — Clean, Simple, Non-Glossy */
  --canva-cyan: #00C4CC;
  --canva-purple: #7D2AE8;
  --canva-magenta: #FF007A;
  --canva-blue: #2B59FF;
  --canva-gold: #FFC800;
  --canva-gradient: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  --canva-magic-gradient: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 50%, #FF007A 100%);
  --canva-pro-gradient: linear-gradient(135deg, #7D2AE8 0%, #9B51E0 100%);

  /* Dark Theme — Clean Flat Graphite Canvas */
  --field: #0F1216;
  --field-alt: #161A20;
  --raised: #1C2128;
  --raised-solid: #1C2128;
  --raised-hover: #242B35;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --control-line: rgba(255, 255, 255, 0.12);
  --control-line-hover: #00C4CC;
  --ink: #FFFFFF;
  --ink-secondary: #9DA3AF;
  --muted: #6E7582;
  --accent: #00C4CC;
  --accent-secondary: #7D2AE8;
  --accent-gradient: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  --accent-glow: transparent;
  --accent-purple-glow: transparent;
  --accent-ink: #0E1318;
  --bad: #FF4D4F;
  --bad-glow: transparent;
  --success: #00C48C;
  --success-glow: transparent;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 9999px;
  --sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Outfit", "Space Grotesk", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: none;
  --header-bg: rgba(15, 18, 22, 0.96);
  --nav-mobile-bg: #0F1216;
  color-scheme: dark;
}

[data-theme="light"] {
  /* Canva Default Studio Theme — Clean, Flat, Warm-White, Generous Whitespace */
  --field: #F4F5F7;
  --field-alt: #EAECEF;
  --raised: #FFFFFF;
  --raised-solid: #FFFFFF;
  --raised-hover: #F9FAFB;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  --control-line: #E5E7EB;
  --control-line-hover: #7D2AE8;
  --ink: #0E1318;
  --ink-secondary: #4B5563;
  --muted: #6B7280;
  --accent: #00C4CC;
  --accent-secondary: #7D2AE8;
  --accent-gradient: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
  --accent-glow: transparent;
  --accent-purple-glow: transparent;
  --accent-ink: #FFFFFF;
  --bad: #DC2626;
  --bad-glow: transparent;
  --success: #059669;
  --success-glow: transparent;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: none;
  --header-bg: rgba(255, 255, 255, 0.98);
  --nav-mobile-bg: #FFFFFF;
  color-scheme: light;
}

[data-theme="light"] body {
  background: var(--field) !important;
  background-image: none !important;
  color: var(--ink) !important;
}

/* Light Mode Overrides for Crisp Canva Studio Readability */
[data-theme="light"] .hero h1 {
  color: #0E1318;
  background: none;
  -webkit-text-fill-color: initial;
}
[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #00B4BC 0%, #7D2AE8 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .quantum-badge,
[data-theme="light"] .canva-magic-badge {
  background: #EDE9FE;
  border: 1px solid #DDD6FE;
  color: #6D28D9;
  box-shadow: none;
}
[data-theme="light"] .badge-tag,
[data-theme="light"] .canva-pro-badge {
  background: #7D2AE8;
  color: #FFFFFF;
  box-shadow: none;
}
[data-theme="light"] .nav-credits-chip {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #1F2937;
  box-shadow: none;
}
[data-theme="light"] .nav-credits-chip .credit-num {
  color: #7D2AE8;
}
[data-theme="light"] .nav-account-btn {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #1F2937;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .composer {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .composer:focus-within {
  border-color: #7D2AE8;
  box-shadow: 0 8px 28px rgba(125, 42, 232, 0.1);
}
[data-theme="light"] .composer textarea {
  color: #111827;
}
[data-theme="light"] .composer textarea::placeholder {
  color: #9CA3AF;
}
[data-theme="light"] .preset-pill {
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  color: #4B5563;
}
[data-theme="light"] .preset-pill:hover {
  background: #E5E7EB;
  color: #111827;
  border-color: #D1D5DB;
}
[data-theme="light"] .preset-pill.active {
  background: #F3E8FF;
  border-color: #7D2AE8;
  color: #7D2AE8;
  box-shadow: none;
}
[data-theme="light"] .composer-trial-alert.trial-active {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
[data-theme="light"] .composer-trial-alert.trial-expired {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
[data-theme="light"] .btn-ghost {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #4B5563;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .btn-ghost:hover {
  background: #F9FAFB;
  border-color: #7D2AE8;
  color: #111827;
}
[data-theme="light"] .aspect-ratio-selector {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
}
[data-theme="light"] .aspect-pill {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #4B5563;
}
[data-theme="light"] .aspect-pill:hover {
  background: #F3F4F6;
  color: #111827;
  border-color: #D1D5DB;
}
[data-theme="light"] .aspect-pill.active {
  background: #F3E8FF;
  border-color: #7D2AE8;
  color: #7D2AE8;
  box-shadow: none;
}
[data-theme="light"] .template-section {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-lg);
}
[data-theme="light"] .template-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  box-shadow: none;
}
[data-theme="light"] .template-card:hover {
  background: #FAF5FF;
  border-color: #7D2AE8;
  box-shadow: 0 6px 18px rgba(125, 42, 232, 0.08);
}
[data-theme="light"] .template-card .card-head {
  color: #111827;
}
[data-theme="light"] .template-card .card-desc {
  color: #6B7280;
}
[data-theme="light"] .template-card .card-badge {
  background: #EDE9FE;
  color: #6D28D9;
}
[data-theme="light"] .card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .card:hover {
  border-color: #7D2AE8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .card .meta {
  background: #FFFFFF;
  border-top: 1px solid #F3F4F6;
}
[data-theme="light"] .card .meta b {
  color: #111827;
}
[data-theme="light"] .card .meta span {
  color: #6B7280;
}
[data-theme="light"] .comparison-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .comparison-card.active {
  background: #FFFFFF;
  border: 2px solid #7D2AE8;
  box-shadow: 0 8px 24px rgba(125, 42, 232, 0.1);
}
[data-theme="light"] .comparison-card h3 {
  color: #111827;
}
[data-theme="light"] .comp-list.good li {
  color: #111827;
}
[data-theme="light"] .comp-list.bad li,
[data-theme="light"] .comp-list.warn li {
  color: #4B5563;
}
[data-theme="light"] .faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .faq-item summary {
  color: #0f172a;
}
[data-theme="light"] .faq-item p {
  color: #334155;
}
[data-theme="light"] footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}
[data-theme="light"] footer strong {
  color: #0f172a;
}
[data-theme="light"] footer a {
  color: #64748b;
}
[data-theme="light"] footer a:hover {
  color: #0f172a;
}
[data-theme="light"] .engine-demo-stage {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .living-stage-toolbar,
[data-theme="light"] .dead-pixel-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .interactive-label {
  color: #334155;
}
[data-theme="light"] .demo-input {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
}
[data-theme="light"] .btn-explode {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
}
[data-theme="light"] .btn-explode:hover,
[data-theme="light"] .btn-explode.active {
  background: #0284c7;
  color: #ffffff;
}
[data-theme="light"] .living-proof-strip {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .proof-card .proof-icon {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .account-card,
[data-theme="light"] .contact-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .account-card input,
[data-theme="light"] .contact-card input,
[data-theme="light"] .contact-card textarea,
[data-theme="light"] .video-form textarea,
[data-theme="light"] .video-form select {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
}
[data-theme="light"] .account-card input:focus,
[data-theme="light"] .contact-card input:focus,
[data-theme="light"] .contact-card textarea:focus,
[data-theme="light"] .video-form textarea:focus,
[data-theme="light"] .video-form select:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
[data-theme="light"] .package-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .package-card:hover {
  border-color: #0284c7;
  box-shadow: 0 12px 28px -6px rgba(2, 132, 199, 0.15);
}
[data-theme="light"] .panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .three > div {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}


* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

[data-theme="dark"] body,
body {
  background: var(--field);
  color: var(--ink);
}

[data-theme="light"] body {
  background: #F4F5F7 !important;
  color: #0E1318 !important;
}

a {
  color: inherit;
  transition: var(--transition);
}

.wrap {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

/* ---- Clean Canva SaaS Header ------------------------------------ */
header.top {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  z-index: 1000;
  transition: var(--transition);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
  position: relative;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand span {
  color: var(--accent);
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-link[aria-current="page"],
.nav-link.active {
  color: var(--canva-purple);
  background: rgba(125, 42, 232, 0.08);
  border-color: rgba(125, 42, 232, 0.28);
  box-shadow: 0 2px 10px rgba(125, 42, 232, 0.12);
}

[data-theme="dark"] .nav-link[aria-current="page"],
[data-theme="dark"] .nav-link.active {
  color: #00C4CC;
  background: rgba(0, 196, 204, 0.1);
  border-color: rgba(0, 196, 204, 0.35);
  box-shadow: 0 0 12px rgba(0, 196, 204, 0.2);
}

.nav-user-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(125, 42, 232, 0.08);
  border: 1px solid rgba(125, 42, 232, 0.25);
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: var(--transition);
}

.nav-credits-chip:hover {
  border-color: var(--canva-purple);
  box-shadow: 0 4px 16px rgba(125, 42, 232, 0.2);
  transform: translateY(-1px);
}

.credit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--canva-cyan);
  box-shadow: 0 0 8px var(--canva-cyan);
}

.credit-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--canva-purple);
}

[data-theme="dark"] .credit-num {
  color: var(--canva-cyan);
}

.credit-buy-btn {
  font-size: 11px;
  background: var(--accent-gradient);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 4px;
}

.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--raised-solid);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-pill);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.nav-account-btn:hover {
  border-color: var(--canva-purple);
  color: var(--canva-purple);
  box-shadow: 0 4px 16px rgba(125, 42, 232, 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-account-btn:hover {
  border-color: var(--canva-cyan);
  color: var(--canva-cyan);
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: flex;
  }
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--line-strong);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 14px;
    margin: 0;
    display: none;
    box-shadow: var(--shadow-lg);
  }
  nav.nav-open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .nav-link {
    padding: 12px 14px;
    font-size: 14.5px;
    border-radius: var(--radius-sm);
  }
  .nav-user-area {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    gap: 8px;
  }
  .nav-credits-chip,
  .nav-account-btn {
    justify-content: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
  }
}

/* ---- Hero Section ------------------------------------------------------ */
.hero {
  padding: 72px 0 36px;
  position: relative;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 24ch;
}

.hero p {
  color: var(--muted);
  max-width: 72ch;
  margin: 0 0 36px;
  font-size: 18px;
  line-height: 1.68;
}

/* ---- Composer Studio --------------------------------------------------- */
.composer {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 36px;
  margin-top: 28px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.composer:focus-within {
  border-color: var(--canva-purple);
  box-shadow: 0 8px 28px rgba(125, 42, 232, 0.12);
}

.composer textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  outline: none;
  caret-color: var(--canva-purple);
  padding: 8px 0;
}

.composer textarea::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

.composer-foot {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}

.count {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  margin-right: auto;
  opacity: 0.85;
}

.foot-right {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* ---- Buttons & Interactive Elements ------------------------------------ */
button, .btn {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

button:hover, .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--control-line);
  transform: translateY(-1px);
}

button:active, .btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--canva-gradient);
  border: none;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 13px 28px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(125, 42, 232, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00D8E0 0%, #681FD8 100%);
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(125, 42, 232, 0.2);
}

.btn-ghost {
  background: var(--raised);
  border: 1px solid var(--control-line);
  color: var(--ink-secondary);
  border-radius: 12px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(125, 42, 232, 0.06);
  border-color: var(--canva-purple);
  color: var(--canva-purple);
}

.btn-ghost[aria-expanded="true"] {
  background: rgba(125, 42, 232, 0.08);
  border-color: var(--canva-purple);
  color: var(--canva-purple);
  box-shadow: none;
}

button[disabled], .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---- Example Chips ----------------------------------------------------- */
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--raised);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.chip:hover {
  color: var(--ink);
  background: var(--raised-hover);
  border-color: var(--canva-purple);
  transform: translateY(-1px);
}

/* ---- Model Picker Drawer ----------------------------------------------- */
.models {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.model-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.model-field {
  background: rgba(10, 11, 15, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: var(--transition);
}

.model-field:hover {
  border-color: var(--line-strong);
}

.model-field label {
  display: block;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.model-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--control-line);
  background: var(--raised-solid);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.model-field select:hover,
.model-field select:focus {
  border-color: var(--accent);
}

.model-field .blurb {
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 0;
  line-height: 1.45;
}

.model-cost {
  font-size: 13.5px;
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-cost b {
  color: var(--accent);
  font-weight: 700;
}

/* ---- Wallet Badge ------------------------------------------------------ */
.wallet {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}

.wallet b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14.5px;
}

.wallet.low {
  color: #ffaa40;
  border-color: rgba(255, 170, 64, 0.3);
}

/* ---- Notices & Alerts -------------------------------------------------- */
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--canva-purple);
  background: var(--raised);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
}

.notice.bad {
  border-left-color: var(--bad);
  background: rgba(220, 38, 38, 0.05);
}

.notice strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Sections & Cards Grid --------------------------------------------- */
section.block {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

section.block h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}

section.block .sub {
  color: var(--muted);
  margin: 0 0 44px;
  font-size: 17px;
  max-width: 68ch;
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--raised);
  text-decoration: none;
  display: block;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card:hover {
  border-color: var(--canva-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #06070a;
  transition: transform 0.35s ease;
}

.card:hover img {
  transform: scale(1.02);
}

.clip-card {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: var(--field-alt);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.card .meta {
  padding: 18px 20px;
  background: var(--raised-solid);
  border-top: 1px solid var(--line);
}

.card .meta b {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .meta span {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--mono);
}

.card-group {
  display: flex;
  flex-direction: column;
}

.card-group .card {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.card-brief {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 0 20px 20px;
  background: var(--raised-solid);
}

.card-brief summary {
  cursor: pointer;
  padding: 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  list-style-position: inside;
  transition: var(--transition);
}

.card-brief summary:hover {
  color: var(--canva-purple);
}

.card-brief p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.card-more {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  border: 1px dashed var(--control-line);
  border-radius: var(--radius);
  background: var(--raised);
  cursor: pointer;
  transition: var(--transition);
}

.card-more:hover {
  color: var(--canva-purple);
  border-color: var(--canva-purple);
  background: var(--raised-hover);
}

.three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.three > div {
  padding: 36px 32px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.three > div:hover {
  border-color: var(--canva-purple);
  transform: translateY(-2px);
}

.three h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.three p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---- Design Detail & Status Page --------------------------------------- */
.status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  padding: 44px 0 72px;
  align-items: start;
}

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

.stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at center, #161a26 0%, #0c0e14 100%);
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.stage img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.4s ease;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.panel:hover {
  border-color: var(--canva-purple);
}

.panel h2,
.panel h3,
.panel .panel-title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--canva-purple);
  font-weight: 700;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  color: var(--ink-secondary);
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li .dot {
  color: var(--canva-purple);
  font-weight: 700;
  font-size: 16px;
}

.panel .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.panel .row:last-child {
  border-bottom: 0;
}

.panel .row span {
  color: var(--muted);
}

.outputs {
  display: grid;
  gap: 10px;
}

.outputs .btn {
  justify-content: space-between;
  padding: 12px 18px;
}

.outputs .btn small {
  color: var(--muted);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
}

.readout {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 20px;
  line-height: 1.6;
}

.readout li {
  margin-bottom: 5px;
}

details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

details summary:hover {
  color: var(--ink);
}

.brief-quote {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  white-space: pre-wrap;
  margin: 10px 0 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.center {
  text-align: center;
}

.center p {
  color: var(--muted);
  font-size: 15px;
}

/* ---- Animate & Video Panels -------------------------------------------- */
#animate-panel textarea,
.video-form textarea {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--control-line);
  background: var(--raised-solid);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  resize: vertical;
  transition: var(--transition);
  outline: none;
}

#animate-panel textarea:focus,
.video-form textarea:focus {
  border-color: var(--canva-purple);
  box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.15);
}

#animate-panel .model-cost {
  margin-top: 12px;
  font-size: 12.5px;
}

.clip-stage video {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  box-shadow: var(--shadow-lg);
}

/* ---- Video Studio Page (`/video.html`) ---------------------------------- */
.video-form {
  max-width: 860px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 44px;
  margin: 32px 0 80px;
  box-shadow: var(--shadow-sm);
}

.video-form label {
  display: block;
  margin: 28px 0 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--canva-purple);
}

.video-form select {
  width: 100%;
  padding: 14px 18px;
  background: var(--field-alt);
  color: var(--ink);
  border: 1px solid var(--control-line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.video-form select:focus,
.video-form select:hover {
  border-color: var(--canva-purple);
}

.video-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

#video-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
}

#video-quote {
  line-height: 1.6;
  font-size: 14px;
  color: var(--ink-secondary);
  background: var(--field-alt);
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-top: 20px;
}

/* ---- Account Page (`/account.html`) ------------------------------------ */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin: 44px 0;
}

.account-card {
  padding: 36px 32px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.account-card:hover {
  border-color: var(--canva-purple);
  box-shadow: var(--shadow-lg);
}

.account-card h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}

.account-card input {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 18px;
  background: var(--field-alt);
  color: var(--ink);
  border: 1px solid var(--control-line);
  border-radius: 12px;
  margin: 10px 0 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.account-card input:focus {
  border-color: var(--canva-purple);
  box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.15);
}

.balance {
  font-family: var(--mono);
  font-size: 52px;
  font-weight: 800;
  margin: 10px 0;
  color: var(--canva-purple);
}

.account-card ul {
  padding-left: 20px;
  line-height: 1.8;
  color: var(--muted);
  font-size: 14.5px;
}

#packages > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#packages > div:last-child {
  border-bottom: 0;
}

/* ---- Legal & Prose Pages ----------------------------------------------- */
.prose {
  max-width: 760px;
  padding: 44px 0 88px;
  line-height: 1.7;
}

.prose h1 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.prose h2 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  margin: 38px 0 12px;
  letter-spacing: -0.02em;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 15.5px;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 8px 0;
}

.legal-links {
  margin: 12px 0 0;
}

/* ---- Footer ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 54px;
  color: var(--muted);
  font-size: 14px;
  background: var(--field-alt);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

/* ---- Accessibility & Utilities ----------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.chip:focus-visible {
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(1180px, calc(100% - 24px));
  }
  .hero {
    padding: 32px 0 20px;
  }
  .composer {
    padding: 16px;
    border-radius: var(--radius-sm);
  }
  .composer-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .composer-header .preset-pills {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .composer-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .foot-right {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
  }
  .foot-right button {
    width: 100%;
    justify-content: center;
    padding: 13px;
    font-size: 14.5px;
  }
  .template-chips {
    grid-template-columns: 1fr;
  }
  .template-section {
    padding: 16px;
  }
}

/* ---- Scientific Creative UI Components ---- */
.quantum-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--raised);
  border: 1px solid var(--control-line);
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: quantum-pulse 2s infinite ease-in-out;
}

@keyframes quantum-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { transform: scale(1.3); opacity: 0.7; box-shadow: 0 0 16px var(--accent); }
}

.badge-tag {
  background: rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
}

.gradient-text {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 35%, #818cf8 70%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 5.5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.hero p {
  color: var(--ink-secondary);
  font-size: clamp(16px, 2vw, 18.5px);
  max-width: 720px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.composer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.presets-label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preset-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--control-line);
  color: var(--ink-secondary);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.preset-pill:hover {
  background: rgba(125, 42, 232, 0.08);
  border-color: var(--canva-purple);
  color: var(--canva-purple);
}

.preset-pill.active {
  background: #F3E8FF;
  border-color: var(--canva-purple);
  color: var(--canva-purple);
  box-shadow: none;
}

[data-theme="dark"] .preset-pill.active {
  background: rgba(0, 196, 204, 0.15);
  border-color: var(--canva-cyan);
  color: var(--canva-cyan);
}

.nav-credits-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--raised);
  border: 1px solid var(--control-line);
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink);
  text-decoration: none;
  margin-left: 18px;
  transition: var(--transition);
}

.nav-credits-chip:hover {
  border-color: var(--canva-purple);
  transform: translateY(-1px);
}

.credit-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--canva-purple);
}

.credit-num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--canva-purple);
}

.credit-label {
  color: var(--muted);
  font-size: 12.5px;
}

.credit-buy-btn {
  background: var(--canva-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  margin-left: 4px;
}

/* ==========================================================================
   Interactive In-Canvas Editor & Multi-Format Social Resizing
   ========================================================================== */
.canvas-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 16px;
}
.control-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}
.control-tab {
  background: transparent;
  color: var(--ink-secondary);
  border: none;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}
.control-tab:hover {
  color: var(--ink);
}
.control-tab.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.2);
  border: 1px solid rgba(0, 240, 255, 0.3);
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.editor-hint {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}
.btn-accent {
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}
.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.canvas-tools-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 6px;
}
.tool-btn {
  background: transparent;
  color: var(--ink-secondary);
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tool-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: var(--line);
}
.tool-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent);
  border-color: var(--accent);
}
.tool-color-wrap {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-line);
  cursor: pointer;
}
.tool-color-wrap input[type="color"] {
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: transparent;
  padding: 0;
  margin: 0;
}
.editor-dialog {
  background: var(--raised-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 36px 32px;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.editor-dialog::backdrop {
  background: rgba(14, 19, 24, 0.6);
}

.social-resize-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 0 16px;
  margin-bottom: 12px;
}
.resize-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.resize-pill {
  background: var(--raised);
  color: var(--ink-secondary);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}
.resize-pill:hover {
  border-color: var(--canva-purple);
  color: var(--canva-purple);
}
.resize-pill.active {
  background: #F3E8FF;
  color: var(--canva-purple);
  border-color: var(--canva-purple);
  box-shadow: none;
}
[data-theme="dark"] .resize-pill.active {
  background: rgba(0, 196, 204, 0.15);
  color: var(--canva-cyan);
  border-color: var(--canva-cyan);
}

.canvas-interactive-frame {
  width: 100%;
  height: 850px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Aspect ratio frames */
.stage.aspect-1-1 {
  max-width: 650px;
  margin: 0 auto;
}
.stage.aspect-9-16 {
  max-width: 480px;
  margin: 0 auto;
}
.stage.aspect-16-9 {
  max-width: 960px;
  margin: 0 auto;
}

/* Brand Kit Form Styles */
.brand-color-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.brand-color-field label {
  font-size: 12px;
  color: var(--ink-secondary);
  display: block;
  margin-bottom: 4px;
}
.color-picker-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--field-alt);
  border: 1px solid var(--control-line);
  border-radius: 8px;
  padding: 4px 8px;
}
.color-picker-wrap input[type="color"] {
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
}
.color-hex {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Comparison Table & FAQ Section
   ========================================================================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.comparison-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.comparison-card:hover {
  border-color: var(--canva-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.comparison-card.active {
  background: var(--raised);
  border: 2px solid var(--canva-purple);
  box-shadow: 0 8px 24px rgba(125, 42, 232, 0.12);
}
.card-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card-tag.hot {
  color: var(--canva-purple);
}
.comparison-card h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.comp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.comp-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.comp-list.bad li {
  color: var(--ink-secondary);
}
.comp-list.warn li {
  color: var(--ink-secondary);
}
.comp-list.good li {
  color: var(--ink);
  font-weight: 500;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 44px 0;
}
.faq-item {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.faq-item:hover {
  border-color: var(--canva-purple);
}
.faq-item summary {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--canva-purple);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item p {
  margin: 14px 0 0;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- Composer Trial Alert ---------------------------------------------- */
.composer-trial-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.composer-trial-alert.trial-active {
  background: #EDE9FE;
  border: 1px solid #DDD6FE;
  color: #6D28D9;
}

[data-theme="dark"] .composer-trial-alert.trial-active {
  background: rgba(125, 42, 232, 0.15);
  border-color: rgba(125, 42, 232, 0.4);
  color: #DDD6FE;
}

.composer-trial-alert.trial-expired {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.composer-trial-alert a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--canva-gradient);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(125, 42, 232, 0.25);
  transition: var(--transition);
}

.composer-trial-alert a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.35);
}

/* ---- Popular Creator & Business Templates ------------------------------ */
.template-section {
  margin-top: 48px;
  padding: 36px 40px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.template-header {
  margin-bottom: 20px;
}

.template-title {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.template-sub {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.template-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.template-card {
  background: var(--field-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.template-card:hover {
  background: #F3E8FF;
  border-color: var(--canva-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .template-card:hover {
  background: rgba(0, 196, 204, 0.08);
  border-color: var(--canva-cyan);
}

.template-card .card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.template-card .card-desc {
  font-size: 12.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

.template-card .card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(125, 42, 232, 0.1);
  color: var(--canva-purple);
  margin-left: auto;
}

/* ---- WhatsApp & Social Actions ----------------------------------------- */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3) !important;
}

.btn-whatsapp:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5) !important;
}

/* ---- Aspect Ratio Selector --------------------------------------------- */
.aspect-ratio-selector {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.aspect-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aspect-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.aspect-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.aspect-pill:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
  color: var(--ink);
}

.aspect-pill.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent);
  color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* ---- Template Filter Pills --------------------------------------------- */
.filter-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-pill.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

/* ---- Floating WhatsApp Support Bubble ---------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 12px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-float .wa-icon {
  font-size: 18px;
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    padding: 10px 14px;
  }
  .whatsapp-float .wa-text {
    display: none;
  }
}

/* ---- Theme Toggle Button (Day & Night Mode) ------------------------- */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--raised);
  border: 1px solid var(--control-line);
  color: var(--ink);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
  background: var(--raised);
  border: 1px solid var(--control-line);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}
.theme-toggle-btn:hover {
  border-color: var(--canva-purple);
  background: var(--raised-hover);
  transform: translateY(-1px);
}
.theme-toggle-btn .theme-icon {
  font-size: 15px;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle-btn:hover .theme-icon {
  transform: rotate(20deg) scale(1.15);
}

/* ---- The Living Artifact Interactive Visual Lab ------------------------ */
.engine-demo-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 36px 0 24px;
  flex-wrap: wrap;
}
.engine-tab {
  background: var(--raised);
  border: 1px solid var(--control-line);
  color: var(--ink-secondary);
  border-radius: var(--radius);
  padding: 16px 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  transition: var(--transition);
  font-family: var(--sans);
  text-align: left;
}
.engine-tab:hover {
  border-color: var(--canva-purple);
  color: var(--ink);
  transform: translateY(-2px);
}
.engine-tab.active {
  background: var(--raised-solid);
  border-color: var(--canva-purple);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(125, 42, 232, 0.15);
}
.tab-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.tab-badge.error {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.tab-badge.success {
  background: rgba(0, 196, 204, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 196, 204, 0.3);
}
.tab-title {
  font-size: 14.5px;
  font-weight: 700;
}

.engine-demo-stage {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 48px;
  position: relative;
}

/* Stage Toolbar */
.living-stage-toolbar, .dead-pixel-header {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.02);
}
.stage-status-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stage-status-badge.dead {
  background: rgba(244, 63, 94, 0.14);
  color: #f43f5e;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.stage-status-badge.living {
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.interactive-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.demo-input {
  background: var(--field-alt);
  border: 1px solid var(--control-line);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
  outline: none;
  width: 240px;
  transition: var(--transition);
}
.demo-input:focus {
  border-color: var(--canva-purple);
  box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.15);
}
.btn-explode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(125, 42, 232, 0.08);
  border: 1px solid var(--canva-purple);
  color: var(--canva-purple);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-explode:hover, .btn-explode.active {
  background: var(--canva-purple);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(125, 42, 232, 0.25);
}

/* 3D Exploded Viewport */
.exploded-stage-viewport {
  perspective: 1200px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
}
.exploded-canvas-stack {
  position: relative;
  width: 320px;
  height: 440px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: grab;
}
.exploded-canvas-stack.exploded {
  transform: rotateX(28deg) rotateY(-22deg) rotateZ(5deg) scale(0.92);
}

/* Planes in Stack */
.canvas-plane {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.plane-label {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}
.plane-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 900;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.plane-name {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Layer 1: Background Art */
.plane-bg {
  transform: translateZ(0px);
  background: #0d1527;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.bg-art-mock {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.4), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.5), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #030712 100%);
  position: relative;
}
.bg-art-mock::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.4;
}

/* Layer 2: Vector Elements */
.plane-vector {
  transform: translateZ(0px);
  background: transparent;
  pointer-events: none;
}
.exploded-canvas-stack.exploded .plane-vector {
  transform: translateZ(65px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.3);
}
.vector-art-mock {
  width: 100%;
  height: 100%;
  position: relative;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.demo-vector-badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  background: var(--field);
  border: 1px solid var(--canva-purple);
  color: var(--canva-purple);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s;
}
.demo-vector-chip {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid #6366f1;
  color: #c7d2fe;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.demo-vector-price {
  align-self: flex-start;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
}

/* Layer 3: Typography DOM */
.plane-text {
  transform: translateZ(0px);
  background: transparent;
}
.exploded-canvas-stack.exploded .plane-text {
  transform: translateZ(130px);
  box-shadow: 0 25px 50px rgba(0, 240, 255, 0.22), 0 0 0 1px rgba(0, 240, 255, 0.4);
}
.text-layer-mock {
  width: 100%;
  height: 100%;
  padding: 100px 20px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.demo-editable-headline {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  transition: color 0.3s;
}
.edit-cursor-blink {
  display: inline-block;
  width: 3px;
  height: 24px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: cursorBlink 1s infinite;
}
@keyframes cursorBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.demo-subhead {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* Selection bounding box with 8-point handles */
.selection-handles {
  position: absolute;
  inset: 90px 14px auto 14px;
  height: 110px;
  border: 1.5px dashed var(--accent);
  border-radius: 4px;
  pointer-events: none;
  animation: pulseSelection 2s infinite alternate;
}
@keyframes pulseSelection {
  0% { border-color: rgba(125, 42, 232, 0.4); }
  100% { border-color: var(--canva-purple); box-shadow: none; }
}
.selection-handles .handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1.5px solid #000;
  border-radius: 1px;
}
.selection-handles .tl { top: -4px; left: -4px; }
.selection-handles .tr { top: -4px; right: -4px; }
.selection-handles .bl { bottom: -4px; left: -4px; }
.selection-handles .br { bottom: -4px; right: -4px; }

/* Dead Pixel Mock Stage */
.dead-pixel-mock {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: center;
  padding: 40px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.dead-poster-graphic {
  width: 320px;
  height: 440px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #f43f5e;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(244, 63, 94, 0.2);
  cursor: not-allowed;
  user-select: none;
}
.dead-poster-graphic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 2px, transparent 2px, transparent 4px);
  pointer-events: none;
}
.dead-typo-highlight {
  position: relative;
  padding: 10px 14px;
  border: 2px dashed #f43f5e;
  border-radius: 6px;
  background: rgba(244, 63, 94, 0.15);
}
.dead-text {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: #f87171;
  letter-spacing: -0.02em;
}
.dead-error-marker {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #f43f5e;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.dead-locked-stamp {
  position: absolute;
  bottom: 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fca5a5;
  border: 1px solid #f87171;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
}
.dead-warning-box {
  background: var(--raised-solid);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.dead-warning-box.shake {
  animation: shakeWarning 0.4s ease-in-out;
}
@keyframes shakeWarning {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.dead-warn-title {
  font-size: 18px;
  font-weight: 800;
  color: #f43f5e;
  margin-bottom: 10px;
}
.dead-consequences {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #f87171;
}

/* Proof Strip */
.living-proof-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--line);
}
.proof-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.proof-icon {
  font-size: 22px;
  flex-shrink: 0;
  background: var(--raised);
  border: 1px solid var(--control-line);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proof-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof-body strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.proof-body span {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .dead-pixel-mock {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .exploded-stage-viewport {
    min-height: 460px;
  }
  .exploded-canvas-stack {
    width: 280px;
    height: 380px;
  }
  .toolbar-right {
    width: 100%;
  }
  .demo-input {
    width: 100%;
  }
}

/* ---- Blog & Article Hub System ----------------------------------------- */
.blog-hero {
  padding: 48px 0 24px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 16px 0 12px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  margin: 44px 0 72px;
}
.blog-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--canva-purple);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.blog-card-thumb {
  aspect-ratio: 16/9;
  background: var(--field-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.blog-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--canva-purple);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-card-title {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.blog-card-excerpt {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  margin: 0 0 18px;
  flex: 1;
}
.blog-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Article Reading Layout */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 24px;
}
.article-breadcrumbs a {
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.article-breadcrumbs a:hover {
  color: var(--accent);
}
.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.article-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}
.article-header h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--ink);
}
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

/* Article Content & Typography */
.article-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--ink-secondary);
}
.article-body h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 44px 0 16px;
  letter-spacing: -0.02em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.article-body h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 30px 0 12px;
  letter-spacing: -0.01em;
}
.article-body p {
  margin: 0 0 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body strong {
  color: var(--ink);
}

/* TOC Box */
.article-toc {
  background: var(--raised);
  border: 1px solid var(--control-line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 28px 0 36px;
}
.article-toc-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 12px;
}
.article-toc ol {
  margin: 0;
  padding-left: 20px;
}
.article-toc li {
  margin-bottom: 6px;
  font-size: 14px;
}
.article-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.article-toc a:hover {
  text-decoration: underline;
}

/* Callout Box */
.article-callout {
  background: var(--raised);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.article-callout.tip { border-left-color: var(--accent); }
.article-callout.highlight { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.06); }
.article-callout-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Prompt Example Box */
.article-prompt-box {
  background: var(--field-alt);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 26px 0;
}
.prompt-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.prompt-box-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}
.prompt-box-text {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: rgba(0,0,0,0.3);
  padding: 14px 16px;
  border-radius: 8px;
  margin: 0 0 12px;
  white-space: pre-wrap;
}
.prompt-box-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* High Converting CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, rgba(0, 196, 204, 0.08) 0%, rgba(125, 42, 232, 0.1) 100%);
  border: 1.5px solid var(--canva-purple);
  border-radius: 24px;
  padding: 44px 36px;
  margin: 56px 0;
  text-align: center;
  box-shadow: 0 4px 20px rgba(125, 42, 232, 0.08);
  position: relative;
  overflow: hidden;
}
.article-cta-box h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 12px;
}
.article-cta-box p {
  font-size: 16px;
  color: var(--ink-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.article-cta-box .btn-cta-main {
  background: var(--canva-gradient);
  color: #ffffff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(125, 42, 232, 0.25);
  transition: var(--transition);
}
.article-cta-box .btn-cta-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.35);
}

/* Comparison Tables in Articles */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.article-table th, .article-table td {
  padding: 12px 16px;
  border: 1px solid var(--line);
}
.article-table th {
  background: var(--raised-solid);
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
}
.article-table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}

/* ==========================================================================
   CANVA-STYLE STUDIO DESIGN SYSTEM ENHANCEMENTS
   ========================================================================== */

/* Canva Category Icons Carousel */
.canva-category-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  padding: 12px 4px 20px;
  margin: 28px 0 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.canva-category-bar::-webkit-scrollbar {
  display: none;
}

.canva-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 96px;
  padding: 14px 10px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  user-select: none;
  min-width: 106px;
  padding: 16px 14px;
  gap: 10px;
}

.canva-cat-tile:hover {
  transform: translateY(-2px);
  border-color: var(--canva-purple);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  color: var(--canva-purple);
}

[data-theme="dark"] .canva-cat-tile:hover {
  border-color: var(--canva-cyan);
  color: var(--canva-cyan);
}

.canva-cat-tile.active {
  background: #F3E8FF;
  border-color: var(--canva-purple);
  color: var(--canva-purple);
  box-shadow: none;
}

[data-theme="dark"] .canva-cat-tile.active {
  background: rgba(0, 196, 204, 0.12);
  border-color: var(--canva-cyan);
  color: var(--canva-cyan);
}

.canva-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: var(--transition);
  background: #F3F4F6;
}

[data-theme="dark"] .canva-cat-icon {
  background: rgba(255, 255, 255, 0.06);
}

.canva-cat-tile:hover .canva-cat-icon {
  transform: scale(1.05);
}

.canva-cat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Canva Magic Sparkle Badge */
.canva-magic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(0, 196, 204, 0.12) 0%, rgba(125, 42, 232, 0.12) 50%, rgba(255, 0, 122, 0.12) 100%);
  border: 1px solid rgba(125, 42, 232, 0.3);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--canva-purple);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

[data-theme="dark"] .canva-magic-badge {
  color: #00C4CC;
  border-color: rgba(0, 196, 204, 0.4);
}

/* Canva Pro Crown Badge */
.canva-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #7D2AE8 0%, #A855F7 100%);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(125, 42, 232, 0.35);
}

/* Canva Studio Toolbar (In design.html & video.html) */
.canva-studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.canva-tool-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.canva-tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
}

.canva-tool-btn:hover {
  background: rgba(125, 42, 232, 0.08);
  border-color: var(--canva-purple);
  color: var(--canva-purple);
  transform: translateY(-1px);
}

[data-theme="dark"] .canva-tool-btn:hover {
  border-color: var(--canva-cyan);
  color: var(--canva-cyan);
}

/* ==========================================================================
   Canva-Style Recent Projects Hub & Project Management
   ========================================================================== */

.canva-projects-hub {
  padding: 44px 0 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: relative;
}

/* Resume Last Project Banner */
.resume-project-banner {
  margin-bottom: 36px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-left: 4px solid var(--canva-purple);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.resume-project-banner:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.resume-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--canva-purple);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

[data-theme="dark"] .resume-badge-row {
  color: var(--canva-cyan);
}

.resume-banner-card {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.resume-thumb-wrap {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--field-alt);
  border: 1px solid var(--control-line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-thumb-placeholder {
  font-size: 32px;
  opacity: 0.6;
}

.resume-details {
  flex: 1;
  min-width: 240px;
}

.resume-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.3;
}

.resume-meta {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 10px;
}

.resume-tags-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.canva-tag-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(125, 42, 232, 0.08);
  color: var(--canva-purple);
  border: 1px solid rgba(125, 42, 232, 0.16);
}

[data-theme="dark"] .canva-tag-badge {
  background: rgba(0, 196, 204, 0.08);
  color: var(--canva-cyan);
  border-color: rgba(0, 196, 204, 0.2);
}

.resume-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-resume-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-canva);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.25);
  transition: var(--transition);
}

.btn-resume-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(125, 42, 232, 0.35);
}

.btn-resume-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--field);
  color: var(--ink) !important;
  border: 1px solid var(--control-line);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: var(--transition);
}

.btn-resume-secondary:hover {
  background: var(--field-alt);
  border-color: var(--canva-purple);
  color: var(--canva-purple) !important;
  transform: translateY(-1px);
}

/* Projects Hub Header & Toolbar */
.projects-hub-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.projects-hub-title-block h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 6px;
  color: var(--ink);
}

.projects-hub-title-block .sub {
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 680px;
  margin: 0;
}

.projects-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.projects-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--field-alt);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  min-width: 240px;
  flex: 1;
  max-width: 380px;
}

.projects-search-box .search-icon {
  font-size: 14px;
  opacity: 0.6;
}

.projects-search-box input {
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  outline: none;
  width: 100%;
}

.projects-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.proj-filter-btn {
  background: var(--field);
  border: 1px solid var(--control-line);
  color: var(--ink-secondary);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.proj-filter-btn:hover {
  background: var(--field-alt);
  color: var(--ink);
  border-color: var(--ink-secondary);
}

.proj-filter-btn.active {
  background: var(--canva-purple);
  border-color: var(--canva-purple);
  color: #fff;
}

[data-theme="dark"] .proj-filter-btn.active {
  background: var(--canva-purple);
  border-color: var(--canva-purple);
  color: #fff;
}

.projects-sort-box select {
  background: var(--field-alt);
  border: 1px solid var(--control-line);
  border-radius: 10px;
  padding: 8px 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

/* Projects Grid */
.canva-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.canva-project-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
}

.canva-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: rgba(125, 42, 232, 0.4);
}

.proj-card-thumb-area {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--field-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.proj-card-thumb-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.25s ease;
}

.canva-project-card:hover .proj-card-thumb-area img {
  transform: scale(1.03);
}

.proj-kind-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  backdrop-filter: blur(4px);
  z-index: 2;
  letter-spacing: 0.04em;
}

.proj-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 3;
}

.canva-project-card:hover .proj-thumb-overlay {
  opacity: 1;
}

.btn-card-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #0f1115 !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(4px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.canva-project-card:hover .btn-card-open {
  transform: translateY(0);
}

.btn-card-open:hover {
  background: var(--canva-cyan);
  color: #000 !important;
}

.proj-card-body {
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proj-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.proj-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.proj-card-title:hover {
  color: var(--canva-purple);
}

.proj-options-btn {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.proj-options-btn:hover {
  background: var(--field-alt);
  color: var(--ink);
}

.proj-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-secondary);
  margin-top: auto;
  padding-top: 8px;
}

.proj-shape-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--field-alt);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--control-line);
}

.proj-card-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--field);
}

.proj-quick-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--control-line);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.proj-quick-btn:hover {
  background: var(--field-alt);
  border-color: var(--canva-purple);
  color: var(--canva-purple);
}

.proj-quick-btn.danger:hover {
  border-color: #f43f5e;
  color: #f43f5e;
}

/* Empty State */
.projects-empty-state {
  background: var(--raised);
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  margin-top: 16px;
}

.empty-state-icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.projects-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
}

.projects-empty-state p {
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
}

.empty-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}

.starter-card-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--field);
  border: 1px solid var(--control-line);
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.starter-card-btn:hover {
  background: var(--field-alt);
  border-color: var(--canva-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(125, 42, 232, 0.1);
}

.starter-icon {
  font-size: 24px;
}

.starter-text {
  flex: 1;
}

.starter-text strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 2px;
}

.starter-text small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-secondary);
}

.starter-arrow {
  font-size: 16px;
  color: var(--canva-purple);
  opacity: 0.6;
  transition: transform 0.18s ease;
}

.starter-card-btn:hover .starter-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* Project Action Dropdown Menu Popover */
.proj-menu-popover {
  position: absolute;
  right: 12px;
  top: 40px;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
  padding: 6px;
  z-index: 100;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proj-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.14s ease;
}

.proj-menu-item:hover {
  background: var(--field-alt);
  color: var(--canva-purple);
}

.proj-menu-item.danger {
  color: #f43f5e;
}

.proj-menu-item.danger:hover {
  background: rgba(244, 63, 94, 0.1);
  color: #f43f5e;
}

@media (max-width: 768px) {
  .resume-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .resume-actions {
    width: 100%;
  }
  .btn-resume-primary, .btn-resume-secondary {
    flex: 1;
    justify-content: center;
  }
  .projects-hub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .projects-search-box {
    max-width: 100%;
  }
  .canva-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Projects & Files Management Workspace Styles
   ========================================================================== */

.projects-workspace-body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top App Navigation */
.app-nav {
  height: 64px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
}

.brand-logo .accent-tag {
  background: linear-gradient(135deg, #7D2AE8, #00C4CC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px;
  width: 320px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-search-bar:focus-within {
  border-color: var(--canva-purple, #7D2AE8);
  box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.15);
}

.nav-search-bar input {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  width: 100%;
  outline: none;
}

.search-shortcut {
  font-size: 10px;
  font-family: monospace;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-create-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7D2AE8, #9B51E0);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.3);
}

.btn-create-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(125, 42, 232, 0.4);
}

/* Workspace Layout */
.workspace-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 64px);
}

.workspace-sidebar {
  width: 260px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 10px;
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.btn-icon-subtle {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
  transition: background 0.15s, color 0.15s;
}

.btn-icon-subtle:hover {
  background: var(--bg);
  color: var(--ink);
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.sidebar-item:hover {
  background: var(--bg);
  color: var(--ink);
}

.sidebar-item.active {
  background: rgba(125, 42, 232, 0.1);
  color: var(--canva-purple, #7D2AE8);
  font-weight: 600;
}

.sidebar-item .item-icon {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.sidebar-item .item-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-item .item-count {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg);
  border-radius: 12px;
  padding: 2px 7px;
  color: var(--muted);
}

.sidebar-item.active .item-count {
  background: rgba(125, 42, 232, 0.18);
  color: var(--canva-purple, #7D2AE8);
}

.sidebar-cloud-guarantee {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.guarantee-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 6px;
}

.guarantee-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-secondary);
  margin: 0;
}

/* Main Workspace Area */
.workspace-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.workspace-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workspace-heading {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  margin: 0;
  color: var(--ink);
}

.workspace-subtitle {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.view-mode-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.view-toggle-btn.active {
  background: var(--bg);
  color: var(--ink);
}

.sort-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

/* Folder Banner */
.folder-header-banner {
  background: linear-gradient(135deg, rgba(125, 42, 232, 0.08), rgba(0, 196, 204, 0.05));
  border: 1px solid rgba(125, 42, 232, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.folder-banner-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.folder-banner-icon {
  font-size: 32px;
}

.folder-banner-name {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.folder-banner-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-secondary);
}

.folder-banner-actions {
  display: flex;
  gap: 8px;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border-color: rgba(125, 42, 232, 0.3);
}

.card-thumb-wrap {
  aspect-ratio: 4 / 3;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.project-card:hover .card-thumb-img {
  transform: scale(1.03);
}

.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.project-card:hover .card-thumb-overlay {
  opacity: 1;
}

.btn-card-open {
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.btn-card-open:hover {
  transform: scale(1.05);
}

.card-star-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  backdrop-filter: blur(4px);
  transition: background 0.15s, transform 0.15s;
  z-index: 2;
}

.card-star-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.1);
}

.card-star-btn.starred {
  color: #ffd700;
  background: rgba(0, 0, 0, 0.65);
}

.card-badges-row {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge-kind {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  color: #fff;
}

.badge-design {
  background: rgba(125, 42, 232, 0.8);
}

.badge-video {
  background: rgba(0, 196, 204, 0.85);
  color: #0d1e24;
}

.badge-folder {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  backdrop-filter: blur(6px);
}

.card-thumb-generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
}

.gen-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--canva-purple, #7D2AE8);
  animation: pulse 2s infinite ease-in-out;
}

.card-details {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.card-title:hover {
  color: var(--canva-purple, #7D2AE8);
}

.card-menu-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-menu-btn:hover {
  background: var(--bg);
  color: var(--ink);
}

.card-brief {
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.4;
  height: 34px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
}

/* Table View */
.projects-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.projects-table {
  width: 100%;
  border-collapse: collapse;
}

.projects-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.projects-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.projects-table tr:hover td {
  background: var(--bg);
}

.table-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.table-proj-title {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.table-proj-title:hover {
  color: var(--canva-purple, #7D2AE8);
}

.table-proj-brief {
  font-size: 12px;
  color: var(--ink-secondary);
}

.btn-star-table {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
}

.btn-star-table.starred {
  color: #ffd700;
}

/* Empty State */
.workspace-empty-state {
  text-align: center;
  padding: 64px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.empty-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(125, 42, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.empty-sub {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Modals & Dialogs */
.workspace-modal {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  max-width: 480px;
  width: 90%;
}

.workspace-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.workspace-modal.modal-large {
  max-width: 760px;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.input-styled {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.input-styled:focus {
  border-color: var(--canva-purple, #7D2AE8);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.icon-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-option {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
}

.icon-option.active {
  border-color: var(--canva-purple, #7D2AE8);
  background: rgba(125, 42, 232, 0.12);
}

.move-folder-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.move-folder-opt {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}

.move-folder-opt:hover {
  background: var(--bg);
  border-color: var(--canva-purple, #7D2AE8);
}

.move-folder-opt.selected {
  background: rgba(125, 42, 232, 0.12);
  border-color: var(--canva-purple, #7D2AE8);
  font-weight: 600;
}

/* Inspector Modal Styling */
.inspector-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(125, 42, 232, 0.15);
  color: var(--canva-purple, #7D2AE8);
}

.inspector-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.inspector-tab {
  background: transparent;
  border: none;
  color: var(--ink-secondary);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.inspector-tab.active {
  background: var(--bg);
  color: var(--ink);
}

.files-manifest-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.manifest-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.m-file-icon {
  font-size: 24px;
  margin-right: 12px;
}

.m-file-info {
  flex: 1;
}

.m-file-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.m-file-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.assets-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.manifest-asset-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.manifest-asset-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.m-asset-name {
  font-size: 11px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

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

.spec-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
}

.spec-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.spec-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}

.brief-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

/* Action Dropdown Menu */
.action-dropdown-menu {
  position: fixed;
  z-index: 1000;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.action-dropdown-item {
  background: transparent;
  border: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}

.action-dropdown-item:hover {
  background: var(--bg);
}

.action-dropdown-item.text-danger {
  color: #ff5555;
}

.action-dropdown-item.text-danger:hover {
  background: rgba(255, 85, 85, 0.1);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Cloud Auto-Save Status Pill (in Editor & Navbar) */
.save-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
}

.save-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.save-status-pill.status-saving .save-status-dot {
  background: #7D2AE8;
  animation: pulse 1s infinite alternate;
}

.save-status-pill.status-saving .save-status-text {
  color: #7D2AE8;
}

.save-status-pill.status-offline .save-status-dot {
  background: #f59e0b;
}

.save-status-pill.status-error .save-status-dot {
  background: #ef4444;
}

.version-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

@media (max-width: 900px) {
  .workspace-container {
    flex-direction: column;
  }
  .workspace-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .workspace-main {
    padding: 20px 16px;
  }
  .nav-search-bar {
    display: none;
  }
}

/* ==========================================================================
   Full-Screen Professional Studio Editor Styles (Canva/Figma Inspired)
   ========================================================================== */

.studio-editor-body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #090d16;
  color: #f1f5f9;
  font-family: var(--sans, 'Plus Jakarta Sans', sans-serif);
  margin: 0;
  padding: 0;
}

/* TOPBAR */
.editor-topbar {
  height: 54px;
  background: #0d121f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 100;
  flex-shrink: 0;
}

.topbar-left, .topbar-center, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 4px;
}

.topbar-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.topbar-back-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.topbar-brand {
  display: flex;
  align-items: center;
  padding: 4px;
}

.project-title-editor {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 3px 8px;
  transition: border-color 0.15s, background 0.15s;
}

.project-title-editor:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.project-title-input {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
  width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title-edit-hint {
  font-size: 11px;
  opacity: 0.5;
}

/* History Controls & Zoom */
.btn-icon-topbar {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.btn-icon-topbar:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-icon-topbar:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.topbar-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.zoom-controls {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 2px 4px;
}

.zoom-level-text {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  min-width: 44px;
  text-align: center;
}

.btn-text-topbar {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}

.btn-text-topbar:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Actions & Export */
.btn-topbar-action {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-topbar-action:hover, .btn-topbar-action.active {
  background: rgba(125, 42, 232, 0.15);
  border-color: rgba(125, 42, 232, 0.4);
  color: #fff;
}

.export-dropdown-wrap {
  position: relative;
}

.btn-export-primary {
  background: linear-gradient(135deg, #7D2AE8, #9B51E0);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-export-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(125, 42, 232, 0.5);
}

.export-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  width: 250px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.export-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #f1f5f9;
  text-decoration: none;
  transition: background 0.15s;
}

.export-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.export-item-icon {
  font-size: 20px;
}

.export-item-meta strong {
  display: block;
  font-size: 13px;
}

.export-item-meta small {
  font-size: 11px;
  color: #94a3b8;
}

.export-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.topbar-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 187, 0, 0.12);
  border: 1px solid rgba(255, 187, 0, 0.3);
  color: #ffbb00;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* 3-PANEL WORKSPACE */
.studio-workspace {
  display: flex;
  flex: 1;
  height: calc(100vh - 54px);
  overflow: hidden;
  position: relative;
}

/* LEFT PANEL: DOCK + DRAWER */
.left-panel-dock {
  display: flex;
  height: 100%;
  z-index: 30;
  background: #0d121f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.dock-icons {
  width: 68px;
  background: #090d16;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
}

.dock-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  width: 58px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dock-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.dock-btn.active {
  background: rgba(125, 42, 232, 0.18);
  color: #00C4CC;
}

.dock-icon {
  font-size: 18px;
}

.dock-label {
  font-size: 10.5px;
  font-weight: 600;
}

.dock-drawer {
  width: 290px;
  height: 100%;
  background: #0e1424;
  display: flex;
  flex-direction: column;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s;
  overflow: hidden;
}

.dock-drawer.collapsed {
  width: 0;
  border-right: none;
}

.drawer-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-subheading {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 12px;
}

.element-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-add-element {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
  color: #e2e8f0;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn-add-element:hover {
  background: rgba(125, 42, 232, 0.12);
  border-color: rgba(125, 42, 232, 0.35);
  transform: translateX(2px);
}

.heading-preview {
  font-size: 20px;
  font-weight: 800;
}

.subheading-preview {
  font-size: 15px;
  font-weight: 600;
}

.body-preview {
  font-size: 12.5px;
  color: #94a3b8;
}

.cta-preview {
  font-size: 12.5px;
  font-weight: 700;
  color: #00C4CC;
}

.badge-preview {
  font-size: 11.5px;
  font-weight: 800;
  color: #ff3366;
}

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

.btn-shape-add {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.btn-shape-add:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #7D2AE8;
}

.shape-icon-rect {
  width: 36px;
  height: 22px;
  background: #7D2AE8;
  border-radius: 4px;
}

.shape-icon-circle {
  width: 26px;
  height: 26px;
  background: #00C4CC;
  border-radius: 50%;
}

.shape-icon-line {
  width: 36px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
}

.shape-icon-card {
  width: 36px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

/* Asset Uploads */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-dropzone:hover {
  border-color: #7D2AE8;
  background: rgba(125, 42, 232, 0.06);
}

.upload-icon {
  font-size: 26px;
}

.upload-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #f1f5f9;
}

.upload-sub {
  font-size: 11.5px;
  color: #94a3b8;
}

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

.drawer-asset-item {
  position: relative;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.drawer-asset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-actions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.drawer-asset-item:hover .asset-actions-overlay {
  opacity: 1;
}

/* Brand Kit & Templates */
.brand-swatches-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.brand-swatch-btn:hover {
  transform: scale(1.15);
  border-color: #fff;
}

.brand-font-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.font-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.font-chip:hover {
  background: rgba(125, 42, 232, 0.15);
  border-color: #7D2AE8;
}

.template-starters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.starter-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.starter-card:hover {
  border-color: #00C4CC;
}

.starter-preview {
  height: 60px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.sale-preview { background: linear-gradient(135deg, #FF3366, #7D2AE8); color: #fff; }
.event-preview { background: linear-gradient(135deg, #1E1B4B, #00C4CC); color: #fff; }
.food-preview { background: linear-gradient(135deg, #EA580C, #FBBF24); color: #fff; }
.tech-preview { background: linear-gradient(135deg, #0F172A, #3B82F6); color: #fff; }

.starter-name {
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Layers Tree */
.layers-tree-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.layer-tree-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.layer-tree-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.layer-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-tag {
  font-size: 10px;
  font-family: monospace;
  color: #64748b;
  text-transform: uppercase;
}

/* CENTER CANVAS AREA */
.editor-center-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #060910;
}

.canvas-viewport {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.floating-stage-tools {
  position: absolute;
  top: 16px;
  z-index: 10;
  display: flex;
  gap: 6px;
  background: rgba(13, 18, 31, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stage-tool-pill {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
}

.stage-tool-pill:hover, .stage-tool-pill.active {
  background: rgba(125, 42, 232, 0.2);
  color: #fff;
}

/* Canvas Outer Frame */
.canvas-frame-outer {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, width 0.2s, height 0.2s;
  position: relative;
  width: 680px;
  height: 850px;
  background: #fff;
  flex-shrink: 0;
}

.canvas-frame-outer.aspect-1-1 { width: 720px; height: 720px; }
.canvas-frame-outer.aspect-9-16 { width: 480px; height: 853px; }
.canvas-frame-outer.aspect-16-9 { width: 853px; height: 480px; }
.canvas-frame-outer.aspect-4-5 { width: 680px; height: 850px; }

.canvas-frame-outer.show-grid-lines::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(0, 196, 204, 0.15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 196, 204, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 10;
}

.canvas-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.canvas-static-preview {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.canvas-static-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.canvas-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 24, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  text-align: center;
  padding: 30px;
}

/* BOTTOM AI PROMPT DOCK */
.editor-ai-dock {
  background: #0d121f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 25;
  flex-shrink: 0;
}

.ai-quick-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ai-quick-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ai-quick-pill:hover {
  background: rgba(125, 42, 232, 0.15);
  border-color: rgba(125, 42, 232, 0.35);
  color: #fff;
}

.ai-prompt-input-form {
  display: flex;
  align-items: center;
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px 6px 4px 14px;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-prompt-input-form:focus-within {
  border-color: #7D2AE8;
  box-shadow: 0 0 0 3px rgba(125, 42, 232, 0.2);
}

.ai-input-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-badge-label {
  font-size: 11px;
  font-weight: 800;
  color: #00C4CC;
  letter-spacing: 0.04em;
}

.ai-prompt-field {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  outline: none;
}

.btn-ai-send {
  background: linear-gradient(135deg, #7D2AE8, #9B51E0);
  border: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s;
}

.btn-ai-send:hover {
  transform: scale(1.02);
}

.prompt-history-drawer {
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
  margin-top: 4px;
}

.history-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.brief-text-quote {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* RIGHT PANEL: CONTEXTUAL INSPECTOR */
.right-panel-inspector {
  width: 290px;
  background: #0d121f;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 30;
  flex-shrink: 0;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-panel-inspector.collapsed {
  width: 0;
  border-left: none;
  overflow: hidden;
}

.inspector-header {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.inspector-title {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0;
}

.inspector-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inspector-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inspector-section-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.prop-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prop-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}

.prop-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prop-select {
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 6px;
  outline: none;
}

.input-unit-wrap {
  display: flex;
  align-items: center;
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0 8px;
}

.prop-input-num {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 12.5px;
  padding: 7px 0;
  outline: none;
}

.input-unit-wrap .unit {
  font-size: 11px;
  color: #64748b;
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch-input {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.prop-input-text {
  flex: 1;
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 6px;
  outline: none;
}

.align-button-group {
  display: flex;
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 2px;
}

.btn-align-opt {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 0;
  border-radius: 4px;
  cursor: pointer;
}

.btn-align-opt.active {
  background: rgba(125, 42, 232, 0.25);
  color: #fff;
}

.prop-slider {
  width: 100%;
  accent-color: #7D2AE8;
}

.effects-pill-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.effect-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.effect-pill.active {
  background: rgba(0, 196, 204, 0.15);
  border-color: #00C4CC;
  color: #00C4CC;
}

.filter-controls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-slider-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: #94a3b8;
}

.layer-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-layer-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-layer-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-layer-action.text-danger {
  color: #ff5555;
}

.btn-layer-action.text-danger:hover {
  background: rgba(255, 85, 85, 0.12);
}

.project-specs-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

.spec-line strong {
  color: #f1f5f9;
}

/* Fullscreen Preview Mode */
.editor-preview-fullscreen .left-panel-dock,
.editor-preview-fullscreen .dock-drawer,
.editor-preview-fullscreen .right-panel-inspector,
.editor-preview-fullscreen .editor-ai-dock,
.editor-preview-fullscreen .floating-stage-tools {
  display: none !important;
}

.editor-preview-fullscreen .canvas-viewport {
  padding: 10px;
}

/* FULL-SCREEN CANVAS EDIT MODE */
body.editor-fullscreen-canvas {
  overflow: hidden !important;
}

body.editor-fullscreen-canvas .editor-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 48px;
  padding: 0 16px;
  transform: translateY(0);
}

body.editor-fullscreen-canvas .left-panel-dock,
body.editor-fullscreen-canvas .dock-drawer,
body.editor-fullscreen-canvas .right-panel-inspector,
body.editor-fullscreen-canvas .editor-ai-dock {
  display: none !important;
}

body.editor-fullscreen-canvas .editor-workspace {
  height: 100vh !important;
  max-height: 100vh !important;
  padding-top: 48px;
}

body.editor-fullscreen-canvas .editor-center-stage {
  flex: 1 1 100% !important;
  width: 100vw !important;
  height: calc(100vh - 48px) !important;
  max-width: 100vw !important;
}

body.editor-fullscreen-canvas .canvas-viewport {
  padding: 16px !important;
  background: radial-gradient(circle at center, #101726 0%, #060910 100%) !important;
  width: 100% !important;
  height: 100% !important;
}

body.editor-fullscreen-canvas .floating-stage-tools {
  bottom: 20px;
  background: rgba(13, 18, 35, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  z-index: 50;
}

/* Floating HUD in Fullscreen Canvas */
.fullscreen-canvas-hud {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  pointer-events: auto;
  animation: hudSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hudSlideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.fullscreen-canvas-hud .hud-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 18, 35, 0.94);
  border: 1px solid rgba(0, 196, 204, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 196, 204, 0.2);
  backdrop-filter: blur(20px);
  padding: 6px 14px;
  border-radius: 30px;
  color: #fff;
  font-size: 13px;
}

.fullscreen-canvas-hud .hud-status {
  font-weight: 700;
  font-size: 12.5px;
  color: #00C4CC;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.fullscreen-canvas-hud .hud-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
}

.fullscreen-canvas-hud .btn-hud {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.fullscreen-canvas-hud .btn-hud:hover {
  background: rgba(125, 42, 232, 0.3);
  color: #fff;
  border-color: #7D2AE8;
}

.fullscreen-canvas-hud .btn-hud-save {
  background: linear-gradient(135deg, #00C4CC, #0088FF);
  border: none;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 196, 204, 0.4);
}

.fullscreen-canvas-hud .btn-hud-save:hover {
  filter: brightness(1.1);
}

.fullscreen-canvas-hud .btn-hud-exit {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-weight: 700;
}

.fullscreen-canvas-hud .btn-hud-exit:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.fullscreen-canvas-hud .hud-zoom-text {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
  min-width: 38px;
  text-align: center;
}

/* Stage Fullscreen Button Enhancement */
.btn-stage-fullscreen-pill {
  background: linear-gradient(135deg, rgba(125, 42, 232, 0.3), rgba(0, 196, 204, 0.3)) !important;
  border-color: rgba(0, 196, 204, 0.5) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.btn-stage-fullscreen-pill:hover {
  background: linear-gradient(135deg, #7D2AE8, #00C4CC) !important;
  box-shadow: 0 0 16px rgba(0, 196, 204, 0.45) !important;
}

/* TOPBAR DIRECT SAVE BUTTON */
.btn-save-primary {
  background: linear-gradient(135deg, #00C4CC, #0099FF);
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 196, 204, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-save-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 196, 204, 0.55);
  filter: brightness(1.08);
}

.btn-save-primary:active {
  transform: translateY(0);
}

.btn-save-primary.saving {
  background: #334155;
  color: #94a3b8;
  cursor: wait;
  box-shadow: none;
}

.btn-save-primary.saved {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* UNIVERSAL ADD CREDITS POPUP MODAL */
.credits-modal-dialog {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0d121f;
  border-radius: 20px;
  padding: 0;
  color: #f1f5f9;
  max-width: 820px;
  width: 92vw;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.credits-modal-dialog::backdrop {
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(8px);
}

.credits-modal-card {
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.credits-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.credits-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.credits-modal-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.credits-header-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 187, 0, 0.2), rgba(125, 42, 232, 0.25));
  border: 1px solid rgba(255, 187, 0, 0.4);
  margin-bottom: 12px;
}

.credits-header-icon {
  font-size: 26px;
}

.credits-modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  background: linear-gradient(135deg, #fff 40%, #00C4CC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.credits-modal-desc {
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

.credits-modal-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
}

.balance-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #94a3b8;
}

.balance-tag strong {
  color: #ffbb00;
  font-size: 15px;
  font-weight: 800;
}

.balance-link {
  color: #00C4CC;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}

.balance-link:hover {
  text-decoration: underline;
}

.credits-shortage-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fbbf24;
  font-size: 13px;
  line-height: 1.4;
}

.shortage-icon {
  font-size: 18px;
}

.credits-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .credits-packages-grid {
    grid-template-columns: 1fr;
  }
}

.credit-pack-card {
  background: #131927;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.credit-pack-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.credit-pack-card.featured {
  border-color: #7D2AE8;
  background: linear-gradient(180deg, rgba(125, 42, 232, 0.14) 0%, #131927 100%);
  box-shadow: 0 8px 24px rgba(125, 42, 232, 0.25);
}

.pack-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.featured-badge {
  color: #00C4CC;
  font-weight: 800;
}

.pack-credits {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.pack-credits small {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}

.pack-price {
  font-size: 20px;
  font-weight: 800;
  color: #ffbb00;
  margin-bottom: 8px;
}

.usd-equiv {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.pack-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0 0 14px;
}

.pack-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11.5px;
  color: #cbd5e1;
  flex: 1;
}

.btn-buy-pack {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn-buy-pack:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-pack-featured {
  background: linear-gradient(135deg, #7D2AE8, #00C4CC);
  border: none;
  box-shadow: 0 4px 14px rgba(125, 42, 232, 0.4);
}

.btn-pack-featured:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(125, 42, 232, 0.6);
}

.credits-modal-status {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}

.credits-modal-status.info {
  background: rgba(0, 196, 204, 0.12);
  border: 1px solid rgba(0, 196, 204, 0.3);
  color: #00C4CC;
}

.credits-modal-status.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.credits-modal-status.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.credits-guarantees-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .credits-guarantees-row {
    grid-template-columns: 1fr;
  }
}

.guarantee-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guarantee-icon {
  font-size: 18px;
}

.guarantee-item strong {
  display: block;
  font-size: 12px;
  color: #f1f5f9;
}

.guarantee-item small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}

/* ==========================================================================
   DASHBOARD QUICK-STARTER HERO & KPI RIBBON
   ========================================================================== */
.dashboard-starter-hero {
  background: linear-gradient(135deg, rgba(125, 42, 232, 0.12), rgba(0, 196, 204, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.starter-hero-header {
  margin-bottom: 18px;
}

.sparkle-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #00C4CC;
  background: rgba(0, 196, 204, 0.12);
  border: 1px solid rgba(0, 196, 204, 0.25);
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.starter-hero-title h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 4px;
}

.starter-hero-subtitle {
  font-size: 13px;
  color: #94a3b8;
}

.quick-templates-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.quick-template-card {
  background: rgba(13, 18, 31, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
}

.quick-template-card:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 42, 232, 0.5);
  box-shadow: 0 12px 30px rgba(125, 42, 232, 0.2);
}

.template-pill {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.template-card-preview {
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.card-story .template-card-preview { background: linear-gradient(135deg, #FF3366, #7D2AE8); }
.card-square .template-card-preview { background: linear-gradient(135deg, #00C4CC, #3B82F6); }
.card-banner .template-card-preview { background: linear-gradient(135deg, #7D2AE8, #EC4899); }
.card-flyer .template-card-preview { background: linear-gradient(135deg, #1E1B4B, #4F46E5); }
.card-video .template-card-preview { background: linear-gradient(135deg, #EA580C, #F59E0B); }

.template-card-info strong {
  display: block;
  font-size: 13px;
  color: #f1f5f9;
  font-weight: 700;
}

.template-card-info small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* KPI STATS ROW */
.workspace-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 900px) {
  .workspace-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.kpi-card {
  background: rgba(13, 18, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.kpi-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-meta {
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.kpi-value {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   DYNAMIC SCREEN MANAGEMENT & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.editor-topbar {
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

@media (max-width: 1400px) {
  .btn-topbar-action .btn-action-label,
  .btn-save-primary .btn-save-label {
    display: none !important;
  }
  .btn-topbar-action,
  .btn-save-primary {
    padding: 6px 10px !important;
  }
  .project-title-input {
    width: 130px !important;
  }
}

@media (max-width: 1200px) {
  .topbar-center .history-controls {
    display: none !important;
  }
  .project-title-editor {
    max-width: 140px !important;
  }
  .dock-drawer {
    position: absolute !important;
    left: 68px !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 50 !important;
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.7) !important;
  }
  .right-panel-inspector.collapsed {
    width: 0 !important;
    transform: translateX(100%) !important;
  }
}

@media (max-width: 992px) {
  .topbar-center {
    display: none !important;
  }
  .right-panel-inspector {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 50 !important;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.7) !important;
  }
}

@media (max-height: 720px) {
  .editor-ai-dock {
    padding: 6px 16px 8px !important;
    gap: 4px !important;
  }
  .ai-quick-pills-row {
    display: none !important;
  }
  .canvas-viewport {
    padding: 20px !important;
  }
}

/* EXPANDED CREATIVE ELEMENTS & PRESETS */
.quote-preview {
  font-size: 12px;
  font-style: italic;
  color: #a78bfa;
}

.price-preview {
  font-size: 13px;
  font-weight: 800;
  color: #00C4CC;
}

.shape-icon-pill {
  width: 38px;
  height: 18px;
  background: #00C4CC;
  border-radius: 20px;
}

.shape-icon-starburst {
  width: 24px;
  height: 24px;
  background: #FF3366;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.shape-icon-neon {
  width: 36px;
  height: 22px;
  background: #0D121F;
  border: 2px solid #00C4CC;
  box-shadow: 0 0 8px rgba(0, 196, 204, 0.5);
  border-radius: 4px;
}

.shape-icon-outline {
  width: 36px;
  height: 22px;
  background: transparent;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.theme-presets-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.theme-preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.theme-preset-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(125, 42, 232, 0.4);
}

.theme-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.canvas-bg-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.canvas-preset-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.canvas-preset-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}


