/* ==========================================================================
   ADMIN DASHBOARD STYLES - Quản Trị Form & Đơn Hàng WuocTrong
   ========================================================================== */

:root {
  --admin-primary: #c68b59;
  --admin-primary-hover: #b47b48;
  --admin-accent: #d4a373;
  --admin-dark: #1c110b;
  --admin-sidebar-bg: #22140d;
  --admin-border: #533424;
  --admin-bg: #1c110b;
  --admin-card-bg: #2b1910;
  --admin-text-title: #fcf8f2;
  --admin-text-body: #f5ebd7;
  --admin-text-muted: #d8c8b4;
  --admin-success: #10b981;
  --admin-danger: #ef4444;
  --admin-warning: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--admin-bg);
  color: var(--admin-text-body);
  line-height: 1.5;
  min-height: 100vh;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ================= Sidebar ================= */
.admin-sidebar {
  width: 260px;
  background: var(--admin-sidebar-bg);
  color: var(--admin-text-body);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--admin-text-title);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.sidebar-menu {
  list-style: none;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.sidebar-menu li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #4b5563;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
}

.sidebar-menu li button:hover {
  background: #fdf2f8;
  color: #db2777;
}

.sidebar-menu li button.active {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.menu-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-sidebar-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-sidebar-store:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

.admin-topbar {
  background: var(--admin-card-bg);
  border-bottom: 1px solid var(--admin-border);
  height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-title-block h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text-title);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-topbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--admin-border);
  background: #fff;
  color: var(--admin-text-title);
  transition: all 0.2s;
  font-family: inherit;
}

.btn-topbar:hover {
  background: var(--admin-bg);
}

.btn-topbar.primary {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #fff;
}

.btn-topbar.primary:hover {
  background: var(--admin-primary-hover);
}

.btn-topbar.danger {
  color: var(--admin-danger);
  border-color: #fecaca;
  background: #fef2f2;
}

.btn-topbar.danger:hover {
  background: #fee2e2;
}

.admin-content-body {
  padding: 28px;
  flex: 1;
}

/* Tab Panels */
.admin-tab-pane {
  display: none;
}

.admin-tab-pane.active {
  display: block;
}

/* ================= Form Builder Tab ================= */
.builder-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
}

.admin-card {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 13px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

/* Form Settings Controls */
.settings-group-box {
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--admin-text-title);
}

.admin-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: inherit;
  color: var(--admin-text-title);
}

.admin-input:focus {
  outline: none;
  border-color: var(--admin-primary);
  box-shadow: 0 0 0 3px rgba(55, 84, 237, 0.15);
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-input-native {
  width: 40px;
  height: 38px;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 2px;
  background: #fff;
}

/* Field Cards List */
.fields-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-item-card {
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}

.field-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.field-item-card.disabled-field {
  background: #f8fafc;
  opacity: 0.6;
}

.field-left-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.drag-handle {
  color: var(--admin-text-muted);
  cursor: grab;
}

.field-details {
  display: flex;
  flex-direction: column;
}

.field-label-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--admin-text-title);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-type-tag {
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.field-required-tag {
  font-size: 11px;
  background: #fef2f2;
  color: var(--admin-danger);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.field-placeholder-text {
  font-size: 12px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

.field-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
  border-radius: 24px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--admin-success);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

.btn-icon-action {
  background: none;
  border: 1px solid var(--admin-border);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--admin-text-body);
  transition: all 0.2s;
}

.btn-icon-action:hover {
  background: var(--admin-bg);
  color: var(--admin-text-title);
}

.btn-icon-action.delete:hover {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--admin-danger);
}

.btn-add-field {
  margin-top: 14px;
  width: 100%;
  padding: 12px;
  border: 2px dashed #cbd5e1;
  background: #fff;
  border-radius: var(--radius-md);
  color: var(--admin-primary);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-add-field:hover {
  border-color: var(--admin-primary);
  background: #f8faff;
}

/* Live Preview Panel */
.preview-sticky-wrapper {
  position: sticky;
  top: 90px;
}

.preview-browser-frame {
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

.browser-top-bar {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.browser-dot.red { background: #f87171; }
.browser-dot.yellow { background: #fbbf24; }
.browser-dot.green { background: #34d399; }

.browser-address {
  background: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--admin-text-muted);
  flex: 1;
}

.preview-content-box {
  padding: 24px;
  background: #ffffff;
  max-height: 540px;
  overflow-y: auto;
}

/* ================= Orders Management Tab ================= */
.orders-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.status-tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
}

.status-tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--admin-text-body);
  transition: all 0.2s;
  font-family: inherit;
}

.status-tab-btn.active {
  background: var(--admin-primary);
  color: #fff;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.admin-table th {
  background: #f8fafc;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--admin-text-title);
  border-bottom: 1px solid var(--admin-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--admin-border);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background-color: #fbfcfe;
}

.badge-order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.badge-order-status.pending { background: #fef3c7; color: #b45309; }
.badge-order-status.confirmed { background: #dbeafe; color: #1e40af; }
.badge-order-status.shipping { background: #e0e7ff; color: #4338ca; }
.badge-order-status.completed { background: #dcfce7; color: #15803d; }
.badge-order-status.cancelled { background: #fee2e2; color: #b91c1c; }

/* Modal Admin */
.admin-modal-backdrop {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-backdrop.show,
.admin-modal-backdrop.active {
  display: flex;
}

.admin-modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modal-zoom 0.25s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-border);
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--admin-text-title);
}

.btn-close-x {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--admin-text-muted);
}

.btn-close-x:hover {
  color: var(--admin-text-title);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-border);
}

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }
  .preview-sticky-wrapper {
    position: static;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
  }
  .admin-content-body {
    padding: 16px;
  }
}

/* ================= DAILY STATS KPI GRID ================= */
.admin-daily-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrapper.blue {
  background: #eff6ff;
  color: #2563eb;
}

.stat-icon-wrapper.emerald {
  background: #ecfdf5;
  color: #059669;
}

.stat-icon-wrapper.indigo {
  background: #eef2ff;
  color: #4f46e5;
}

.stat-icon-wrapper.amber {
  background: #fffbeb;
  color: #d97706;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--admin-text-muted);
  margin-bottom: 4px;
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-text-title);
  line-height: 1.2;
}

.stat-subtext {
  font-size: 11px;
  color: var(--admin-text-muted);
  margin-top: 2px;
}

@media (max-width: 960px) {
  .admin-daily-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .admin-daily-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= MARKETING PIXELS CARDS ================= */
.pixel-brand-card {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.2s;
}

.pixel-brand-card:hover {
  border-color: #cbd5e1;
}

.pixel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pixel-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pixel-icon-badge.meta {
  background: linear-gradient(135deg, #0081fb, #0064e0);
}

.pixel-icon-badge.tiktok {
  background: #000000;
}

.pixel-icon-badge.google {
  background: #ea4335;
}

.pixel-events-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.pixel-event-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* ================= MULTI-SITE MANAGER STYLES ================= */
.site-manager-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--admin-card-bg);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--admin-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex-wrap: wrap;
  gap: 12px;
}

.badge-active-site {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid #334155;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.hero-site-badge {
  background: #3b82f6;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.hero-sync-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hero-site-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.hero-site-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  max-width: 820px;
  line-height: 1.55;
  margin-bottom: 20px;
}

.hero-site-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-edit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hero-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #fff;
}

.hero-btn-subtext {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 500;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.15s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.site-edit-col {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.site-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--admin-text-title);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--admin-border);
}

/* ================= 10. WORLD MAP & LIVE GEO-TRACKING STYLES ================= */
.world-map-main-card {
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.08);
  padding: 24px;
  position: relative;
}

.world-map-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #fce7f3;
}

.world-map-title-block {
  flex: 1;
  min-width: 280px;
}

.world-map-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.map-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #fdf2f8;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #fbcfe8;
}

.btn-map-filter {
  background: transparent;
  color: #db2777;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-map-filter:hover {
  background: #fce7f3;
}

.btn-map-filter.active {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

.map-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-map-action {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #fbcfe8;
  background: #ffffff;
  color: var(--admin-text-title);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-map-action:hover {
  background: #fdf2f8;
  border-color: #f472b6;
  color: #db2777;
}

.btn-map-action.btn-auto-traffic {
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #ffffff;
  border-color: #db2777;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

.btn-map-action.btn-auto-traffic:hover {
  background: linear-gradient(135deg, #db2777, #be185d);
}

.btn-map-action.btn-auto-traffic.running {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #059669;
  animation: pulseAutoTrafficBtn 2s infinite ease-in-out;
}

@keyframes pulseAutoTrafficBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.btn-map-action.danger-subtle {
  background: #fff1f2;
  color: #e11d48;
  border-color: #fecdd3;
}

.btn-map-action.danger-subtle:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

/* 4 Top KPI Badges */
.world-map-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px 0;
}

.map-kpi-card {
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.map-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.12);
}

.map-kpi-card.highlight-pink {
  background: linear-gradient(135deg, #fdf2f8, #ffffff);
  border-color: #f472b6;
}

.kpi-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.kpi-icon-box.pink-glow {
  background: #fce7f3;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.35);
}

.kpi-info-box {
  display: flex;
  flex-direction: column;
}

.kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--admin-text-title);
  line-height: 1.2;
}

.kpi-val.text-pink {
  color: #db2777;
}

.kpi-lbl {
  font-size: 11px;
  color: var(--admin-text-muted);
  font-weight: 500;
}

/* SVG Vector World Map Canvas */
.world-map-canvas-container {
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.06);
  position: relative;
}

.world-map-canvas-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(circle at 50% 50%, #ffffff, #fff5f8 85%);
  overflow: hidden;
}

.world-map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-ocean-bg {
  fill: transparent;
}

.graticule-line {
  stroke: rgba(236, 72, 153, 0.15);
  stroke-width: 0.8;
  stroke-dasharray: 3, 4;
}

.graticule-line.equator,
.graticule-line.prime-meridian {
  stroke: rgba(236, 72, 153, 0.28);
  stroke-width: 1.2;
}

.graticule-label {
  fill: #f472b6;
  font-size: 8.5px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  user-select: none;
  opacity: 0.85;
}

.map-land {
  fill: url(#map-land-grad);
  stroke: #f472b6;
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: fill 0.3s ease, stroke 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.map-land:hover {
  fill: #fce7f3;
  stroke: #ec4899;
  filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.4));
}

.map-land.land-active-region {
  fill: #fbcfe8;
  stroke: #db2777;
  stroke-width: 1.4;
}

/* Highlighted Vietnam Contour */
.map-land-vietnam {
  fill: #fbcfe8;
  stroke: #db2777;
  stroke-width: 1.8;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(219, 39, 119, 0.65));
  animation: pulseVietnamContour 3.5s infinite ease-in-out;
  cursor: pointer;
}

@keyframes pulseVietnamContour {
  0%, 100% {
    fill: #fbcfe8;
    filter: drop-shadow(0 0 5px rgba(219, 39, 119, 0.5));
  }
  50% {
    fill: #f472b6;
    filter: drop-shadow(0 0 10px rgba(219, 39, 119, 0.85));
  }
}

.map-vn-island {
  fill: #db2777;
  stroke: #ffffff;
  stroke-width: 0.6;
}

/* Radar Flight / Connection Beziers */
.map-connection-line {
  fill: none;
  stroke: rgba(236, 72, 153, 0.4);
  stroke-width: 1.2;
  stroke-dasharray: 4, 3;
  animation: mapConnectionDash 20s linear infinite;
}

@keyframes mapConnectionDash {
  to { stroke-dashoffset: -100; }
}

/* Dynamic Radar Beacons Layer */
.map-beacon-group {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.map-beacon-group:hover {
  transform: scale(1.25);
}

.map-beacon-ping {
  fill: none;
  stroke: #ec4899;
  stroke-width: 1.6;
  opacity: 0.8;
  animation: mapBeaconPingAnim 2.2s infinite cubic-bezier(0, 0.2, 0.8, 1);
}

.map-beacon-ping.green-ping {
  stroke: #10b981;
}

@keyframes mapBeaconPingAnim {
  0% { r: 3px; opacity: 0.9; stroke-width: 2px; }
  75% { r: 16px; opacity: 0.2; stroke-width: 1px; }
  100% { r: 20px; opacity: 0; }
}

.map-beacon-glow {
  fill: #ec4899;
  opacity: 0.35;
}

.map-beacon-glow.green-glow {
  fill: #10b981;
}

.map-beacon-core {
  fill: #db2777;
  stroke: #ffffff;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 4px rgba(219, 39, 119, 0.7));
  transition: transform 0.2s;
}

.map-beacon-core.online {
  fill: #10b981;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.9));
}

/* Floating Glassmorphism Map Tooltip */
.map-floating-tooltip {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border: 1px solid #f472b6;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.22);
  min-width: 210px;
  transform: translate(-50%, -115%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  font-size: 11.5px;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  color: var(--admin-text-title);
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid #fce7f3;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 3px 0;
  color: var(--admin-text-muted);
}

.tooltip-val {
  font-weight: 600;
  color: var(--admin-text-title);
}

.tooltip-val.online-text {
  color: #059669;
  font-weight: 700;
}

.tooltip-val.page-text {
  color: #db2777;
  font-weight: 700;
}

/* Map Legend Bar */
.world-map-legend-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #fdf2f8;
  border-top: 1px solid #fce7f3;
  font-size: 11.5px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text-title);
  font-weight: 600;
}

.legend-circle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-circle.online {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.legend-circle.recent {
  background: #ec4899;
  box-shadow: 0 0 6px #ec4899;
}

.legend-circle.hotspot {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
}

.legend-hint {
  margin-left: auto;
  color: var(--admin-text-muted);
  font-size: 11px;
}

/* Detailed 2-Column Section Below Map */
.geo-details-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-top: 24px;
  align-items: start;
}

.geo-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #fce7f3;
}

/* Hierarchical Regional Accordions */
.geo-regions-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.country-accordion-card {
  border: 1px solid #fbcfe8;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s ease;
}

.country-accordion-card:hover {
  border-color: #f472b6;
}

.country-accordion-card.expanded {
  border-color: #ec4899;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.12);
}

.country-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.country-accordion-header:hover {
  background: #fdf2f8;
}

.country-accordion-card.expanded .country-accordion-header {
  background: #fff5f8;
  border-bottom: 1px solid #fce7f3;
}

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

.country-flag-icon {
  font-size: 22px;
  line-height: 1;
}

.country-name-text {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--admin-text-title);
}

.country-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.country-visits-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--admin-text-title);
}

.country-pct-pill {
  font-size: 10.5px;
  font-weight: 800;
  background: #fce7f3;
  color: #db2777;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid #fbcfe8;
}

.accordion-chevron {
  font-size: 12px;
  color: #db2777;
  transition: transform 0.2s ease;
}

.country-accordion-card.expanded .accordion-chevron {
  transform: rotate(180deg);
}

.country-accordion-body {
  padding: 12px 14px;
  background: #ffffff;
  display: none;
}

.country-accordion-card.expanded .country-accordion-body {
  display: block;
}

.region-city-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fafafa;
  margin-bottom: 6px;
  font-size: 12px;
  transition: background 0.2s;
}

.region-city-row:hover {
  background: #fdf2f8;
}

.region-city-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-title {
  font-weight: 700;
  color: var(--admin-text-title);
}

.region-coords-badge {
  font-size: 10.5px;
  color: var(--admin-text-muted);
  font-family: monospace;
}

.region-city-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.region-bar-wrap {
  width: 90px;
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

.region-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ec4899, #db2777);
  border-radius: 9999px;
}

.btn-locate-region {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fdf2f8;
  color: #db2777;
  border: 1px solid #fbcfe8;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-locate-region:hover {
  background: #ec4899;
  color: #ffffff;
  border-color: #ec4899;
}

/* Visitor Live Stream Feed */
.geo-visitors-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.geo-visitor-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #fbcfe8;
  border-left: 3px solid #ec4899;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.04);
  transition: all 0.2s ease;
}

.geo-visitor-item.active-pulse {
  border-left-color: #10b981;
}

.geo-visitor-item:hover {
  background: #fff5f8;
  transform: translateX(2px);
}

.visitor-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visitor-loc-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--admin-text-title);
}

.visitor-time-badge {
  font-size: 11px;
  color: var(--admin-text-muted);
}

.visitor-item-details {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
}

.visitor-detail-pill {
  background: #fdf2f8;
  color: #db2777;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fbcfe8;
  font-weight: 600;
}

.visitor-ip-badge {
  color: var(--admin-text-muted);
  font-family: monospace;
}

.green-live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDotAdmin 1.5s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.geo-radar-live-badge {
  background: #fdf2f8;
  color: #db2777;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #fbcfe8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.radar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: pulseDotAdmin 1.5s infinite;
}

@keyframes pulseDotAdmin {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

@media (max-width: 1024px) {
  .geo-details-split-grid {
    grid-template-columns: 1fr;
  }
  .world-map-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .world-map-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .world-map-kpi-grid {
    grid-template-columns: 1fr;
  }
  .world-map-canvas-inner {
    aspect-ratio: 1.6 / 1;
  }
}

/* ================= ADMIN AUTH LOGIN SCREEN ================= */
.admin-login-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(circle at top right, #1e293b, #0f172a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(16px);
}

.login-card-box {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUpLogin 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpLogin {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-header-area {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  background: var(--admin-accent);
  color: #000;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 26px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(253, 220, 51, 0.4);
}

.login-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--admin-text-title);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--admin-text-muted);
}

.login-alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
}

.input-with-icon .admin-input {
  padding-left: 38px;
  padding-right: 40px;
}

.btn-toggle-pwd {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  color: #94a3b8;
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 12.5px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text-body);
  cursor: pointer;
}

.demo-badge {
  font-size: 11.5px;
  color: var(--admin-text-muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-submit-login {
  width: 100%;
  background: var(--admin-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(55, 84, 237, 0.35);
  transition: all 0.2s;
}

.btn-submit-login:hover {
  background: var(--admin-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(55, 84, 237, 0.45);
}

.demo-quick-fill-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--admin-border);
  text-align: center;
}

.btn-fill-demo {
  background: #eff6ff;
  border: 1px dashed #bfdbfe;
  color: #2563eb;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.btn-fill-demo:hover {
  background: #dbeafe;
}

/* ================= TOPBAR USER BADGE & LOGOUT ================= */
.topbar-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--admin-border);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.user-meta-text {
  display: flex;
  flex-direction: column;
}

.user-name-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--admin-text-title);
  line-height: 1.2;
  white-space: nowrap;
}

.user-role-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: #059669;
}

.btn-topbar-logout {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-topbar-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* ================= CUSTOM DOMAINS STYLES ================= */
.domain-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

.ssl-shield-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dns-guidance-box {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 14px;
}

.dns-record-pill-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.dns-record-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  flex-wrap: wrap;
}

.dns-type {
  background: #3b82f6;
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.dns-host, .dns-val {
  color: #475569;
}

.dns-host code, .dns-val code {
  background: #f1f5f9;
  padding: 1px 4px;
  border-radius: 3px;
  font-family: monospace;
  font-weight: 700;
  color: #0f172a;
}

.domain-list-box {
  background: #f8fafc;
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

@media (max-width: 900px) {
  .domain-connect-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= PUBLISH & DEPLOY STYLES ================= */
.publish-banner-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.25);
  flex-wrap: wrap;
}

.publish-banner-content {
  flex: 1;
  min-width: 280px;
}

.publish-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.publish-banner-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.publish-banner-desc {
  font-size: 13.5px;
  color: #c7d2fe;
  line-height: 1.6;
  max-width: 680px;
}

.publish-banner-actions {
  flex-shrink: 0;
}

.btn-publish-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fddc33;
  color: #0a0d1f;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(253, 220, 51, 0.4);
  transition: all 0.2s ease;
}

.btn-publish-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 220, 51, 0.55);
  background: #fde047;
}

.publish-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.publish-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deploy-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--admin-border);
}

.deploy-card.featured {
  border: 2px solid #6366f1;
  box-shadow: 0 4px 20px -2px rgba(99, 102, 241, 0.15);
}

.deploy-card-badge {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 0 0 10px 10px;
  display: inline-block;
  position: absolute;
  top: 0;
  right: 20px;
  letter-spacing: 0.5px;
}

.deploy-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
}

.deploy-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text-title);
  margin-bottom: 2px;
}

.deploy-meta {
  font-size: 12px;
  color: var(--admin-text-muted);
}

.deploy-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.deploy-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--admin-text-body);
}

.step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.deploy-actions-row {
  margin-top: 14px;
}

.btn-deploy-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #00c7b7;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-deploy-primary:hover {
  background: #00b0a2;
}

.code-snippet-box {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: monospace;
  font-size: 13px;
  margin-top: 8px;
}

.btn-copy-code, .btn-copy-mini {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-mini {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-copy-code:hover, .btn-copy-mini:hover {
  background: var(--admin-primary);
  color: #fff;
  border-color: var(--admin-primary);
}

.publish-dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 10px;
}

.publish-dns-table th {
  text-align: left;
  padding: 8px 10px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.publish-dns-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.dns-help-note {
  font-size: 11.5px;
  color: var(--admin-text-muted);
  line-height: 1.5;
  margin-top: 10px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #6366f1;
}

.security-tips-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.security-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.sec-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-tip-item p {
  margin-top: 2px;
  color: var(--admin-text-muted);
  font-size: 12px;
}

.package-files-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.file-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--admin-text-body);
}

@media (max-width: 1000px) {
  .publish-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= LIVE STOREFRONT STUDIO TAB ================= */
.storefront-studio-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 750px;
}

.studio-admin-toolbar {
  background: var(--admin-card-bg);
  border: 1px solid var(--admin-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.studio-tab-badge {
  background: #ec4899;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.studio-admin-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--admin-text-title);
  margin: 0;
}

.studio-admin-sub {
  font-size: 12.5px;
  color: var(--admin-text-muted);
  margin-top: 4px;
}

.studio-admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.studio-device-toggle {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
}

.btn-device-switch {
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--admin-text-body);
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-device-switch.active {
  background: #ffffff;
  color: var(--admin-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-studio-main-save {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
  transition: all 0.15s ease;
}

.btn-studio-main-save:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.btn-studio-open-tab {
  background: #f8fafc;
  color: var(--admin-text-body);
  border: 1px solid var(--admin-border);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-studio-open-tab:hover {
  background: #f1f5f9;
  color: var(--admin-text-title);
}

.studio-viewport-stage {
  flex: 1;
  background: #0f172a;
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.studio-device-frame {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.studio-device-frame.desktop {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.studio-device-frame.mobile {
  width: 420px !important;
  max-width: 420px !important;
  height: 850px !important;
  margin: 0 auto !important;
  border: 12px solid #1e293b !important;
  border-radius: 46px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.45) !important;
}

.studio-embedded-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ================= MOBILE & TABLET RESPONSIVE STYLES ================= */
@media (max-width: 991px) {
  .admin-layout {
    flex-direction: column !important;
  }
  .admin-sidebar {
    width: 100% !important;
    height: auto !important;
    position: static !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  .sidebar-header {
    padding: 14px 18px !important;
  }
  .sidebar-menu {
    flex-direction: row !important;
    overflow-x: auto !important;
    padding: 10px 14px !important;
    gap: 8px !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-menu li {
    flex-shrink: 0 !important;
  }
  .sidebar-menu li button {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  .sidebar-footer {
    display: none !important;
  }
  .admin-topbar {
    height: auto !important;
    padding: 12px 18px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .topbar-actions {
    width: 100% !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .topbar-user-badge {
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: space-between !important;
  }
  .admin-content-body {
    padding: 14px !important;
  }
  .admin-daily-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .settings-row-2col {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .orders-table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    min-width: 650px !important;
  }
  .google-sheets-card, .telegram-order-card {
    padding: 14px !important;
  }
}

@media (max-width: 600px) {
  .admin-daily-stats-grid {
    grid-template-columns: 1fr !important;
  }
  .status-tabs {
    overflow-x: auto !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
  }
  .status-tab-btn {
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
  .btn-topbar {
    font-size: 12px !important;
    padding: 7px 12px !important;
  }
}

/* ================= ORDER VIEW TOGGLE & MOBILE CARDS ================= */
.order-view-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--admin-border);
}

.view-toggle-btn {
  border: none;
  background: none;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  color: var(--admin-text-muted);
  transition: all 0.2s;
  font-family: inherit;
}

.view-toggle-btn.active {
  background: #fff;
  color: var(--admin-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mobile-quick-sync-banner {
  display: none;
}

.btn-mobile-sync {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.15s;
}

.btn-mobile-sync:active {
  transform: scale(0.98);
}

.orders-mobile-cards {
  display: none;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.order-mobile-card {
  background: #ffffff;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}

.order-mobile-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.omc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.omc-id-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.omc-date {
  font-size: 11.5px;
  color: var(--admin-text-muted);
}

.omc-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.omc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.omc-label {
  color: var(--admin-text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.omc-val {
  color: var(--admin-text-title);
  text-align: right;
  word-break: break-word;
}

.omc-card-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 6px 0;
}

.omc-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 4px;
}

.omc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

/* Force view modes */
body.view-force-mobile #orders-desktop-wrapper {
  display: none !important;
}
body.view-force-mobile .orders-mobile-cards {
  display: flex !important;
}
body.view-force-mobile .mobile-quick-sync-banner {
  display: block !important;
}

body.view-force-pc #orders-desktop-wrapper {
  display: block !important;
}
body.view-force-pc .orders-mobile-cards {
  display: none !important;
}
body.view-force-pc .mobile-quick-sync-banner {
  display: none !important;
}

@media (max-width: 768px) {
  body:not(.view-force-pc) #orders-desktop-wrapper {
    display: none !important;
  }
  body:not(.view-force-pc) .orders-mobile-cards {
    display: flex !important;
  }
  body:not(.view-force-pc) .mobile-quick-sync-banner {
    display: block !important;
  }
}

/* ==========================================================================
   THEME NÂU & TRẮNG NGÀ (LUXURY ANTIQUE BROWN & IVORY WHITE THEME) - ADMIN WUOCRONG
   ========================================================================== */
body, html {
  background-color: #1c110b !important;
  color: #f5ebd7 !important;
}

.admin-layout {
  background-color: #1c110b !important;
}

.admin-main {
  background-color: #1c110b !important;
}

.admin-content-body {
  background-color: #1c110b !important;
}

/* Sidebar */
.admin-sidebar {
  background: #22140d !important;
  border-right: 1px solid #533424 !important;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.45) !important;
}
.sidebar-header {
  border-bottom: 1px solid #533424 !important;
}
.brand-icon {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(198, 139, 89, 0.4) !important;
}
.brand-title {
  color: #fcf8f2 !important;
}
.brand-subtitle {
  color: #d8c8b4 !important;
}
.sidebar-menu li button {
  color: #f5ebd7 !important;
}
.sidebar-menu li button:hover {
  background: #362117 !important;
  color: #d4a373 !important;
}
.sidebar-menu li button.active {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(198, 139, 89, 0.45) !important;
}
.sidebar-menu li button.active svg {
  stroke: #fdfbf7 !important;
}
.sidebar-menu li button.active .menu-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #fdfbf7 !important;
}
.menu-badge {
  background: #362117 !important;
  color: #d4a373 !important;
  border: 1px solid #6e442d !important;
}
.sidebar-footer {
  border-top: 1px solid #533424 !important;
}
.btn-sidebar-store {
  background: #2b1910 !important;
  border: 1px solid #6e442d !important;
  color: #fcf8f2 !important;
  font-weight: 700 !important;
}
.btn-sidebar-store:hover {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
}

/* Topbar */
.admin-topbar {
  background: #22140d !important;
  border-bottom: 1px solid #533424 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35) !important;
}
.topbar-title-block h2 {
  color: #fcf8f2 !important;
}
.topbar-title-block p, .topbar-subtitle {
  color: #d8c8b4 !important;
}
.btn-topbar {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
  color: #fcf8f2 !important;
}
.btn-topbar:hover {
  background: #362117 !important;
  border-color: #c68b59 !important;
  color: #fdfbf7 !important;
}
.btn-topbar.primary, #btn-save-form-config, #btn-topbar-publish, #btn-save-product, #btn-save-pixels-config, #btn-create-site, #btn-save-telegram, #btn-save-sheet-config, #btn-sync-sheet-orders, .btn-publish-download, #btn-save-admin-domain {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  border: 1px solid #b47b48 !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(198, 139, 89, 0.35) !important;
}
.btn-topbar.primary:hover, #btn-save-form-config:hover, #btn-topbar-publish:hover, #btn-save-telegram:hover, #btn-sync-sheet-orders:hover, #btn-save-admin-domain:hover, .btn-publish-download:hover {
  background: linear-gradient(135deg, #d4a373 0%, #b47b48 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(198, 139, 89, 0.5) !important;
}
.btn-topbar.secondary, .btn-topbar.warning, #btn-open-change-password, #btn-test-telegram, #btn-test-sheet, #admin-btn-copy-json {
  background: #362117 !important;
  color: #fcf8f2 !important;
  border: 1px solid #6e442d !important;
}
.btn-topbar.secondary:hover, .btn-topbar.warning:hover, #btn-open-change-password:hover, #btn-test-telegram:hover, #btn-test-sheet:hover, #admin-btn-copy-json:hover {
  background: #422619 !important;
  color: #ffffff !important;
  border-color: #c68b59 !important;
}

/* Cards & Containers */
.admin-card, .site-manager-topbar, .site-hero-card {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35) !important;
}
.card-header-row {
  border-bottom: 1px solid #533424 !important;
}
.card-title, h1, h2, h3, h4, .hero-site-title {
  color: #fcf8f2 !important;
}
.card-subtitle, .hero-site-desc, #field-count-label {
  color: #d8c8b4 !important;
}

/* Settings Box & Form Controls */
.settings-group-box {
  background: #22140d !important;
  border: 1px solid #533424 !important;
}
.admin-form-group label {
  color: #fcf8f2 !important;
  font-weight: 600 !important;
}
.admin-input, .field-input, input[type="text"], input[type="password"], input[type="number"], input[type="email"], textarea, select {
  background: #160d08 !important;
  border: 1.5px solid #533424 !important;
  color: #fcf8f2 !important;
}
.admin-input:focus, .field-input:focus, textarea:focus, select:focus {
  border-color: #c68b59 !important;
  box-shadow: 0 0 0 3px rgba(198, 139, 89, 0.25) !important;
  background: #1c110b !important;
}
.admin-input::placeholder, .field-input::placeholder, textarea::placeholder {
  color: #9d8675 !important;
}

/* Field Item Cards */
.field-item-card {
  background: #23150e !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}
.field-item-card:hover {
  border-color: #c68b59 !important;
  box-shadow: 0 4px 14px rgba(198, 139, 89, 0.2) !important;
}
.field-label-text {
  color: #fcf8f2 !important;
  font-weight: 700 !important;
}
.field-placeholder-text {
  color: #d8c8b4 !important;
}
.field-type-tag {
  background: #362117 !important;
  color: #d4a373 !important;
  border: 1px solid #6e442d !important;
}
.btn-add-field {
  background: #23150e !important;
  border: 2px dashed #6e442d !important;
  color: #d4a373 !important;
}
.btn-add-field:hover {
  background: #2b1910 !important;
  color: #fcf8f2 !important;
  border-color: #c68b59 !important;
}
.btn-icon-action {
  border: 1px solid #533424 !important;
  color: #fcf8f2 !important;
  background: #2b1910 !important;
}
.btn-icon-action:hover {
  background: #362117 !important;
  color: #d4a373 !important;
  border-color: #c68b59 !important;
}

/* Daily Stats Grid */
.stat-card {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}
.stat-card:hover {
  border-color: #c68b59 !important;
  box-shadow: 0 6px 18px rgba(198, 139, 89, 0.25) !important;
}
.stat-label {
  color: #d8c8b4 !important;
  font-weight: 600 !important;
}
.stat-number {
  color: #fcf8f2 !important;
}
.stat-subtext {
  color: #b09c8a !important;
}
.stat-icon-wrapper {
  background: #362117 !important;
  color: #d4a373 !important;
  border: 1px solid #6e442d !important;
}

/* Orders Table */
.status-tabs {
  background: #22140d !important;
  border: 1px solid #533424 !important;
}
.status-tab-btn {
  color: #d8c8b4 !important;
}
.status-tab-btn:hover {
  color: #fcf8f2 !important;
}
.status-tab-btn.active {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(198, 139, 89, 0.4) !important;
}
.table-responsive {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
}
.admin-table th {
  background: #22140d !important;
  color: #fcf8f2 !important;
  border-bottom: 2px solid #533424 !important;
  font-weight: 700 !important;
}
.admin-table td {
  border-bottom: 1px solid #422619 !important;
  color: #f5ebd7 !important;
}
.admin-table tr:hover td {
  background-color: #362117 !important;
}
.order-mobile-card {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.omc-header {
  border-bottom: 1px solid #422619 !important;
}
.omc-id {
  color: #d4a373 !important;
}
.omc-field-label {
  color: #d8c8b4 !important;
}
.omc-field-value {
  color: #fcf8f2 !important;
}
.omc-customer-box, .omc-card-box, .omc-bundle-box {
  background: #22140d !important;
  border: 1px solid #533424 !important;
}
.omc-actions {
  border-top: 1px solid #422619 !important;
}

/* Telegram & Google Sheet Cards */
.telegram-order-card, .google-sheet-card {
  background: #2b1910 !important;
  border: 1.5px solid #6e442d !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35) !important;
}
.telegram-order-card .card-header-row, .google-sheet-card .card-header-row {
  border-bottom: 1px solid #533424 !important;
}
#sheet-guide-box, #tg-guide-box {
  background: #22140d !important;
  border: 1px dashed #6e442d !important;
  color: #f5ebd7 !important;
}
#sheet-guide-box code, #tg-guide-box code {
  background: #160d08 !important;
  color: #d4a373 !important;
}
#sheet-guide-box strong, #tg-guide-box strong {
  color: #fcf8f2 !important;
}
#btn-toggle-sheet-guide, #btn-toggle-tg-guide {
  color: #d4a373 !important;
}
#btn-copy-apps-script {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  font-weight: 700 !important;
}
#apps-script-code-block {
  background: #160d08 !important;
  color: #d4a373 !important;
  border: 1.5px solid #533424 !important;
}

/* Modals */
.admin-modal-overlay {
  background: rgba(15, 9, 6, 0.75) !important;
  backdrop-filter: blur(6px) !important;
}
.admin-modal-card {
  background: #2b1910 !important;
  border: 1.5px solid #6e442d !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
  color: #f5ebd7 !important;
}
.modal-header {
  border-bottom: 1px solid #533424 !important;
}
.modal-header h3 {
  color: #fcf8f2 !important;
}
.modal-footer {
  border-top: 1px solid #533424 !important;
}

/* Login Screen */
.admin-login-screen {
  background: radial-gradient(circle at top, #362117 0%, #22140d 40%, #1c110b 100%) !important;
}
.login-card-box {
  background: #2b1910 !important;
  border: 2px solid #6e442d !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}
.login-brand-icon {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  font-weight: 800 !important;
}
.login-title {
  color: #fcf8f2 !important;
}
.login-subtitle {
  color: #d8c8b4 !important;
}
.btn-submit-login {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  border: 1px solid #b47b48 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 15px rgba(198, 139, 89, 0.4) !important;
}
.btn-submit-login:hover {
  background: linear-gradient(135deg, #d4a373 0%, #b47b48 100%) !important;
  color: #ffffff !important;
}
.btn-toggle-pwd {
  color: #d4a373 !important;
}
.login-options-row {
  color: #d8c8b4 !important;
}

/* Toast */
.toast-msg {
  background: #2b1910 !important;
  border: 1.5px solid #c68b59 !important;
  color: #fcf8f2 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6) !important;
}

/* Pixel cards */
.pixel-brand-card {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}
.pixel-events-list {
  border-top: 1px solid #533424 !important;
}
.pixel-event-pill {
  background: #22140d !important;
  color: #d4a373 !important;
  border: 1px solid #533424 !important;
}

/* Switch toggle brown */
.switch-toggle input:checked + .slider-round {
  background-color: #c68b59 !important;
}

/* Dedicated Admin Domain & DNS Tables */
.admin-domain-card {
  background: #2b1910 !important;
  border: 1.5px solid #6e442d !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35) !important;
}
.admin-domain-active-banner {
  background: #22140d !important;
  border: 1px solid #533424 !important;
}
.ssl-shield-badge {
  background: #362117 !important;
  color: #d4a373 !important;
  border: 1px solid #6e442d !important;
}
.live-dot {
  background: #10b981 !important;
}
.publish-dns-table th {
  background: #22140d !important;
  color: #fcf8f2 !important;
  border-bottom: 2px solid #533424 !important;
}
.publish-dns-table td {
  background: #2b1910 !important;
  color: #f5ebd7 !important;
  border-bottom: 1px solid #422619 !important;
}
.dns-type {
  background: #c68b59 !important;
  color: #fdfbf7 !important;
}
.btn-copy-mini {
  background: #362117 !important;
  color: #fcf8f2 !important;
  border: 1px solid #6e442d !important;
}
.btn-copy-mini:hover {
  background: #c68b59 !important;
  color: #ffffff !important;
}
.security-tip-item {
  background: #22140d !important;
  border: 1px solid #533424 !important;
}
.security-tip-item strong {
  color: #fcf8f2 !important;
}

/* ================= WORLD MAP & GEO-TRACKING LUXURY VINTAGE THEME ================= */
.world-map-main-card {
  background: #2b1910 !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45) !important;
}
.world-map-header-row {
  border-bottom: 1px solid #533424 !important;
}
.world-map-title-block h3, .world-map-title-block .card-title {
  color: #fcf8f2 !important;
}
.world-map-title-block p, .world-map-title-block .card-subtitle {
  color: #d8c8b4 !important;
}
.map-filter-group {
  background: #22140d !important;
  border: 1px solid #533424 !important;
}
.btn-map-filter {
  color: #d8c8b4 !important;
}
.btn-map-filter:hover {
  background: #362117 !important;
  color: #fcf8f2 !important;
}
.btn-map-filter.active {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  box-shadow: 0 2px 8px rgba(198, 139, 89, 0.4) !important;
}
.btn-map-action {
  background: #22140d !important;
  border: 1px solid #533424 !important;
  color: #fcf8f2 !important;
}
.btn-map-action:hover {
  background: #362117 !important;
  border-color: #c68b59 !important;
  color: #fdfbf7 !important;
}
.btn-map-action.btn-auto-traffic {
  background: linear-gradient(135deg, #c68b59 0%, #965d30 100%) !important;
  color: #fdfbf7 !important;
  border-color: #b47b48 !important;
  box-shadow: 0 2px 8px rgba(198, 139, 89, 0.35) !important;
}
.btn-map-action.btn-auto-traffic:hover {
  background: linear-gradient(135deg, #d4a373 0%, #b47b48 100%) !important;
}
.btn-map-action.btn-auto-traffic.running {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border-color: #059669 !important;
}

/* Map 4 KPI Cards */
.world-map-kpi-grid {
  gap: 14px;
}
.map-kpi-card {
  background: #22140d !important;
  border: 1px solid #533424 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}
.map-kpi-card:hover {
  border-color: #c68b59 !important;
  box-shadow: 0 6px 20px rgba(198, 139, 89, 0.25) !important;
}
.map-kpi-card.highlight-pink {
  background: #26160e !important;
  border-color: #6e442d !important;
}
.kpi-icon-box {
  background: #362117 !important;
  border: 1px solid #6e442d !important;
  color: #d4a373 !important;
}
.kpi-icon-box.pink-glow {
  background: #3d2315 !important;
  box-shadow: 0 0 12px rgba(198, 139, 89, 0.35) !important;
}
.kpi-val {
  color: #fcf8f2 !important;
}
.kpi-val.text-pink {
  color: #d4a373 !important;
}
.kpi-lbl {
  color: #d8c8b4 !important;
}

/* World Map Canvas & SVG */
.world-map-canvas-container {
  background: #140c07 !important;
  border: 2px solid #533424 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}
.world-map-canvas-inner {
  background: #140c07 !important;
}
.graticule-line {
  stroke: rgba(212, 163, 115, 0.22) !important;
}
.graticule-line.equator, .graticule-line.prime-meridian {
  stroke: rgba(212, 163, 115, 0.38) !important;
}
.graticule-label {
  fill: #d4a373 !important;
  font-weight: 700 !important;
}
.map-land-vietnam {
  fill: rgba(245, 158, 11, 0.3) !important;
  stroke: #f59e0b !important;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.85)) !important;
}
.map-vn-island {
  fill: #f59e0b !important;
  stroke: #fcf8f2 !important;
}
.map-connection-line {
  stroke: rgba(245, 158, 11, 0.6) !important;
}
.map-beacon-ping {
  stroke: #f59e0b !important;
}
.map-beacon-ping.green-ping {
  stroke: #10b981 !important;
}
.map-beacon-glow {
  fill: #f59e0b !important;
}
.map-beacon-glow.green-glow {
  fill: #10b981 !important;
}
.map-beacon-core {
  fill: #d4a373 !important;
  stroke: #fdfbf7 !important;
}
.map-beacon-core.online {
  fill: #10b981 !important;
  stroke: #fdfbf7 !important;
}

/* Map Floating Tooltip */
.map-floating-tooltip {
  background: #23150e !important;
  border: 1.5px solid #c68b59 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
  color: #f5ebd7 !important;
}
.tooltip-header {
  color: #fcf8f2 !important;
  border-bottom: 1px solid #533424 !important;
}
.tooltip-row {
  color: #d8c8b4 !important;
}
.tooltip-val {
  color: #fcf8f2 !important;
}
.tooltip-val.page-text {
  color: #d4a373 !important;
}

/* Map Legend Bar */
.world-map-legend-bar {
  background: #22140d !important;
  border-top: 1px solid #533424 !important;
}
.legend-item {
  color: #fcf8f2 !important;
}
.legend-circle.recent {
  background: #f59e0b !important;
  box-shadow: 0 0 6px #f59e0b !important;
}
.legend-hint {
  color: #d8c8b4 !important;
}

/* Regional Breakdown Accordions & District/Ward Sub-Rows */
.geo-section-title-row {
  border-bottom: 1px solid #533424 !important;
}
.geo-section-title-row span {
  color: #fcf8f2 !important;
}
.country-accordion-card {
  border: 1px solid #533424 !important;
  background: #22140d !important;
}
.country-accordion-card:hover {
  border-color: #6e442d !important;
}
.country-accordion-card.expanded {
  border-color: #c68b59 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}
.country-accordion-header {
  background: #22140d !important;
}
.country-accordion-header:hover {
  background: #2b1910 !important;
}
.country-accordion-card.expanded .country-accordion-header {
  background: #28170f !important;
  border-bottom: 1px solid #533424 !important;
}
.country-name-text {
  color: #fcf8f2 !important;
}
.country-visits-badge {
  color: #fcf8f2 !important;
}
.country-pct-pill {
  background: #362117 !important;
  color: #d4a373 !important;
  border: 1px solid #6e442d !important;
}
.accordion-chevron {
  color: #d4a373 !important;
}
.country-accordion-body {
  background: #1c110b !important;
}
.region-city-row {
  background: #23150e !important;
  border: 1px solid #3d2315 !important;
  color: #f5ebd7 !important;
}
.region-city-row:hover {
  background: #2b1910 !important;
  border-color: #533424 !important;
}
.region-title {
  color: #fcf8f2 !important;
}
.region-coords-badge {
  color: #b09c8a !important;
}
.region-bar-wrap {
  background: #160d08 !important;
}
.region-bar-fill {
  background: linear-gradient(90deg, #c68b59, #f59e0b) !important;
}
.btn-locate-region {
  background: #362117 !important;
  color: #fcf8f2 !important;
  border: 1px solid #6e442d !important;
}
.btn-locate-region:hover {
  background: #c68b59 !important;
  color: #ffffff !important;
  border-color: #c68b59 !important;
}

/* 3-Tier District / Ward Breakdown Styles */
.district-sub-accordion {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid #533424;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.district-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #160d08;
  border: 1px solid #381f12;
  border-radius: 6px;
  font-size: 11.5px;
  transition: all 0.2s;
}
.district-row-item:hover {
  background: #22140d;
  border-color: #6e442d;
}
.district-name-badge {
  font-weight: 700;
  color: #fcf8f2;
}
.ward-name-text {
  font-weight: 500;
  color: #d8c8b4;
  font-size: 11px;
}
.district-meta-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.district-stats-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-locate-district {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: #2b1910;
  color: #d4a373;
  border: 1px solid #533424;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-locate-district:hover {
  background: #c68b59;
  color: #ffffff;
  border-color: #c68b59;
}

/* Visitor Live Stream Feed */
.geo-visitors-stream {
  background: #1c110b;
}
.geo-visitor-item {
  background: #22140d !important;
  border: 1px solid #533424 !important;
  border-left: 3px solid #c68b59 !important;
  color: #f5ebd7 !important;
}
.geo-visitor-item.active-pulse {
  border-left-color: #10b981 !important;
}
.geo-visitor-item:hover {
  background: #2b1910 !important;
  border-color: #6e442d !important;
}
.visitor-loc-wrap {
  color: #fcf8f2 !important;
}
.visitor-time-badge {
  color: #d8c8b4 !important;
}
.visitor-detail-pill {
  background: #160d08 !important;
  color: #d4a373 !important;
  border: 1px solid #533424 !important;
}
.visitor-ip-badge {
  color: #b09c8a !important;
}
.geo-radar-live-badge {
  background: #362117 !important;
  color: #d4a373 !important;
  border: 1px solid #6e442d !important;
}


