/*
 * TVBOXPRO Wallet Bridge v6
 * Uses EXACT TVBOXPRO design tokens extracted from the compiled Vue bundle.
 * Fonts: Outfit (headings), Figtree/Open Sans (body)
 * Colors: #000 bg, #e50914 accent, #ffffff scoped opacity text, #2ecc71/#10b981 success
 * All classes are prefixed with tvb- to avoid collisions with the Vue scoped styles.
 */

/* ============================
   NAV ITEM (sidebar injection)
   Matches .nav-item[data-v-56b53a61] / [data-v-4fa03e8f] / [data-v-75b69e4d] exactly
   ============================ */
a.tvb-nav-item {
  color: rgba(255,255,255,0.6) !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1rem 2rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .2s !important;
  display: flex !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
}
a.tvb-nav-item:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.02) !important;
}
a.tvb-nav-item.tvb-active {
  color: #fff !important;
  background: rgba(229,9,20,0.05) !important;
  border-right: 3px solid #e50914 !important;
}
a.tvb-nav-item .icon {
  opacity: 0.7;
  font-size: 1rem;
}
a.tvb-nav-item.tvb-active .icon {
  opacity: 1;
}
.tvb-hide-native-active a.nav-item:not(.tvb-nav-item).router-link-active {
  color: rgba(255,255,255,0.6) !important;
  background: transparent !important;
  border-right: none !important;
}

/* ============================
   PAGE HEADER (matches .page-header / .nf-h2 / .subtitle)
   ============================ */
.tvb-page-header {
  margin-bottom: 2.5rem;
}
.tvb-nf-h2 {
  color: #fff !important;
  margin-bottom: 0.5rem;
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  font-weight: 900;
}
.tvb-nf-red {
  color: #e50914 !important;
}
#tvb-embedded-panel h1,
#tvb-embedded-panel h2,
#tvb-embedded-panel h3,
#tvb-embedded-panel h4,
.tvb-modal h1,
.tvb-modal h2,
.tvb-modal h3,
.tvb-modal h4 {
  color: #fff !important;
}
.tvb-subtitle {
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-size: 0.9rem;
}

/* ============================
   GLASS CARD (matches .glass-card[data-v-b1137556] / [data-v-654ac631])
   ============================ */
.tvb-glass-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}
.tvb-glass-card-padded {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 2rem;
  max-width: 100%;
  box-sizing: border-box;
}

/* ============================
   TABLE (matches .admin-table / .orders-table / .lines-table)
   ============================ */
.tvb-table-container {
  overflow-x: auto;
}
.tvb-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
}
.tvb-table th {
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  white-space: nowrap;
  background: rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 800;
}
.tvb-table td {
  vertical-align: middle;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 1.25rem 1.5rem;
  font-size: 0.9rem;
}
.tvb-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.tvb-table tr:last-child td {
  border-bottom: none;
}

/* ============================
   BUTTONS (matches .nf-btn-ghost / .nf-btn-primary / .btn-xs / .action-btn)
   ============================ */
.tvb-btn-ghost {
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  font-size: 0.75rem;
  font-family: inherit;
}
.tvb-btn-ghost:hover:not(:disabled) {
  background: #e50914;
  border-color: #e50914;
  transform: translateY(-2px);
}
.tvb-btn-primary {
  color: #fff;
  cursor: pointer;
  background: #e50914;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  font-family: inherit;
}
.tvb-btn-primary:hover:not(:disabled) {
  background: #f40612;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229,9,20,0.2);
}
.tvb-btn-success {
  color: #fff;
  cursor: pointer;
  background: #e50914;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex;
  font-family: inherit;
}
.tvb-btn-success:hover:not(:disabled) {
  background: #f40612;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229,9,20,0.2);
}
.tvb-btn-danger {
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex;
  font-family: inherit;
}
.tvb-btn-danger:hover:not(:disabled) {
  background: #e50914;
  border-color: #e50914;
  transform: translateY(-2px);
}

/* ============================
   STATUS BADGES (matches .status-badge variants)
   ============================ */
.tvb-badge {
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}
.tvb-badge-success {
  color: #2ecc71;
  background: rgba(46,204,113,0.2);
  border: 1px solid rgba(46,204,113,0.3);
}
.tvb-badge-warning {
  color: #f39c12;
  background: rgba(243,156,18,0.2);
  border: 1px solid rgba(243,156,18,0.3);
}
.tvb-badge-danger {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.2);
}
.tvb-badge-info {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.tvb-badge-pill {
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 900;
}

/* ============================
   FORM INPUTS (matches .search-input / .filter-select)
   ============================ */
.tvb-input,
.tvb-select,
.tvb-textarea {
  color: #fff !important;
  background-color: #0b0b0d !important;
  background: #0b0b0d !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 8px !important;
  width: 100%;
  padding: 0.8rem 1.2rem !important;
  font-size: 0.9rem !important;
  transition: all 0.3s;
  box-sizing: border-box;
  font-family: inherit;
  color-scheme: dark;
}
.tvb-input::placeholder,
.tvb-textarea::placeholder {
  color: rgba(255,255,255,0.35) !important;
}
.tvb-input:focus,
.tvb-select:focus,
.tvb-textarea:focus {
  color: #fff !important;
  background-color: #141416 !important;
  background: #141416 !important;
  border-color: #e50914 !important;
  outline: none !important;
  box-shadow: 0 0 10px rgba(229,9,20,0.2) !important;
}
.tvb-select option {
  color: #fff !important;
  background-color: #111 !important;
  background: #111 !important;
}
.tvb-checkbox-row input[type="checkbox"],
.tvb-table input[type="checkbox"] {
  width: auto !important;
  padding: 0 !important;
  accent-color: #e50914;
}
.tvb-label {
  display: block;
  color: rgba(255,255,255,0.6);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tvb-form-row {
  margin-bottom: 1rem;
}

/* ============================
   STATS GRID (matches .stat-card patterns from admin overview)
   ============================ */
.tvb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.tvb-stat-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
}
.tvb-stat-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.tvb-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  font-family: Outfit, sans-serif;
}

/* ============================
   USER INFO (matches .user-info / .avatar from admin users)
   ============================ */
.tvb-user-info {
  align-items: center;
  gap: 1rem;
  display: flex;
}
.tvb-avatar {
  color: #fff;
  background: #e50914;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
}
.tvb-user-name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.tvb-user-email {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* ============================
   DETAIL VIEW (matches .detail-grid / .detail-item from admin user details)
   ============================ */
.tvb-detail-grid {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}
.tvb-detail-item {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  display: flex;
}
.tvb-detail-item .tvb-label-inline {
  color: rgba(255,255,255,0.6);
  min-width: 100px;
  font-weight: 700;
  font-size: 0.85rem;
}
.tvb-detail-item .tvb-value-inline {
  color: #fff;
  flex: 1;
  font-weight: 500;
}

/* ============================
   ACTION SECTION GRID (for Add / Deduct side by side)
   ============================ */
.tvb-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.tvb-action-grid > * {
  min-width: 0;
}
#tvb-embedded-panel {
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 768px) {
  .tvb-action-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
.tvb-action-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
}
.tvb-action-title {
  color: #fff;
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.5rem;
}

/* ============================
   CREDIT / DEBIT coloring
   ============================ */
.tvb-credit { color: #10b981; font-weight: 700; }
.tvb-debit { color: #f43f5e; font-weight: 700; }

/* ============================
   ALERTS (matching the site's pattern)
   ============================ */
.tvb-alert {
  border-radius: 8px;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.tvb-alert-success {
  color: #10b981;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
}
.tvb-alert-warning {
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
}
.tvb-alert-error {
  color: #ef4444;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
}

/* ============================
   BACK BUTTON (matches existing navigation pattern)
   ============================ */
.tvb-back-btn {
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  font-family: inherit;
}
.tvb-back-btn:hover {
  color: #e50914;
}

/* ============================
   SECTION TITLE (matches .section-title patterns)
   ============================ */
.tvb-section-title {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ============================
   TABS
   ============================ */
.tvb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.tvb-tab {
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
  font-family: inherit;
}
.tvb-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.tvb-tab.active {
  color: #fff;
  background: #e50914;
  border-color: #e50914;
}

/* ============================
   PAGINATION
   ============================ */
.tvb-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding: 1rem 1.5rem;
}

/* ============================
   LOADING / EMPTY STATE (matches .loading-state / .empty-state)
   ============================ */
.tvb-loading,
.tvb-empty {
  text-align: center;
  color: rgba(255,255,255,0.5);
  padding: 4rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
}

/* ============================
   MODAL
   ============================ */
.tvb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.tvb-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 92%;
  max-width: 560px;
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  font-family: 'Figtree', 'Open Sans', system-ui, sans-serif;
}
.tvb-modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.tvb-modal-title {
  color: #fff !important;
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.tvb-modal-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.tvb-modal-close:hover {
  color: #fff;
  border-color: #e50914;
}
.tvb-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.tvb-sticky-cta {
  position: sticky;
  bottom: -1px;
  background: #111;
  padding: 0.75rem 0 0.25rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 5;
}
#tvb-embedded-panel .tvb-sticky-cta {
  background: #0a0a0a;
}

/* ============================
   TOP-UP AMOUNT GRID
   ============================ */
.tvb-amounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tvb-amt-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 0.7rem 0.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}
.tvb-amt-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.tvb-amt-btn.selected {
  background: rgba(16,185,129,0.15);
  border-color: #10b981;
  color: #10b981;
}
.tvb-amt-btn.recommended {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px rgba(245,158,11,0.3);
}
.tvb-amt-tag {
  display: block;
  font-size: 0.6rem;
  color: #f59e0b;
  margin-top: 2px;
  font-weight: 600;
}

/* ============================
   PAYMENT METHODS
   ============================ */
.tvb-methods-group {
  margin-bottom: 1rem;
}
.tvb-methods-cat {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.tvb-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.tvb-method-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
}
.tvb-method-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.tvb-method-btn.selected {
  background: rgba(16,185,129,0.15);
  border-color: #10b981;
  color: #10b981;
}
.tvb-method-card-wide {
  grid-column: 1 / -1;
}
.tvb-method-sublist {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  line-height: 1.45;
}
.tvb-method-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.tvb-method-sublabel {
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 0.2rem;
}
.tvb-method-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.85);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ============================
   WHATSAPP MESSAGE PREVIEW
   ============================ */
.tvb-preview-box {
  background: rgba(0,0,0,0.3);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  white-space: pre-wrap;
  margin-top: 0.5rem;
}

/* ============================
   VIEW ALL BUTTON (matches admin overview "View All" style)
   ============================ */
.tvb-view-all {
  color: #fff;
  cursor: pointer;
  background: #e50914;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
}
.tvb-view-all:hover {
  background: #f40612;
  transform: translateY(-1px);
}

/* ============================
   NOTIFICATION DOT
   ============================ */
.tvb-notif-dot {
  background: #e50914;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 50px;
  margin-left: auto;
}

/* ============================
   BALANCE HIGHLIGHT
   ============================ */
.tvb-balance-green {
  color: #10b981;
  font-weight: 900;
}

/* ============================
   CHECKBOXES
   ============================ */
.tvb-checkbox-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tvb-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  cursor: pointer;
}

/* ============================
   RESPONSIVE (MOBILE-FIRST POLISH)
   ============================ */
@media (max-width: 768px) {
  html,
  body,
  #app,
  .home-container,
  .dashboard-main-container,
  .dashboard-layout,
  .dashboard-main,
  .admin-layout,
  .admin-main,
  .admin-page,
  .admin-tickets,
  .dashboard,
  .orders-page,
  .lines-page,
  #tvb-embedded-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .dashboard-main,
  .admin-main {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 1.15rem 0.85rem 4.75rem !important;
  }
  .orders-page .nf-h2,
  .lines-page .nf-h2,
  .admin-page .nf-h2,
  .admin-tickets .nf-h2,
  .dashboard .nf-h2,
  .tvb-nf-h2 {
    font-size: 1.55rem !important;
    margin-bottom: 0.3rem !important;
  }
  .orders-page .subtitle,
  .lines-page .subtitle,
  .admin-page .subtitle,
  .admin-tickets .subtitle,
  .dashboard .subtitle,
  .tvb-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 1rem !important;
  }
  /* Admin controls, search, dropdowns, headers, KPI grids */
  .controls-container,
  .action-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .dash-header,
  .page-header,
  .header-section {
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin-bottom: 1.1rem !important;
  }
  .search-input,
  .filter-select {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .stats-grid,
  .skeleton-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }
  .kpi-card {
    padding: 1.15rem !important;
  }
  .modal-overlay,
  .modal-root {
    padding: 10px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-content,
  .modal-inner,
  .modal-main {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1.15rem !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }
  .modal-content h3,
  .modal-main .m-header h2 {
    font-size: 1.25rem !important;
  }
  .detail-grid {
    gap: 0.65rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .detail-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.3rem !important;
    padding: 0.75rem 0.9rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
  }
  .detail-item .label {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: rgba(255,255,255,0.5) !important;
  }
  .detail-item .value {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    font-size: 0.92rem !important;
  }
  .credentials-grid,
  .credential-box,
  .copyable-field,
  .m3u-input {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    word-break: break-word !important;
  }
  .orders-table-container,
  .lines-table-container,
  .admin-table-container,
  .table-wrap,
  .table-container,
  .tvb-glass-card {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }
  /* Stack My Orders, My Lines, Admin Tables, and Wallet Tables cleanly as full-width cards with header bar */
  .orders-table,
  .lines-table,
  .admin-table,
  .tvb-responsive-table,
  .tvb-table.tvb-mobile-cards {
    min-width: 0 !important;
    width: 100% !important;
    display: block !important;
  }
  .orders-table thead,
  .lines-table thead,
  .admin-table thead,
  .tvb-responsive-table thead,
  .tvb-table.tvb-mobile-cards thead {
    display: none !important;
  }
  .orders-table tbody,
  .lines-table tbody,
  .admin-table tbody,
  .tvb-responsive-table tbody,
  .tvb-table.tvb-mobile-cards tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
    width: 100% !important;
  }
  .orders-table tr,
  .lines-table tr,
  .admin-table tr,
  .tvb-responsive-table tr,
  .tvb-table.tvb-mobile-cards tr {
    display: block !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45) !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .orders-table tr:hover td,
  .lines-table tr:hover td,
  .admin-table tr:hover td,
  .tvb-responsive-table tr:hover td,
  .tvb-table.tvb-mobile-cards tr:hover td {
    background: transparent !important;
  }
  .orders-table td,
  .lines-table td,
  .admin-table td,
  .tvb-responsive-table td,
  .tvb-table.tvb-mobile-cards td {
    display: grid !important;
    grid-template-columns: 105px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.5rem 0.9rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    font-size: 0.88rem !important;
    text-align: left !important;
    white-space: normal !important;
    max-width: 100% !important;
    word-break: break-word !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .orders-table td:first-child,
  .lines-table td:first-child,
  .admin-table td:first-child,
  .tvb-responsive-table td:first-child,
  .tvb-table.tvb-mobile-cards td:first-child {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.55rem !important;
    background: rgba(229,9,20,0.09) !important;
    border-left: 3px solid #e50914 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding: 0.7rem 0.9rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    font-size: 0.92rem !important;
    text-align: left !important;
  }
  .orders-table td:first-child:hover,
  .lines-table td:first-child:hover,
  .admin-table td:first-child:hover,
  .tvb-responsive-table td:first-child:hover,
  .tvb-table.tvb-mobile-cards td:first-child:hover {
    background: rgba(229,9,20,0.09) !important;
  }
  .orders-table td:last-child,
  .lines-table td:last-child,
  .admin-table td:last-child,
  .tvb-responsive-table td:last-child,
  .tvb-table.tvb-mobile-cards td:last-child {
    border-bottom: none !important;
    padding-bottom: 0.75rem !important;
  }
  .orders-table td::before,
  .lines-table td::before,
  .admin-table td::before,
  .tvb-responsive-table td::before,
  .tvb-table.tvb-mobile-cards td::before {
    content: attr(data-label);
    color: rgba(255,255,255,0.5);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
  }
  .lines-page .lines-table td:nth-child(6),
  .admin-table td:last-child,
  .tvb-responsive-table td[data-label="Actions"],
  .tvb-responsive-table td[data-label="Action"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    text-align: left !important;
  }
  .lines-page .lines-table td:nth-child(6)::before,
  .admin-table td:last-child::before,
  .tvb-responsive-table td[data-label="Actions"]::before,
  .tvb-responsive-table td[data-label="Action"]::before {
    width: 100%;
    margin-bottom: 0.15rem;
  }
  .tvb-responsive-table td input.tvb-input {
    max-width: 100% !important;
    width: 100% !important;
  }
  .orders-page .orders-table td:nth-child(1)::before { content: "Order ID"; }
  .orders-page .orders-table td:nth-child(2)::before { content: "Package"; }
  .orders-page .orders-table td:nth-child(3)::before { content: "Amount"; }
  .orders-page .orders-table td:nth-child(4)::before { content: "Date"; }
  .orders-page .orders-table td:nth-child(5)::before { content: "Status"; }

  .lines-page .lines-table td:nth-child(1)::before { content: "Order #"; }
  .lines-page .lines-table td:nth-child(2)::before { content: "Device"; }
  .lines-page .lines-table td:nth-child(3)::before { content: "Identifier"; }
  .lines-page .lines-table td:nth-child(4)::before { content: "Status"; }
  .lines-page .lines-table td:nth-child(5)::before { content: "Expiry Date"; }
  .lines-page .lines-table td:nth-child(6)::before { content: "Actions"; }
  .tvb-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .tvb-page-header {
    margin-bottom: 1rem;
    gap: 0.75rem;
  }
  #tvb-hero-topup-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  .tvb-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-bottom: 1.1rem;
  }
  .tvb-stat-box {
    padding: 0.95rem 1rem;
    border-radius: 12px;
  }
  .tvb-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
  }
  .tvb-stat-value {
    font-size: 1.35rem;
  }
  .tvb-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    max-width: 100%;
  }
  .tvb-tabs::-webkit-scrollbar {
    display: none;
  }
  .tvb-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
  .tvb-glass-card-padded {
    padding: 1rem;
    border-radius: 14px;
  }
  .tvb-action-card {
    padding: 1rem;
  }
  .tvb-alert {
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  .tvb-amounts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  .tvb-amt-btn {
    padding: 0.65rem 0.4rem;
    font-size: 0.92rem;
  }
  .tvb-methods-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .tvb-method-btn {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
  }
  .tvb-method-sublist {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    gap: 0.4rem;
  }
  .tvb-method-chip {
    font-size: 0.75rem;
    padding: 0.18rem 0.45rem;
  }
  .tvb-modal-backdrop {
    padding: 10px;
  }
  .tvb-modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 14px;
  }
  .tvb-modal-header {
    padding: 1rem 1.15rem;
  }
  .tvb-modal-body {
    padding: 1rem 1.15rem;
  }
  .tvb-detail-grid {
    gap: 0.6rem;
    margin-bottom: 1rem !important;
  }
  .tvb-detail-item {
    padding: 0.75rem 0.9rem;
    gap: 0.6rem;
  }
  .tvb-detail-item .tvb-label-inline {
    min-width: 90px;
    font-size: 0.85rem;
  }
  .tvb-loading,
  .tvb-empty {
    padding: 2rem 1rem;
    font-size: 0.95rem;
  }
}

/* ============================
   GOOGLE TRANSLATE OVERRIDES & PERSISTENT SWITCHER
   ============================ */
body > .skiptranslate,
iframe.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
.VIpgJd-yAWNEb-L7lbkb,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
[id^="goog-gt-"],
.google-translate-fixed {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}
html, body {
  top: 0px !important;
  margin-top: 0px !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

#tvb-lang-widget {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background: #111114;
  border: 1px solid rgba(229, 9, 20, 0.5);
  border-radius: 50px;
  padding: 0.42rem 0.7rem;
  width: auto !important;
  max-width: 82px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75);
  font-family: 'Figtree', 'Open Sans', system-ui, sans-serif;
  cursor: pointer;
  overflow: hidden;
}
#tvb-lang-widget:hover {
  border-color: #e50914;
}
#tvb-lang-widget .tvb-lang-icon {
  font-size: 0.95rem;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
#tvb-lang-code {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
#tvb-lang-select {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  cursor: pointer !important;
  color-scheme: dark;
}
#tvb-lang-select option {
  background-color: #111114 !important;
  color: #fff !important;
}
@media (max-width: 768px) {
  .dashboard-main,
  .admin-main {
    padding-bottom: 4.5rem !important;
  }
  #tvb-lang-widget {
    bottom: 12px;
    right: 12px;
    padding: 0.4rem 0.65rem;
  }
}
