/* HG TOPUP ADMIN CONSOLE STYLESHEET */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #cbd5e1;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --primary: #06402B;
  --primary-dark: #042f1f;
  --primary-subtle: #e8f5e9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

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

.hidden {
  display: none !important;
}

/* ===================================================================
   ADMIN LOGIN SCREEN
   =================================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f1f5f9;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: none !important;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.login-title-group h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.login-tag {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 0.15s ease;
}

.form-input-wrap:focus-within {
  border-color: #0f172a;
  background: #ffffff;
}

.input-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  margin-right: 10px;
  flex-shrink: 0;
}

.form-input-wrap input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}

.totp-input-wrap input {
  font-family: monospace, var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.form-input-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-login-submit {
  background: #06402B;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 20px;
  font-family: var(--font-main);
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  transition: background-color 0.15s ease;
}

.btn-login-submit:hover {
  background: #042d1e;
}

.login-error-msg {
  font-size: 0.78rem;
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.login-footer-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.security-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

/* ===================================================================
   ADMIN DASHBOARD LAYOUT
   =================================================================== */
.admin-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.admin-header-text h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-header-text h2 span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
}

.admin-live-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: none !important;
}

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

.time-widget {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-refresh:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.refresh-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.btn-refresh.spinning .refresh-icon {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: #b91c1c;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-logout:hover {
  background: #fca5a5;
  color: #991b1b;
}

/* ===================================================================
   MAIN DASHBOARD CONTENT
   =================================================================== */
.admin-main {
  padding: 24px 20px 60px 20px;
}

.admin-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Dashboard Banner / Settings Header Card */
.dashboard-banner,
.settings-header-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.settings-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.settings-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.settings-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.73rem;
  white-space: nowrap;
}

.pill-label {
  color: var(--text-muted);
  font-weight: 600;
}

.pill-val {
  font-weight: 800;
}

.val-green {
  color: #16a34a;
}

.val-dark {
  color: #06402B;
}

@media (max-width: 768px) {
  .settings-header-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  
  .settings-meta-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
  }
  
  .settings-status-pill {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 2px !important;
    padding: 5px 4px !important;
    font-size: 0.69rem !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  .pill-label {
    font-size: 0.63rem !important;
    line-height: 1.1 !important;
  }
  
  .pill-val {
    font-size: 0.74rem !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 420px) {
  .settings-meta-row {
    gap: 4px !important;
  }
  
  .settings-status-pill {
    padding: 4px 2px !important;
  }
  
  .pill-label {
    font-size: 0.58rem !important;
  }
  
  .pill-val {
    font-size: 0.68rem !important;
  }
}

.dash-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.dash-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.dash-banner-meta,
.banner-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
}

.meta-item strong {
  color: var(--text-main);
}

/* ===================================================================
   KPI METRICS GRID (5 CARDS)
   =================================================================== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.kpi-grid.kpi-grid-4 {
  grid-template-columns: repeat(4, 1fr) !important;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

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

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

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: none;
}

.kpi-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-cyan { background: #ecfeff; color: #0891b2; }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-orange { background: #e8f5e9; color: #06402B; }
.icon-dark { background: #f1f5f9; color: #0f172a; }

.kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.kpi-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.kpi-dual-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0;
}

.dual-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.dual-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dual-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.dual-bdt {
  font-size: 1.15rem;
  font-weight: 800;
  color: #16a34a;
}

.highlight-card,
.highlight-card-dark {
  border-top: 1px solid var(--border-light);
}

/* ===================================================================
   SECTION BLOCKS
   =================================================================== */
.section-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.block-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
}

.block-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===================================================================
   4 TARGETED PACKAGES STATS GRID (SEPARATE STANDALONE CARDS)
   =================================================================== */
.target-perf-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.target-perf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Dedicated Target Profit Overview Card (Like Today Orders) */
.target-profit-card-wrap {
  width: 100%;
}

.target-profit-overview-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.target-dual-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.target-dual-grid .dual-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.target-profit-number {
  font-size: 1.20rem !important;
  font-weight: 800 !important;
  color: #06402B !important;
}

@media (max-width: 640px) {
  .target-dual-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }
  .target-dual-grid .dual-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
  }
  .target-dual-grid .dual-label {
    font-size: 0.68rem !important;
  }
  .target-dual-grid .dual-num,
  .target-dual-grid .target-profit-number {
    font-size: 1.05rem !important;
  }
}

@media (max-width: 420px) {
  .target-dual-grid {
    gap: 6px !important;
  }
  .target-dual-grid .dual-label {
    font-size: 0.62rem !important;
  }
  .target-dual-grid .dual-num,
  .target-dual-grid .target-profit-number {
    font-size: 0.95rem !important;
  }
}

.packages-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

@media (max-width: 500px) {
  .packages-stats-grid {
    grid-template-columns: 1fr;
  }
}

.pkg-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.pkg-stat-card:hover {
  transform: translateY(-2px);
  border-color: #06402B;
}

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

.pkg-stat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: none;
  letter-spacing: 0.2px;
}

.badge-hot {
  background: #e8f5e9 !important;
  color: #06402B !important;
  border-color: #a7f3d0 !important;
}

.pkg-stat-rate {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.pkg-stat-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.pkg-metrics-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

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

.pkg-m-label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.2px;
}

.pkg-m-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
}

.pkg-m-bdt {
  font-size: 1rem;
  font-weight: 800;
  color: #16a34a;
}

.highlight-metric {
  border-top: 1px dashed #cbd5e1;
  padding-top: 6px;
  margin-top: 2px;
}

/* ===================================================================
   ORDERS DATA TABLE
   =================================================================== */
.orders-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.table-search-input {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  min-width: 240px;
}

.table-search-input:focus {
  border-color: #0f172a;
  background: #ffffff;
}

.table-select-filter {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
}

.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.orders-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.orders-data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
}

.orders-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  white-space: nowrap;
}

.orders-data-table tbody tr:hover {
  background: #f8fafc;
}

.orders-data-table tbody tr:last-child td {
  border-bottom: none;
}

.order-id-cell {
  font-weight: 700;
  color: #0f172a;
  font-family: monospace;
}

.player-uid-cell {
  font-weight: 700;
  color: var(--primary);
}

.price-cell {
  font-weight: 800;
  color: #0f172a;
}

.table-loading-cell,
.table-empty-cell {
  text-align: center;
  padding: 32px 14px !important;
  color: var(--text-muted);
}

/* SOLID STATUS BADGES (MATCHING MAIN SITE SPEC) */
.status-pill {
  font-family: var(--font-main);
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  border: none !important;
  text-transform: none !important;
  color: #ffffff !important;
}

.status-completed {
  background: #16a34a !important;
  color: #ffffff !important;
}

.status-processing {
  background: #d97706 !important;
  color: #ffffff !important;
}

.status-refund {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* ===================================================================
   ADMIN FOOTER
   =================================================================== */
.admin-footer {
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 16px 20px;
  margin-top: auto;
}

.admin-footer .admin-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-footer code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 1080px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .kpi-grid.kpi-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .packages-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-main {
    padding: 16px 10px 40px 10px;
  }
  .admin-container {
    gap: 16px;
    width: 100%;
    max-width: 100%;
  }
  .section-block {
    padding: 16px 12px;
  }
  .dashboard-banner {
    padding: 16px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .banner-meta {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-stats-grid {
    grid-template-columns: 1fr;
  }
  .pricing-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .admin-header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-header-right {
    width: 100%;
    justify-content: space-between;
  }
  .orders-table-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .table-actions {
    width: 100%;
  }
  .table-search-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .kpi-grid,
  .kpi-grid.kpi-grid-4 {
    grid-template-columns: 1fr !important;
  }
  .pricing-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
}

/* ===================================================================
   ADMIN NAVIGATION TABS
   =================================================================== */
.admin-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 2px;
  margin-bottom: 24px;
}

.admin-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer !important;
  user-select: none;
  pointer-events: auto !important;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin-bottom: -2px;
}

.admin-tab-btn * {
  pointer-events: none !important;
}

.admin-tab-btn:hover {
  color: var(--text-main);
  background: rgba(241, 245, 249, 0.6);
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(6, 64, 43, 0.08);
}

.tab-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #10b981;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.admin-tab-pane {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInPane 0.25s ease forwards;
}

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

/* ===================================================================
   TABLE ACTIONS & UTILITIES
   =================================================================== */
.btn-table-refresh {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-table-refresh:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.status-pill.status-rejected {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ===================================================================
   EMERGENCY SETTINGS & WALLET SECURITY STYLES (FLAT, NO SHADOWS)
   =================================================================== */
.emergency-switches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .emergency-switches-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.emergency-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none !important;
  transition: border-color 0.15s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.emergency-card.card-danger-active {
  border-color: #ef4444;
  background: #fffafa;
}

.emergency-card.card-warning-active {
  border-color: #f59e0b;
  background: #fffdfa;
}

.em-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.em-card-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.em-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.em-badge.em-badge-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.em-badge.em-badge-danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.em-badge.em-badge-warning {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.em-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.em-card-action {
  margin-top: auto;
  padding-top: 6px;
}

.em-card-action-input {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  padding-top: 6px;
}

.gw-trick-input-box {
  flex: 1;
  min-width: 0;
  position: relative;
}

.gw-currency {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 14px;
  pointer-events: none;
}

.gw-trick-input-box input {
  width: 100%;
  height: 38px;
  padding: 0 10px 0 24px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  background: #f8fafc;
  box-sizing: border-box;
}

.btn-gw-save {
  background: #06402B !important;
  color: #fff !important;
  border: none !important;
  padding: 0 16px !important;
  height: 38px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.btn-em-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  box-shadow: none !important;
  text-decoration: none;
}

.btn-em-toggle.btn-danger {
  background: #ef4444;
  color: #ffffff;
}

/* ===================================================================
   PRODUCT PRICING MANAGEMENT (10 PACKAGES - 2 COLUMNS ON MOBILE)
   =================================================================== */
.btn-save-prices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06402B;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-save-prices:hover {
  background: #042d1e;
  transform: translateY(-1px);
}

.pricing-packages-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .pricing-packages-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .pricing-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .pricing-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
}

.pricing-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
  box-sizing: border-box;
}

.pricing-card:focus-within,
.pricing-card:hover {
  border-color: #06402B;
  background: #ffffff;
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pricing-pkg-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-pkg-sub {
  font-size: 0.64rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pricing-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  height: 34px;
  box-sizing: border-box;
  width: 100%;
}

.pricing-currency {
  position: absolute;
  left: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #06402B;
  pointer-events: none;
}

.pricing-input {
  width: 100%;
  height: 100%;
  padding: 0 6px 0 22px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
  background: transparent;
  box-sizing: border-box;
}

.pricing-input:focus {
  background: #f0fdf4;
}

.pricing-input:focus {
  background: #f0fdf4;
}

.btn-em-toggle.btn-danger:hover {
  background: #dc2626;
}

.btn-em-toggle.btn-warning {
  background: #f59e0b;
  color: #ffffff;
}

.btn-em-toggle.btn-warning:hover {
  background: #d97706;
}

.btn-em-toggle.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-em-toggle.btn-success:hover {
  background: #15803d;
}

/* User Wallets Table Elements */
.owner-uid-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 6px;
  border-radius: 4px;
  color: #1e293b;
  display: inline-block;
  user-select: all;
  cursor: copy;
}

.wallet-bal-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.wallet-bal-val.has-funds {
  color: #16a34a;
}

.wallet-actions-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-wlt-action {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: none !important;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-wlt-freeze {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.btn-wlt-freeze:hover {
  background: #fca5a5;
  color: #7f1d1d;
}

.btn-wlt-unfreeze {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.btn-wlt-unfreeze:hover {
  background: #bbf7d0;
  color: #14532d;
}

.btn-wlt-suspend {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.btn-wlt-suspend:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-wlt-unsuspend {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.btn-wlt-adjust {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.btn-wlt-adjust:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
