/*
 * Bangladesh Online Store Reseller & Payout Engine
 * Neovest Dark-Fintech Design System
 */

:root {
  --bos-bg-root: #090d16;
  --bos-bg-surface: #0f172a;
  --bos-bg-card: rgba(15, 23, 42, 0.78);
  --bos-bg-card-hover: rgba(30, 41, 59, 0.85);
  --bos-border: rgba(255, 255, 255, 0.08);
  --bos-border-glow: rgba(16, 185, 129, 0.35);

  --bos-emerald: #10b981;
  --bos-emerald-glow: rgba(16, 185, 129, 0.25);
  --bos-cyan: #06b6d4;
  --bos-cyan-glow: rgba(6, 182, 212, 0.25);
  --bos-indigo: #6366f1;
  --bos-amber: #f59e0b;
  --bos-rose: #f43f5e;

  --bos-text-main: #f8fafc;
  --bos-text-muted: #94a3b8;
  --bos-radius-sm: 8px;
  --bos-radius-md: 12px;
  --bos-radius-lg: 18px;
  --bos-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Container */
.bos-dark-container {
  background: var(--bos-bg-root);
  color: var(--bos-text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 30px 20px;
  border-radius: var(--bos-radius-lg);
  max-width: 1200px;
  margin: 20px auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.bos-dark-container * {
  box-sizing: border-box;
}

/* Glassmorphism Cards */
.bos-glass-card {
  background: var(--bos-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--bos-border);
  border-radius: var(--bos-radius-md);
  padding: 24px;
  box-shadow: var(--bos-shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bos-glass-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Top App Bar */
.bos-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--bos-border);
  margin-bottom: 25px;
}

.bos-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bos-shop-avatar, .bos-avatar-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--bos-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--bos-cyan);
  object-fit: cover;
}

.bos-shop-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bos-shop-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.bos-shop-sub {
  color: var(--bos-text-muted);
  font-size: 13px;
  margin-top: 3px;
}

.bos-top-actions {
  display: flex;
  gap: 10px;
}

/* Grids */
.bos-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.bos-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
}

/* Metric Cards */
.bos-metric-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}

.border-glow-emerald { border-left: 4px solid var(--bos-emerald); }
.border-glow-amber   { border-left: 4px solid var(--bos-amber); }
.border-glow-cyan    { border-left: 4px solid var(--bos-cyan); }
.border-glow-indigo  { border-left: 4px solid var(--bos-indigo); }

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 13px;
  color: var(--bos-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.metric-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-emerald { background: var(--bos-emerald); box-shadow: 0 0 10px var(--bos-emerald); }
.dot-amber   { background: var(--bos-amber); box-shadow: 0 0 10px var(--bos-amber); }
.dot-cyan    { background: var(--bos-cyan); box-shadow: 0 0 10px var(--bos-cyan); }

.metric-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 6px 0;
}

.metric-footer {
  font-size: 12px;
  margin-top: 8px;
}

/* Badges & Pills */
.bos-badge-pill, .bos-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bos-badge-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.bos-badge-cyan    { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.bos-badge-amber   { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.bos-badge-rose    { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }

/* Buttons */
.bos-btn, .bos-btn-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  border-radius: var(--bos-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.bos-btn {
  padding: 10px 18px;
  font-size: 14px;
}

.bos-btn-xs {
  padding: 6px 12px;
  font-size: 12px;
}

.bos-btn-emerald {
  background: var(--bos-emerald);
  color: #064e3b;
}
.bos-btn-emerald:hover {
  background: #059669;
  color: #fff;
  box-shadow: 0 0 15px var(--bos-emerald-glow);
}

.bos-btn-cyan {
  background: var(--bos-cyan);
  color: #083344;
}
.bos-btn-cyan:hover {
  background: #0891b2;
  color: #fff;
  box-shadow: 0 0 15px var(--bos-cyan-glow);
}

.bos-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--bos-text-main);
  border: 1px solid var(--bos-border);
}
.bos-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.bos-btn-secondary {
  background: #334155;
  color: #fff;
}

.bos-link-btn {
  background: none;
  border: none;
  color: var(--bos-cyan);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Tabs */
.bos-dashboard-tabs, .bos-tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--bos-border);
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.bos-dtab-btn, .bos-tab-btn {
  background: none;
  border: none;
  color: var(--bos-text-muted);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--bos-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.bos-dtab-btn.active, .bos-tab-btn.active {
  background: rgba(6, 182, 212, 0.12);
  color: var(--bos-cyan);
}

.bos-dtab-content, .bos-tab-content {
  display: none;
}
.bos-dtab-content.active, .bos-tab-content.active {
  display: block;
}

/* Tables */
.bos-table-responsive {
  overflow-x: auto;
}

.bos-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.bos-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--bos-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bos-border);
}

.bos-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--bos-text-main);
}

.bos-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.bos-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.table-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Forms & Inputs */
.bos-form-group {
  margin-bottom: 16px;
}

.bos-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bos-text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bos-input, .bos-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--bos-radius-sm);
  color: #fff;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
}

.bos-input:focus, .bos-select:focus {
  border-color: var(--bos-cyan);
  box-shadow: 0 0 10px var(--bos-cyan-glow);
}

.bos-input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bos-currency-badge {
  position: absolute;
  left: 14px;
  color: var(--bos-text-muted);
  font-weight: 700;
}

.bos-input-prefix-wrap .bos-input {
  padding-left: 36px;
}

.bos-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bos-text-main);
  font-size: 13px;
  cursor: pointer;
}

.bos-file-upload-box {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--bos-radius-sm);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bos-file-upload-box:hover {
  border-color: var(--bos-cyan);
  background: rgba(6, 182, 212, 0.05);
}

.bos-file-upload-box input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.bos-upload-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 6px;
}

.bos-upload-text {
  font-size: 12px;
  color: var(--bos-text-muted);
}

/* Modals */
.bos-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.bos-modal-box {
  background: #0f172a;
  border: 1px solid var(--bos-border);
  border-radius: var(--bos-radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  animation: bosModalIn 0.2s ease-out;
}

@keyframes bosModalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--bos-text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

/* WooCommerce Product Dual Price Box */
.bos-dual-price-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.bos-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.bos-tag-ws {
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
  text-transform: uppercase;
}

.bos-price-ws {
  font-size: 18px;
  font-weight: 800;
  color: #38bdf8;
}

.bos-tag-retail {
  font-size: 12px;
  color: #94a3b8;
}

.bos-price-retail {
  font-size: 14px;
  color: #cbd5e1;
  text-decoration: line-through;
}

.bos-margin-chip {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

/* Checkout Margin Box */
.bos-checkout-margin-box {
  margin: 25px 0;
  border: 1px solid var(--bos-border-glow);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(9, 13, 22, 0.95));
}

.bos-box-header {
  margin-bottom: 16px;
}

.bos-box-title {
  margin: 6px 0 4px 0;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.bos-box-subtitle {
  color: var(--bos-text-muted);
  font-size: 13px;
  margin: 0;
}

.bos-profit-preview-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--bos-radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
}

.bos-calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  color: #cbd5e1;
}

.bos-calc-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0;
}

.bos-calc-row.highlight {
  font-size: 15px;
}

.bos-escrow-notice {
  margin-top: 10px;
  font-size: 11px;
  color: var(--bos-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Helpers */
.text-emerald { color: #34d399 !important; }
.text-cyan    { color: #38bdf8 !important; }
.text-amber   { color: #fbbf24 !important; }
.text-rose    { color: #fb7185 !important; }
.text-muted   { color: var(--bos-text-muted) !important; }
.font-bold    { font-weight: 700; }

.mfs-account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 8px;
}
.mfs-provider-tag {
  background: var(--bos-cyan);
  color: #083344;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.mfs-type-tag {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.mfs-account-number {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
}

/* Admin Styles */
.bos-admin-wrap {
  padding: 20px 0;
}
.bos-admin-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}
.bos-admin-lead {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 25px;
}
.bos-admin-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.bos-stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.border-cyan { border-left: 4px solid #06b6d4; }
.border-amber { border-left: 4px solid #f59e0b; }
.border-emerald { border-left: 4px solid #10b981; }
.border-indigo { border-left: 4px solid #6366f1; }
.stat-label { font-size: 12px; text-transform: uppercase; color: #64748b; font-weight: 700; }
.stat-value { font-size: 26px; font-weight: 800; margin: 8px 0; }
.stat-sub { font-size: 12px; color: #94a3b8; }
.bos-admin-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}
.bos-code-box {
  background: #0f172a;
  padding: 12px 16px;
  border-radius: 6px;
  color: #38bdf8;
  font-family: monospace;
  margin-top: 8px;
}\n