/* Motion Muse Creator Portal, Showcase, 40-Prompt Library, Guide, E-Book, FAQs & Compliance UI */

.portal-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.portal-nav-link {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.portal-nav-link:hover,
.portal-nav-link.active {
  color: var(--text);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
}

.portal-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 32px;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  padding: 36px 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 240, 255, 0.24), transparent 44%),
    radial-gradient(circle at 52% 0%, rgba(236, 72, 153, 0.16), transparent 42%),
    radial-gradient(circle at 88% 80%, rgba(139, 92, 246, 0.28), transparent 48%),
    linear-gradient(145deg, #09132b 0%, #111834 55%, #0c172e 100%);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.55);
}

.portal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #6366f1, #ec4899, #f59e0b, #10b981, #06b6d4);
  background-size: 200% 100%;
  animation: mmAuroraDrift 7s linear infinite;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.36);
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.portal-hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.24;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-sub {
  color: #cbd5e1;
  max-width: 780px;
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.hero-stat-card {
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-top-width: 3px;
  border-radius: 12px;
  padding: 12px 14px;
}

.hero-stat-card:nth-child(1) { border-top-color: #06b6d4; }
.hero-stat-card:nth-child(2) { border-top-color: #a855f7; }
.hero-stat-card:nth-child(3) { border-top-color: #f59e0b; }
.hero-stat-card:nth-child(4) { border-top-color: #10b981; }

.hero-stat-card:nth-child(1) strong { color: #22d3ee; }
.hero-stat-card:nth-child(2) strong { color: #d8b4fe; }
.hero-stat-card:nth-child(3) strong { color: #fbbf24; }
.hero-stat-card:nth-child(4) strong { color: #34d399; }

.hero-stat-card strong {
  display: block;
  font-size: 1.08rem;
  color: var(--accent);
}

.hero-stat-card span {
  font-size: 0.78rem;
  color: var(--muted);
}

.portal-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.portal-block.block-theme-cyan { border-color: rgba(6, 182, 212, 0.36); }
.portal-block.block-theme-amber { border-color: rgba(245, 158, 11, 0.36); }
.portal-block.block-theme-violet { border-color: rgba(168, 85, 247, 0.36); }
.portal-block.block-theme-emerald { border-color: rgba(16, 185, 129, 0.36); }
.portal-block.block-theme-indigo { border-color: rgba(99, 102, 241, 0.38); }
.portal-block.block-theme-rose { border-color: rgba(244, 63, 94, 0.36); }
.portal-block.block-theme-gold { border-color: rgba(234, 179, 8, 0.38); }
.portal-block.block-theme-slate { border-color: rgba(56, 189, 248, 0.32); }
.portal-block.block-theme-cms { border-color: rgba(236, 72, 153, 0.36); }

/* Colorful Section Banners */
.section-banner {
  position: relative;
  overflow: hidden;
  margin: -22px -22px 18px -22px;
  padding: 20px 24px;
  border-radius: 15px 15px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.section-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.section-banner::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  right: -60px;
  top: -110px;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.35;
  pointer-events: none;
}

.section-banner.panel-banner {
  margin: -20px -20px 16px -20px;
  padding: 15px 20px;
  border-radius: 13px 13px 0 0;
}

.section-banner-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.section-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(2, 6, 23, 0.38);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.35);
}

.section-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.section-banner-kicker {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(2, 6, 23, 0.42);
  color: #f8fafc;
}

.section-banner-copy h2,
.section-banner-copy h3 {
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin: 4px 0 3px;
  text-shadow: 0 2px 10px rgba(2, 6, 23, 0.45);
}

.section-banner-copy p {
  font-size: 0.87rem;
  line-height: 1.5;
  color: #e2e8f0;
  max-width: 760px;
  margin: 0;
}

.section-banner-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 9 Banner Color Themes */
.section-banner.theme-cyan {
  background: linear-gradient(125deg, rgba(8, 145, 178, 0.34) 0%, rgba(37, 99, 235, 0.24) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-cyan::before { background: linear-gradient(90deg, #00f0ff, #3b82f6); }
.section-banner.theme-cyan::after { background: #06b6d4; }
.section-banner.theme-cyan .section-banner-icon { background: linear-gradient(135deg, rgba(6, 182, 212, 0.45), rgba(37, 99, 235, 0.45)); }
.section-banner.theme-cyan .section-banner-kicker { color: #67e8f9; border-color: rgba(34, 211, 238, 0.45); }

.section-banner.theme-amber {
  background: linear-gradient(125deg, rgba(217, 119, 6, 0.34) 0%, rgba(225, 29, 72, 0.22) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-amber::before { background: linear-gradient(90deg, #fbbf24, #fb7185); }
.section-banner.theme-amber::after { background: #f59e0b; }
.section-banner.theme-amber .section-banner-icon { background: linear-gradient(135deg, rgba(245, 158, 11, 0.48), rgba(244, 63, 94, 0.4)); }
.section-banner.theme-amber .section-banner-kicker { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); }

.section-banner.theme-violet {
  background: linear-gradient(125deg, rgba(124, 58, 237, 0.38) 0%, rgba(217, 70, 239, 0.24) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-violet::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.section-banner.theme-violet::after { background: #a855f7; }
.section-banner.theme-violet .section-banner-icon { background: linear-gradient(135deg, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.42)); }
.section-banner.theme-violet .section-banner-kicker { color: #f0abfc; border-color: rgba(217, 70, 239, 0.45); }

.section-banner.theme-emerald {
  background: linear-gradient(125deg, rgba(5, 150, 105, 0.34) 0%, rgba(13, 148, 136, 0.26) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-emerald::before { background: linear-gradient(90deg, #10b981, #2dd4bf); }
.section-banner.theme-emerald::after { background: #10b981; }
.section-banner.theme-emerald .section-banner-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.5), rgba(20, 184, 166, 0.42)); }
.section-banner.theme-emerald .section-banner-kicker { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.45); }

.section-banner.theme-indigo {
  background: linear-gradient(125deg, rgba(79, 70, 229, 0.38) 0%, rgba(14, 165, 233, 0.25) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-indigo::before { background: linear-gradient(90deg, #818cf8, #38bdf8); }
.section-banner.theme-indigo::after { background: #6366f1; }
.section-banner.theme-indigo .section-banner-icon { background: linear-gradient(135deg, rgba(99, 102, 241, 0.52), rgba(56, 189, 248, 0.42)); }
.section-banner.theme-indigo .section-banner-kicker { color: #a5b4fc; border-color: rgba(129, 140, 248, 0.45); }

.section-banner.theme-rose {
  background: linear-gradient(125deg, rgba(225, 29, 72, 0.34) 0%, rgba(234, 88, 12, 0.24) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-rose::before { background: linear-gradient(90deg, #fb7185, #fb923c); }
.section-banner.theme-rose::after { background: #f43f5e; }
.section-banner.theme-rose .section-banner-icon { background: linear-gradient(135deg, rgba(244, 63, 94, 0.5), rgba(249, 115, 22, 0.42)); }
.section-banner.theme-rose .section-banner-kicker { color: #fda4af; border-color: rgba(251, 113, 133, 0.45); }

.section-banner.theme-gold {
  background: linear-gradient(125deg, rgba(202, 138, 4, 0.36) 0%, rgba(16, 185, 129, 0.22) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-gold::before { background: linear-gradient(90deg, #facc15, #34d399); }
.section-banner.theme-gold::after { background: #eab308; }
.section-banner.theme-gold .section-banner-icon { background: linear-gradient(135deg, rgba(234, 179, 8, 0.52), rgba(16, 185, 129, 0.42)); }
.section-banner.theme-gold .section-banner-kicker { color: #fef08a; border-color: rgba(250, 204, 21, 0.48); }

.section-banner.theme-slate {
  background: linear-gradient(125deg, rgba(51, 65, 85, 0.52) 0%, rgba(14, 116, 144, 0.28) 55%, rgba(15, 23, 42, 0.94) 100%);
}
.section-banner.theme-slate::before { background: linear-gradient(90deg, #38bdf8, #94a3b8); }
.section-banner.theme-slate::after { background: #0ea5e9; }
.section-banner.theme-slate .section-banner-icon { background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(100, 116, 139, 0.45)); }
.section-banner.theme-slate .section-banner-kicker { color: #bae6fd; border-color: rgba(56, 189, 248, 0.42); }

.section-banner.theme-cms {
  background: linear-gradient(125deg, rgba(219, 39, 119, 0.34) 0%, rgba(124, 58, 237, 0.28) 55%, rgba(15, 23, 42, 0.92) 100%);
}
.section-banner.theme-cms::before { background: linear-gradient(90deg, #f472b6, #a78bfa, #22d3ee); }
.section-banner.theme-cms::after { background: #ec4899; }
.section-banner.theme-cms .section-banner-icon { background: linear-gradient(135deg, rgba(236, 72, 153, 0.5), rgba(139, 92, 246, 0.45)); }
.section-banner.theme-cms .section-banner-kicker { color: #fbcfe8; border-color: rgba(244, 114, 182, 0.45); }

.home-welcome-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background:
    radial-gradient(circle at 12% 25%, rgba(0, 240, 255, 0.24), transparent 46%),
    radial-gradient(circle at 86% 78%, rgba(168, 85, 247, 0.28), transparent 50%),
    linear-gradient(135deg, #0b1633 0%, #17153b 55%, #0c1b2e 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-welcome-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #6366f1, #ec4899, #10b981);
}

@media (max-width: 720px) {
  .section-banner {
    margin: -22px -22px 14px -22px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .section-banner.panel-banner {
    margin: -20px -20px 12px -20px;
    padding: 12px 14px;
  }
  .section-banner-main {
    width: 100%;
    flex: none;
    min-width: 0;
    align-items: flex-start;
    gap: 10px;
  }
  .section-banner-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-top: 2px;
  }
  .section-banner-copy {
    flex: 1 1 auto;
    min-width: 0;
    gap: 3px;
  }
  .section-banner-kicker {
    font-size: 0.64rem;
    padding: 2px 8px;
    letter-spacing: 0.04em;
    line-height: 1.3;
    max-width: 100%;
    white-space: normal;
  }
  .section-banner-copy h2,
  .section-banner-copy h3 {
    font-size: 1rem;
    line-height: 1.34;
    margin: 2px 0 2px;
    word-break: break-word;
  }
  .section-banner-copy p {
    font-size: 0.78rem;
    line-height: 1.48;
    max-width: 100%;
  }
  .section-banner-actions {
    width: 100%;
    flex: none;
    justify-content: flex-start;
    gap: 6px;
  }
  .section-banner-actions .btn,
  .section-banner-actions a.btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    min-height: 38px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .section-banner-actions input[type="search"],
  .section-banner-actions input[type="text"],
  .section-banner-actions select {
    width: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 8px 10px;
    font-size: 16px;
  }
  .home-welcome-banner {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.portal-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.portal-block-head h3 {
  font-size: 1.22rem;
  margin-bottom: 4px;
}

.portal-block-head p {
  font-size: 0.86rem;
  color: var(--muted);
}

/* Video Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.showcase-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}

.showcase-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.showcase-media {
  position: relative;
  background: #020617;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.showcase-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.showcase-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.showcase-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #67e8f9;
}

.showcase-highlight {
  font-size: 0.82rem;
  color: var(--muted);
}

/* 40-Prompt Library */
.prompt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.prompt-filter-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.prompt-cat-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.prompt-cat-btn.active,
.prompt-cat-btn:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(0, 240, 255, 0.1);
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 14px;
}

.prompt-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.prompt-box {
  background: #060a14;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.prompt-box.video-gen {
  border-color: rgba(168, 85, 247, 0.32);
  color: #cbd5e1;
  font-size: 0.78rem;
}

.prompt-box-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.prompt-box.video-gen .prompt-box-label {
  color: #c084fc;
}

.prompt-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.prompt-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.prompt-copy-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.prompt-copy-btn {
  width: 100%;
  justify-content: center;
  padding: 7px 6px;
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt-cta-full {
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 420px) {
  .prompt-copy-btn {
    font-size: 0.7rem;
    padding: 7px 4px;
  }
}

/* Guide & E-Book */
.reader-split {
  display: grid;
  grid-template-columns: minmax(230px, 290px) 1fr;
  gap: 16px;
}

@media (max-width: 820px) {
  .reader-split {
    grid-template-columns: 1fr;
  }
}

.reader-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reader-nav-btn {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.83rem;
  transition: all 0.15s;
}

.reader-nav-btn strong {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.reader-nav-btn.active {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.09);
  color: var(--text);
}

.reader-pane {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.reader-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding-left: 20px;
}

.reader-tip {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.84rem;
  margin-top: 12px;
}

/* FAQs */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

details.faq-item {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 15px;
  transition: border-color 0.15s;
}

details.faq-item[open] {
  border-color: rgba(0, 240, 255, 0.45);
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

details.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

details.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.86rem;
  white-space: pre-line;
}

/* Legal & Compliance Center */
.legal-viewer {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  max-height: 460px;
  overflow-y: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050912;
  padding: 32px 24px 90px;
  margin-top: 32px;
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-col h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text);
}

.footer-col a,
.footer-col button.footer-link {
  display: block;
  color: var(--muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 3px 0;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.footer-col a:hover,
.footer-col button.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1360px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-brand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.22);
}

.footer-brand-sub {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 1px;
}

.footer-contact-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-col a.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.footer-col a.footer-chip:hover {
  border-color: rgba(0, 240, 255, 0.5);
  color: #ffffff;
}

.footer-col a.footer-chip.footer-chip-line {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(6, 78, 59, 0.35);
  color: #6ee7b7;
}

.footer-col a.footer-chip.footer-chip-line:hover {
  border-color: rgba(52, 211, 153, 0.78);
  color: #ecfdf5;
}

.footer-bottom-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 320px;
}

.footer-copy-line {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-copy-line a {
  color: #67e8f9;
  text-decoration: none;
  font-weight: 600;
}

.footer-copy-line a:hover {
  text-decoration: underline;
}

.footer-dev-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.footer-dev-line strong {
  color: #f8fafc;
}

.footer-dev-line a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-dev-line a:hover {
  color: #00f0ff;
}

.footer-ver-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(0, 240, 255, 0.14);
  border: 1px solid rgba(0, 240, 255, 0.42);
  color: #67e8f9;
}

/* E-Book Store & Outbound Affiliate Hub */
.commerce-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.commerce-subtab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}

.commerce-subtab-btn:hover {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.48);
}

.commerce-subtab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(59, 130, 246, 0.24));
  border-color: rgba(0, 240, 255, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.14);
}

.commerce-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-size: 0.72rem;
}

.commerce-disclosure {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.77rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 14px;
}

.commerce-search-row {
  margin-bottom: 12px;
}

.commerce-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.commerce-toolbar-row input[type="search"] {
  flex: 1 1 250px;
  min-width: 0;
  max-width: 100%;
}

.commerce-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.commerce-toolbar-controls select {
  min-width: 155px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  font-size: 0.82rem;
}

.commerce-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(250, 204, 21, 0.18);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: #fde047;
}

.commerce-pager {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.commerce-pager-info {
  font-size: 0.8rem;
  color: var(--muted);
}

.commerce-pager-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.commerce-pager-btns .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.adm-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 8px;
}

.adm-table-toolbar input[type="search"] {
  flex: 1 1 240px;
  max-width: 380px;
}

.adm-chk-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #fde047;
  cursor: pointer;
  margin-bottom: 10px;
}

.social-conn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.social-conn-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.social-job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.social-result-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.social-result-pill.is-ok {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.12);
}

.social-result-pill.is-fail {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.12);
}

.social-modal-card {
  max-width: 980px;
  width: 96%;
}

.social-modal-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.35fr);
  gap: 16px;
  align-items: start;
}

.social-cover-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
  gap: 8px;
}

.social-cover-opt {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  text-align: center;
  padding: 6px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  font-size: 0.72rem;
  cursor: pointer;
}

.social-cover-opt.active {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25);
}

.social-cover-opt img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
}

.social-cover-action {
  justify-content: center;
  min-height: 98px;
  border-style: dashed;
}

.social-targets-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-target-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.82rem;
  cursor: pointer;
}

.pod-ref-box {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.55);
}

.pod-ref-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pod-ref-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: #020617;
  flex-shrink: 0;
}

.pod-ref-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pod-ref-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.88);
  color: #fca5a5;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.pod-host-ref-grid.is-solo {
  grid-template-columns: 1fr;
}

.pod-host-ref-slot {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pod-host-ref-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.pod-host-ref-preview {
  min-height: 112px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  position: relative;
}

.pod-host-ref-preview img {
  width: 100%;
  max-height: 132px;
  object-fit: cover;
  border-radius: 6px;
}

.pod-lib-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.pod-lib-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #e2e8f0;
  cursor: pointer;
  text-align: center;
}

.pod-lib-item.active {
  border-color: #00f0ff;
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.25);
}

.pod-lib-item img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
}

.pod-lib-item span {
  font-size: 0.66rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-lib-modal-card {
  width: min(920px, 95vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.pod-lib-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: start;
}

.pod-lib-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 58vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.72);
}

.pod-lib-modal-preview {
  border-radius: 12px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  background: rgba(2, 6, 23, 0.85);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-lib-modal-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  background: #020617;
}

@media (max-width: 640px) {
  .pod-lib-modal-grid {
    grid-template-columns: 1fr;
  }
  .pod-lib-modal-list {
    max-height: 36vh;
  }
  .pod-lib-modal-preview img {
    max-height: 200px;
  }
}

@media (max-width: 640px) {
  .pod-host-ref-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .social-modal-grid {
    grid-template-columns: 1fr;
  }
  .commerce-toolbar-controls {
    width: 100%;
  }
  .commerce-toolbar-controls select,
  .commerce-toolbar-controls .prompt-cat-btn {
    flex: 1 1 auto;
  }
  .commerce-pager {
    flex-direction: column;
    align-items: stretch;
  }
  .commerce-pager-btns {
    justify-content: center;
  }
}

.commerce-filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-copy-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
}

.ai-copy-panel {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.ai-copy-panel.hidden {
  display: none;
}

.commerce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
  gap: 16px;
}

.commerce-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.commerce-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 240, 255, 0.42);
}

.commerce-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.commerce-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.commerce-top-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(2, 6, 23, 0.84);
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #67e8f9;
  backdrop-filter: blur(6px);
}

.commerce-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.commerce-body h4 {
  font-size: 0.98rem;
  line-height: 1.38;
  color: #f8fafc;
}

.commerce-sub {
  font-size: 0.8rem;
  color: #a5b4fc;
  line-height: 1.45;
  margin: 0;
}

.commerce-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.commerce-preview {
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.76rem;
  color: #cbd5e1;
}

.commerce-preview summary {
  cursor: pointer;
  font-weight: 700;
  color: #67e8f9;
}

.commerce-preview p {
  margin-top: 6px;
  line-height: 1.55;
  color: #94a3b8;
}

.commerce-price-row {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.commerce-price-thb {
  font-size: 1.12rem;
  font-weight: 800;
  color: #34d399;
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.commerce-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ebook-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ebook-cart-modal.hidden {
  display: none;
}

.ebook-cart-card {
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  background: #0d1527;
  border: 1px solid rgba(0, 240, 255, 0.42);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ebook-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 23, 39, 0.92);
}

.ebook-cart-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ebook-cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ebook-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.ebook-cart-item img {
  width: 68px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.ebook-cart-item-info {
  flex: 1 1 auto;
  min-width: 0;
}

.ebook-cart-item-info strong {
  display: block;
  font-size: 0.88rem;
  color: #f8fafc;
  line-height: 1.35;
}

.ebook-cart-item-info small {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

.ebook-cart-summary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ebook-cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.ebook-cart-summary-total {
  font-size: 1.04rem;
  font-weight: 800;
  color: #34d399;
}

.ebook-cart-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 640px) {
  .ebook-cart-modal {
    padding: 10px;
  }
  .ebook-cart-header,
  .ebook-cart-body {
    padding: 12px;
  }
  .ebook-cart-item {
    gap: 9px;
    padding: 9px;
  }
  .ebook-cart-item img {
    width: 56px;
    height: 38px;
  }
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(12, 18, 32, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.38);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cookie-modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cookie-cat-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

#flashArea {
  position: sticky;
  top: 72px;
  z-index: 60;
}

#mmDialogModal {
  z-index: 120;
}

.resume-banner {
  border-color: rgba(0, 240, 255, 0.45);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(59, 130, 246, 0.06));
}

/* Global Hover Large Image Preview */
#mmHoverPreview {
  position: fixed;
  z-index: 140;
  pointer-events: none;
  max-width: 380px;
  background: rgba(8, 13, 25, 0.97);
  border: 1px solid rgba(0, 240, 255, 0.55);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
}

#mmHoverPreview img {
  display: block;
  max-width: 360px;
  max-height: 360px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #020617;
}

#mmHoverPreview .hover-preview-caption {
  font-size: 0.78rem;
  color: #e2e8f0;
  margin-top: 6px;
  word-break: break-word;
}

/* Interactive Project Image Picker & Project-First Shared Picker */
.picker-img-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.picker-img-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.15s, background 0.15s;
}

.picker-img-card:hover {
  border-color: rgba(0, 240, 255, 0.5);
}

.picker-img-card.selected {
  border-color: rgba(0, 240, 255, 0.85);
  background: rgba(0, 240, 255, 0.08);
}

.picker-img-card img {
  height: 88px;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  display: block;
  background: #020617;
}

.picker-img-name {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shared-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shared-file-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #020617;
  cursor: zoom-in;
}

.shared-file-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* Pro Mode Live Activity & Progress Indicators */
.pro-live-banner {
  border-color: rgba(0, 240, 255, 0.55);
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(59, 130, 246, 0.08));
}

.scene-item.is-busy {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.45), 0 0 18px rgba(0, 240, 255, 0.12);
}

.scene-live-status {
  margin: 6px 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scene-live-status.busy {
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.42);
  color: #cffafe;
}

.scene-live-status.ok {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #a7f3d0;
}

.scene-live-status.err {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.48);
  color: #fecaca;
}

.pro-busy-bar {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
  position: relative;
}

.pro-busy-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00f0ff, #3b82f6, #8b5cf6);
  animation: mmIndeterminateBar 1.35s ease-in-out infinite;
}

.btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-top-color: #00f0ff;
  vertical-align: -2px;
  margin-right: 5px;
  animation: mmBtnSpin 0.8s linear infinite;
}

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

@keyframes mmIndeterminateBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

/* Pro Scene Transition / BGM / SFX Bar */
.pro-audio-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.audio-preview-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.audio-preview-row select {
  flex: 1;
  min-width: 0;
}

/* Social Share Modal & Platform Grid */
.share-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, border-color 0.15s, background 0.15s;
}

.share-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.share-btn.fb { border-color: rgba(59, 130, 246, 0.55); background: rgba(24, 119, 242, 0.16); color: #bfdbfe; }
.share-btn.line { border-color: rgba(16, 185, 129, 0.55); background: rgba(6, 199, 85, 0.16); color: #a7f3d0; }
.share-btn.x { border-color: rgba(148, 163, 184, 0.45); background: rgba(15, 23, 42, 0.9); color: #f8fafc; }
.share-btn.tt { border-color: rgba(244, 63, 94, 0.55); background: rgba(244, 63, 94, 0.15); color: #fecdd3; }
.share-btn.yt { border-color: rgba(239, 68, 68, 0.6); background: rgba(220, 38, 38, 0.16); color: #fca5a5; }
.share-btn.ig { border-color: rgba(236, 72, 153, 0.55); background: rgba(219, 39, 119, 0.16); color: #fbcfe8; }
.share-btn.th { border-color: rgba(168, 85, 247, 0.5); background: rgba(147, 51, 234, 0.15); color: #e9d5ff; }
.share-btn.wa { border-color: rgba(34, 197, 94, 0.5); background: rgba(22, 163, 74, 0.15); color: #bbf7d0; }
.share-btn.tg { border-color: rgba(56, 189, 248, 0.55); background: rgba(14, 165, 233, 0.15); color: #bae6fd; }

/* Pro Mode Pre-Render Media Summary & Per-Scene Actions */
.pro-media-summary-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.82rem;
}

.pro-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border);
  color: var(--text);
}

.pro-summary-chip.img {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.12);
  color: #a5f3fc;
}

.pro-summary-chip.vid {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

.pro-summary-chip.empty {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.14);
  color: #fde68a;
}

.pro-summary-chip.note {
  color: var(--muted);
  font-weight: 500;
}

.scene-media-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 6px 0 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

/* Admin AI Credit & Spend Dashboard */
.ai-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 14px;
}

.ai-wallet-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-wallet-card.level-ok { border-color: rgba(16, 185, 129, 0.5); }
.ai-wallet-card.level-warn { border-color: rgba(245, 158, 11, 0.55); }
.ai-wallet-card.level-critical { border-color: rgba(239, 68, 68, 0.65); }

.ai-balance-big {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ai-meter-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.ai-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.ai-meter-fill.ok { background: linear-gradient(90deg, #10b981, #00f0ff); }
.ai-meter-fill.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ai-meter-fill.critical { background: linear-gradient(90deg, #ef4444, #f97316); }

.ai-usage-table {
  max-height: 180px;
  overflow-y: auto;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--panel2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Homepage CMS Custom Sections, Cards & User Community Showcase */
.cms-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.cms-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.cms-banner-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cms-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cms-card img,
.cms-card video {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  background: #020617;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.user-showcase-toolbar {
  margin-bottom: 10px;
}

.user-showcase-count {
  color: #fcd34d;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.user-showcase-cat-btn.is-empty:not(.active) {
  opacity: 0.68;
}

.user-showcase-cat-btn.active,
.user-showcase-cat-btn:hover {
  border-color: rgba(245, 158, 11, 0.72);
  background: rgba(245, 158, 11, 0.16);
  color: #fef3c7;
}

.user-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.user-showcase-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.user-showcase-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  background: #020617;
  display: block;
}

.user-showcase-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Admin Hub Sub-tabs & Moderation Cards */
.admin-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.admin-subtab-btn {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.admin-subtab-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--accent);
  color: var(--text);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
}

.mod-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-card video {
  width: 100%;
  max-height: 210px;
  border-radius: 8px;
  background: #020617;
}

/* Homepage Top Promotional Banner Carousel */
.promo-slider-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: #040814;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.promo-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.promo-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.promo-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 410px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #040814;
}

.promo-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--slide-accent, #00f0ff);
  z-index: 4;
}

.promo-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1.04);
  transition: transform 5.2s ease-out;
  pointer-events: none;
}

.promo-slide.is-active .promo-slide-bg {
  transform: scale(1);
}

.promo-slide-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(4, 8, 20, 0.96) 0%,
    rgba(4, 8, 20, 0.86) 44%,
    rgba(4, 8, 20, 0.34) 70%,
    rgba(4, 8, 20, 0.14) 100%
  );
}

.promo-slide-content {
  position: relative;
  z-index: 2;
  width: min(675px, 92%);
  padding: 36px 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.promo-slide-top-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.promo-slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--slide-accent, #00f0ff);
  color: #f8fafc;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.promo-slide-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.promo-slide-content h2 {
  font-size: clamp(1.36rem, 2.65vw, 2.04rem);
  line-height: 1.26;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 4px 20px rgba(2, 6, 23, 0.85);
}

.promo-slide-sub {
  font-size: 0.96rem;
  line-height: 1.56;
  color: #e2e8f0;
  max-width: 590px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(2, 6, 23, 0.75);
}

.promo-slide-highlight {
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #a5f3fc;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}

.promo-slide-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.promo-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(2, 6, 23, 0.68);
  color: #f8fafc;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

.promo-nav-btn:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.34);
  transform: translateY(-50%) scale(1.06);
}

.promo-nav-btn.prev { left: 12px; }
.promo-nav-btn.next { right: 12px; }

.promo-slider-footer {
  position: relative;
  background: rgba(6, 10, 22, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.promo-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.promo-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f0ff, #a855f7, #f59e0b);
  transition: width 0.35s ease;
}

.promo-footer-hint {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.promo-dots {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.promo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(148, 163, 184, 0.3);
  cursor: pointer;
  padding: 0;
  transition: width 0.22s ease, background 0.2s, border-color 0.2s;
}

.promo-dot.active {
  width: 28px;
  background: var(--accent);
  border-color: var(--accent);
}

.adm-banner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.adm-banner-thumb {
  width: 148px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #020617;
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .promo-slide {
    min-height: 360px;
  }
  .promo-slide-scrim {
    background: linear-gradient(
      180deg,
      rgba(4, 8, 20, 0.76) 0%,
      rgba(4, 8, 20, 0.92) 55%,
      rgba(4, 8, 20, 0.96) 100%
    );
  }
  .promo-slide-content {
    width: 100%;
    padding: 24px 44px 28px;
    gap: 10px;
  }
  .promo-slide-sub {
    font-size: 0.88rem;
  }
  .promo-nav-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }
  .promo-nav-btn.prev { left: 6px; }
  .promo-nav-btn.next { right: 6px; }
}

/* Admin Homepage Visual Simulator & Live Preview */
.sim-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid rgba(56, 189, 248, 0.28);
  margin-bottom: 10px;
}

.sim-split-grid {
  display: grid;
  grid-template-columns: minmax(380px, 1.05fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: start;
}

.sim-split-grid.mode-controls {
  grid-template-columns: 1fr;
}
.sim-split-grid.mode-controls #admSimPreviewPane {
  display: none;
}

.sim-split-grid.mode-preview {
  grid-template-columns: 1fr;
}
.sim-split-grid.mode-preview #admSimControlsPane {
  display: none;
}

@media (max-width: 1120px) {
  .sim-split-grid {
    grid-template-columns: 1fr;
  }
}

.sim-section-card {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sim-accent, #00f0ff);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.16s, border-color 0.16s;
}

.sim-section-card.is-section-hidden {
  opacity: 0.72;
  border-style: dashed;
}

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

.sim-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 3px;
}

.sim-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.56);
  transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}

.sim-item-row.is-hidden {
  opacity: 0.52;
  border-style: dashed;
  background: rgba(15, 23, 42, 0.35);
}

.sim-item-thumb {
  width: 54px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #020617;
  flex-shrink: 0;
}

.sim-subprompt-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: 16px;
  padding-left: 10px;
  border-left: 2px solid rgba(168, 85, 247, 0.38);
}

.sim-video-preview-box {
  margin: 4px 0 8px;
  padding: 8px;
  background: #030712;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  justify-content: center;
}

.sim-video-preview-box video {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
}

.sim-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.sim-switch-knob {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.sim-switch.on {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #6ee7b7;
}
.sim-switch.on .sim-switch-knob {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.sim-switch.off {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}
.sim-switch.off .sim-switch-knob {
  background: #ef4444;
}

.sim-preview-frame {
  position: sticky;
  top: 78px;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: #040814;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.65);
}

@media (max-width: 1120px) {
  .sim-preview-frame {
    position: static;
  }
}

.sim-preview-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: #0b1224;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.sim-iframe-stage {
  background: #020617;
  padding: 8px;
  display: flex;
  justify-content: center;
  overflow: auto;
}

.sim-iframe-stage iframe {
  height: 75vh;
  min-height: 540px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  background: #070b14;
  transition: width 0.22s ease;
}

.sim-iframe-stage.vp-desktop iframe { width: 100%; }
.sim-iframe-stage.vp-tablet iframe { width: 768px; max-width: 100%; }
.sim-iframe-stage.vp-mobile iframe { width: 390px; max-width: 100%; }

/* Developer API Keys Console */
.dev-secret-reveal {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.55);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.dev-scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dev-scope-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #070d1b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}

.dev-scope-item input {
  width: auto;
  margin-top: 3px;
}

.dev-scope-item strong {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
}

.dev-scope-item code {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 2px 0;
}

.dev-scope-item small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.35;
}

.dev-key-card {
  background: #080e1d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-code-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.dev-code-box {
  background: #030712;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.79rem;
  color: #a5f3fc;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  max-height: 320px;
}

.dev-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.dev-log-table th,
.dev-log-table td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.dev-log-table th {
  color: var(--muted);
  font-weight: 600;
}

/* AI Video Cover / Thumbnail Studio */
.thumb-aspect-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.thumb-aspect-btn {
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}

.thumb-aspect-btn:hover {
  border-color: #38bdf8;
}

.thumb-aspect-btn.active {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.14);
  color: #ffffff;
}

.thumb-style-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.thumb-style-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.thumb-style-pill:hover {
  border-color: #38bdf8;
}

.thumb-style-pill.active {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.16);
  color: #ffffff;
}

.thumb-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px;
}

.thumb-source-tile {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: #060b18;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.thumb-source-tile:hover {
  border-color: rgba(56, 189, 248, 0.7);
}

.thumb-source-tile.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.28);
}

.thumb-source-tile img {
  width: 100%;
  height: 76px;
  object-fit: cover;
  display: block;
}

.thumb-source-placeholder {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: var(--muted);
  background: #0b1224;
}

.thumb-source-meta {
  padding: 5px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.thumb-source-meta strong {
  font-size: 0.74rem;
}

.thumb-source-meta small {
  font-size: 0.68rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thumb-extract-mini {
  margin: 0 6px 6px;
  padding: 4px 6px;
  font-size: 0.7rem;
}

.thumb-video-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #060b18;
}

.thumb-video-row.selected {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.08);
}

.thumb-refs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
  background: #040814;
  border: 1px dashed rgba(148, 163, 184, 0.25);
}

.thumb-ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.45);
  font-size: 0.74rem;
}

.thumb-ref-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.thumb-ref-chip button {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-weight: 700;
  padding: 0 2px;
}

.thumb-result-preview {
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  justify-content: center;
}

.thumb-result-preview img {
  max-width: 100%;
  max-height: 430px;
  border-radius: 8px;
  object-fit: contain;
}

.thumb-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}

.thumb-history-card {
  background: #060b18;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.thumb-history-media {
  display: block;
  background: #020617;
}

.thumb-history-media img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
}

@media (max-width: 560px) {
  .thumb-aspect-row {
    grid-template-columns: 1fr;
  }
}

/* AI Podcast Studio */
.pod-format-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.pod-format-btn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #060b18;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pod-format-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pod-format-btn.active {
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.14);
  color: #fff;
}

.pod-host-card {
  background: #060b18;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.pod-gender-btns {
  display: inline-flex;
  gap: 6px;
}

.pod-gender-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.pod-gender-btn.active {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.22);
  color: #f3e8ff;
}

.pod-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pod-effect-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #060b18;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.12s, border-color 0.15s, background 0.15s, color 0.15s;
}

.pod-effect-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.pod-effect-chip.active {
  border-color: #38bdf8;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(168, 85, 247, 0.22));
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.28);
}

.pod-preview-thumb {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.pod-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-radius: 10px;
  background: #060b18;
  border: 1px solid var(--border);
}

/* Pro Mode Per-Scene Voiceover & Scene Management */
.pro-vo-box {
  background: rgba(6, 11, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 8px;
}

.pro-vo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.pro-vo-audio {
  width: 100%;
  height: 36px;
  margin-top: 8px;
  border-radius: 8px;
}

.pro-vo-warn {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-size: 0.78rem;
  line-height: 1.45;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pro-vo-warn.ok {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.pro-scene-manage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.2);
}

/* Feature Updates Grid (What's New 2026) */
.feature-updates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}

.feature-update-card {
  background: var(--panel2);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-top: 3px solid var(--feat-accent, var(--accent));
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.feature-update-card:hover {
  transform: translateY(-2px);
  border-color: var(--feat-accent, var(--accent));
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
}

.feature-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
  overflow: hidden;
  cursor: zoom-in;
  border-bottom: 1px solid var(--border);
}

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

.feature-card-media:hover img {
  transform: scale(1.03);
}

.feature-card-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.45);
  pointer-events: none;
}

.feature-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.feature-card-bullets {
  margin: 2px 0 4px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.81rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.feature-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

/* Illustrated Interactive Guide & E-Book Reader */
.reader-visual-card {
  position: relative;
  margin: 12px 0 14px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: #020617;
  cursor: zoom-in;
}

.reader-visual-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: cover;
  background: #020617;
}

.reader-visual-caption {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(4, 9, 20, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reader-highlights {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
}

.reader-highlight-pill {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.reader-steps-rich {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 14px 0;
}

.reader-step-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: rgba(6, 11, 24, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 10px 12px;
}

.reader-step-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.reader-nav-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.ebook-cover-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(46, 16, 101, 0.45));
  border: 1px solid rgba(99, 102, 241, 0.42);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ebook-cover-strip img {
  width: 150px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  cursor: zoom-in;
  flex-shrink: 0;
}

.ebook-takeaway {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.36);
  color: #cffafe;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 0.86rem;
  margin-top: 12px;
}

/* Visual Illustration Lightbox Modal */
.portal-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 160;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.portal-lightbox-card {
  max-width: 1080px;
  width: 100%;
  background: #0b1222;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.78);
  display: flex;
  flex-direction: column;
}

.portal-lightbox-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  font-size: 0.92rem;
}

.portal-lightbox-card img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  background: #020617;
}

/* ======================== Mobile-First Responsive Upgrade ======================== */

.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
}

.table-scroll-wrap table {
  min-width: 520px;
}

.header-top-row,
.header-drawer {
  display: contents;
}

.mobile-menu-btn {
  display: none;
}

@media (max-width: 860px) {
  header {
    padding: 10px 14px;
    gap: 8px;
  }

  .header-top-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 13px;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(12, 18, 32, 0.92);
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
  }

  .header-drawer {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    max-height: 76vh;
    overflow-y: auto;
  }

  .header-drawer.is-open {
    display: flex;
  }

  .header-drawer .portal-header-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .header-drawer .portal-nav-link {
    min-height: 40px;
    padding: 8px 10px;
    text-align: left;
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
  }

  .header-drawer .top-stats {
    width: 100%;
    gap: 7px;
  }

  .reader-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .reader-nav-btn {
    flex: 0 0 210px;
  }
}

@media (max-width: 768px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 10px;
    gap: 6px;
    scrollbar-width: thin;
  }

  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 0.84rem;
    scroll-snap-align: start;
  }

  .prompt-filter-row,
  #projectHubFilters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .prompt-filter-row > *,
  #projectHubFilters > * {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .cookie-modal-card,
  .portal-lightbox-card {
    max-height: 90vh;
    overflow-y: auto;
  }

  .cookie-banner {
    padding: 12px 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  table.dev-log-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .portal-section {
    gap: 16px;
  }

  .shell {
    padding: 10px 10px 48px;
  }

  .panel,
  .portal-block {
    padding: 13px;
    border-radius: 12px;
  }

  .section-banner {
    margin: -13px -13px 13px -13px;
    padding: 13px;
  }

  .section-banner.panel-banner {
    margin: -13px -13px 11px -13px;
    padding: 11px 13px;
  }

  .section-banner-main {
    width: 100%;
    flex: none;
    min-width: 0;
  }

  .alert {
    font-size: 0.78rem;
    padding: 9px 11px;
    line-height: 1.45;
  }

  .portal-hero {
    padding: 16px 13px;
    border-radius: 14px;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 4px 10px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .portal-hero h2 {
    font-size: 1.24rem;
    line-height: 1.28;
    margin-bottom: 8px;
  }

  .hero-sub {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  .hero-actions {
    gap: 7px;
    margin-bottom: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    min-height: 38px;
    line-height: 1.3;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-stat-card {
    padding: 9px 10px;
  }

  .hero-stat-card strong {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .hero-stat-card span {
    font-size: 0.7rem;
    line-height: 1.35;
    display: block;
    margin-top: 2px;
  }

  .stepper {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand h1 {
    font-size: 0.96rem;
  }

  .brand p {
    font-size: 0.7rem;
  }

  #portalUserShowcaseSearch,
  #portalPromptSearch,
  #portalFaqSearch,
  #admAlertWebhookUrl,
  #admSimSearch,
  #libraryProjectFilter,
  #activeProjectSwitcher {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100%;
  }

  .pro-vo-bar,
  .pro-scene-manage-bar,
  .project-bar {
    gap: 8px;
  }

  .pro-vo-bar .btn,
  .pro-scene-manage-bar .btn,
  .project-bar .btn {
    min-height: 38px;
  }

  .ebook-cover-strip img {
    width: 100%;
    max-width: 100%;
  }

  .promo-slide {
    min-height: 265px;
  }

  .promo-slide-content {
    padding: 16px 36px 18px;
    gap: 7px;
  }

  .promo-slide-badge {
    font-size: 0.68rem;
    padding: 3px 9px;
  }

  .promo-slide-content h2 {
    font-size: 1.06rem;
    line-height: 1.3;
  }

  .promo-slide-sub {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .promo-slide-highlight {
    font-size: 0.72rem;
    padding: 6px 9px;
    line-height: 1.4;
  }

  .promo-slide-actions .btn {
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    min-height: 38px;
  }

  .promo-footer-hint {
    font-size: 0.72rem;
  }

  .feature-card-body {
    padding: 12px;
    gap: 7px;
  }

  .feature-card-body h4 {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .feature-card-body p {
    font-size: 0.78rem;
    line-height: 1.48;
  }

  .feature-card-bullets {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .showcase-body {
    padding: 12px;
    gap: 6px;
  }

  .showcase-body h4 {
    font-size: 0.92rem;
  }

  .showcase-body p {
    font-size: 0.78rem;
  }

  .prompt-card {
    padding: 12px;
    gap: 7px;
  }

  .prompt-card h4 {
    font-size: 0.9rem;
  }

  .reader-pane {
    padding: 13px;
  }

  .reader-nav-btn {
    flex: 0 0 180px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .reader-nav-btn strong {
    font-size: 0.79rem;
  }

  .faq-item summary {
    font-size: 0.84rem;
    line-height: 1.4;
    padding: 11px 12px;
  }

  .faq-answer {
    font-size: 0.8rem;
    line-height: 1.55;
    padding: 0 12px 12px;
  }

  .portal-block-head h3 {
    font-size: 1.02rem;
  }

  .portal-block-head p {
    font-size: 0.78rem;
  }

  .site-footer {
    padding: 22px 12px 76px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom-meta {
    flex: none;
    width: 100%;
  }

  .footer-dev-line {
    gap: 5px 10px;
    font-size: 0.74rem;
  }
}

/* ======================== Podcast Live Rendering Stage ======================== */

.pod-live-stage {
  position: relative;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  max-height: 310px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  background:
    radial-gradient(circle at 20% 25%, rgba(6, 182, 212, 0.24), transparent 52%),
    radial-gradient(circle at 82% 75%, rgba(168, 85, 247, 0.26), transparent 55%),
    linear-gradient(135deg, #04091a 0%, #0b1631 55%, #160d32 100%);
  background-size: 160% 160%;
  animation: mmAuroraDrift 8s ease-in-out infinite, podLiveBorderGlow 2.8s ease-in-out infinite;
  margin-bottom: 12px;
}

.pod-live-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.65s ease;
  animation: podLiveKenBurns 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.pod-live-stage.has-hero .pod-live-hero-img {
  opacity: 0.92;
}

.pod-live-ambient {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.pod-live-stage.has-hero .pod-live-ambient .pod-live-mic-wrap {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pod-live-mic-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.pod-live-mic-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(56, 189, 248, 0.55);
  animation: podMicPulseRing 2s ease-out infinite;
}

.pod-live-mic-ring.ring-2 {
  border-color: rgba(168, 85, 247, 0.48);
  animation-delay: 0.9s;
}

.pod-live-mic-core {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  border: 1.5px solid rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
}

.pod-live-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pod-live-particles span {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(56, 189, 248, 0.45) 60%, transparent 100%);
  animation: podFloatParticle 6s ease-in-out infinite;
}

.pod-live-hud-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pod-onair-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.pod-elapsed-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fde68a;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 191, 36, 0.45);
}

.pod-live-hud-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 36px 14px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.94) 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pod-live-eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 30px;
}

.pod-live-eq span {
  display: block;
  width: 5px;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(180deg, #22d3ee 0%, #a855f7 65%, #f472b6 100%);
  animation: podEqBounce 1.15s ease-in-out infinite;
  opacity: 0.92;
}

.pod-live-stage-caption {
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #f8fafc;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
}

.pod-live-sub-caption {
  text-align: center;
  font-size: 0.75rem;
  color: #a5f3fc;
}

@keyframes podLiveKenBurns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes podLiveBorderGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2), 0 12px 30px rgba(2, 6, 23, 0.55); }
  50% { box-shadow: 0 0 18px rgba(56, 189, 248, 0.34), 0 12px 34px rgba(139, 92, 246, 0.25); }
}

@keyframes podMicPulseRing {
  0% { transform: scale(0.76); opacity: 0.9; }
  100% { transform: scale(1.48); opacity: 0; }
}

@keyframes podFloatParticle {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.25; }
  50% { transform: translate3d(8px, -18px, 0); opacity: 0.85; }
}

@keyframes podEqBounce {
  0%, 100% { height: 7px; opacity: 0.52; }
  50% { height: 28px; opacity: 1; }
}

@media (max-width: 640px) {
  .pod-live-stage {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }
  .pod-live-hud-top {
    top: 8px;
    left: 8px;
    right: 8px;
  }
  .pod-onair-pill,
  .pod-elapsed-pill {
    font-size: 0.7rem;
    padding: 4px 9px;
  }
  .pod-live-eq {
    height: 24px;
    gap: 4px;
  }
  .pod-live-eq span {
    width: 4px;
  }
  .pod-live-stage-caption {
    font-size: 0.78rem;
  }
}

/* ======================== Social Login / Sign Up ======================== */

.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.24);
}

.social-auth-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-social-auth {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.28);
  transition: transform 0.14s ease, filter 0.14s ease, border-color 0.14s ease;
}

.btn-social-auth:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-social-google {
  background: #ffffff;
  color: #1f2937;
  border-color: #e2e8f0;
}

.btn-social-facebook {
  background: #1877f2;
  color: #ffffff;
  border-color: rgba(24, 119, 242, 0.9);
}

.social-auth-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
  color: inherit;
  opacity: 0.85;
}

.btn-social-facebook .social-auth-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* ======================== Admin Webmail Hub ======================== */

.wm-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--border);
}

.wm-layout {
  display: grid;
  grid-template-columns: 210px minmax(260px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.wm-folders {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.wm-folder-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  font-size: 0.8rem;
  cursor: pointer;
}

.wm-folder-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.wm-folder-btn.active {
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(0, 240, 255, 0.55);
  color: #67e8f9;
  font-weight: 700;
}

.wm-list-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  max-height: 680px;
  overflow-y: auto;
}

.wm-msg-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.wm-msg-item:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.wm-msg-item.unread {
  border-left: 3px solid #22d3ee;
  background: rgba(14, 116, 144, 0.18);
}

.wm-msg-item.active {
  border-color: rgba(0, 240, 255, 0.68);
  background: rgba(6, 182, 212, 0.2);
}

.wm-msg-meta {
  flex: 1;
  min-width: 0;
}

.wm-msg-subj {
  font-size: 0.83rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-msg-item.unread .wm-msg-subj {
  font-weight: 800;
}

.wm-msg-from {
  font-size: 0.74rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wm-reader {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wm-iframe {
  width: 100%;
  min-height: 400px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.wm-text-body {
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 440px;
  overflow-y: auto;
}

.wm-att-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wm-att-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(15, 23, 42, 0.7);
  color: #67e8f9;
  font-size: 0.76rem;
  text-decoration: none;
}

@media (max-width: 960px) {
  .wm-layout {
    grid-template-columns: 1fr;
  }
  .wm-folders {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .wm-folder-btn {
    width: auto;
    flex: 1 1 150px;
  }
  .wm-list-pane {
    max-height: 360px;
  }
  .wm-reader {
    min-height: 360px;
  }
}
