/* =====================================================================
   Express — AI Video Creator Studio Stylesheet
   Reference Theme: Deep Space Navy + Neon Cyan / Indigo / Violet / Pink
   ===================================================================== */
:root {
  --c-primary: #3b82f6;
  --c-secondary: #8b5cf6;
  --c-accent: #ec4899;
  --c-cyan: #22d3ee;
  --c-bg: #060a1c;
  --c-surface: #0d1330;
  --c-surface-2: #121a40;
  --c-border: rgba(148, 163, 184, 0.16);
  --c-border-hi: rgba(99, 102, 241, 0.55);
  --c-text: #f1f5f9;
  --c-muted: #94a3b8;
  --radius: 14px;
  --grad-main: linear-gradient(95deg, #06b6d4 0%, #3b82f6 42%, #8b5cf6 74%, #ec4899 100%);
  --grad-btn: linear-gradient(95deg, #22d3ee 0%, #6366f1 55%, #d946ef 100%);
  --grad-top: linear-gradient(90deg, #1e1b4b 0%, #4c1d95 50%, #312e81 100%);
  --shadow-card: 0 18px 46px rgba(2, 6, 23, 0.55);
  --shadow-glow: 0 0 28px rgba(99, 102, 241, 0.32);
}

[data-theme="light"] {
  --c-bg: #f1f5fb;
  --c-surface: #ffffff;
  --c-surface-2: #eef2ff;
  --c-border: rgba(15, 23, 42, 0.11);
  --c-border-hi: rgba(59, 130, 246, 0.5);
  --c-text: #0f172a;
  --c-muted: #475569;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px rgba(59, 130, 246, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 65% 45% at 15% 10%, rgba(59, 130, 246, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 40% at 85% 12%, rgba(139, 92, 246, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 35% at 50% 85%, rgba(236, 72, 153, 0.08), transparent 70%);
  color: var(--c-text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 20px; }
.section_gap { margin-top: 34px; }
.section_gap_sm { margin-bottom: 20px; }
.page_section { padding: 34px 0 56px; }
.ico { width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.muted_lbl { font-size: 0.82rem; color: var(--c-muted); }

/* Announcement bar */
.announce_bar {
  background: var(--grad-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: #e2e8f0;
}
.announce_inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 36px; padding: 6px 20px;
}
.announce_text { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.announce_spark { color: #fbbf24; display: inline-flex; }
.announce_links { display: flex; align-items: center; gap: 16px; opacity: 0.92; }
.announce_links a:hover { color: #fff; text-decoration: underline; }
.announce_socials { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; }
.announce_socials .ico { width: 14px; height: 14px; }

/* Header & Navbar */
.site_header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 10, 28, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}
[data-theme="light"] .site_header { background: rgba(255, 255, 255, 0.88); }
.nav_wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand_mark { display: inline-flex; align-items: center; justify-content: center; filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.45)); }
.brand_text { display: flex; flex-direction: column; line-height: 1.1; }
.brand_text strong { font-size: 1.28rem; font-weight: 800; letter-spacing: -0.02em; }
.brand_dot { color: var(--c-accent); }
.brand_text small { font-size: 0.68rem; color: var(--c-muted); letter-spacing: 0.02em; }

.main_nav { display: flex; align-items: center; gap: 6px; }
.main_nav a {
  padding: 8px 15px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; color: var(--c-muted);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main_nav a:hover { color: var(--c-text); background: rgba(99, 102, 241, 0.12); }
.main_nav a.is_active {
  color: #fff; background: rgba(59, 130, 246, 0.24);
  border: 1px solid rgba(99, 102, 241, 0.48); box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
}

.nav_actions { display: flex; align-items: center; gap: 8px; }
.pill_btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(148, 163, 184, 0.1); border: 1px solid var(--c-border);
  font-size: 0.84rem; font-weight: 600;
}
.pill_btn:hover { border-color: var(--c-border-hi); }
.icon_btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
  background: rgba(148, 163, 184, 0.1); border: 1px solid var(--c-border);
}
.icon_btn:hover { border-color: var(--c-border-hi); color: var(--c-cyan); }
[data-theme="dark"] .ico_moon, [data-theme="light"] .ico_sun { display: none; }
.nav_burger { display: none; }

.avatar_dot {
  width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-btn); color: #fff; font-size: 0.75rem; font-weight: 700;
}

/* Dropdowns */
.dropdown { position: relative; }
.dropdown_menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 195px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 12px;
  padding: 6px; box-shadow: var(--shadow-card); display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.dropdown_menu.is_open { display: flex; }
.dropdown_menu a, .dropdown_menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  padding: 9px 11px; border-radius: 8px; border: 0; background: transparent;
  cursor: pointer; font-size: 0.85rem; color: var(--c-text);
}
.dropdown_menu a:hover, .dropdown_menu button:hover, .dropdown_menu a.is_active { background: rgba(99, 102, 241, 0.16); }
.dropdown_menu .menu_danger { color: #f87171; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn_sm { padding: 7px 14px; font-size: 0.84rem; }
.btn_xs { padding: 5px 10px; font-size: 0.77rem; border-radius: 8px; }
.btn_lg { padding: 13px 26px; font-size: 0.98rem; }
.btn_block { width: 100%; }
.btn_gradient { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35); }
.btn_gradient:hover { box-shadow: 0 10px 30px rgba(217, 70, 239, 0.45); }
.btn_outline { background: rgba(15, 23, 42, 0.35); border-color: var(--c-border); color: var(--c-text); }
[data-theme="light"] .btn_outline { background: #fff; }
.btn_outline:hover { border-color: var(--c-border-hi); }
.btn_white { background: #fff; color: #1e1b4b; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22); }
.btn_danger { background: rgba(239, 68, 68, 0.16); color: #f87171; border-color: rgba(239, 68, 68, 0.35); }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(19, 27, 63, 0.88), rgba(11, 16, 40, 0.92));
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
[data-theme="light"] .card { background: var(--c-surface); }

/* Flash banners */
.flash_stack { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 500;
  border: 1px solid transparent;
}
.flash_success { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.4); color: #6ee7b7; }
.flash_danger  { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.flash_warning { background: rgba(245, 158, 11, 0.16); border-color: rgba(245, 158, 11, 0.4); color: #fcd34d; }
[data-theme="light"] .flash_success { color: #065f46; }
[data-theme="light"] .flash_danger  { color: #991b1b; }
[data-theme="light"] .flash_warning { color: #92400e; }
.flash_close { background: none; border: 0; font-size: 1.25rem; cursor: pointer; opacity: 0.8; }

/* HERO SECTION */
.hero_section { padding: 34px 0 24px; position: relative; }
.hero_grid { display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 28px; align-items: center; }
.hero_badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.34); color: var(--c-cyan);
  margin-bottom: 14px;
}
.hero_title { font-size: clamp(2.1rem, 4.1vw, 3.25rem); font-weight: 800; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.025em; }
.text_grad { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero_sub { color: var(--c-muted); font-size: 0.98rem; max-width: 540px; margin: 0 0 20px; }

.hero_feats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.hero_feat { display: flex; align-items: center; gap: 10px; }
.hero_feat strong { display: block; font-size: 0.86rem; line-height: 1.2; }
.hero_feat small { display: block; font-size: 0.72rem; color: var(--c-muted); }

.feat_ico, .stat_ico, .metric_ico, .badge_icon, .hm_ico, .model_ico {
  width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3);
}
.ico_purple { background: rgba(139, 92, 246, 0.2); color: #c084fc; border-color: rgba(139, 92, 246, 0.35); }
.ico_cyan   { background: rgba(34, 211, 238, 0.18); color: #22d3ee; border-color: rgba(34, 211, 238, 0.35); }
.ico_pink   { background: rgba(236, 72, 153, 0.18); color: #f472b6; border-color: rgba(236, 72, 153, 0.35); }
.ico_amber  { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.ico_green  { background: rgba(16, 185, 129, 0.18); color: #34d399; border-color: rgba(16, 185, 129, 0.35); }
.ico_sky    { background: rgba(14, 165, 233, 0.18); color: #38bdf8; border-color: rgba(14, 165, 233, 0.35); }
.ico_blue   { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border-color: rgba(59, 130, 246, 0.35); }

.hero_cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero_note { font-size: 0.8rem; color: var(--c-muted); margin: 0; }

.hero_right { display: grid; grid-template-columns: 165px 1fr; gap: 14px; align-items: center; }
.hero_mode_stack { display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.hero_mode_card {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px;
  background: rgba(13, 19, 48, 0.84); border: 1px solid var(--c-border); backdrop-filter: blur(12px);
  font-size: 0.9rem; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .hero_mode_card { background: rgba(255, 255, 255, 0.92); }
.hero_mode_card:hover { border-color: var(--c-cyan); transform: translateX(4px); box-shadow: var(--shadow-glow); }

.hero_visual {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.35); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  aspect-ratio: 4 / 3;
}
.hero_visual img { width: 100%; height: 100%; object-fit: cover; }
.hero_visual_overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 28, 0.05) 35%, rgba(6, 10, 28, 0.88) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; gap: 8px;
}
.hero_clapper_badge {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  background: rgba(10, 15, 42, 0.78); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 12px; color: #fff;
}
.hero_clapper_badge strong { display: block; font-size: 0.95rem; }
.hero_clapper_badge small { display: block; font-size: 0.72rem; color: #cbd5e1; }
.hero_quote_script { font-size: 0.82rem; font-style: italic; color: #a5f3fc; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }

/* Stats Strip */
.stats_strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 10px;
}
.stat_pill {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-radius: 14px; background: rgba(13, 19, 48, 0.82); border: 1px solid var(--c-border);
}
[data-theme="light"] .stat_pill { background: var(--c-surface); }
.stat_pill strong { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.stat_pill small { display: block; font-size: 0.74rem; color: var(--c-muted); margin-top: 2px; }

/* STUDIO CREATOR CARD */
.studio_card {
  background: linear-gradient(180deg, rgba(16, 23, 56, 0.94), rgba(9, 13, 34, 0.96));
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 18px; padding: 24px; box-shadow: var(--shadow-card);
}
[data-theme="light"] .studio_card { background: var(--c-surface); }
.studio_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.studio_head_title { display: flex; align-items: center; gap: 12px; }
.studio_head_title h2 { margin: 0; font-size: 1.32rem; font-weight: 800; }
.studio_head_title p { margin: 2px 0 0; font-size: 0.84rem; color: var(--c-muted); }

.studio_lang_bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg_pills { display: inline-flex; background: rgba(15, 23, 42, 0.55); border: 1px solid var(--c-border); border-radius: 10px; padding: 3px; gap: 4px; }
[data-theme="light"] .seg_pills { background: var(--c-surface-2); }
.seg_pill {
  padding: 6px 12px; border-radius: 8px; border: 0; background: transparent; cursor: pointer;
  font-size: 0.8rem; font-weight: 600; color: var(--c-muted); transition: 0.18s;
}
.seg_pill.is_active { background: var(--c-primary); color: #fff; box-shadow: 0 2px 10px rgba(59, 130, 246, 0.45); }

.studio_grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; }

.mode_tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.mode_tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 8px; border-radius: 11px; border: 1px solid var(--c-border);
  background: rgba(15, 23, 42, 0.45); color: var(--c-muted); cursor: pointer; font-weight: 600; font-size: 0.86rem;
}
[data-theme="light"] .mode_tab { background: var(--c-surface-2); }
.mode_tab.is_active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(124, 58, 237, 0.35));
  border-color: rgba(56, 189, 248, 0.65); color: #fff; box-shadow: 0 0 18px rgba(59, 130, 246, 0.25);
}

.prompt_box {
  background: rgba(6, 10, 28, 0.72); border: 1px solid var(--c-border); border-radius: 14px; padding: 14px;
  transition: border-color 0.2s;
}
[data-theme="light"] .prompt_box { background: #f8fafc; }
.prompt_box:focus-within { border-color: var(--c-primary); }
.prompt_box textarea {
  width: 100%; border: 0; background: transparent; resize: vertical; outline: none;
  font-size: 0.94rem; min-height: 148px; color: var(--c-text);
}
.prompt_bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.char_count { font-size: 0.76rem; color: var(--c-muted); }
.enhance_btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(139, 92, 246, 0.45); color: #c4b5fd;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
}
.enhance_btn:hover { background: rgba(139, 92, 246, 0.34); color: #fff; }
[data-theme="light"] .enhance_btn { color: #4338ca; }

.upload_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.upload_card {
  display: flex; align-items: center; gap: 10px; padding: 13px 12px; border-radius: 12px;
  background: rgba(10, 15, 38, 0.65); border: 1px solid var(--c-border); cursor: pointer; transition: 0.2s;
}
[data-theme="light"] .upload_card { background: #f8fafc; }
.upload_dropzone { border-style: dashed; }
.upload_card:hover, .upload_card.has_file, .upload_card.is_drag {
  border-color: var(--c-cyan); background: rgba(34, 211, 238, 0.08);
}
.upload_ico { color: var(--c-cyan); display: inline-flex; }
.upload_info strong { display: block; font-size: 0.8rem; }
.upload_info small { display: block; font-size: 0.71rem; color: var(--c-muted); word-break: break-word; }

.mixture_hint {
  margin-top: 10px; padding: 9px 12px; border-radius: 10px;
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fcd34d; font-size: 0.8rem; display: flex; align-items: center; gap: 8px;
}
[data-theme="light"] .mixture_hint { color: #92400e; }

/* Right Column: Models & Settings */
.field_group_title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 0.86rem; font-weight: 700; margin-bottom: 9px;
}
.engine_pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(245, 158, 11, 0.14); color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.32);
}
.engine_pill.is_online { background: rgba(16, 185, 129, 0.16); color: #34d399; border-color: rgba(16, 185, 129, 0.38); }
.status_dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

.model_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.model_card {
  position: relative; display: flex; align-items: center; gap: 9px; padding: 10px;
  border-radius: 12px; background: rgba(10, 15, 38, 0.65); border: 1px solid var(--c-border);
  cursor: pointer; transition: 0.2s;
}
[data-theme="light"] .model_card { background: #f8fafc; }
.model_card strong { display: block; font-size: 0.84rem; }
.model_card small { display: block; font-size: 0.69rem; color: var(--c-muted); line-height: 1.2; }
.model_card.is_selected {
  border-color: var(--c-cyan);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(139, 92, 246, 0.2));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.2);
}
.model_badge {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-cyan); color: #060a1c; font-weight: 800; font-size: 0.78rem;
  display: inline-flex; align-items: center; justify-content: center;
}

.settings_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.s_field {
  display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 10px;
  background: rgba(10, 15, 38, 0.62); border: 1px solid var(--c-border);
}
[data-theme="light"] .s_field { background: #f8fafc; }
.s_field span { font-size: 0.68rem; color: var(--c-muted); font-weight: 600; }
.s_field select {
  background: transparent; border: 0; outline: none; font-size: 0.8rem; font-weight: 600; color: var(--c-text); cursor: pointer;
}
.s_field select option { background: var(--c-surface); color: var(--c-text); }

.advanced_box {
  background: rgba(10, 15, 38, 0.56); border: 1px solid var(--c-border);
  border-radius: 12px; padding: 11px 13px; margin-bottom: 14px;
}
[data-theme="light"] .advanced_box { background: #f8fafc; }
.adv_head { margin-bottom: 8px; }
.adv_title { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 700; color: #93c5fd; }
[data-theme="light"] .adv_title { color: #1d4ed8; }
.adv_row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.adv_checks { display: flex; flex-wrap: wrap; gap: 12px; }
.chk { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; cursor: pointer; }
.chk input[type="checkbox"] { accent-color: var(--c-primary); width: 15px; height: 15px; }
.chk_sm { margin-top: 5px; font-size: 0.75rem; color: var(--c-muted); }

.neg_toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 9px;
  background: rgba(15, 23, 42, 0.6); border: 1px solid var(--c-border); cursor: pointer;
}
[data-theme="light"] .neg_toggle { background: #fff; }
.neg_toggle strong { display: block; font-size: 0.73rem; }
.neg_toggle small { display: block; font-size: 0.65rem; color: var(--c-muted); }
.neg_input {
  margin-top: 8px; width: 100%; padding: 7px 10px; border-radius: 8px;
  background: rgba(6, 10, 28, 0.7); border: 1px solid var(--c-border); font-size: 0.78rem;
}
[data-theme="light"] .neg_input { background: #fff; }

.generate_btn { border-radius: 999px; font-size: 1rem; padding: 13px 20px; }
.generate_caption { text-align: center; font-size: 0.76rem; color: var(--c-muted); margin: 8px 0 0; }
.studio_alert {
  margin-top: 10px; padding: 10px 13px; border-radius: 10px; font-size: 0.84rem;
  background: rgba(59, 130, 246, 0.14); border: 1px solid rgba(59, 130, 246, 0.4); color: #bfdbfe;
}
.studio_alert.is_err { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.42); color: #fca5a5; }
.studio_alert.is_ok  { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.42); color: #6ee7b7; }
[data-theme="light"] .studio_alert { color: #1e3a8a; }
[data-theme="light"] .studio_alert.is_err { color: #991b1b; }
[data-theme="light"] .studio_alert.is_ok { color: #065f46; }

/* AUTOMATIC VIDEO CREATION PROCESS + LIVE PREVIEW */
.process_row { display: grid; grid-template-columns: 1.85fr 1fr; gap: 18px; margin-top: 20px; }
.section_mini_head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.section_mini_head h3 { margin: 0; font-size: 1.05rem; }
.section_mini_head p { margin: 2px 0 0; font-size: 0.82rem; color: var(--c-muted); }
.pulse_dot {
  width: 11px; height: 11px; border-radius: 50%; margin-top: 6px; background: var(--c-cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.22); flex-shrink: 0;
}

.pipeline_steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; position: relative; }
.pipeline_steps::before {
  content: ''; position: absolute; top: 24px; left: 9%; right: 9%; height: 2px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6, #ec4899); opacity: 0.4;
}
.pipe_step { position: relative; text-align: center; z-index: 1; }
.pipe_orb {
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-surface-2); border: 2px solid rgba(99, 102, 241, 0.45); color: #93c5fd;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.pipe_step.is_active .pipe_orb, .pipe_step.is_done .pipe_orb {
  background: var(--grad-btn); color: #fff; border-color: #fff;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.65); transform: scale(1.06);
}
.pipe_label { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 0.8rem; margin-bottom: 4px; }
.step_num {
  width: 18px; height: 18px; border-radius: 50%; font-size: 0.68rem; font-weight: 700;
  background: rgba(59, 130, 246, 0.22); color: #60a5fa; display: inline-flex; align-items: center; justify-content: center;
}
.pipe_step small { display: block; font-size: 0.72rem; color: var(--c-muted); line-height: 1.3; }

.preview_card { display: flex; flex-direction: column; gap: 12px; }
.preview_head { display: flex; align-items: center; justify-content: space-between; }
.preview_head h4 { margin: 0; font-size: 1rem; }
.proc_badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: rgba(239, 68, 68, 0.85); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.proc_badge i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.preview_stage {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9;
  background: #040714; border: 1px solid var(--c-border);
}
.preview_stage img, .preview_stage video { width: 100%; height: 100%; object-fit: cover; }
.preview_play_overlay {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -62%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 23, 42, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.7); color: #fff;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.preview_progress_wrap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 20, 0.92));
}
.preview_bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); overflow: hidden; margin-bottom: 5px; }
.preview_fill { height: 100%; background: var(--grad-main); transition: width 0.35s ease; }
.preview_meta { display: flex; justify-content: space-between; font-size: 0.74rem; color: #e2e8f0; gap: 8px; }
.preview_actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* GEMINI ANALYSIS & SCRIPT DRAWER */
.analysis_panel { margin-top: 18px; border-color: rgba(139, 92, 246, 0.45); }
.analysis_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.analysis_head h3 { margin: 4px 0 0; font-size: 1.15rem; }
.analysis_badges { display: flex; flex-wrap: wrap; gap: 6px; }
.analysis_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.an_sub_grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.an_box {
  background: rgba(6, 10, 28, 0.55); border: 1px solid var(--c-border); border-radius: 12px; padding: 13px;
}
[data-theme="light"] .an_box { background: #f8fafc; }
.an_box h5 { margin: 0 0 8px; font-size: 0.82rem; color: var(--c-cyan); text-transform: uppercase; letter-spacing: 0.04em; }
.an_box p { margin: 0; font-size: 0.85rem; color: var(--c-text); }
.an_other_list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; }
.an_other_list strong { color: #c4b5fd; }
[data-theme="light"] .an_other_list strong { color: #4338ca; }
.char_list, .scene_list { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.char_item, .scene_item {
  padding: 9px 11px; border-radius: 9px; background: rgba(15, 23, 42, 0.55); border: 1px solid var(--c-border); font-size: 0.82rem;
}
[data-theme="light"] .char_item, [data-theme="light"] .scene_item { background: #fff; }
.scene_item strong { color: var(--c-cyan); }
.scene_item small { display: block; color: var(--c-muted); margin-top: 3px; }

/* GALLERY */
.gallery_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.cat_pills { display: flex; flex-wrap: wrap; gap: 6px; }
.center_pills { justify-content: center; margin-bottom: 24px; }
.cat_pill {
  padding: 6px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  background: rgba(15, 23, 42, 0.55); border: 1px solid var(--c-border); color: var(--c-muted);
}
[data-theme="light"] .cat_pill { background: #fff; }
.cat_pill.is_active, .cat_pill:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.gallery_grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery_grid_3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery_card {
  background: rgba(13, 19, 48, 0.86); border: 1px solid var(--c-border); border-radius: 13px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
[data-theme="light"] .gallery_card { background: var(--c-surface); }
.gallery_card:hover { transform: translateY(-3px); border-color: var(--c-cyan); }
.gallery_thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #040714; }
.gallery_thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery_card:hover .gallery_thumb img { transform: scale(1.06); }
.gal_play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: rgba(6, 10, 28, 0.72);
  border: 1.5px solid rgba(255, 255, 255, 0.78); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.gal_dur {
  position: absolute; right: 7px; bottom: 7px; padding: 2px 7px; border-radius: 6px;
  background: rgba(6, 10, 28, 0.84); color: #fff; font-size: 0.69rem; font-weight: 700;
}
.gallery_meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 11px; }
.gal_text strong { display: block; font-size: 0.84rem; line-height: 1.2; }
.gal_text small { display: block; font-size: 0.71rem; color: var(--c-muted); margin-top: 2px; }
.gal_try {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--c-border);
  background: rgba(59, 130, 246, 0.14); color: var(--c-cyan); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gal_try:hover { background: var(--c-primary); color: #fff; }

/* STUDIO ANALYTICS & CHARTS */
.analytics_top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.analytics_split { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 18px; align-items: stretch; }
.metric_grid_4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric_box {
  display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px;
  background: rgba(6, 10, 28, 0.56); border: 1px solid var(--c-border);
}
[data-theme="light"] .metric_box { background: #f8fafc; }
.metric_box strong { display: block; font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.metric_box small { display: block; font-size: 0.78rem; color: var(--c-muted); margin-top: 3px; }

.chart_box {
  background: rgba(6, 10, 28, 0.56); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px;
}
[data-theme="light"] .chart_box { background: #f8fafc; }
.chart_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.chart_head h4 { margin: 0; font-size: 0.95rem; }
.chart_canvas_wrap { width: 100%; min-height: 195px; position: relative; }
.chart_donut_wrap { width: 100%; min-height: 175px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.chart_legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin-top: 8px; font-size: 0.75rem; color: var(--c-muted); }
.chart_legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart_legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* DATE FILTER BAR */
.date_filter_bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter_pills { display: flex; flex-wrap: wrap; gap: 5px; }
.filter_pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--c-border); background: rgba(15, 23, 42, 0.5); color: var(--c-muted);
  font-size: 0.77rem; font-weight: 600; cursor: pointer;
}
[data-theme="light"] .filter_pill { background: #fff; }
.filter_pill.is_active, .filter_pill:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.custom_range_fields { display: none; align-items: center; gap: 8px; flex-wrap: wrap; }
.custom_range_fields.is_open { display: flex; }
.custom_range_fields label { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--c-muted); }
.custom_range_fields input[type="date"] {
  padding: 5px 8px; border-radius: 8px; border: 1px solid var(--c-border); background: var(--c-surface); font-size: 0.8rem;
}

/* CTA BANNER */
.cta_banner {
  background: linear-gradient(95deg, #2563eb 0%, #6d28d9 52%, #0ea5e9 100%);
  border-radius: 18px; padding: 26px 30px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 18px; color: #fff;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.35);
}
.cta_left { display: flex; align-items: center; gap: 16px; }
.cta_ico {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(255, 255, 255, 0.16);
  display: inline-flex; align-items: center; justify-content: center;
}
.cta_ico .ico { width: 26px; height: 26px; }
.cta_banner h2 { margin: 0 0 4px; font-size: 1.4rem; }
.cta_banner p { margin: 0; font-size: 0.9rem; opacity: 0.92; }

/* FOOTER */
.site_footer { margin-top: 56px; border-top: 1px solid var(--c-border); background: rgba(4, 7, 22, 0.72); padding: 42px 0 22px; }
[data-theme="light"] .site_footer { background: var(--c-surface); }
.footer_grid { display: grid; grid-template-columns: 1.35fr 0.8fr 0.8fr 0.8fr 1.2fr; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--c-border); }
.footer_slogan { font-size: 0.84rem; color: var(--c-muted); margin: 12px 0 14px; }
.footer_socials { display: flex; gap: 10px; }
.footer_socials a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--c-border);
  display: inline-flex; align-items: center; justify-content: center; color: var(--c-muted);
}
.footer_socials a:hover { color: var(--c-cyan); border-color: var(--c-cyan); }
.footer_col { display: flex; flex-direction: column; gap: 8px; }
.footer_col h4 { margin: 0 0 6px; font-size: 0.92rem; }
.footer_col a { font-size: 0.84rem; color: var(--c-muted); }
.footer_col a:hover { color: var(--c-text); }
.footer_quote_box { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; }
.footer_quote { font-size: 1.3rem; font-style: italic; font-weight: 600; color: var(--c-text); }
.footer_quote_line { width: 170px; height: 3px; border-radius: 99px; background: var(--grad-main); margin-top: 8px; }
.footer_bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; font-size: 0.8rem; color: var(--c-muted); }
.footer_love { display: inline-flex; align-items: center; gap: 5px; }
.love_ico { color: var(--c-accent); display: inline-flex; }
.love_ico .ico { width: 14px; height: 14px; }

/* AUTH, PRICING, SUPPORT, LEGAL, ERROR */
.page_hero_compact { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.page_hero_compact h1 { margin: 10px 0 8px; font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.page_hero_compact p { margin: 0; color: var(--c-muted); }
.tag_pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; background: rgba(99, 102, 241, 0.18); color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
[data-theme="light"] .tag_pill { color: #4338ca; }

.auth_wrap { padding: 52px 20px; display: flex; justify-content: center; }
.auth_card { width: 100%; max-width: 440px; padding: 28px; }
.auth_head { text-align: center; margin-bottom: 22px; }
.auth_head h1 { margin: 12px 0 6px; font-size: 1.45rem; }
.auth_head p { margin: 0; font-size: 0.86rem; color: var(--c-muted); }
.auth_foot { text-align: center; margin-top: 18px; font-size: 0.86rem; color: var(--c-muted); }
.auth_foot a { color: var(--c-cyan); font-weight: 600; }

.pricing_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price_card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price_featured { border-color: var(--c-cyan); box-shadow: 0 0 34px rgba(59, 130, 246, 0.28); }
.price_ribbon {
  position: absolute; top: -12px; right: 18px; padding: 4px 12px; border-radius: 999px;
  background: var(--grad-btn); color: #fff; font-size: 0.72rem; font-weight: 700;
}
.price_tier { font-size: 1.1rem; font-weight: 800; }
.price_val { font-size: 2.3rem; font-weight: 800; }
.price_val small { font-size: 0.9rem; color: var(--c-muted); font-weight: 500; }
.price_desc { margin: 0; font-size: 0.86rem; color: var(--c-muted); }
.price_list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 0.86rem; flex: 1; }
.price_list li { display: flex; align-items: center; gap: 8px; }
.price_list .ico { color: var(--c-cyan); width: 16px; height: 16px; }

.support_grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.faq_card { display: flex; flex-direction: column; gap: 14px; }
.faq_item { padding-bottom: 12px; border-bottom: 1px solid var(--c-border); }
.faq_item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq_item p { margin: 5px 0 0; font-size: 0.86rem; color: var(--c-muted); }

.legal_card { max-width: 820px; margin: 0 auto; }
.legal_body { margin: 18px 0 24px; color: var(--c-muted); line-height: 1.75; }
.legal_foot { display: flex; gap: 10px; }

.error_card { text-align: center; max-width: 480px; padding: 40px 28px; }
.error_code { font-size: 4.5rem; font-weight: 900; background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error_actions { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* FORMS & TABLES */
.form_stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; font-weight: 600; }
.field input, .field select, .field textarea, .inline_search input, .inline_search select, .form_grid_5 input, .form_grid_5 select, .form_row_4 input {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  background: rgba(6, 10, 28, 0.72); border: 1px solid var(--c-border); color: var(--c-text); outline: none;
}
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea,
[data-theme="light"] .inline_search input, [data-theme="light"] .inline_search select,
[data-theme="light"] .form_grid_5 input, [data-theme="light"] .form_grid_5 select, [data-theme="light"] .form_row_4 input {
  background: #f8fafc;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-primary); }
.field_hint { font-size: 0.74rem; color: var(--c-muted); font-weight: 400; }
.pass_wrap { position: relative; }
.pass_eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--c-muted); cursor: pointer;
}
.form_row_2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form_row_3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form_row_4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.form_row_5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.form_grid_5 { display: grid; grid-template-columns: 1fr 1fr 1fr 0.7fr 0.7fr auto; gap: 10px; align-items: center; }
.form_inline_end { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }

.table_wrap { overflow-x: auto; }
.data_table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.data_table th, .data_table td { padding: 11px 10px; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: middle; }
.data_table th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.tbl_thumb { width: 64px; height: 38px; object-fit: cover; border-radius: 7px; }
.msg_body { margin: 4px 0 0; font-size: 0.82rem; color: var(--c-muted); max-width: 480px; }

.chip { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.chip_soft { background: rgba(99, 102, 241, 0.16); color: #a5b4fc; }
[data-theme="light"] .chip_soft { color: #4338ca; }
.chip_completed, .chip_downloaded { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.chip_generating, .chip_analysing, .chip_scripted, .chip_queued { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }
.chip_failed, .chip_expired, .chip_deleted { background: rgba(239, 68, 68, 0.16); color: #f87171; }
.ok_tag { font-style: normal; font-size: 0.72rem; color: #34d399; margin-left: 6px; }

.pager { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.pager a {
  width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border); font-size: 0.84rem;
}
.pager a.is_active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.empty_state { text-align: center; padding: 28px; color: var(--c-muted); font-size: 0.9rem; }

/* CREATOR PANEL & ADMIN SHELL */
.panel_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel_head h1 { margin: 0; font-size: 1.6rem; }
.panel_head p { margin: 3px 0 0; color: var(--c-muted); font-size: 0.9rem; }
.panel_head_btns { display: flex; gap: 10px; }
.filter_card { margin-bottom: 18px; padding: 14px 18px; }

.kpi_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi_grid_5 { grid-template-columns: repeat(5, 1fr); }
.kpi_card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.kpi_card strong { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.kpi_card small { display: block; font-size: 0.76rem; color: var(--c-muted); }

.charts_grid_2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.charts_grid_4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.mini_charts_split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.card_head_row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card_head_row h3, .card_head_row h4 { margin: 0; }
.inline_search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline_search input, .inline_search select { width: auto; padding: 7px 10px; font-size: 0.82rem; }
.inline_form { display: inline-flex; gap: 6px; align-items: center; }
.sel_xs { padding: 4px 7px; border-radius: 7px; background: var(--c-surface-2); border: 1px solid var(--c-border); font-size: 0.78rem; }

/* Admin Layout */
.admin_shell { display: grid; grid-template-columns: 245px 1fr; min-height: 100vh; }
.admin_side {
  background: rgba(8, 12, 34, 0.96); border-right: 1px solid var(--c-border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 18px;
}
[data-theme="light"] .admin_side { background: var(--c-surface); }
.admin_nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin_nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; color: var(--c-muted);
}
.admin_nav a:hover, .admin_nav a.is_active { background: rgba(59, 130, 246, 0.2); color: var(--c-text); }
.nav_badge { margin-left: auto; font-style: normal; background: var(--c-accent); color: #fff; font-size: 0.7rem; padding: 1px 7px; border-radius: 999px; }
.admin_side_foot { display: flex; flex-direction: column; gap: 8px; }

.admin_content { display: flex; flex-direction: column; min-width: 0; }
.admin_top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 24px; border-bottom: 1px solid var(--c-border);
  background: rgba(6, 10, 28, 0.72); backdrop-filter: blur(12px);
}
[data-theme="light"] .admin_top { background: var(--c-surface); }
.admin_top_left, .admin_top_right { display: flex; align-items: center; gap: 10px; }
.admin_heading { margin: 0; font-size: 1.12rem; }
.admin_burger { display: none; }
.admin_user_tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--c-cyan); }
.admin_main { padding: 22px 24px 48px; }
.admin_pad_x { padding: 0 24px; }
.admin_toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.lang_pills_sm { display: inline-flex; border: 1px solid var(--c-border); border-radius: 8px; overflow: hidden; }
.lang_pills_sm a { padding: 5px 8px; font-size: 0.72rem; font-weight: 700; color: var(--c-muted); }
.lang_pills_sm a.is_active { background: var(--c-primary); color: #fff; }

.status_banner_grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
.status_mini { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.status_mini > div { flex: 1; }
.status_mini strong { display: block; font-size: 0.9rem; }
.status_mini small { display: block; font-size: 0.76rem; color: var(--c-muted); }
.status_mini.is_ok { border-color: rgba(16, 185, 129, 0.4); }
.status_mini.is_warn { border-color: rgba(245, 158, 11, 0.35); }

.color_grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.color_field { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.color_field input[type="color"] { width: 100%; height: 40px; border: 1px solid var(--c-border); border-radius: 9px; background: transparent; cursor: pointer; padding: 2px; }

.toggles_grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.toggle_card {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px; border-radius: 11px;
  background: rgba(6, 10, 28, 0.55); border: 1px solid var(--c-border); cursor: pointer;
}
[data-theme="light"] .toggle_card { background: #f8fafc; }
.toggle_card strong { display: block; font-size: 0.82rem; }
.toggle_card small { display: block; font-size: 0.72rem; color: var(--c-muted); }
.test_result { padding: 10px 14px; border-radius: 10px; background: rgba(59, 130, 246, 0.14); border: 1px solid var(--c-border-hi); font-size: 0.84rem; margin-bottom: 12px; }

/* RESPONSIVE */
@media (max-width: 1120px) {
  .hero_grid, .studio_grid, .process_row, .analytics_split, .charts_grid_2, .support_grid { grid-template-columns: 1fr; }
  .stats_strip { grid-template-columns: repeat(3, 1fr); }
  .gallery_grid { grid-template-columns: repeat(3, 1fr); }
  .charts_grid_4, .analysis_grid { grid-template-columns: repeat(2, 1fr); }
  .toggles_grid { grid-template-columns: repeat(3, 1fr); }
  .color_grid { grid-template-columns: repeat(4, 1fr); }
  .kpi_grid_5 { grid-template-columns: repeat(3, 1fr); }
  .footer_grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .announce_links { display: none; }
  .main_nav {
    position: fixed; top: 68px; left: 0; right: 0; background: var(--c-surface);
    border-bottom: 1px solid var(--c-border); flex-direction: column; padding: 12px;
    display: none;
  }
  .main_nav.is_open { display: flex; }
  .nav_burger, .admin_burger { display: inline-flex; }
  .hide_sm { display: none; }
  .hero_right { grid-template-columns: 1fr; }
  .hero_mode_stack { flex-direction: row; flex-wrap: wrap; }
  .hero_mode_card { flex: 1 1 45%; }
  .stats_strip, .kpi_grid, .kpi_grid_5, .pricing_grid, .gallery_grid, .gallery_grid_3,
  .settings_grid, .model_grid, .upload_grid, .pipeline_steps, .an_sub_grid,
  .form_row_2, .form_row_3, .form_row_4, .form_row_5, .form_grid_5, .status_banner_grid { grid-template-columns: 1fr; }
  .pipeline_steps::before { display: none; }
  .toggles_grid, .color_grid, .analysis_grid, .charts_grid_4 { grid-template-columns: 1fr 1fr; }
  .admin_shell { grid-template-columns: 1fr; }
  .admin_side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 70; transform: translateX(-100%); transition: transform 0.25s; }
  .admin_side.is_open { transform: translateX(0); }
}


/* =====================================================================
   Responsive Hero Preview + Designer.png Admin Panel V2
   ===================================================================== */
.hero_right { display: grid; grid-template-columns: minmax(140px, 175px) minmax(0, 1fr); gap: 14px; align-items: center; min-width: 0; }
.hero_visual { width: 100%; min-width: 0; aspect-ratio: 16 / 11; }
.hero_visual_overlay { padding: clamp(12px, 2vw, 20px); }
.hero_clapper_badge { max-width: 100%; }
.hero_quote_script { font-size: clamp(0.74rem, 1.1vw, 0.86rem); }

@media (max-width: 1120px) {
  .hero_right { grid-template-columns: 1fr; gap: 14px; }
  .hero_visual { order: -1; aspect-ratio: 16 / 9; }
  .hero_mode_stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .hero_mode_card { justify-content: center; padding: 10px; }
  .hero_mode_card:hover { transform: translateY(-2px); }
}

@media (max-width: 640px) {
  .hero_mode_stack { grid-template-columns: repeat(2, 1fr); }
  .hero_visual { aspect-ratio: 16 / 10; }
  .hero_clapper_badge { padding: 6px 10px; gap: 8px; }
  .hero_clapper_badge strong { font-size: 0.85rem; }
  .preview_stage { aspect-ratio: 16 / 10; }
}

/* Admin Top Ribbon & Full-Width Navbar */
.admin_bar_inner { width: 100%; max-width: 1520px; margin: 0 auto; padding: 0 22px; }
.admin_announce .admin_bar_inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.admin_live_right { display: flex; align-items: center; gap: 10px; }
.live_sys_pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7; font-size: 0.75rem; font-weight: 600;
}
.live_dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; display: inline-block; }
.announce_dismiss { background: none; border: 0; color: #cbd5e1; font-size: 1.2rem; cursor: pointer; line-height: 1; }
.admin_profile_chip { padding: 4px 10px 4px 6px; gap: 8px; }
.admin_chip_txt { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.admin_chip_txt strong { font-size: 0.82rem; }
.admin_chip_txt small { font-size: 0.68rem; color: var(--c-muted); font-weight: 500; }

/* Admin Shell V2 */
.admin_shell_v2 {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  max-width: 1520px; margin: 0 auto; min-height: calc(100vh - 110px);
}
.admin_side_v2 {
  border-right: 1px solid var(--c-border); background: rgba(7, 11, 30, 0.72);
  padding: 18px 12px 24px; display: flex; flex-direction: column; gap: 12px;
}
[data-theme="light"] .admin_side_v2 { background: var(--c-surface); }
.admin_side_title {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  font-size: 0.9rem; font-weight: 700; color: var(--c-text);
}
.admin_nav_v2 { display: flex; flex-direction: column; gap: 3px; }
.admin_nav_v2 a, .side_logout_btn {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 13px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 500; color: var(--c-muted); background: transparent; border: 0; cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s; text-align: left;
}
.admin_nav_v2 a:hover { background: rgba(99, 102, 241, 0.14); color: var(--c-text); }
.admin_nav_v2 a.is_active {
  background: linear-gradient(95deg, #2563eb 0%, #7c3aed 65%, #a855f7 100%);
  color: #fff; font-weight: 700; box-shadow: 0 6px 20px rgba(99, 102, 241, 0.42);
}
.side_logout_form { margin-top: 4px; }
.side_logout_btn { color: #f87171; }
.side_logout_btn:hover { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }

.admin_side_card {
  margin-top: 14px; padding: 20px 14px; border-radius: 16px; text-align: center;
  background:
    radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.36), transparent 68%),
    linear-gradient(180deg, rgba(16, 23, 56, 0.9), rgba(9, 13, 34, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.32);
}
[data-theme="light"] .admin_side_card { background: linear-gradient(180deg, #eef2ff, #e0e7ff); }
.side_crown { color: #f472b6; display: inline-flex; margin-bottom: 6px; filter: drop-shadow(0 0 12px rgba(244, 114, 182, 0.55)); }
.side_crown .ico { width: 28px; height: 28px; }
.admin_side_card strong { display: block; font-size: 1.15rem; font-weight: 800; }
.admin_side_card small { display: block; font-size: 0.72rem; color: var(--c-muted); }
.side_card_sub { margin-top: 12px; font-size: 0.8rem; font-weight: 700; color: #c084fc; }
[data-theme="light"] .side_card_sub { color: #6d28d9; }
.admin_side_card p { margin: 4px 0 0; font-size: 0.76rem; color: var(--c-muted); line-height: 1.35; }

/* Admin Welcome Hero Banner */
.admin_welcome_card {
  position: relative; display: grid; grid-template-columns: 1.2fr 0.95fr; gap: 16px; align-items: center;
  border-radius: 16px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(110deg, rgba(15, 22, 54, 0.96) 0%, rgba(21, 28, 68, 0.92) 55%, rgba(11, 16, 40, 0.96) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3); box-shadow: var(--shadow-card);
}
[data-theme="light"] .admin_welcome_card { background: linear-gradient(110deg, #ffffff 0%, #eef2ff 100%); }
.admin_welcome_copy { padding: 24px 26px; z-index: 2; }
.welcome_badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(139, 92, 246, 0.42);
  color: #f472b6; font-size: 0.75rem; font-weight: 700; margin-bottom: 10px;
}
.welcome_badge .ico { width: 13px; height: 13px; }
.admin_welcome_copy h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2.05rem); font-weight: 800; line-height: 1.15; }
.admin_welcome_copy p { margin: 0; font-size: 0.9rem; color: var(--c-muted); max-width: 520px; }
.admin_welcome_art { position: relative; height: 100%; min-height: 168px; overflow: hidden; }
.admin_welcome_art img {
  width: 100%; height: 100%; object-fit: cover;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}
.welcome_art_text {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 0.85rem; font-weight: 700; font-style: italic; letter-spacing: 0.08em; line-height: 1.45;
  color: rgba(165, 243, 252, 0.88); text-align: right; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* KPI V2 */
.kpi_v2 { display: flex; align-items: center; gap: 14px; padding: 16px; }
.kpi_tile {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.kpi_v2 strong { display: block; font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
.kpi_v2 small { display: block; font-size: 0.76rem; color: var(--c-muted); margin-top: 2px; }
.kpi_delta { display: inline-block; font-style: normal; font-size: 0.73rem; font-weight: 700; color: #34d399; margin-top: 3px; }

/* Charts, Mid, Low, Bottom Rows */
.card_title_ico { display: inline-flex; align-items: center; gap: 8px; color: var(--c-cyan); }
.card_title_ico h4 { margin: 0; font-size: 0.96rem; color: var(--c-text); }
.chart_head_meta { display: inline-flex; align-items: center; gap: 12px; font-size: 0.76rem; color: var(--c-muted); flex-wrap: wrap; }
.legend_dot { display: inline-flex; align-items: center; gap: 5px; }
.legend_dot i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.range_chip { padding: 3px 10px; border-radius: 8px; background: rgba(148, 163, 184, 0.12); border: 1px solid var(--c-border); color: var(--c-text); font-weight: 600; }

.admin_row_charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }
.donut_side_wrap { display: flex; align-items: center; justify-content: space-evenly; gap: 16px; padding: 10px 4px; flex-wrap: wrap; }
.donut_side_list { display: flex; flex-direction: column; gap: 10px; min-width: 145px; flex: 1; max-width: 195px; }
.donut_side_row { display: flex; align-items: center; justify-content: space-between; font-size: 0.84rem; }
.donut_side_row span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); }
.donut_side_row i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.admin_row_mid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.sys_list { display: flex; flex-direction: column; gap: 13px; }
.sys_row { display: grid; grid-template-columns: 142px 1fr 56px; align-items: center; gap: 10px; font-size: 0.82rem; }
.sys_lbl { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); }
.sys_lbl .ico { color: var(--c-cyan); width: 15px; height: 15px; }
.sys_bar { height: 7px; border-radius: 99px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.sys_bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22d3ee, #3b82f6); }
.sys_row strong { text-align: right; font-size: 0.8rem; }
.sys_kv {
  display: flex; align-items: center; justify-content: space-between; padding-top: 9px;
  border-top: 1px solid var(--c-border); font-size: 0.83rem;
}
.sys_kv span { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); }
.sys_kv .ico { color: var(--c-cyan); width: 15px; height: 15px; }
.sys_healthy { display: inline-flex; align-items: center; gap: 6px; color: #34d399; }
.sys_healthy i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; display: inline-block; }

.admin_row_low { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; margin-bottom: 16px; }
.qa_grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qa_form { display: contents; }
.qa_tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 16px 8px; border-radius: 13px; border: 1px solid var(--c-border); cursor: pointer;
  font-size: 0.77rem; font-weight: 600; transition: transform 0.18s, border-color 0.18s;
}
.qa_tile:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); }
.qa_tile .ico { width: 22px; height: 22px; }
.qa_blue   { background: linear-gradient(155deg, rgba(37, 99, 235, 0.34), rgba(15, 23, 42, 0.7)); color: #93c5fd; }
.qa_purple { background: linear-gradient(155deg, rgba(124, 58, 237, 0.34), rgba(15, 23, 42, 0.7)); color: #d8b4fe; }
.qa_cyan   { background: linear-gradient(155deg, rgba(8, 145, 178, 0.34), rgba(15, 23, 42, 0.7)); color: #67e8f9; }
.qa_violet { background: linear-gradient(155deg, rgba(147, 51, 234, 0.34), rgba(15, 23, 42, 0.7)); color: #e9d5ff; }
.qa_amber  { background: linear-gradient(155deg, rgba(217, 119, 6, 0.32), rgba(15, 23, 42, 0.7)); color: #fcd34d; }
.qa_indigo { background: linear-gradient(155deg, rgba(67, 56, 202, 0.36), rgba(15, 23, 42, 0.7)); color: #a5b4fc; }
.qa_teal   { background: linear-gradient(155deg, rgba(13, 148, 136, 0.34), rgba(15, 23, 42, 0.7)); color: #5eead4; }
.qa_red    { background: linear-gradient(155deg, rgba(190, 18, 60, 0.34), rgba(15, 23, 42, 0.7)); color: #fda4af; }
[data-theme="light"] .qa_tile { color: var(--c-text); }

.admin_bottom_strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip_card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; }
.strip_head { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.strip_ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.strip_bar { margin: 4px 0; }
.strip_val { font-size: 1.55rem; font-weight: 800; line-height: 1.1; }
.strip_sec_ok { display: inline-flex; align-items: center; gap: 7px; font-size: 1.1rem; font-weight: 800; color: #34d399; }
.strip_card small { font-size: 0.77rem; color: var(--c-muted); }
.admin_footer { margin-top: 28px; }

@media (max-width: 1180px) {
  .admin_row_charts, .admin_row_mid, .admin_row_low { grid-template-columns: 1fr; }
  .admin_bottom_strip { grid-template-columns: repeat(2, 1fr); }
  .admin_welcome_card { grid-template-columns: 1fr; }
  .admin_welcome_art { min-height: 140px; }
  .admin_welcome_art img { mask-image: none; -webkit-mask-image: none; }
}

@media (max-width: 900px) {
  .admin_top_nav { display: none; }
  .admin_shell_v2 { grid-template-columns: 1fr; }
  .admin_side_v2 {
    position: fixed; inset: 0 auto 0 0; width: 255px; z-index: 80; overflow-y: auto;
    transform: translateX(-100%); transition: transform 0.25s; background: var(--c-surface);
  }
  .admin_side_v2.is_open { transform: translateX(0); }
  .qa_grid { grid-template-columns: repeat(2, 1fr); }
  .admin_bottom_strip { grid-template-columns: 1fr; }
  .admin_announce .admin_bar_inner { flex-wrap: wrap; }
}

/* Responsive hero logo mark & footer quote description */
.hero_logo_img {
  width: clamp(18px, 2.2vw, 26px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
}
.footer_quote_note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--c-muted);
  max-width: 260px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .footer_quote_box { align-items: flex-start; text-align: left; }
  .footer_quote_note { max-width: 100%; }
}
