/* ============================================================
   blaid Admin — Shared Stylesheet
   Extracted from dashboard.html and extended for all admin pages.
   ============================================================ */

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  background: #F8F8F8;
  height: 100%;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #D5D5D5; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #BBBBBB; }

/* ===== Layout Shell ===== */
.app { display: flex; height: 100vh; }

/* ===== Sidebar ===== */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: #2E2E2E;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 50;
}
.sidebar-logo {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo a {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #FFFFFF;
}
.sidebar-logo a span { color: #76CFCA; }
.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-section-label {
  font-size: 11px;
  font-weight: 700;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 12px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: #999999;
  transition: background 0.15s, color 0.15s;
  position: relative;
  margin-bottom: 2px;
}
.nav-item:hover { background: rgba(255,255,255,0.05); color: #CCCCCC; }
.nav-item.active {
  color: #2EA099;
  background: rgba(46,160,153,0.08);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: #2EA099;
  border-radius: 0 2px 2px 0;
}
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.nav-icon svg { width: 20px; height: 20px; stroke-width: 1.6; fill: none; stroke: currentColor; }
.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
}
.sidebar-user:hover { background: rgba(255,255,255,0.05); }
.sidebar-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #2EA099;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #FFFFFF;
  flex-shrink: 0;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: #DDDDDD;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-plan {
  font-size: 11px;
  color: #777777;
}

/* ===== Main Area ===== */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Top Bar */
.topbar {
  height: 60px;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title {
  font-weight: 700;
  font-size: 20px;
  color: #2E2E2E;
}
.topbar-subtitle {
  font-size: 13px;
  color: #939393;
  margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn {
  display: none;
  padding: 8px;
  border-radius: 8px;
  color: #333;
}
.mobile-menu-btn:hover { background: #F0F0F0; }
.mobile-menu-btn svg { width: 22px; height: 22px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary { background: #2EA099; color: #FFFFFF; }
.btn-primary:hover { background: #208E87; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #FFFFFF; color: #333333; border: 1px solid #E5E5E5; }
.btn-secondary:hover { background: #F8F8F8; border-color: #D5D5D5; }
.btn-ghost { color: #2EA099; background: none; padding: 10px 12px; }
.btn-ghost:hover { background: #E6F5F4; }
.btn-destructive { background: #D94F4F; color: #FFFFFF; }
.btn-destructive:hover { background: #C24545; }
.btn-outline { background: #FFFFFF; color: #2EA099; border: 1px solid #2EA099; }
.btn-outline:hover { background: #E6F5F4; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-xs { padding: 5px 10px; font-size: 11px; }

/* Content */
.content { flex: 1; overflow-y: auto; padding: 28px 32px; }

/* ===== KPI Cards ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.kpi-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 24px;
}
.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: #939393;
}
.kpi-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kpi-icon svg { width: 18px; height: 18px; stroke-width: 1.8; fill: none; }
.kpi-icon.teal { background: #E6F5F4; }
.kpi-icon.teal svg { stroke: #2EA099; }
.kpi-icon.blue { background: #EEF0FE; }
.kpi-icon.blue svg { stroke: #4B6CFD; }
.kpi-icon.amber { background: #FEF5E7; }
.kpi-icon.amber svg { stroke: #E8A84C; }
.kpi-value {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #2E2E2E;
  line-height: 1;
  margin-bottom: 8px;
}
.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.kpi-change.up { color: #2EA099; background: #E6F5F4; }
.kpi-change.down { color: #D94F4F; background: #FEECEC; }
.kpi-change svg { width: 12px; height: 12px; }

/* ===== Card ===== */
.card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-weight: 700;
  font-size: 16px;
  color: #2E2E2E;
}
.card-body { padding: 24px; }

/* ===== 2-Column / 3-Column Grid ===== */
.grid-2col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* ===== Chart Placeholder ===== */
.chart-area {
  position: relative;
  height: 260px;
  padding: 0 0 24px;
}
.chart-y-axis {
  position: absolute;
  left: 0; top: 0; bottom: 24px;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-y-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #939393;
  text-align: right;
}
.chart-body {
  margin-left: 48px;
  height: 100%;
  position: relative;
}
.chart-grid-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: #F0F0F0;
}
.chart-svg { width: 100%; height: 100%; }
.chart-x-axis {
  margin-left: 48px;
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
}
.chart-x-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: #939393;
}
.chart-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}
.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #939393;
}
.chart-legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

/* ===== Activity List ===== */
.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F0F0F0;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-dot.teal { background: #2EA099; }
.activity-dot.blue { background: #4B6CFD; }
.activity-dot.amber { background: #E8A84C; }
.activity-text { font-size: 13px; color: #333333; line-height: 1.6; }
.activity-text strong { font-weight: 600; color: #2E2E2E; }
.activity-time { font-size: 12px; color: #939393; margin-top: 2px; }

/* ===== Table ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: #F8F8F8;
  font-size: 12px;
  font-weight: 600;
  color: #939393;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #E5E5E5;
}
tbody td {
  padding: 12px 16px;
  font-size: 13px;
  color: #333333;
  border-bottom: 1px solid #E5E5E5;
  white-space: nowrap;
}
tbody tr:hover { background: #F8F8F8; }
tbody tr:last-child td { border-bottom: none; }

/* ===== Badge ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-teal { background: #E6F5F4; color: #2EA099; }
.badge-gray { background: #F0F0F0; color: #666666; }
.badge-amber { background: #FEF5E7; color: #C48A30; }
.badge-red { background: #FEECEC; color: #D94F4F; }
.badge-blue { background: #EEF0FE; color: #4B6CFD; }
.badge-green { background: #E6F9F0; color: #1A8A5C; }

/* ===== Progress Bar ===== */
.progress-bar {
  height: 6px;
  background: #F0F0F0;
  border-radius: 3px;
  overflow: hidden;
  width: 120px;
}
.progress-fill {
  height: 100%;
  background: #2EA099;
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.progress-text {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #2E2E2E;
  min-width: 36px;
}

/* ===== Page Link ===== */
.page-link {
  color: #2EA099;
  font-weight: 500;
  transition: color 0.15s;
}
.page-link:hover { color: #208E87; }

/* ===== Tabular Nums ===== */
.tabnum {
  font-family: 'Outfit', sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ===== Forms ===== */
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #2E2E2E;
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-size: 13px;
  color: #333333;
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:hover { border-color: #D5D5D5; }
.form-input:focus {
  border-color: #2EA099;
  box-shadow: 0 0 0 3px #E6F5F4;
}
.form-input::placeholder { color: #AAAAAA; }
.form-hint {
  font-size: 12px;
  color: #939393;
  margin-top: 4px;
}
.form-error {
  font-size: 12px;
  color: #D94F4F;
  margin-top: 4px;
}
.form-row {
  margin-bottom: 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Select */
.form-select {
  padding: 10px 14px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  font-size: 13px;
  color: #333333;
  background: #FFFFFF;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  cursor: pointer;
}
.form-select:focus {
  border-color: #2EA099;
  box-shadow: 0 0 0 3px #E6F5F4;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
}
.modal-backdrop.is-open { display: flex; align-items: center; justify-content: center; }
.modal {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 16px;
}
.modal-lg { max-width: 700px; }
.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-weight: 700;
  font-size: 18px;
  color: #2E2E2E;
}
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #939393;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: #F0F0F0; color: #333333; }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 20px 24px 24px; }
.modal-footer {
  padding: 0 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===== Alert / Notice ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-info { background: #EEF0FE; color: #4B6CFD; }
.alert-success { background: #E6F5F4; color: #2EA099; }
.alert-warning { background: #FEF5E7; color: #C48A30; }
.alert-error { background: #FEECEC; color: #D94F4F; }

/* ===== Toast / Snackbar ===== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-success { background: #2EA099; color: #FFFFFF; }
.toast-error { background: #D94F4F; color: #FFFFFF; }

/* ===== Code Block ===== */
.code-block {
  background: #F0F0F0;
  border-radius: 8px;
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  color: #2E2E2E;
  overflow-x: auto;
  line-height: 1.6;
}
.code-inline {
  display: inline;
  padding: 2px 8px;
  background: #F0F0F0;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 12px;
  color: #2E2E2E;
}

/* ===== Divider ===== */
.divider {
  height: 1px;
  background: #E5E5E5;
  margin: 20px 0;
}

/* ===== Copy Success Animation ===== */
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(-10px); }
  20%  { opacity: 1; transform: translateY(0); }
  80%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}
.copy-success { animation: fadeInOut 2s ease; }

/* ===== Loading Spinner ===== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 20px; height: 20px;
  border: 2px solid #E5E5E5;
  border-top-color: #2EA099;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.spinner-lg { width: 32px; height: 32px; border-width: 3px; }

/* ===== Skeleton Loading ===== */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E5E5E5 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ===== Tabs ===== */
.tab-bar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #E5E5E5;
  padding: 0 24px;
}
.tab {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #939393;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.tab:hover { color: #333333; }
.tab.active {
  color: #2EA099;
  border-bottom-color: #2EA099;
}

/* ===== Pricing Cards ===== */
.pricing-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.pricing-card:hover {
  border-color: #D5D5D5;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
.pricing-card.recommended {
  border-color: #2EA099;
  box-shadow: 0 0 0 2px rgba(46,160,153,0.15);
}

/* ===== Translation Editor (for translations.html) ===== */
.translation-editor {
  min-height: 60px;
  max-height: 200px;
  overflow-y: auto;
}
.translation-editor:focus {
  outline: none;
  border-color: #2EA099;
  box-shadow: 0 0 0 3px #E6F5F4;
}

/* ===== Language Tabs ===== */
.lang-tab {
  position: relative;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #939393;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
}
.lang-tab:hover { color: #333333; background: #F0F0F0; }
.lang-tab.active {
  color: #2E2E2E;
  background: #F0F0F0;
  font-weight: 600;
}

/* ===== Content Type Tabs ===== */
.content-tab {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #939393;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.content-tab:hover { color: #333333; }
.content-tab.active {
  color: #2EA099;
  border-bottom-color: #2EA099;
}

/* ===== Save Indicator ===== */
.save-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2EA099;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 200;
}
.save-indicator.show {
  transform: translateY(0);
  opacity: 1;
}

/* ===== Image Card (for translations.html) ===== */
.image-card {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}
.image-card:hover {
  border-color: #D5D5D5;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
}
.image-card.selected {
  border-color: #2EA099;
  box-shadow: 0 0 0 3px #E6F5F4;
}
.image-thumbnail {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #F8F8F8;
}

/* ===== Status Badges (image translation) ===== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}
.status-pending { background: #F0F0F0; color: #666666; }
.status-ocr_processing { background: #EEF0FE; color: #4B6CFD; }
.status-ocr_done { background: #EEF0FE; color: #4B6CFD; }
.status-generating { background: #FEF5E7; color: #C48A30; }
.status-completed { background: #E6F5F4; color: #2EA099; }
.status-failed { background: #FEECEC; color: #D94F4F; }

/* Image type badge */
.image-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}
.type-img { background: #EEF0FE; color: #4B6CFD; }
.type-background-inline { background: #FEF5E7; color: #C48A30; }
.type-background-style { background: #FEECEC; color: #D94F4F; }
.type-background-hero { background: #E6F5F4; color: #2EA099; }
.type-picture { background: #EEF0FE; color: #4B6CFD; }

/* ===== Tree View (for cms.html) ===== */
.tree-node { position: relative; }
.tree-node::before {
  content: '';
  position: absolute;
  left: var(--tree-line-left, 0);
  top: 0; bottom: 0;
  width: 1px;
  background: #E5E5E5;
}
.tree-node::after {
  content: '';
  position: absolute;
  left: var(--tree-line-left, 0);
  top: 50%;
  width: 12px; height: 1px;
  background: #E5E5E5;
}
.tree-node.tree-last::before { bottom: 50%; }
.tree-node.tree-depth-0::before,
.tree-node.tree-depth-0::after { display: none; }
.tree-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: #E5E5E5;
}
.tree-node:hover { background: #F8F8F8; }
.tree-node:hover::before,
.tree-node:hover::after { background: #D5D5D5; }
.tree-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}
.tree-node:hover .tree-icon {
  border-color: #D5D5D5;
  background: #F8F8F8;
}

/* Domain header (cms.html) */
.domain-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.domain-delete-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.domain-header:hover .domain-delete-btn { opacity: 1; }
.domain-delete-btn:hover { background: #FEECEC; color: #D94F4F; }

/* ===== Generate Progress Overlay (translations.html) ===== */
.generate-progress-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}
.progress-bar-container {
  width: 80%;
  max-width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}
.progress-bar-indeterminate {
  width: 40%;
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: indeterminate 1.5s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===== Hash Comparison (translations.html) ===== */
.hash-match { background: #E6F5F4; color: #2EA099; }
.hash-mismatch { background: #FEECEC; color: #D94F4F; }
.hash-info {
  font-family: monospace;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-top: 8px;
}

/* ===== Billing Banner ===== */
.billing-banner {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.billing-banner.warning { background: #FEF5E7; color: #C48A30; }
.billing-banner.error { background: #FEECEC; color: #D94F4F; }

/* ===== Centered Auth / Register Layout ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: #F8F8F8;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-card-lg {
  max-width: 640px;
}
.auth-box {
  background: #FFFFFF;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  padding: 40px 32px;
}
.auth-title {
  font-weight: 700;
  font-size: 22px;
  color: #2E2E2E;
  text-align: center;
  margin-bottom: 8px;
}
.auth-subtitle {
  font-size: 13px;
  color: #939393;
  text-align: center;
  margin-bottom: 28px;
}
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.auth-logo a {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #2E2E2E;
}
.auth-logo a span { color: #2EA099; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #939393;
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E5E5;
}
.auth-footer {
  text-align: center;
  margin-top: 24px;
}
.auth-footer a {
  font-size: 13px;
  color: #939393;
  transition: color 0.15s;
}
.auth-footer a:hover { color: #2EA099; }

/* ===== Utility: Hidden ===== */
.hidden { display: none !important; }

/* ===== Mobile Overlay ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 40;
}
.sidebar-overlay.is-open { display: block; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2col { grid-template-columns: 1fr; }
  .grid-3col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -240px;
    top: 0; bottom: 0;
    transition: left 0.25s ease;
    z-index: 50;
  }
  .sidebar.is-open { left: 0; }
  .mobile-menu-btn { display: block; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .topbar-title { font-size: 17px; }
}
@media (max-width: 600px) {
  .topbar-right .btn span.btn-label { display: none; }
  .auth-box { padding: 28px 20px; }
}
