/* ==========================================================================
   HACODE WEB LABEL - MODERN SAAS THEME (STUDIO PRO REDESIGN)
   Tái thiết kế giao diện hiện đại, chuyên nghiệp theo chuẩn SaaS quốc tế
   ========================================================================== */

:root {
  /* Bảng màu chủ đạo Thương hiệu HACODE (Đồng bộ chuẩn Màu Logo: Deep Blue & Cyan) */
  --primary: #116cbf !important;
  --primary-dark: #005893 !important;
  --primary-light: #1790bf !important;
  --primary-glow: rgba(17, 108, 191, 0.28) !important;
  --primary-subtle: #f0f7ff !important;
  
  --accent: #0f172a !important;
  --accent-light: #1e293b !important;
  --accent-muted: #334155 !important;

  --success: #10b981 !important;
  --success-light: #d1fae5 !important;
  --warning: #f59e0b !important;
  --warning-light: #fef3c7 !important;
  --danger: #ef4444 !important;
  --danger-light: #fee2e2 !important;
  --info: #0ea5e9 !important;
  --info-light: #e0f2fe !important;

  /* Nền và bề mặt (Sleek Surfaces) */
  --bg: #f8fafc !important;
  --surface: #ffffff !important;
  --border: #e2e8f0 !important;
  --border-focus: #38bdf8 !important;

  /* Kiểu chữ & Màu chữ sắc nét */
  --text: #0f172a !important;
  --text-muted: #64748b !important;
  --text-light: #94a3b8 !important;

  /* Bo góc hiện đại */
  --radius-sm: 6px !important;
  --radius: 10px !important;
  --radius-lg: 16px !important;
  --radius-xl: 20px !important;

  /* Đổ bóng đa lớp cao cấp (Multi-layer Soft Shadows) */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04) !important;
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04) !important;
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04) !important;
  --shadow-hover: 0 14px 28px -4px rgba(17, 108, 191, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.04) !important;
}

/* Base resets & Smooth typography */
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   1. THANH ĐIỀU HƯỚNG BÊN TRÁI (MODERN DARK SLATE SIDEBAR)
   ========================================================================== */
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #172033 60%, #0f172a 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
}

/* Khắc phục lỗi Logo HACODE - Hiển thị logo thương hiệu chính xác */
.sidebar-logo {
  height: var(--topbar-height) !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  box-sizing: border-box !important;
}

.sidebar-logo .logo-box {
  width: 160px !important;
  height: 42px !important;
  background-image: url('/assets/logo.png') !important;
  background-position: left center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.sidebar-logo .logo-box:hover {
  opacity: 0.88 !important;
}

.sidebar-logo .logo-text {
  display: none !important;
}

.sidebar-logo .sidebar-collapse-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  margin-left: auto !important;
  transition: all 0.15s ease !important;
}

.sidebar-logo .sidebar-collapse-btn:hover {
  background: #f0f7ff !important;
  border-color: #bae6fd !important;
  color: #116cbf !important;
}

.app-shell.sidebar-collapsed .sidebar-logo .logo-box {
  width: 38px !important;
  height: 38px !important;
  background-image: url('/assets/icon.png') !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  margin: 0 auto !important;
}

/* Nút bấm Tạo thiết kế mới (Hero Action CTA - Tách biệt độc lập) */
.sidebar-hero-cta {
  padding: 14px 12px 6px 12px !important;
}

.sidebar-hero-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  height: 44px !important;
  background: linear-gradient(135deg, #116cbf 0%, #1790bf 100%) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.15) inset !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
}

.sidebar-hero-btn::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
  transform: translateX(-100%) !important;
  transition: transform 0.6s ease !important;
}

.sidebar-hero-btn:hover::before {
  transform: translateX(100%) !important;
}

.sidebar-hero-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(17, 108, 191, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25) inset !important;
  filter: brightness(1.08) !important;
  color: #ffffff !important;
}

.sidebar-hero-btn:active {
  transform: translateY(0) !important;
}

.sidebar-hero-btn.active {
  background: linear-gradient(135deg, #005893 0%, #116cbf 100%) !important;
  box-shadow: 0 0 0 2px #38bdf8, 0 6px 18px rgba(17, 108, 191, 0.5) !important;
}

.sidebar-hero-btn .hero-btn-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  flex-shrink: 0 !important;
}

.sidebar-hero-btn .hero-btn-sparkle {
  font-size: 13px !important;
  filter: drop-shadow(0 0 6px rgba(253, 224, 71, 0.8)) !important;
}

/* Khi sidebar thu gọn */
.app-shell.sidebar-collapsed .sidebar-hero-cta {
  padding: 10px 8px !important;
}

.app-shell.sidebar-collapsed .sidebar-hero-btn {
  width: 44px !important;
  height: 44px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

.app-shell.sidebar-collapsed .sidebar-hero-btn .hero-btn-text,
.app-shell.sidebar-collapsed .sidebar-hero-btn .hero-btn-sparkle {
  display: none !important;
}

/* Tiêu đề phân nhóm Sidebar (Section Dividers) */
.sidebar-nav .nav-section-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 16px 14px 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.sidebar-nav .nav-section-label::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Tab điều hướng (Modern Nav Items) */
.nav-item {
  border-radius: 12px !important;
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  margin: 3px 8px !important;
  border: 1px solid transparent !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.nav-item .nav-icon {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 9px !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: translateX(3px) !important;
}

.nav-item:hover .nav-icon {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(17, 108, 191, 0.24) 0%, rgba(23, 144, 191, 0.08) 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-color: rgba(23, 144, 191, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.nav-item.active .nav-icon {
  background: linear-gradient(135deg, #116cbf, #1790bf) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(17, 108, 191, 0.45) !important;
}

.nav-item.active:before {
  background: #1790bf !important;
  box-shadow: 0 0 10px rgba(23, 144, 191, 0.8) !important;
  width: 4px !important;
  height: 20px !important;
  border-radius: 0 4px 4px 0 !important;
  left: -8px !important;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 14px 16px !important;
}

.sidebar-footer .sidebar-upgrade {
  background: linear-gradient(135deg, rgba(17, 108, 191, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%) !important;
  border: 1px solid rgba(23, 144, 191, 0.35) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

.sidebar-footer .sidebar-upgrade:hover {
  filter: brightness(1.12) !important;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.3) !important;
}

.sidebar-footer .user-info {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  transition: all 0.2s ease !important;
}

.sidebar-footer .user-info:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.sidebar-footer .user-info .avatar {
  background: linear-gradient(135deg, #116cbf 0%, #06b6d4 100%) !important;
  box-shadow: 0 3px 10px rgba(17, 108, 191, 0.4) !important;
}

.sidebar-footer .user-info .user-details .plan {
  background: rgba(17, 108, 191, 0.25) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(23, 144, 191, 0.3) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   2. THANH TIÊU ĐỀ (FROSTED GLASS TOPBAR)
   ========================================================================== */
.topbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  height: 64px !important;
}

.topbar-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.3px !important;
}

.acct-trigger {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 5px 12px 5px 6px !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.2s ease !important;
}

.acct-trigger:hover, .acct-trigger.open {
  border-color: #cbd5e1 !important;
  box-shadow: var(--shadow) !important;
  transform: translateY(-1px);
}

.acct-avatar {
  background: linear-gradient(135deg, #116cbf 0%, #06b6d4 100%) !important;
  box-shadow: 0 3px 8px rgba(17, 108, 191, 0.35) !important;
  border-radius: 9px !important;
}

.acct-name {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

.acct-menu {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 18px 38px -6px rgba(15, 23, 42, 0.15) !important;
}

/* Nút bấm Tạo tem nhãn trên Topbar */
.topbar-create-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  background: linear-gradient(135deg, #116cbf 0%, #1790bf 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 3px 10px rgba(17, 108, 191, 0.35) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-right: 12px !important;
}

.topbar-create-btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(17, 108, 191, 0.45) !important;
  filter: brightness(1.08) !important;
  color: #ffffff !important;
}

.topbar-create-btn:active {
  transform: scale(0.97) !important;
}

/* ==========================================================================
   3. NÚT BẤM VÀ Ô NHẬP LIỆU (PREMIUM BUTTONS & INPUTS)
   ========================================================================== */
.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 8px 18px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #116cbf 0%, #005893 100%) !important;
  border: 1px solid #005893 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(17, 108, 191, 0.35) !important;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #005893 0%, #004573 100%) !important;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.45) !important;
  transform: translateY(-1px) !important;
}

.btn-secondary, .btn-outline {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: var(--shadow-sm) !important;
}

.btn-secondary:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.form-control, .form-select, input[type="text"], input[type="number"], select {
  border-radius: 9px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.form-control:focus, input:focus, select:focus {
  border-color: #1790bf !important;
  box-shadow: 0 0 0 3px rgba(23, 144, 191, 0.16) !important;
  outline: none !important;
}

/* ==========================================================================
   4. THẺ THỐNG KÊ DASHBOARD (VIBRANT STAT CARDS)
   ========================================================================== */
.stat-card {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
  box-shadow: var(--shadow) !important;
  padding: 22px !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.stat-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: #bae6fd !important;
}

.stat-card .stat-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-sm) !important;
}

.stat-card:nth-child(1) .stat-icon {
  background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%) !important;
  color: #116cbf !important;
}

.stat-card:nth-child(2) .stat-icon {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
  color: #10b981 !important;
}

.stat-card:nth-child(3) .stat-icon {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
  color: #f59e0b !important;
}

.stat-card:nth-child(4) .stat-icon {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  color: #0284c7 !important;
}

.stat-card .stat-value {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.5px !important;
}

.stat-card .stat-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

/* ==========================================================================
   5. KHU VỰC THIẾT KẾ TEM NHÃN (CANVAS STUDIO PRO)
   ========================================================================== */
.dsgn-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background: #f8fafc !important;
}

/* Thanh công cụ trên cùng (Top Toolbar) */
.dsgn-toolbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  min-height: 56px !important;
  padding: 8px 18px !important;
  gap: 8px !important;
}

/* Nút quay lại kho mẫu tem */
.dsgn-back {
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 0 14px 0 12px !important;
  height: 38px !important;
  transition: all 0.18s ease !important;
}

.dsgn-back svg {
  color: #116cbf !important;
  transition: transform 0.18s ease !important;
}

.dsgn-back:hover {
  background: #f0f7ff !important;
  border-color: #bae6fd !important;
  color: #116cbf !important;
  box-shadow: 0 2px 8px rgba(17, 108, 191, 0.18) !important;
}

.dsgn-back:hover svg {
  transform: translateX(-3px) !important;
}

/* Nút bấm hành động trên thanh công cụ */
.dsgn-btn {
  border-radius: 9px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.18s ease !important;
}

.dsgn-btn.primary {
  background: linear-gradient(135deg, #116cbf 0%, #005893 100%) !important;
  border: 1px solid #005893 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(17, 108, 191, 0.35) !important;
}

.dsgn-btn.primary:hover {
  background: linear-gradient(135deg, #005893 0%, #004573 100%) !important;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Nút biểu tượng (Undo, Redo, Thước, Lưới...) */
.dsgn-icon-btn, .dsgn-tool {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #475569 !important;
  transition: all 0.15s ease !important;
}

.dsgn-icon-btn:hover, .dsgn-tool:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.dsgn-icon-btn.active, .dsgn-tool.active {
  background: #f0f7ff !important;
  border-color: #38bdf8 !important;
  color: #116cbf !important;
}

/* Thanh ray công cụ bên trái (Left Tool Rail) */
.dsgn-rail {
  background: linear-gradient(180deg, #0f172a 0%, #172033 100%) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 68px !important;
}

.dsgn-rail-btn {
  color: #94a3b8 !important;
  border-radius: 12px !important;
  margin: 6px 6px !important;
  padding: 8px 4px !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.dsgn-rail-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.dsgn-rail-btn.active {
  background: linear-gradient(135deg, #116cbf 0%, #1790bf 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.4) !important;
}

/* Bảng ngăn kéo bên trái (Side Drawer Panel) */
.dsgn-side-panel {
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.04) !important;
  background: #ffffff !important;
}

.dsgn-panel-title {
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* Không gian làm việc & Giấy tem thiết kế (Studio Canvas & Paper) */
.dsgn-stage {
  background-color: #f1f5f9 !important;
}

.dsgn-canvas-wrap {
  background-color: #f1f5f9 !important;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px) !important;
  background-size: 20px 20px !important;
}

/* Giấy tem nhãn - Luôn luôn trắng sáng, sắc nét, nổi khối rõ rệt */
.dsgn-label-canvas {
  background-color: #ffffff;
  box-shadow: 0 14px 34px -4px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
  transition: box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.dsgn-label-canvas.dsgn-canvas-transparent {
  background-color: #ffffff !important;
  background-image: 
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%), 
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%), 
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%) !important;
  background-size: 16px 16px !important;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px !important;
}

/* Bảng thuộc tính bên phải (Right Inspector Panel) */
.dsgn-right {
  border-left: 1px solid #e2e8f0 !important;
  box-shadow: -4px 0 20px rgba(15, 23, 42, 0.04) !important;
  background: #ffffff !important;
}

/* Thanh zoom & điều hướng dưới đáy (Bottom Zoom Bar) */
.dsgn-bottombar {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Hướng dẫn từng bước (Tour Modal - khi mở thủ công qua nút Trợ giúp) */
.dsgn-tour-mask {
  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

.dsgn-tour-pop {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.25) !important;
  background: #ffffff !important;
}

.dsgn-tour-count {
  background: #f0f7ff !important;
  color: #116cbf !important;
  font-weight: 700 !important;
}

.dsgn-tour-btn.primary {
  background: #116cbf !important;
  border-color: #116cbf !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(17, 108, 191, 0.3) !important;
}

/* ==========================================================================
   6. THƯ VIỆN MẪU TEM (TEMPLATES GALLERY CARDS)
   ========================================================================== */
.lib-cat {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  box-shadow: var(--shadow-sm) !important;
}

.lib-cat:hover {
  border-color: #bae6fd !important;
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow) !important;
}

.lib-cat.active {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%) !important;
  border-color: #1790bf !important;
  box-shadow: 0 0 0 3px rgba(23, 144, 191, 0.18) !important;
}

.lib-cat.active b {
  color: #116cbf !important;
}

.lib-cat.active .ic {
  background: #116cbf !important;
  color: #ffffff !important;
}

.lib-card, .lbl-tpl-card {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: var(--shadow-sm) !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: #ffffff !important;
}

.lib-card:hover, .lbl-tpl-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-hover) !important;
  border-color: #bae6fd !important;
}

.lbl-tpl-card.selected {
  border-color: #1790bf !important;
  box-shadow: 0 0 0 3px rgba(23, 144, 191, 0.25) !important;
}

.lbl-tpl-card .tpl-thumb, .lib-thumb {
  border-radius: 10px !important;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid #e2e8f0 !important;
}

.lib-use, .lbl-tpl-card .tpl-action {
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  border: 1px solid #116cbf !important;
  color: #116cbf !important;
  background: #ffffff !important;
  transition: all 0.18s ease !important;
}

.lib-use:hover:not(:disabled), .lbl-tpl-card .tpl-action:hover:not(:disabled) {
  background: #116cbf !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(17, 108, 191, 0.3) !important;
}

.lbl-tpl-card .tpl-action.primary {
  background: #116cbf !important;
  color: #ffffff !important;
}

/* ==========================================================================
   7. HUY HIỆU VÀ MODAL (BADGES & MODALS)
   ========================================================================== */
.badge {
  border-radius: 99px !important;
  font-weight: 700 !important;
  padding: 3px 9px !important;
}

.badge-primary {
  background: #f0f7ff !important;
  color: #005893 !important;
}

.modal {
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
  overflow: hidden !important;
}

.modal-backdrop {
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

/* ==========================================================================
   8. THẺ WATERMARK BẢN THỬ NGHIỆM LOCALHOST
   ========================================================================== */
.preview-watermark-badge { display: none !important;
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99999;
  background: linear-gradient(135deg, #116cbf, #06b6d4);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.45);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  letter-spacing: 0.3px;
}

.preview-watermark-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}


/* ==========================================================
   BARTENDER FORMATTING RIBBON & DESIGNER ENHANCEMENTS
   ========================================================== */

/* 1. Hide 'Nội dung' and 'Kiểu chữ' filter tabs in left text panel */
.dsgn-text-tabs button:nth-child(2),
.dsgn-text-tabs button:nth-child(3) {
  display: none !important;
}

/* 2. Clear, prominent clickable action cards for text insertion */
.dsgn-text-quicks {
  padding: 16px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
}

.dsgn-text-quicks::before {
  content: "BẤM VÀO ĐỂ THÊM VĂN BẢN VÀO TEM:";
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.dsgn-text-quick {
  cursor: pointer !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
}

.dsgn-text-quick:hover {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1d4ed8 !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}

.dsgn-text-quick:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
}

/* Add "+ Thêm vào tem" button badge to the right of each card */
.dsgn-text-quick::after {
  content: "+ Thêm";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
  margin-left: 10px;
  flex-shrink: 0;
}

.dsgn-text-quick:hover::after {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* 3. Top toolbar buttons - make them clear with explicit text labels */
button[title="Đổi kích thước"].dsgn-size-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 12px !important;
  height: 34px !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

button[title="Đổi kích thước"].dsgn-size-pill:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

button[title="Đổi kích thước"].dsgn-size-pill::before {
  content: "Kích thước: ";
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* Base style for top toolbar action pills */
.dsgn-size-pill.dsgn-rotate-btn,
.dsgn-color-btn {
  width: auto !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.dsgn-size-pill.dsgn-rotate-btn:hover,
.dsgn-color-btn:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

.dsgn-size-pill.dsgn-rotate-btn svg,
.dsgn-color-btn svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}

/* Recenter / Fit Screen button */
button[title*="giữa màn hình"].dsgn-rotate-btn::after {
  content: "Vừa màn hình";
  white-space: nowrap;
}

/* Snap to ruler button */
.dsgn-snap-btn::after {
  content: "Hít thước";
  white-space: nowrap;
}
.dsgn-snap-btn.active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

/* Grid toggle button */
.dsgn-grid-btn::after {
  content: "Lưới";
  white-space: nowrap;
}
.dsgn-grid-btn.active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  color: #1d4ed8 !important;
}

/* Rotate template button (swap W/H) */
button[title="Xoay khổ tem 90°"].dsgn-rotate-btn::after {
  content: "Xoay tem";
  white-space: nowrap;
}

/* Hide confusing second rotate icon to simplify toolbar */
button[title*="giữ nguyên nội dung"].dsgn-rotate-btn {
  display: none !important;
}

/* Background color button */
.dsgn-color-btn::after {
  content: "Màu nền";
  white-space: nowrap;
}

/* 4. BarTender docked formatting toolbar ribbon above ruler */
.dsgn-ctxbar {
  display: none !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  background: #f8fafc !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  padding: 0 10px !important;
  gap: 3px !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  align-items: center !important;
  justify-content: flex-start !important;
  z-index: 20 !important;
}

.dsgn-ctxbar::-webkit-scrollbar {
  display: none !important;
}

.dsgn-ctxbar.show {
  display: flex !important;
}

.dsgn-ctxbar .dsgn-tb-btn {
  width: 29px !important;
  height: 29px !important;
  min-width: 29px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

.dsgn-ctxbar .dsgn-tb-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.dsgn-ctxbar .dsgn-tb-btn.active {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
  font-weight: 700 !important;
}

.dsgn-ctxbar .dsgn-tb-color {
  width: 29px !important;
  height: 29px !important;
  min-width: 29px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #fff !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  position: relative !important;
  flex-shrink: 0 !important;
  padding: 2px 0 0 0 !important;
}

.dsgn-ctxbar .dsgn-tb-color::after {
  content: "" !important;
  display: block !important;
  width: 18px !important;
  height: 3.5px !important;
  background: var(--c, #000) !important;
  border-radius: 1px !important;
  margin-top: 2px !important;
}

.dsgn-ctxbar .dsgn-tb-color:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
}

.dsgn-ctxbar .dsgn-tb-color input[type="color"] {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer !important;
}

.dsgn-ctxbar .dsgn-fbar-sep {
  width: 1px !important;
  height: 18px !important;
  background: #cbd5e1 !important;
  margin: 0 3px !important;
  flex-shrink: 0 !important;
}

.dsgn-ctxbar .dsgn-stepper {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #fff !important;
  height: 29px !important;
  flex-shrink: 0 !important;
}

.dsgn-ctxbar .dsgn-stepper button {
  width: 22px !important;
  height: 100% !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #475569 !important;
  padding: 0 !important;
}

.dsgn-ctxbar .dsgn-stepper button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.dsgn-ctxbar .dsgn-stepper input {
  width: 36px !important;
  height: 100% !important;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background: transparent !important;
  padding: 0 !important;
}

.dsgn-ctxbar select.dsgn-tb-font {
  height: 29px !important;
  font-size: 12.5px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 0 4px !important;
  background: #fff !important;
  color: #1e293b !important;
  flex-shrink: 0 !important;
}

/* ==========================================================================
   BẢNG ĐỔI KÍCH THƯỚC HIỆN BÊN TRÁI (LEFT PANEL / TAB) & THƯỚC KẺ ĐƠN VỊ
   ========================================================================== */

/* Cố định toàn bộ khung Thay đổi kích thước thành INLINE SIDE PANEL cạnh dsgn-rail */
.dsgn-body > .dsgn-modal-backdrop,
.dsgn-modal-backdrop:has(.dsgn-size-fields) {
  position: static !important;
  top: auto !important;
  left: auto !important;
  bottom: auto !important;
  right: auto !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  flex: 0 0 340px !important;
  height: 100% !important;
  background: #ffffff !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 4px 0 20px rgba(15, 23, 42, 0.04) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  z-index: 10 !important;
  pointer-events: auto !important;
  overflow: hidden !important;
}

.dsgn-body > .dsgn-modal-backdrop .dsgn-modal,
.dsgn-modal-backdrop:has(.dsgn-size-fields) .dsgn-modal {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  background: #ffffff !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: none !important;
  pointer-events: auto !important;
}

.dsgn-body > .dsgn-modal-backdrop .dsgn-modal-header,
.dsgn-modal-backdrop:has(.dsgn-size-fields) .dsgn-modal-header {
  flex-shrink: 0 !important;
  padding: 16px 18px 14px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.dsgn-body > .dsgn-modal-backdrop .dsgn-modal-header h3,
.dsgn-modal-backdrop:has(.dsgn-size-fields) .dsgn-modal-header h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

/* Ẩn nút đóng X theo yêu cầu - chuyển tab hoặc bấm nút Kích thước để đóng */
.dsgn-body > .dsgn-modal-backdrop .dsgn-modal-close,
.dsgn-modal-backdrop:has(.dsgn-size-fields) .dsgn-modal-close {
  display: none !important;
}

.dsgn-body > .dsgn-modal-backdrop .dsgn-modal-body,
.dsgn-modal-backdrop:has(.dsgn-size-fields) .dsgn-modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  max-height: none !important;
  padding: 16px 18px 24px !important;
}

/* Góc thước kẻ (Ruler Corner - Hiển thị đơn vị mm/cm) */
.dsgn-ruler-corner {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 22px !important;
  height: 22px !important;
  border-right: 1px solid #cbd5e1 !important;
  border-bottom: 1px solid #cbd5e1 !important;
  background: #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 6 !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.15s ease !important;
}

.dsgn-ruler-corner:hover {
  background: #dbeafe !important;
}

.dsgn-ruler-corner span {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  letter-spacing: 0.5px !important;
  line-height: 1 !important;
}

/* Thanh thước kẻ trên & trái khi hover */
.dsgn-ruler-top, .dsgn-ruler-left {
  cursor: crosshair !important;
}

@media (max-width: 1100px) {
  .dsgn-body > .dsgn-modal-backdrop,
  .dsgn-modal-backdrop:has(.dsgn-size-fields) {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
    flex: 0 0 330px !important;
  }
}
@media (max-width: 768px) {
  .dsgn-body > .dsgn-modal-backdrop,
  .dsgn-modal-backdrop:has(.dsgn-size-fields) {
    width: 310px !important;
    min-width: 310px !important;
    max-width: 310px !important;
    flex: 0 0 310px !important;
  }
}


/* ===== Print Settings: Move Roll to Left, Clean Right Panel ===== */
.dsgn-rhead-print,
.dsgn-rbottom .dsgn-rsection,
#dsgn-roll-enhancer {
  display: none !important;
}

.dsgn-rbottom {
  display: block !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  padding: 14px 16px !important;
}

.dsgn-rbottom .dsgn-rfoot {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.dsgn-rbottom .dsgn-print-now {
  width: 100% !important;
  height: 48px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, #06b6d4, #0891b2) !important;
  color: #ffffff !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35) !important;
  transition: all 0.2s ease !important;
}

.dsgn-rbottom .dsgn-print-now:hover {
  background: linear-gradient(90deg, #0891b2, #0e7490) !important;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.5) !important;
  transform: translateY(-1px) !important;
}

.dsgn-rbottom .dsgn-print-now:active {
  transform: translateY(1px) !important;
}

/* Left Size Modal body scrolling and presets styling */
.dsgn-modal-backdrop .dsgn-modal-body {
  overflow-y: auto !important;
  max-height: calc(100vh - 110px) !important;
  padding: 16px !important;
}

#dsgn-presets-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  margin-top: 10px;
}
#dsgn-presets-toggle:hover {
  background: #f0f9ff;
  border-color: #7dd3fc;
}
#dsgn-presets-toggle.active {
  background: #f0f9ff;
  border-color: #0284c7;
}

.dsgn-roll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dsgn-roll-btn:hover {
  border-color: #06b6d4;
  color: #0891b2;
  background: #f0f9ff;
}
.dsgn-roll-btn.active {
  border-color: #0891b2;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.35);
}

/* ==========================================================================
   THƯ VIỆN TEM MẪU (/system-templates)
   Ẩn hoàn toàn thanh danh mục mẫu chuẩn theo yêu cầu
   ========================================================================== */
.lib-cats {
  display: none !important;
}

.lib-bar {
  margin-top: 0 !important;
  padding-top: 4px !important;
}

/* ==========================================================================
   HỒ SƠ CÁ NHÂN (/profile)
   Sắp xếp lại và hiện đại hóa giao diện, giữ nguyên màu sắc chủ đạo
   ========================================================================== */
app-profile {
  display: block;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4px 0 32px;
}

app-profile .page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

app-profile .page-header::before {
  content: "Cài đặt hồ sơ & Tài khoản";
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

app-profile .page-header .btn {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 9px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3 !important;
  background: #fff1f2 !important;
  transition: all 0.18s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

app-profile .page-header .btn:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.14) !important;
}

app-profile .card {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease !important;
}

app-profile .card:hover {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04) !important;
}

app-profile .card-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

app-profile .card-header h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
}

app-profile .card-header p {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 0 !important;
}

app-profile .card-body {
  padding: 24px !important;
}

app-profile .form-group {
  margin-bottom: 18px !important;
}

app-profile .form-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
}

app-profile .form-control {
  height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 13.5px !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  transition: all 0.18s ease !important;
}

app-profile .form-control:focus {
  border-color: #116cbf !important;
  box-shadow: 0 0 0 3px rgba(17, 108, 191, 0.16) !important;
}

app-profile .form-control:disabled {
  background: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  border-color: #e2e8f0 !important;
}

@media (min-width: 640px) {
  app-profile .grid > .card:nth-child(1) form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 18px !important;
  }

  app-profile .grid > .card:nth-child(1) form .form-group:nth-child(5),
  app-profile .grid > .card:nth-child(1) form button[type="submit"] {
    grid-column: span 2 !important;
  }
}

app-profile .btn-primary {
  height: 42px !important;
  padding: 0 24px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  background: #116cbf !important;
  border: 1px solid #116cbf !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(17, 108, 191, 0.25) !important;
  transition: all 0.18s ease !important;
  cursor: pointer !important;
}

app-profile .btn-primary:hover:not(:disabled) {
  background: #0d5294 !important;
  border-color: #0d5294 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(17, 108, 191, 0.35) !important;
}

app-profile .grid > .card:nth-child(2) .card-body > .mt-6:first-of-type {
  margin-top: 24px !important;
  padding: 14px 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

app-profile .grid > .card:nth-child(2) .card-body > .mt-6:last-of-type {
  margin-top: 10px !important;
  padding: 14px 16px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

app-profile .grid > .card:nth-child(2) .badge-success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
}

/* ==========================================================================
   6. BARTENDER MODERN TOP TOOLBAR & COMPACT BARCODE STYLING
   ========================================================================== */

/* BarTender Toolbar container */
.dsgn-bt-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.dsgn-bt-group {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 9px !important;
  border: 1px solid #e2e8f0 !important;
}

.dsgn-bt-item {
  position: relative !important;
}

.dsgn-bt-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 7px !important;
  border: 1px solid transparent !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.dsgn-bt-btn:hover {
  background: #ffffff !important;
  color: #116cbf !important;
  border-color: #93c5fd !important;
  box-shadow: 0 2px 6px rgba(17, 108, 191, 0.15) !important;
}

.dsgn-bt-btn svg {
  color: #116cbf !important;
  flex-shrink: 0 !important;
}

.dsgn-bt-arr {
  color: #94a3b8 !important;
  margin-left: -1px !important;
  transition: transform 0.15s ease !important;
}

.dsgn-bt-item:hover .dsgn-bt-arr,
.dsgn-bt-pop.open ~ .dsgn-bt-btn .dsgn-bt-arr {
  color: #116cbf !important;
}

/* Popups for BarTender Quick Tools */
.dsgn-bt-pop {
  display: none;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
  z-index: 9999 !important;
  padding: 8px !important;
  min-width: 240px !important;
}

.dsgn-bt-pop.open {
  display: block !important;
  animation: dsgnFadeSlideDown 0.16s ease-out !important;
}

@keyframes dsgnFadeSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dsgn-bt-pop-wide {
  min-width: 360px !important;
}

.dsgn-bt-pop-title {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #64748b !important;
  letter-spacing: 0.06em !important;
  padding: 4px 8px 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  margin-bottom: 6px !important;
}

.dsgn-bt-pop-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
}

.dsgn-bt-pop-item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 7px 10px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  transition: all 0.12s ease !important;
  border: 1px solid transparent !important;
}

.dsgn-bt-pop-item:hover {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}

.dsgn-bt-pop-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.dsgn-bt-pop-text b {
  font-size: 12px !important;
  color: #1e293b !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dsgn-bt-pop-text small {
  font-size: 10.5px !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Badges for Barcode in Popup */
.dsgn-bt-pop-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 22px !important;
  border-radius: 5px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  flex-shrink: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

.dsgn-bt-pop-badge.qr { background: #ede9fe !important; color: #6d28d9 !important; border: 1px solid #ddd6fe !important; }
.dsgn-bt-pop-badge.code { background: #dbeafe !important; color: #1d4ed8 !important; border: 1px solid #bfdbfe !important; }
.dsgn-bt-pop-badge.retail { background: #dcfce7 !important; color: #15803d !important; border: 1px solid #bbf7d0 !important; }
.dsgn-bt-pop-badge.upc { background: #ccfbf1 !important; color: #0f766e !important; border: 1px solid #99f6e4 !important; }
.dsgn-bt-pop-badge.ind { background: #fef3c7 !important; color: #b45309 !important; border: 1px solid #fde68a !important; }
.dsgn-bt-pop-badge.med { background: #ffe4e6 !important; color: #be123c !important; border: 1px solid #fecdd3 !important; }
.dsgn-bt-pop-badge.wh { background: #f3e8ff !important; color: #7e22ce !important; border: 1px solid #e9d5ff !important; }

/* Line samples in popup */
.dsgn-bt-line-sample {
  width: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #334155 !important;
}
.dsgn-bt-line-sample.solid { height: 2px !important; background: #334155 !important; border-radius: 1px !important; }
.dsgn-bt-line-sample.thick { height: 4px !important; background: #334155 !important; border-radius: 2px !important; }
.dsgn-bt-line-sample.dashed { height: 2px !important; border-top: 2px dashed #334155 !important; }
.dsgn-bt-line-sample.dotted { height: 2px !important; border-top: 2px dotted #334155 !important; }
.dsgn-bt-line-sample.vert { font-weight: 800 !important; color: #334155 !important; }

/* Shape samples in popup */
.dsgn-bt-shape-sample {
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 12px !important;
}
.dsgn-bt-shape-sample.rect { border: 2px solid #334155 !important; border-radius: 3px !important; }
.dsgn-bt-shape-sample.circle { border: 2px solid #334155 !important; border-radius: 50% !important; }
.dsgn-bt-shape-sample.ellipse { border: 2px solid #334155 !important; border-radius: 50% !important; width: 26px !important; height: 18px !important; }
.dsgn-bt-shape-sample.tri { color: #334155 !important; }
.dsgn-bt-shape-sample.diamond { color: #334155 !important; }
.dsgn-bt-shape-sample.filled { background: #116cbf !important; border-radius: 3px !important; }
.dsgn-bt-shape-sample.colorbar { height: 8px !important; background: #116cbf !important; border-radius: 2px !important; }

/* ==========================================================================
   MINIATURIZE BARCODE CARDS IN LEFT DRAWER (BARTENDER STYLE)
   ========================================================================== */
.dsgn-bc-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  padding: 4px 0 !important;
}

.dsgn-bc-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 6px 10px !important;
  gap: 10px !important;
  border-radius: 7px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  transition: all 0.15s ease !important;
  min-height: 40px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.dsgn-bc-card:hover {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12) !important;
  transform: translateY(-1px) !important;
}

.dsgn-bc-sample {
  width: 42px !important;
  height: 26px !important;
  min-width: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 5px !important;
  padding: 2px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.dsgn-bc-sample svg,
.dsgn-bc-sample img,
.dsgn-bc-qr,
.dsgn-bc-1d svg {
  max-width: 100% !important;
  max-height: 100% !important;
  height: 22px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.dsgn-bc-info {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex: 1 !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.dsgn-bc-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.dsgn-bc-code {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
}

/* Compact Shapes & Lines in Left Drawer */
.dsgn-graphics-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}

.dsgn-graphic-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 4px !important;
  min-height: 52px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  gap: 5px !important;
  border-radius: 7px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
}

.dsgn-graphic-btn:hover {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.dsgn-graphic-btn .g-icon {
  width: 20px !important;
  height: 20px !important;
}

.dsgn-line-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 6px !important;
}

.dsgn-line-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 4px !important;
  min-height: 42px !important;
  border-radius: 7px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  gap: 3px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.dsgn-line-card:hover {
  border-color: #3b82f6 !important;
  background: #eff6ff !important;
}

.dsgn-line-name {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

/* ==========================================================================
   BARTENDER SUITE COMPLETE BARCODE LIBRARY STYLES
   ========================================================================== */
.dsgn-bt-pop.dsgn-bt-pop-full {
  min-width: 620px !important;
  max-width: 700px !important;
  max-height: 540px !important;
  display: none;
  flex-direction: column !important;
  padding: 10px 14px 14px 14px !important;
}

.dsgn-bt-pop.dsgn-bt-pop-full.open {
  display: flex !important;
}

.dsgn-bt-pop-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.dsgn-bt-pop-header .dsgn-bt-pop-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  white-space: nowrap !important;
}

.dsgn-bt-bc-searchbox {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  flex: 1 1 auto !important;
  max-width: 330px !important;
  transition: all 0.15s ease !important;
}

.dsgn-bt-bc-searchbox:focus-within {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

.dsgn-bt-bc-searchbox svg {
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.dsgn-bt-bc-search-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 11px !important;
  color: #1e293b !important;
  width: 100% !important;
}

.dsgn-bt-bc-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin-bottom: 8px !important;
}

.dsgn-bt-bc-tab {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.dsgn-bt-bc-tab:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.dsgn-bt-bc-tab.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

.dsgn-bt-pop-scrollable {
  max-height: 350px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
}

.dsgn-bt-pop-scrollable::-webkit-scrollbar {
  width: 5px;
}

.dsgn-bt-pop-scrollable::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dsgn-bt-pop-scrollable::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Color badges for BarTender categories */
.dsgn-bt-pop-badge.linear { background: #e0f2fe !important; color: #0284c7 !important; }
.dsgn-bt-pop-badge.retail { background: #dcfce7 !important; color: #16a34a !important; }
.dsgn-bt-pop-badge.gs1 { background: #fef3c7 !important; color: #d97706 !important; }
.dsgn-bt-pop-badge.2d { background: #ede9fe !important; color: #7c3aed !important; }
.dsgn-bt-pop-badge.postal { background: #f1f5f9 !important; color: #475569 !important; }
.dsgn-bt-pop-badge.composite { background: #ffe4e6 !important; color: #e11d48 !important; }
.dsgn-bt-pop-item.dsgn-hidden { display: none !important; }

/* BarTender mini barcode thumbnail preview */
.dsgn-bt-pop-thumb {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 26px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
  padding: 1px 2px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
  transition: all 0.15s ease !important;
}

.dsgn-bt-pop-item:hover .dsgn-bt-pop-thumb {
  border-color: #93c5fd !important;
  background: #f8fafc !important;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.15) !important;
}

.dsgn-bt-pop-thumb svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Resizer Splitter Bars - Seamless hoverable separator without visible pill handles */
.dsgn-panel-resizer {
  width: 8px !important;
  min-width: 8px !important;
  margin-left: -4px !important;
  margin-right: -4px !important;
  cursor: col-resize !important;
  background: transparent !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 30 !important;
  position: relative !important;
  transition: none !important;
}

.dsgn-panel-resizer:hover,
.dsgn-panel-resizer:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.dsgn-right-resizer {
  border: none !important;
}

.dsgn-panel-resizer-grip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dsgn-panel-resizer:hover .dsgn-panel-resizer-grip,
.dsgn-panel-resizer:active .dsgn-panel-resizer-grip {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ==========================================================================
   TOOLBAR 2-ROW REDESIGN & CANVAS PROPS PANEL
   ========================================================================== */

/* Hide Xoay tem, Hút thước, Màu nền, Vừa màn hình from top horizontal toolbar */
.dsgn-toolbar .dsgn-rotate-btn,
.dsgn-toolbar .dsgn-snap-btn,
.dsgn-toolbar .dsgn-color-pop {
  display: none !important;
}

/* Toolbar container formatting */
.dsgn-toolbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 54px !important;
  padding: 8px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

/* Row 1 items: Back on left, file/doc actions on right */
.dsgn-back {
  order: 1 !important;
  margin-right: auto !important;
}

.dsgn-toolbar-right {
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: 0 !important;
  flex-wrap: wrap !important;
}

/* In Row 2, BarTender tools sit directly after Kích thước */
#dsgn-bartender-tools {
  order: 4 !important;
}

.dsgn-size-pill:not(.dsgn-rotate-btn) {
  order: 3 !important;
}

.dsgn-grid-btn {
  order: 5 !important;
}

.dsgn-doc {
  order: 10 !important;
  margin-left: auto !important;
}

.dsgn-act-preview {
  order: 11 !important;
}

.dsgn-act-print {
  order: 12 !important;
}

.dsgn-help-btn {
  order: 13 !important;
}

/* Canvas Properties Panel Styling */
.dsgn-canvas-props-panel {
  background: #ffffff;
}

.dsgn-bg-preset-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dsgn-bg-preset-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Multi-selection Alignment & Distribution Panel */
.dsgn-multi-panel {
  padding: 12px 10px !important;
  background: #f8fafc;
}

.dsgn-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dsgn-quick-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.dsgn-quick-btn.danger {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.dsgn-quick-btn.danger:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #b91c1c;
}

.dsgn-align-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.dsgn-align-btn:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.dsgn-align-btn:active {
  background: #dbeafe;
  transform: translateY(0px);
}

.dsgn-align-btn svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.dsgn-align-btn:hover svg {
  transform: scale(1.08);
}

/* Option 1: Hide left vertical dark rail completely */
.dsgn-rail {
  display: none !important;
}

/* Side panel when opened (Templates / Excel data) */
.dsgn-side-panel {
  position: relative !important;
  z-index: 20 !important;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.08) !important;
  border-right: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
}

.dsgn-panel-close-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dsgn-panel-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #b91c1c;
}

#dsgn-btn-open-tpl.active,
#dsgn-btn-open-excel.active {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #3b82f6 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px #3b82f6 !important;
}

/* Tắt viền nét đứt đỏ cảnh báo tràn khổ tem */
.dsgn-el.dsgn-el-outside,
.dsgn-el-outside,
.dsgn-el.dsgn-el-clipped,
.dsgn-el-clipped {
  outline: none !important;
}




/* HEX Only Color Controls */
.dsgn-fbar-hex {
  display: none !important;
  width: 68px !important;
  height: 22px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  padding: 0 4px !important;
  font-size: 11.5px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  background: #ffffff !important;
  text-transform: uppercase !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.dsgn-fbar-hex:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.2) !important;
}
#dsgn-color-pop {
  position: fixed;
  width: 232px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.06);
  padding: 12px;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: none;
}
#dsgn-color-pop.show { display: block; }
.dsgn-cp-title {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dsgn-cp-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}
.dsgn-cp-chip {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.1s;
  box-sizing: border-box;
}
.dsgn-cp-chip:hover { transform: scale(1.15); z-index: 2; }
.dsgn-cp-canvas-wrap {
  position: relative;
  width: 100%;
  height: 115px;
  border-radius: 6px;
  overflow: hidden;
  cursor: crosshair;
  margin-bottom: 8px;
}
.dsgn-cp-cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 2px rgba(0,0,0,0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.dsgn-cp-hue-wrap {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  cursor: pointer;
  margin-bottom: 10px;
}
.dsgn-cp-hue-thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #64748b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.dsgn-cp-hex-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dsgn-cp-preview {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.dsgn-cp-input-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  height: 30px;
}
.dsgn-cp-input-prefix {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-right: 4px;
}
.dsgn-cp-hex-inp {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  text-transform: uppercase;
}

/* ================================================================
   DATA PANEL ENHANCEMENTS: SELECTION MODES & 2 QUANTITY MODES
   ================================================================ */

/* Hide legacy elements when new controls are active */
#dsgn-data-controls ~ .dsgn-data-head,
.dsgn-side-panel .dsgn-qty-select,
.dsgn-side-panel .dsgn-qty-warn {
  display: none !important;
}

.dsgn-data-controls-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dsgn-dc-block {
  margin-bottom: 9px;
}
.dsgn-dc-block:last-of-type {
  margin-bottom: 8px;
}

.dsgn-dc-title {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.dsgn-dc-seg {
  display: flex;
  gap: 4px;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 7px;
}

.dsgn-dc-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dsgn-dc-btn:hover {
  color: #0f172a;
  background: rgba(255,255,255,0.6);
}

.dsgn-dc-btn.active {
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  font-weight: 700;
}

.dsgn-dc-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid #94a3b8;
  margin-right: 5px;
  display: inline-block;
  box-sizing: border-box;
  position: relative;
}
.dsgn-dc-dot.checked {
  border-color: #1d4ed8;
}
.dsgn-dc-dot.checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1d4ed8;
}

.dsgn-dc-chk {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid #94a3b8;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.dsgn-dc-chk.checked {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}
.dsgn-dc-chk.checked::after {
  content: '✓';
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.dsgn-dc-qty-manual, .dsgn-dc-qty-excel {
  margin-top: 6px;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 6px 9px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.dsgn-dc-sublabel {
  font-size: 11px;
  color: #334155;
  font-weight: 600;
}

.dsgn-dc-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #94a3b8;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.dsgn-dc-step {
  width: 24px;
  height: 24px;
  border: none;
  background: #f1f5f9;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.dsgn-dc-step:hover {
  background: #e2e8f0;
}

.dsgn-dc-qty-inp {
  width: 44px;
  height: 24px;
  border: none;
  border-left: 1px solid #cbd5e1;
  border-right: 1px solid #cbd5e1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.dsgn-dc-unit {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.dsgn-dc-select {
  flex: 1;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.dsgn-dc-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #cbd5e1;
}

.dsgn-dc-status-text {
  font-size: 11px;
  color: #0f172a;
}

.dsgn-dc-badge-num {
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 10.5px;
  border: 1px solid #bbf7d0;
}

.dsgn-dc-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dsgn-dc-link-btn {
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 1px 3px;
}
.dsgn-dc-link-btn.danger {
  color: #ef4444;
}
.dsgn-dc-link-btn:hover {
  text-decoration: underline;
}

/* Radio styling when is-single-select */
table.is-single-select thead th.sel input[type="checkbox"] {
  display: none !important;
}
table.is-single-select thead th.sel::after {
  content: 'Chọn';
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
}
table.is-single-select tbody td.sel input[type="checkbox"] {
  border-radius: 50% !important;
  cursor: pointer;
  width: 14px;
  height: 14px;
}


/* --- 5 FEATURES UPGRADE: TABLE, SERIALIZATION, BARCODE POSITIONS --- */
.dsgn-table-cell {
  user-select: none;
  font-family: inherit;
  transition: background 0.15s ease;
}
.dsgn-table-cell:hover {
  background: rgba(17, 108, 191, 0.12) !important;
  cursor: cell;
}
.dsgn-tb-serial {
  transition: all 0.2s ease;
}
.dsgn-tb-serial.active {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  border-color: #7dd3fc !important;
  font-weight: 700 !important;
}
.dsgn-bt-pos-group .dsgn-tb-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 0 6px;
  height: 28px;
  border: none;
  border-right: 1px solid #cbd5e1;
  border-radius: 0;
  background: #fff;
  color: #475569;
}
.dsgn-bt-pos-group .dsgn-tb-btn:last-child {
  border-right: none;
}
.dsgn-bt-pos-group .dsgn-tb-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.dsgn-bt-pos-group .dsgn-tb-btn.active {
  background: #e0f2fe !important;
  color: #0284c7 !important;
  font-weight: 700;
}



/* ==========================================================================
   HACODE LABEL STUDIO - ULTIMATE DUAL THEME ENGINE (DARK CYBER & LIGHT SAAS)
   HỆ THỐNG 2 CHẾ ĐỘ SÁNG / TỐI CHUYÊN NGHIỆP CÙNG NÚT CHUYỂN ĐỔI TIỆN LỢI
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME TOGGLE BUTTONS UI
   -------------------------------------------------------------------------- */
.nav-theme-toggle {
  display: none !important;
}

.floating-theme-toggle {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 99999 !important;
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.3) !important;
  padding: 12px 20px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
}

.floating-theme-toggle:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.5) !important;
  border-color: #38bdf8 !important;
}

[data-theme="light"] .nav-theme-toggle {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .nav-theme-toggle:hover {
  background: #e2e8f0 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .floating-theme-toggle {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 15px rgba(2, 132, 199, 0.2) !important;
}

[data-theme="light"] .floating-theme-toggle:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 0 25px rgba(2, 132, 199, 0.3) !important;
}

/* --------------------------------------------------------------------------
   SHARED HARDWARE STUDIO WORKSTATION & SCANNER ANIMATION
   -------------------------------------------------------------------------- */
@keyframes scanLine {
  0% { left: 0%; opacity: 0.9; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0.9; }
}

@keyframes pulseNeon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-preview {
  background: #090e1a !important;
  border-radius: 24px !important;
  padding: 58px 24px 44px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(56, 189, 248, 0.3) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  background-image: radial-gradient(rgba(56, 189, 248, 0.12) 1px, transparent 1px) !important;
  background-size: 18px 18px !important;
  overflow: hidden !important;
}

.hero-preview::before {
  content: "● ● ●   HACODE LABEL STUDIO v2.5 · Khổ tem in 50x30mm · Chuẩn 203 DPI";
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 38px !important;
  background: #0f172a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  padding-left: 16px !important;
  letter-spacing: 0.04em !important;
}

.hero-preview::after {
  content: "⚡ Tương thích: Xprinter · Godex · Zebra | Trạng thái: Sẵn sàng in lệnh";
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 30px !important;
  background: #050811 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: #38bdf8 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  letter-spacing: 0.02em !important;
}

[data-theme="light"] .hero-preview {
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(2, 132, 199, 0.3) !important;
}

.label-mock {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 2px dashed #0284c7 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.15) !important;
  padding: 20px 22px !important;
  width: 250px !important;
  transform: rotate(-1.5deg) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
}

.label-mock:hover {
  transform: rotate(0deg) scale(1.03) !important;
  box-shadow: 0 25px 50px rgba(6, 182, 212, 0.35) !important;
}

.label-mock-head {
  border-bottom: 1.5px dashed #cbd5e1 !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
}

.label-mock-name {
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.label-mock-price {
  font-weight: 800 !important;
  color: #0284c7 !important;
  font-size: 16px !important;
}

.label-mock-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11.5px !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  margin-bottom: 12px !important;
}

.label-mock-barcode {
  background: repeating-linear-gradient(90deg, #0f172a 0px, #0f172a 2px, transparent 2px, transparent 4px, #0f172a 4px, #0f172a 6px, transparent 6px, transparent 7px, #0f172a 7px, #0f172a 9px) !important;
  height: 50px !important;
  border-radius: 4px !important;
  margin-bottom: 6px !important;
  position: relative !important;
  overflow: hidden !important;
}

.label-mock-barcode::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2.5px;
  background: #ef4444;
  box-shadow: 0 0 10px 2px #ef4444, 0 0 20px #ef4444;
  animation: scanLine 2.5s ease-in-out infinite alternate;
}

.label-mock-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 12.5px !important;
  letter-spacing: 2px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  text-align: center !important;
}

.label-mock.label-mock-sm {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
  padding: 16px !important;
  width: 140px !important;
  transform: rotate(2deg) !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
}

.label-mock.label-mock-sm:hover {
  transform: rotate(0deg) scale(1.03) !important;
}

.qr-mock {
  width: 95px !important;
  height: 95px !important;
  margin: 0 auto 8px !important;
  border-radius: 8px !important;
  padding: 6px !important;
  background: conic-gradient(#0f172a 90deg, #fff 90deg 180deg, #0f172a 180deg 270deg, #fff 270deg) 0 0 / 12px 12px, #fff !important;
  box-shadow: inset 0 0 0 1px #e2e8f0 !important;
}

/* ==========================================================================
   MODE 1: DARK CYBER-STUDIO THEME (DEFAULT & [data-theme="dark"])
   ========================================================================== */
html:not([data-theme="light"]),
body:not([data-theme="light"]),
[data-theme="dark"] html,
[data-theme="dark"] body {
  background-color: #070b14 !important;
  background: #070b14 !important;
  color: #f1f5f9 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0 !important;
  padding: 0 !important;
  scrollbar-color: #1e293b #070b14;
}

[data-theme="dark"] app-root,
[data-theme="dark"] app-landing,
html:not([data-theme="light"]) app-root,
html:not([data-theme="light"]) app-landing {
  display: block !important;
  background-color: #070b14 !important;
  background: #070b14 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

html:not([data-theme="light"]) .nav-public,
[data-theme="dark"] .nav-public {
  position: sticky !important;
  top: 16px !important;
  z-index: 100 !important;
  max-width: 1260px !important;
  margin: 12px auto 0 !important;
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
  transition: all 0.3s ease !important;
}

html:not([data-theme="light"]) .nav-inner,
[data-theme="dark"] .nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 10px 24px !important;
}

html:not([data-theme="light"]) .nav-inner .logo,
[data-theme="dark"] .nav-inner .logo {
  filter: brightness(1.25) contrast(1.1) !important;
  flex-shrink: 0 !important;
}

html:not([data-theme="light"]) .nav-public-links,
[data-theme="dark"] .nav-public-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

html:not([data-theme="light"]) .nav-public-links a,
[data-theme="dark"] .nav-public-links a {
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

html:not([data-theme="light"]) .nav-public-links a:hover,
[data-theme="dark"] .nav-public-links a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #38bdf8 !important;
}

html:not([data-theme="light"]) .nav-public-actions,
[data-theme="dark"] .nav-public-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

html:not([data-theme="light"]) .nav-login,
[data-theme="dark"] .nav-login {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

html:not([data-theme="light"]) .nav-login:hover,
[data-theme="dark"] .nav-login:hover {
  color: #38bdf8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

html:not([data-theme="light"]) .nav-cta,
[data-theme="dark"] .nav-cta,
html:not([data-theme="light"]) .nav-actions .btn-primary,
[data-theme="dark"] .nav-actions .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
  border-radius: 9999px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45) !important;
  border: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}

html:not([data-theme="light"]) .nav-cta:hover,
[data-theme="dark"] .nav-cta:hover {
  box-shadow: 0 0 32px rgba(6, 182, 212, 0.7) !important;
  transform: translateY(-1px) !important;
}

html:not([data-theme="light"]) .nav-cta .arr,
[data-theme="dark"] .nav-cta .arr {
  display: inline-block !important;
  white-space: nowrap !important;
}

/* Dark Hero */
html:not([data-theme="light"]) .hero,
[data-theme="dark"] .hero {
  position: relative !important;
  background: radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 90% 30%, rgba(99, 102, 241, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
              #070b14 !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  padding: 70px 24px 60px !important;
  overflow: hidden !important;
  max-width: 100vw !important;
}

html:not([data-theme="light"]) .hero-glow,
[data-theme="dark"] .hero-glow {
  max-width: 100vw !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html:not([data-theme="light"]) .hero h1,
[data-theme="dark"] .hero h1 {
  font-size: 48px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 22px !important;
}

html:not([data-theme="light"]) .hero h1 span,
html:not([data-theme="light"]) .hero h1 .grad,
[data-theme="dark"] .hero h1 span,
[data-theme="dark"] .hero h1 .grad {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900 !important;
  filter: drop-shadow(0 2px 12px rgba(56, 189, 248, 0.35));
}

html:not([data-theme="light"]) .hero p,
[data-theme="dark"] .hero p {
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: #94a3b8 !important;
  max-width: 580px !important;
  margin-bottom: 34px !important;
}

html:not([data-theme="light"]) .hero .btn-primary,
[data-theme="dark"] .hero .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%) !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5) !important;
  transition: all 0.25s ease !important;
  padding: 15px 32px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}

html:not([data-theme="light"]) .hero .btn-outline,
html:not([data-theme="light"]) .hero .btn-ghost-lg,
[data-theme="dark"] .hero .btn-outline,
[data-theme="dark"] .hero .btn-ghost-lg {
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 15px 28px !important;
  font-size: 16px !important;
}

html:not([data-theme="light"]) .hero-trust span,
[data-theme="dark"] .hero-trust span {
  display: inline-flex !important;
  align-items: center !important;
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

/* Dark Metrics Deck */
html:not([data-theme="light"]) .hero-stats,
[data-theme="dark"] .hero-stats {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.15) !important;
  padding: 32px 40px !important;
  margin: 56px auto 0 !important;
  max-width: 1220px !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
}

html:not([data-theme="light"]) .hero-stat-v,
[data-theme="dark"] .hero-stat-v {
  font-size: 36px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.02em !important;
}

html:not([data-theme="light"]) .hero-stat-l,
[data-theme="dark"] .hero-stat-l {
  color: #94a3b8 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
}

/* Dark Sections */
html:not([data-theme="light"]) .section,
[data-theme="dark"] .section {
  padding: 88px 24px !important;
  background-color: #070b14 !important;
}

html:not([data-theme="light"]) .section-title .eyebrow,
[data-theme="dark"] .section-title .eyebrow {
  color: #38bdf8 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 14px !important;
  background: rgba(56, 189, 248, 0.1) !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
}

.section-title,
html:not([data-theme="light"]) .section-title,
[data-theme="dark"] .section-title {
  max-width: 960px !important;
  margin: 0 auto 48px !important;
}

html:not([data-theme="light"]) .section-title h2,
[data-theme="dark"] .section-title h2 {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
  text-wrap: balance !important;
  white-space: normal !important;
  word-break: normal !important;
}

html:not([data-theme="light"]) .section-title p,
[data-theme="dark"] .section-title p {
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  text-wrap: balance !important;
}

html:not([data-theme="light"]) .feature-card,
[data-theme="dark"] .feature-card {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  padding: 36px 30px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

html:not([data-theme="light"]) .feature-card:hover,
[data-theme="dark"] .feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
}

html:not([data-theme="light"]) .feature-ico,
[data-theme="dark"] .feature-ico {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.2) !important;
}

html:not([data-theme="light"]) .feature-card h3,
html:not([data-theme="light"]) .feature-card h4,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .feature-card h4 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
}

html:not([data-theme="light"]) .feature-card p,
[data-theme="dark"] .feature-card p {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #cbd5e1 !important;
}

/* Dark Steps & Section Alt */
html:not([data-theme="light"]) .section-alt,
[data-theme="dark"] .section-alt {
  background: #0a0e1a !important;
  box-shadow: 0 0 0 100vmax #0a0e1a !important;
  clip-path: inset(0 -100vmax) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html:not([data-theme="light"]) .step,
[data-theme="dark"] .step {
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  border-radius: 22px !important;
  padding: 40px 30px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  text-align: center !important;
}

html:not([data-theme="light"]) .step:hover,
[data-theme="dark"] .step:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2) !important;
  border-color: #38bdf8 !important;
}

html:not([data-theme="light"]) .step .step-ico,
[data-theme="dark"] .step .step-ico {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3) 0%, rgba(6, 182, 212, 0.3) 100%) !important;
  border: 1px solid rgba(56, 189, 248, 0.4) !important;
  color: #38bdf8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 24px !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25) !important;
  position: relative !important;
}

html:not([data-theme="light"]) .step h4,
[data-theme="dark"] .step h4 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 12px !important;
}

html:not([data-theme="light"]) .step p,
[data-theme="dark"] .step p {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #cbd5e1 !important;
}

/* Dark Pricing */
html:not([data-theme="light"]) .pricing-card,
[data-theme="dark"] .pricing-card {
  border-radius: 26px !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  padding: 42px 32px !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
  color: #f1f5f9 !important;
}

html:not([data-theme="light"]) .pricing-card.featured,
[data-theme="dark"] .pricing-card.featured {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.35) !important;
  transform: scale(1.04) !important;
  background: linear-gradient(180deg, #101c36 0%, #0c1424 100%) !important;
}

html:not([data-theme="light"]) .pricing-card h3,
[data-theme="dark"] .pricing-card h3 {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

html:not([data-theme="light"]) .pricing-card .price,
[data-theme="dark"] .pricing-card .price {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

html:not([data-theme="light"]) .pricing-card .desc,
[data-theme="dark"] .pricing-card .desc {
  color: #94a3b8 !important;
}

html:not([data-theme="light"]) .pricing-card ul li,
[data-theme="dark"] .pricing-card ul li {
  color: #cbd5e1 !important;
}

html:not([data-theme="light"]) .pricing-card .btn-outline,
[data-theme="dark"] .pricing-card .btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Dark VIP Hardware Voucher */
html:not([data-theme="light"]) .pricing-grid::after,
[data-theme="dark"] .pricing-grid::after {
  display: none !important;
  content: "🎁 ƯU ĐÃI ĐẶC QUYỀN CHO KHÁCH HÀNG THIẾT BỊ HACODE: Quý khách mua máy in hoặc giấy in tại HACODE được nhận chính sách trợ giá độc quyền hoặc tặng gói dịch vụ! Liên hệ ngay Hotline / Zalo: 0942.85.82.85 để nhận ưu đãi trước khi đăng ký.";
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 20px 24px;
  color: #7dd3fc;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(56, 189, 248, 0.2);
  display: block;
}

/* Dark Table */
html:not([data-theme="light"]) .compare-wrap,
html:not([data-theme="light"]) .table-wrap,
html:not([data-theme="light"]) .card.table-wrap,
html:not([data-theme="light"]) .card.compare-wrap,
html:not([data-theme="light"]) .compare-table,
[data-theme="dark"] .compare-wrap,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .card.table-wrap,
[data-theme="dark"] .card.compare-wrap,
[data-theme="dark"] .compare-table {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid #1e293b !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5) !important;
  background: #0f172a !important;
  color: #f1f5f9 !important;
}

html:not([data-theme="light"]) .compare-table thead th,
[data-theme="dark"] .compare-table thead th {
  background: #080c16 !important;
  color: #38bdf8 !important;
  font-weight: 800 !important;
  padding: 18px 22px !important;
  font-size: 15px !important;
  border-bottom: 2px solid #1e293b !important;
}

html:not([data-theme="light"]) .compare-table tbody td,
[data-theme="dark"] .compare-table tbody td {
  border-bottom: 1px solid #1e293b !important;
  color: #cbd5e1 !important;
}

html:not([data-theme="light"]) .compare-table th.hl,
html:not([data-theme="light"]) .compare-table td.hl,
[data-theme="dark"] .compare-table th.hl,
[data-theme="dark"] .compare-table td.hl {
  background: rgba(56, 189, 248, 0.08) !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
}

/* Dark FAQ */
html:not([data-theme="light"]) .faq-card,
[data-theme="dark"] .faq-card {
  border-radius: 20px !important;
  border: 1px solid rgba(56, 189, 248, 0.2) !important;
  padding: 28px !important;
  background: rgba(15, 23, 42, 0.9) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  border-left: 5px solid #38bdf8 !important;
}

html:not([data-theme="light"]) .faq-card h4,
[data-theme="dark"] .faq-card h4 {
  font-size: 17.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

html:not([data-theme="light"]) .faq-card p,
[data-theme="dark"] .faq-card p {
  color: #cbd5e1 !important;
  line-height: 1.65 !important;
}

/* Dark CTA & Footer */
html:not([data-theme="light"]) .cta,
[data-theme="dark"] .cta {
  background-color: #070b14 !important;
}

html:not([data-theme="light"]) .cta-inner,
[data-theme="dark"] .cta-inner {
  background: linear-gradient(135deg, #090e1a 0%, #0f172a 40%, #0369a1 100%) !important;
  border-radius: 28px !important;
  padding: 72px 40px !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  color: #ffffff !important;
}

html:not([data-theme="light"]) footer.site-footer,
html:not([data-theme="light"]) .site-footer,
[data-theme="dark"] footer.site-footer,
[data-theme="dark"] .site-footer {
  background: #04060c !important;
  border-top: 1px solid #1e293b !important;
  padding: 56px 24px 32px !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   MODE 2: LIGHT MODERN SAAS THEME ([data-theme="light"])
   CÔNG NGHỆ CAO, TƯƠI SÁNG, TINH TẾ CHUẨN STRIPE/LINEAR (KHÁC HẲN VNLABEL)
   ========================================================================== */
[data-theme="light"] html,
[data-theme="light"] body {
  background-color: #f8fafc !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  scrollbar-color: #cbd5e1 #f8fafc;
}

[data-theme="light"] app-root,
[data-theme="light"] app-landing {
  display: block !important;
  background-color: #f8fafc !important;
  background: #f8fafc !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Light Floating Glass Navbar */
[data-theme="light"] .nav-public {
  position: sticky !important;
  top: 16px !important;
  z-index: 100 !important;
  max-width: 1260px !important;
  margin: 12px auto 0 !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 9999px !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease !important;
}

[data-theme="light"] .nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  padding: 10px 24px !important;
}

[data-theme="light"] .nav-inner .logo {
  filter: none !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .nav-public-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

[data-theme="light"] .nav-public-links a {
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  color: #475569 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
}

[data-theme="light"] .nav-public-links a:hover {
  background: #f1f5f9 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .nav-public-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

[data-theme="light"] .nav-login {
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  padding: 8px 14px !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

[data-theme="light"] .nav-login:hover {
  color: #0284c7 !important;
  background: #f1f5f9 !important;
}

[data-theme="light"] .nav-cta,
[data-theme="light"] .nav-actions .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border-radius: 9999px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35) !important;
  border: none !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  transition: all 0.25s ease !important;
}

[data-theme="light"] .nav-cta:hover {
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .nav-cta .arr {
  display: inline-block !important;
  white-space: nowrap !important;
}

[data-theme="light"] .nav-cta:hover {
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.5) !important;
  transform: translateY(-1px) !important;
}

/* Light Hero */
[data-theme="light"] .hero {
  position: relative !important;
  background: radial-gradient(circle at 10% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
              #f8fafc !important;
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  padding: 70px 24px 60px !important;
  overflow: hidden !important;
  max-width: 100vw !important;
}

[data-theme="light"] .hero-glow {
  opacity: 0.3 !important;
}

[data-theme="light"] .hero-badge {
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0369a1 !important;
}

[data-theme="light"] .hero h1 {
  font-size: 48px !important;
  line-height: 1.15 !important;
  letter-spacing: -0.035em !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 22px !important;
}

[data-theme="light"] .hero h1 span,
[data-theme="light"] .hero h1 .grad {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 60%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900 !important;
  filter: none !important;
}

[data-theme="light"] .hero p {
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  color: #475569 !important;
  max-width: 580px !important;
  margin-bottom: 34px !important;
}

[data-theme="light"] .hero .btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  border: none !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35) !important;
  padding: 15px 32px !important;
  font-size: 16px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
}

[data-theme="light"] .hero .btn-outline,
[data-theme="light"] .hero .btn-ghost-lg {
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 15px 28px !important;
  font-size: 16px !important;
}

[data-theme="light"] .hero-trust span {
  display: inline-flex !important;
  align-items: center !important;
  color: #0369a1 !important;
  background: #e0f2fe !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #bae6fd !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

/* Light Metric Deck */
[data-theme="light"] .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  max-width: 1220px !important;
  margin: 50px auto 0 !important;
  padding: 28px 36px !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .hero-stat-v {
  font-size: 36px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: -0.02em !important;
}

[data-theme="light"] .hero-stat-l {
  color: #64748b !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  margin-top: 6px !important;
}

/* Light Sections */
[data-theme="light"] .section {
  padding: 88px 24px !important;
  background-color: #f8fafc !important;
}

[data-theme="light"] .section-title .eyebrow {
  color: #0284c7 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 14px !important;
  background: #e0f2fe !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  border: 1px solid #bae6fd !important;
}

[data-theme="light"] .section-title {
  max-width: 960px !important;
  margin: 0 auto 48px !important;
}

[data-theme="light"] .section-title h2 {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
  text-wrap: balance !important;
  white-space: normal !important;
  word-break: normal !important;
}

[data-theme="light"] .section-title p {
  font-size: 16.5px !important;
  line-height: 1.65 !important;
  color: #64748b !important;
  max-width: 760px !important;
  margin: 0 auto !important;
  text-wrap: balance !important;
}

/* Light Bento Grid */
[data-theme="light"] .feature-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 36px 30px !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.12) !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .feature-ico {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
}

[data-theme="light"] .feature-card h3,
[data-theme="light"] .feature-card h4 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

[data-theme="light"] .feature-card p {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}

/* Light Steps */
[data-theme="light"] .section-alt {
  background: #f1f5f9 !important;
  box-shadow: 0 0 0 100vmax #f1f5f9 !important;
  clip-path: inset(0 -100vmax) !important;
  border-top: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .step {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 22px !important;
  padding: 40px 30px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  text-align: center !important;
}

[data-theme="light"] .step:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.12) !important;
  border-color: #0284c7 !important;
}

[data-theme="light"] .step .step-ico {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  color: #0284c7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 24px !important;
}

[data-theme="light"] .step h4 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 12px !important;
}

[data-theme="light"] .step p {
  font-size: 14.5px !important;
  line-height: 1.65 !important;
  color: #475569 !important;
}

/* Light Pricing */
[data-theme="light"] .pricing-card {
  border-radius: 26px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 42px 32px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

[data-theme="light"] .pricing-card.featured {
  border: 2.5px solid #0284c7 !important;
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.18) !important;
  transform: scale(1.04) !important;
  background: #ffffff !important;
}

[data-theme="light"] .pricing-card h3 {
  color: #0f172a !important;
  font-size: 24px !important;
  font-weight: 800 !important;
}

[data-theme="light"] .pricing-card .price {
  font-size: 42px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

[data-theme="light"] .pricing-card .desc {
  color: #64748b !important;
}

[data-theme="light"] .pricing-card ul li {
  color: #334155 !important;
}

[data-theme="light"] .pricing-card .btn-outline {
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

[data-theme="light"] .pricing-card .btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

/* Light VIP Banner */
[data-theme="light"] .pricing-grid::after {
  display: none !important;
  content: "🎁 ƯU ĐÃI ĐẶC QUYỀN CHO KHÁCH HÀNG THIẾT BỊ HACODE: Quý khách mua máy in hoặc giấy in tại HACODE được nhận chính sách trợ giá độc quyền hoặc tặng gói dịch vụ! Liên hệ ngay Hotline / Zalo: 0942.85.82.85 để nhận ưu đãi trước khi đăng ký.";
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0f9ff 0%, #ecfdf5 100%) !important;
  border: 1.5px dashed #0284c7 !important;
  border-radius: 16px;
  padding: 20px 24px;
  color: #0369a1 !important;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1) !important;
  display: block;
}

/* Light Table */
[data-theme="light"] .compare-wrap,
[data-theme="light"] .table-wrap,
[data-theme="light"] .card.table-wrap,
[data-theme="light"] .card.compare-wrap,
[data-theme="light"] .compare-table {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .compare-table thead th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  padding: 18px 22px !important;
  font-size: 15px !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

[data-theme="light"] .compare-table tbody td {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .compare-table th.hl,
[data-theme="light"] .compare-table td.hl {
  background: #f0f9ff !important;
  font-weight: 700 !important;
  color: #0284c7 !important;
}

[data-theme="light"] .compare-table tbody tr:hover {
  background: #f8fafc !important;
}

/* Light FAQ */
[data-theme="light"] .faq-card {
  border-radius: 20px !important;
  border: 1px solid #e2e8f0 !important;
  padding: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
  border-left: 5px solid #0284c7 !important;
}

[data-theme="light"] .faq-card h4 {
  font-size: 17.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

[data-theme="light"] .faq-card p {
  color: #475569 !important;
  line-height: 1.65 !important;
}

/* Light CTA & Footer */
[data-theme="light"] .cta {
  background-color: #f8fafc !important;
}

[data-theme="light"] .cta-inner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 60%, #0f172a 100%) !important;
  border-radius: 28px !important;
  padding: 72px 40px !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 20px 50px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] footer.site-footer,
[data-theme="light"] .site-footer {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
  padding: 56px 24px 32px !important;
  color: #94a3b8 !important;
}



/* ==========================================================================
   RADICAL REDESIGN - HERO COMMAND CENTER & STUDIO WORKSPACE SIMULATOR
   ========================================================================== */

/* Hero Command Center Layout */
.hero-command-center {
  max-width: 1260px;
  margin: 0 auto;
  padding: 20px 0 40px;
}

.hero-headline-block {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 52px;
}

.hero-studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .hero-studio-badge {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulseNeon 2s infinite ease-in-out;
}

.hero-display-title {
  font-size: 52px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin-bottom: 20px;
}

[data-theme="light"] .hero-display-title {
  color: #0f172a;
}

.cyber-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.3));
}

[data-theme="light"] .cyber-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: none;
}

.hero-display-desc {
  font-size: 17px;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 34px;
}

[data-theme="light"] .hero-display-desc {
  color: #475569;
}

.hero-action-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-dock-primary {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 34px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
}

.btn-dock-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.75);
}

.btn-dock-secondary {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8 !important;
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .btn-dock-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.btn-dock-secondary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

.btn-dock-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0 !important;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

[data-theme="light"] .btn-dock-ghost {
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #475569 !important;
}

.hero-proof-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.proof-pill {
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  padding: 5px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .proof-pill {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

/* ==========================================================================
   DESKTOP-CLASS STUDIO WORKSPACE SIMULATOR
   ========================================================================== */
.studio-workspace-simulator {
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.2);
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

[data-theme="light"] .studio-workspace-simulator {
  background: #0f172a;
  box-shadow: 0 25px 65px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(2, 132, 199, 0.2);
}

/* Studio Window Title Bar */
.studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #060913;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mac-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.m-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.m-dot.red { background: #ef4444; }
.m-dot.yellow { background: #eab308; }
.m-dot.green { background: #22c55e; }

.studio-filename {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.studio-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zoom-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
}

.btn-top-sample, .btn-top-export {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-top-sample {
  background: #0284c7;
  color: #ffffff;
}
.btn-top-sample:hover {
  background: #0369a1;
}

.btn-top-export {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
.btn-top-export:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Studio Main Body (Grid: 75px Tools | 1fr Canvas | 280px Inspector) */
.studio-stage-body {
  display: grid;
  grid-template-columns: 75px 1fr 280px;
  min-height: 400px;
  background: #090e1a;
}

/* Left Tools Column */
.studio-tools-column {
  background: #080c16;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 11px;
}

.tool-item .tool-ico {
  font-size: 18px;
  margin-bottom: 3px;
}

.tool-item:hover, .tool-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.tool-item.tool-excel {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Center Canvas */
.studio-canvas-stage {
  position: relative;
  background-color: #0b1120;
  background-image: radial-gradient(rgba(56, 189, 248, 0.1) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
}

.canvas-ruler-h {
  height: 24px;
  background: #080d19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #64748b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.canvas-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

/* High-Contrast Thermal Label Paper */
.label-sheet-paper {
  background: #ffffff;
  border-radius: 10px;
  width: 360px;
  padding: 18px 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 0 2px #0284c7;
  color: #0f172a;
  position: relative;
}

.lbl-header-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1.5px dashed #cbd5e1;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.lbl-prod-title {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  line-height: 1.25;
}

.lbl-prod-price {
  font-weight: 900;
  font-size: 17px;
  color: #0284c7;
}

.lbl-meta-line {
  display: flex;
  justify-content: space-between;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #475569;
  margin-bottom: 10px;
}

/* Active Selected Barcode Element with Handles & Laser */
.lbl-barcode-box.selected-element {
  position: relative;
  border: 1.5px solid #0284c7;
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(2, 132, 199, 0.03);
  margin-bottom: 10px;
}

.bbox-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 1.5px solid #0284c7;
}
.bbox-handle.tl { top: -4px; left: -4px; }
.bbox-handle.tr { top: -4px; right: -4px; }
.bbox-handle.bl { bottom: -4px; left: -4px; }
.bbox-handle.br { bottom: -4px; right: -4px; }

.barcode-laser-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  box-shadow: 0 0 10px 2px #ef4444;
  animation: scanLine 2.5s ease-in-out infinite alternate;
}

.barcode-bars-render {
  background: repeating-linear-gradient(90deg, #0f172a 0px, #0f172a 2px, transparent 2px, transparent 4px, #0f172a 4px, #0f172a 6px, transparent 6px, transparent 7px, #0f172a 7px, #0f172a 9px);
  height: 48px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.barcode-human-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  color: #1e293b;
}

.bbox-tooltip {
  position: absolute;
  top: -24px;
  right: 0;
  background: #0284c7;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.lbl-footer-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dotted #e2e8f0;
}

.lbl-origin {
  font-size: 10.5px;
  color: #64748b;
}

.lbl-qr-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-canvas-mock {
  width: 32px;
  height: 32px;
  background: conic-gradient(#0f172a 90deg, #fff 90deg 180deg, #0f172a 180deg 270deg, #fff 270deg) 0 0 / 6px 6px, #fff;
  border-radius: 4px;
}

.qr-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: #475569;
}

/* Right Properties Inspector */
.studio-inspector-panel {
  background: #080c16;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 16px;
}

.insp-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.insp-row {
  margin-bottom: 14px;
}

.insp-lbl {
  font-size: 11px;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.insp-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #e2e8f0;
}

.insp-val.badge-blue {
  color: #38bdf8;
}

.insp-val.badge-green {
  color: #34d399;
}

.insp-val.status-live {
  color: #22c55e;
}

/* Studio Footer Status */
.studio-footer-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #060913;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.status-indicator {
  color: #22c55e;
}

/* ==========================================================================
   HARDWARE BRAND ECOSYSTEM BAR
   ========================================================================== */
.hardware-brand-bar {
  margin-top: 40px;
  padding: 24px 30px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-align: center;
}

[data-theme="light"] .hardware-brand-bar {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.brand-bar-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #38bdf8;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

[data-theme="light"] .brand-bar-title {
  color: #0284c7;
}

.brand-tags-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

[data-theme="light"] .brand-badge {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.brand-badge:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.b-name {
  font-weight: 800;
  font-size: 14px;
  color: #ffffff;
}

[data-theme="light"] .b-name {
  color: #0f172a;
}

.b-proto {
  font-size: 10.5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}

[data-theme="light"] .b-proto {
  color: #0369a1;
  background: #e0f2fe;
}

.studio-real-screenshot-container {
  position: relative !important;
  width: 100% !important;
  background: #0b1120 !important;
  overflow: hidden !important;
  line-height: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .studio-real-screenshot-container {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.real-screenshot-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  filter: contrast(1.02) !important;
}

.shot-hotspot {
  position: absolute !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(15, 23, 42, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(56, 189, 248, 0.5) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.3) !important;
  pointer-events: none !important;
  animation: floatHotspot 3s ease-in-out infinite !important;
  line-height: 1.4 !important;
  z-index: 10 !important;
}

[data-theme="light"] .shot-hotspot {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid #0284c7 !important;
  color: #0f172a !important;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.hotspot-left {
  top: 14% !important;
  left: 3% !important;
  animation-delay: 0s !important;
}

.hotspot-center {
  top: 6% !important;
  left: 45% !important;
  animation-delay: 1s !important;
}

.hotspot-right {
  bottom: 12% !important;
  right: 4% !important;
  animation-delay: 2s !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
}

[data-theme="light"] .hotspot-right {
  border-color: #10b981 !important;
}

.hotspot-pulse {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #38bdf8 !important;
  box-shadow: 0 0 8px #38bdf8 !important;
  display: inline-block !important;
}

[data-theme="light"] .hotspot-pulse {
  background: #0284c7 !important;
  box-shadow: 0 0 8px #0284c7 !important;
}

.hotspot-right .hotspot-pulse {
  background: #10b981 !important;
  box-shadow: 0 0 8px #10b981 !important;
}

@keyframes floatHotspot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}


/* === INKALABEL LOGO & BRANDING ENHANCEMENT === */
.sidebar-logo .logo-box {
  width: 175px !important;
  height: 38px !important;
  background-image: url('/assets/logo.png') !important;
  background-position: left center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.auth-logo .logo-icon {
  width: 220px !important;
  height: 48px !important;
  background: #ffffff url('/assets/logo.png') center / contain no-repeat !important;
}

.nav-public .logo .logo-mark {
  width: 180px !important;
  height: 40px !important;
  background: url('/assets/logo.png') left center / contain no-repeat !important;
}

.site-footer .footer-inner .logo .logo-mark {
  width: 180px !important;
  height: 40px !important;
  background: url('/assets/logo_ft.png') left center / contain no-repeat !important;
}


/* === INKALABEL COUNTDOWN BANNER (LOCAL DEMO) === */
.inka-countdown-banner {
  grid-column: 1 / -1 !important;
  margin-top: 24px !important;
  border-radius: 20px !important;
  padding: 30px 28px !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
}

/* Light Mode Styling */
[data-theme="light"] .inka-countdown-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #eff6ff 100%) !important;
  border: 2px solid #bae6fd !important;
  box-shadow: 0 16px 40px -10px rgba(2, 132, 199, 0.18), 0 0 0 1px rgba(2, 132, 199, 0.08) !important;
}

/* Dark Mode Styling */
html:not([data-theme="light"]) .inka-countdown-banner,
[data-theme="dark"] .inka-countdown-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 47, 73, 0.85) 100%) !important;
  border: 2px solid rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15) !important;
}

.inka-countdown-banner .cd-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 20px !important;
}

.inka-countdown-banner .cd-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 16px !important;
  border-radius: 9999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  background: linear-gradient(135deg, #ffedd5 0%, #fee2e2 100%) !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa !important;
  animation: pulse-badge 2s infinite !important;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.inka-countdown-banner .cd-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 6px 0 0 0 !important;
}

[data-theme="light"] .inka-countdown-banner .cd-title {
  color: #0f172a !important;
}

html:not([data-theme="light"]) .inka-countdown-banner .cd-title,
[data-theme="dark"] .inka-countdown-banner .cd-title {
  color: #f8fafc !important;
}

.inka-countdown-banner .cd-highlight {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  padding: 0 4px !important;
}

.inka-countdown-banner .cd-desc {
  font-size: 15px !important;
  margin: 4px 0 0 0 !important;
  color: #64748b !important;
}

/* Timer Wrap */
.inka-countdown-banner .cd-timer-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 6px 0 !important;
}

.inka-countdown-banner .cd-timer-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  color: #0284c7 !important;
}

.inka-countdown-banner .cd-digits {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.inka-countdown-banner .cd-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 80px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="light"] .inka-countdown-banner .cd-block {
  background: #0f172a !important;
  color: #38bdf8 !important;
  border-color: #334155 !important;
}

html:not([data-theme="light"]) .inka-countdown-banner .cd-block,
[data-theme="dark"] .inka-countdown-banner .cd-block {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

.inka-countdown-banner .cd-num {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -1px !important;
}

.inka-countdown-banner .cd-unit {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #94a3b8 !important;
  margin-top: 4px !important;
}

.inka-countdown-banner .cd-colon {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #0284c7 !important;
  animation: blink-colon 1s infinite !important;
}

@keyframes blink-colon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Button & Action */
.inka-countdown-banner .cd-action {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.inka-countdown-banner .cd-btn-zalo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 14px 32px !important;
  border-radius: 9999px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.45) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.inka-countdown-banner .cd-btn-zalo:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.6) !important;
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%) !important;
}

.inka-countdown-banner .cd-subtext {
  font-size: 13px !important;
  color: #64748b !important;
  font-weight: 500 !important;
}
