@charset "UTF-8";
/**
 * d.ViVo AI PRO — Clean, Symmetrical, Zero-Wrap SaaS Studio Stylesheet (V3.2)
 * Chuẩn hóa:
 *   - Chống rớt chữ 100% trên mọi nút bấm, thẻ menu, nhãn trạng thái (white-space: nowrap)
 *   - Cân bằng chiều cao tuyệt đối giữa các cột và các thẻ cùng hàng (align-items: stretch, height: 100%)
 *   - Chữ gợi ý (placeholder) mờ dịu (opacity 0.36), không điền chữ mồi
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --bg-app: #060B14;
  --bg-sidebar: #09101D;
  --bg-surface: #0E1726;
  --bg-card: #121D2F;
  --bg-card-hover: #17253B;
  --bg-input: #09111E;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-focus: rgba(56, 189, 248, 0.55);
  --border-gold: rgba(251, 191, 36, 0.45);

  --primary: #0EA5E9;
  --primary-light: #38BDF8;
  --primary-glow: rgba(14, 165, 233, 0.22);

  --accent-indigo: #6366F1;
  --accent-gold: #F59E0B;
  --accent-emerald: #10B981;
  --accent-rose: #F43F5E;

  --text-main: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --placeholder-color: rgba(148, 163, 184, 0.36);

  --font-sans: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder-color) !important;
  font-weight: 400 !important;
  font-style: normal;
  opacity: 1;
}

/* ================= BỐ CỤC TỔNG THỂ ================= */
.studio-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ================= MENU CHÍNH DỌC BÊN TRÁI (KHÔNG RỚT DÒNG) ================= */
.studio-sidebar {
  width: 272px;
  min-width: 272px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  user-select: none;
}

.sidebar-top {
  padding: 18px 14px 12px;
  overflow-y: auto;
  flex: 1;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}

.pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 100%);
  color: #1E1B4B;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.nav-group {
  margin-bottom: 16px;
}

.nav-group-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0 10px;
  margin-bottom: 6px;
  white-space: nowrap;
}

.nav-item {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  margin-bottom: 3px;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-item.active {
  background: rgba(14, 165, 233, 0.13);
  border-color: rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  font-weight: 600;
}

.nav-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.nav-item-left span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-icon {
  font-size: 15px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-tag.hot {
  background: rgba(245, 158, 11, 0.18);
  color: #FCD34D;
  border-color: rgba(245, 158, 11, 0.35);
}

/* Chân Menu Dọc */
.sidebar-bottom {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 11, 20, 0.65);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-wallet-card {
  background: linear-gradient(145deg, rgba(14, 23, 38, 0.95), rgba(18, 29, 47, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.wallet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  white-space: nowrap;
}

.wallet-balance-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.wallet-balance-num {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}

.wallet-balance-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
}

.btn-sidebar-topup {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sidebar-ekyc-pill {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

#topEkycText {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-ekyc-pill.unsigned {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
}

/* ================= KHÔNG GIAN LÀM VIỆC CHÍNH ================= */
.studio-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
}

.workspace-topbar {
  height: 60px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(9, 16, 29, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
}

.topbar-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
}

.topbar-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34D399;
  white-space: nowrap;
}

.engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
}

.workspace-body {
  padding: 20px 26px 40px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

.view-pane {
  display: none;
}

.view-pane.active {
  display: block;
}

/* ================= THẺ STEP BAR CHO TẠO VIDEO ĐA GÓC ================= */
.step-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.step-tab-btn {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

.step-tab-btn:hover {
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--text-main);
}

.step-tab-btn.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--primary-light);
  color: #FFFFFF;
}

.step-num-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-tab-btn.active .step-num-circle {
  background: var(--primary);
  color: #FFFFFF;
}

.step-tab-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.step-tab-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.video-step-pane {
  display: none;
}

.video-step-pane.active {
  display: block;
}

/* ================= CARDS, GRIDS & FORMS CÂN ĐỐI 100% ================= */
.clean-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
}

.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.clone-layout-grid {
  grid-template-columns: 390px minmax(0, 1fr);
}

.grid-2col > .clean-card {
  height: 100%;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.card-header-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-group {
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.clean-input,
.clean-select,
.clean-textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.clean-input,
.clean-select {
  height: 38px;
}

.clean-input:focus,
.clean-select:focus,
.clean-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.clean-textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

/* ================= LƯỚI Ô TẢI ẢNH ĐA GÓC ĐỒNG NHẤT CHIỀU CAO ================= */
.angles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
}

.angle-dropcard {
  position: relative;
  background: var(--bg-card);
  border: 1.5px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 156px;
  height: 100%;
}

.angle-dropcard:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.angle-dropcard.has-file {
  border-style: solid;
  border-color: rgba(56, 189, 248, 0.35);
}

.angle-preview-area {
  width: 100%;
  height: 88px;
  border-radius: 7px;
  background: rgba(6, 11, 20, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 6px;
}

.angle-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.empty-drop-icon {
  font-size: 20px;
  margin-bottom: 3px;
  opacity: 0.75;
}

.empty-drop-text {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.angle-meta-title {
  font-size: 12px;
  font-weight: 700;
  color: #E2E8F0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.angle-meta-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.angle-remove-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(244, 63, 94, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #FDA4AF;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= NÚT BẤM CHỐNG RỚT CHỮ 100% ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.16s ease;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.22);
}

.btn-primary:hover {
  opacity: 0.94;
}

.btn-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--border-subtle);
  color: #E2E8F0;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.3);
}

.btn-secondary.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--primary-light);
  color: #FFFFFF;
}

.btn-audition {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.btn-audition:hover {
  background: rgba(245, 158, 11, 0.24);
}

.btn-sm {
  height: 32px;
  padding: 0 11px;
  font-size: 12px;
}

.btn-lg {
  height: 46px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
}

.btn-block {
  width: 100%;
}

.coin-cost-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.28);
  font-size: 11px;
  font-weight: 700;
  color: #FDE68A;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ================= THANH CHUYỂN ĐỔI ĐỒNG BỘ CHIỀU CAO 40PX ================= */
.segmented-switch {
  height: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.seg-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seg-btn.active {
  background: rgba(14, 165, 233, 0.18);
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.4);
}

.persona-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.persona-chip {
  height: 38px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.persona-chip.active {
  border-color: var(--primary-light);
  background: rgba(14, 165, 233, 0.12);
  color: #FFFFFF;
  font-weight: 600;
}

/* ================= 4 THẺ BIẾN ĐỔI VIDEO AI (CHUẨN HÌNH 2 - ĐỀU NHAU 100%) ================= */
.swap-mode-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  align-items: stretch;
}

.swap-mode-card {
  height: 100%;
  min-height: 92px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.swap-mode-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.swap-mode-card.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--primary-light);
}

.swap-mode-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swap-mode-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.oneclick-upload-box {
  border: 2px dashed rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(9, 17, 30, 0.7);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.16s ease;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.oneclick-upload-box:hover {
  border-color: var(--primary-light);
  background: rgba(14, 165, 233, 0.06);
}

/* ================= KHO GIỌNG ĐỌC (GRID CÂN ĐỐI CHIỀU CAO) ================= */
.voice-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.voice-item-card {
  min-height: 116px;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s;
}

.voice-item-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.voice-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-item-meta {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= DANH SÁCH PHÂN CẢNH & GÓI NẠP D.COIN ================= */
.scene-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scene-editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 15px;
}

.wallet-pkg-card {
  min-height: 174px;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wallet-pkg-card:hover {
  border-color: var(--primary-light);
  background: var(--bg-card-hover);
}

.pricing-clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pricing-clean-table th,
.pricing-clean-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.pricing-clean-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
}

/* ================= MODAL HỢP ĐỒNG PHÁP LÝ eKYC ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 15, 0.84);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.legal-modal-box {
  width: 100%;
  max-width: 880px;
  background: #0B1322;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.legal-clauses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.legal-clause-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 12px;
  color: #CBD5E1;
}

.legal-clause-card strong {
  color: #38BDF8;
  display: block;
  margin-bottom: 3px;
}

/* ================= GIAO DIỆN DI ĐỘNG CHUẨN APP (MOBILE RESPONSIVE <= 920PX) ================= */
.mobile-app-header,
.mobile-bottom-nav,
.mobile-sidebar-backdrop {
  display: none;
}

@media (max-width: 920px) {
  .mobile-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    padding: 0 12px;
    background: rgba(9, 16, 29, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 950;
  }

  .mobile-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-menu-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    color: #FFFFFF;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .mobile-brand-group {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-coin-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #FFFFFF;
    font-family: var(--font-sans);
    font-size: 12.5px;
    cursor: pointer;
  }

  .mobile-coin-plus {
    background: linear-gradient(135deg, #0EA5E9 0%, #2563EB 100%);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 2px;
  }

  .mobile-sidebar-backdrop.active {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 15, 0.72);
    backdrop-filter: blur(4px);
    z-index: 980;
  }

  .studio-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 276px;
    height: 100vh;
    z-index: 999;
    transform: translateX(-105%);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.65);
  }

  .studio-sidebar.mobile-open {
    transform: translateX(0);
  }

  .studio-main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 74px;
  }

  .workspace-topbar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topbar-title {
    font-size: 15px;
    white-space: normal;
    line-height: 1.3;
  }

  .topbar-subtitle {
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.35;
  }

  .topbar-right {
    display: none;
  }

  .workspace-body {
    padding: 12px;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  .step-tab-btn {
    padding: 9px 10px;
    gap: 8px;
    min-width: 0;
  }

  .step-tab-title {
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.25;
  }

  .step-tab-desc {
    font-size: 10px;
    white-space: normal;
    line-height: 1.25;
  }

  .field-label {
    white-space: normal;
    line-height: 1.35;
  }

  .empty-drop-text {
    white-space: normal;
    text-align: center;
    line-height: 1.25;
  }

  .btn-block {
    white-space: normal;
    height: auto;
    min-height: 44px;
    padding: 8px 12px;
    line-height: 1.3;
  }

  .step1-project-toolbar {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .step1-project-name-wrap {
    width: 100%;
  }

  .step1-project-actions-wrap {
    width: 100%;
    flex-wrap: wrap;
  }

  .step1-project-actions-wrap select {
    flex: 1;
    min-width: 130px;
  }

  .grid-2col,
  .clone-layout-grid,
  .grid-3col,
  .grid-4col,
  .swap-mode-cards,
  .voice-cards-grid,
  .legal-clauses-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .clean-card {
    padding: 14px;
  }

  .card-header-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .card-title {
    font-size: 13.5px;
    white-space: normal;
  }

  .card-subtitle {
    white-space: normal;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(9, 16, 29, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border-subtle);
    z-index: 940;
    padding: 4px 6px;
  }

  .mobile-tab-item {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .mobile-tab-item.active {
    color: #38BDF8;
    background: rgba(14, 165, 233, 0.12);
  }

  .mobile-tab-icon {
    font-size: 17px;
    line-height: 1;
  }

  .mobile-tab-label {
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
  }
}
