/**
 * ============================================================================
 * FIBERFLOW — BYM CRM UI ENHANCEMENT LAYER v1.0
 * Inspired by app.bymdigital.com (Flowbiz/BYM CRM) design language
 * Applies iOS SF Pro feel, Material 3 ripple, glassmorphism, animated tiles
 * ============================================================================
 */

:root {
  --bym-blue:    #007AFF;
  --bym-blue-d:  #0062D2;
  --bym-green:   #34C759;
  --bym-red:     #FF3B30;
  --bym-orange:  #FF9500;
  --bym-purple:  #AF52DE;
  --bym-indigo:  #5856D6;
  --bym-teal:    #5AC8FA;
  --bym-pink:    #FF2D55;
  --bym-yellow:  #FFCC00;
  --glass-bg:    rgba(15, 23, 42, 0.88);
  --glass-blur:  blur(20px) saturate(180%);
  --bym-shadow-blue:  0 4px 14px rgba(0,122,255,0.35);
  --bym-shadow-green: 0 4px 14px rgba(52,199,89,0.35);
}

/* ── FONT STACK (SF Pro / Apple system, same as BYM CRM) ── */
html, body,
.top-nav, .app-sidebar, .card, .modal-card,
.data-table, .btn, .form-input, .form-select,
.kpi-card, .badge, .sidebar-nav-item {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif !important;
}

/* ── TOP NAV — Glassmorphism ── */
.top-nav {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.4) !important;
}

.brand-logo {
  background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%) !important;
  box-shadow: 0 4px 16px rgba(0,122,255,0.45) !important;
  border-radius: 12px !important;
}

/* ── SIDEBAR ── */
.app-sidebar {
  background: #080e1c !important;
  border-right: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 3px 0 20px rgba(0,0,0,0.6) !important;
}
.sidebar-header {
  background: #050a14 !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.sidebar-footer {
  background: #050a14 !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}
.nav-section-title {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  color: rgba(100,116,139,0.7) !important;
  padding: 14px 14px 4px !important;
}

/* Nav items — icon pill + label */
.sidebar-nav-item,
.sidebar-nav a,
a.sidebar-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 12px !important;
  color: rgba(148,163,184,0.85) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  transition: all 0.18s cubic-bezier(0.4,0,0.2,1) !important;
}
.sidebar-nav-item:hover,
.sidebar-nav a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
  transform: translateX(2px) !important;
}
.sidebar-nav-item.active,
.sidebar-nav a.active {
  color: #fff !important;
  background: linear-gradient(90deg, rgba(0,122,255,0.22) 0%, rgba(0,122,255,0.04) 100%) !important;
  border-left: 3px solid #007AFF !important;
  font-weight: 700 !important;
}

/* Colored icon pills (BYM CRM style) */
.sidebar-nav-item .nav-icon,
.sidebar-nav a .nav-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  background: rgba(255,255,255,0.07) !important;
  transition: all 0.18s ease !important;
}
.sidebar-nav-item.active .nav-icon,
.sidebar-nav a.active .nav-icon {
  background: rgba(0,122,255,0.22) !important;
  color: #007AFF !important;
  box-shadow: 0 0 10px rgba(0,122,255,0.25) !important;
}

/* ── KPI CARDS ── */
.kpi-card {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background: #111827 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
  overflow: hidden !important;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease !important;
}
.kpi-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(0,122,255,0.3) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55) !important;
}
.kpi-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,122,255,0.05), transparent 60%);
  pointer-events: none;
}
.kpi-value {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

/* BYM gradient tiles */
.kpi-card.bg-cyan   { background: linear-gradient(135deg,#0055d4,#007AFF) !important; border:none !important; }
.kpi-card.bg-blue   { background: linear-gradient(135deg,#5856D6,#007AFF) !important; border:none !important; }
.kpi-card.bg-green  { background: linear-gradient(135deg,#1a9e40,#34C759) !important; border:none !important; }
.kpi-card.bg-orange { background: linear-gradient(135deg,#c07000,#FF9500) !important; border:none !important; }
.kpi-card.bg-purple { background: linear-gradient(135deg,#7b3fbf,#AF52DE) !important; border:none !important; }
.kpi-card.bg-teal   { background: linear-gradient(135deg,#34C759,#5AC8FA) !important; border:none !important; }
.kpi-card.bg-red    { background: linear-gradient(135deg,#c92a20,#FF3B30) !important; border:none !important; }
.kpi-card.bg-pink   { background: linear-gradient(135deg,#c2003e,#FF2D55) !important; border:none !important; }
.kpi-card.bg-indigo { background: linear-gradient(135deg,#3730a3,#5856D6) !important; border:none !important; }
.kpi-card[class*="bg-"] .kpi-title { color:rgba(255,255,255,0.8) !important; }
.kpi-card[class*="bg-"] .kpi-value { color:#fff !important; }
.kpi-card[class*="bg-"] .kpi-sub   { color:rgba(255,255,255,0.65) !important; }

/* Stagger entrance animation */
@keyframes bymFadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}
.kpi-card:nth-child(1){animation:bymFadeUp .35s ease both .05s}
.kpi-card:nth-child(2){animation:bymFadeUp .35s ease both .10s}
.kpi-card:nth-child(3){animation:bymFadeUp .35s ease both .15s}
.kpi-card:nth-child(4){animation:bymFadeUp .35s ease both .20s}
.kpi-card:nth-child(5){animation:bymFadeUp .35s ease both .25s}
.kpi-card:nth-child(6){animation:bymFadeUp .35s ease both .30s}

/* ── CARDS ── */
.card {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  background: #0d1526 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}
.card:hover { border-color: rgba(0,122,255,0.2) !important; }
.card-header { border-bottom: 1px solid rgba(255,255,255,0.06) !important; }
.tab-content.active { animation: bymFadeUp 0.28s cubic-bezier(0.16,1,0.3,1) both !important; }

/* ── BUTTONS — iOS style ── */
.btn {
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  position: relative !important;
  overflow: hidden !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: all 0.18s ease !important;
}
.btn-primary {
  background: #007AFF !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0,122,255,0.4) !important;
  color: #fff !important;
}
.btn-primary:hover {
  background: #0062D2 !important;
  box-shadow: 0 6px 20px rgba(0,122,255,0.55) !important;
  transform: translateY(-1px) !important;
}
.btn-success {
  background: #34C759 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(52,199,89,0.4) !important;
}
.btn-success:hover {
  background: #28CD41 !important;
  box-shadow: 0 6px 20px rgba(52,199,89,0.55) !important;
  transform: translateY(-1px) !important;
}
.btn-danger {
  background: rgba(255,59,48,0.12) !important;
  border: 1px solid rgba(255,59,48,0.25) !important;
  color: #FF3B30 !important;
}
.btn-danger:hover {
  background: #FF3B30 !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255,59,48,0.45) !important;
}

/* Material 3 Ripple */
.m3-ink-ripple {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: scale(0);
  background: rgba(255,255,255,0.35);
  animation: m3Ripple 0.55s cubic-bezier(0.1,0.9,0.2,1) forwards;
  z-index: 99;
}
@keyframes m3Ripple {
  0%   { transform:scale(0); opacity:0.6; }
  100% { transform:scale(3); opacity:0; }
}

/* ── FORM INPUTS ── */
.form-input,.form-select,.form-textarea,
input[type="text"],input[type="number"],
input[type="email"],input[type="password"],select,textarea {
  border-radius: 10px !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  color: #f8fafc !important;
  transition: border-color .2s, box-shadow .2s !important;
}
.form-input:focus,.form-select:focus,.form-textarea:focus,
input:focus,select:focus,textarea:focus {
  border-color: #007AFF !important;
  box-shadow: 0 0 0 3px rgba(0,122,255,0.2) !important;
  outline: none !important;
}

/* ── TABLES ── */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  display: block !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  scrollbar-width: thin !important;
}
.data-table {
  width: 100% !important;
  min-width: 960px !important;
  border-collapse: collapse !important;
}
.table-responsive::-webkit-scrollbar {
  height: 6px !important;
  display: block !important;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 999px !important;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: rgba(0, 122, 255, 0.45) !important;
  border-radius: 999px !important;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 122, 255, 0.75) !important;
}
.data-table th {
  background: #080e1c !important;
  font-size: 10.5px !important;
  letter-spacing: 0.08em !important;
  color: rgba(100,116,139,0.8) !important;
}
.data-table tbody tr:hover {
  background: rgba(0,122,255,0.05) !important;
}

/* ── BADGES ── */
.badge {
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  letter-spacing: 0.02em !important;
}
.badge-success {
  background: rgba(52,199,89,0.12) !important;
  color: #34C759 !important;
  border: 1px solid rgba(52,199,89,0.3) !important;
}
.badge-warning {
  background: rgba(255,149,0,0.12) !important;
  color: #FF9500 !important;
  border: 1px solid rgba(255,149,0,0.3) !important;
}
.badge-danger {
  background: rgba(255,59,48,0.12) !important;
  color: #FF3B30 !important;
  border: 1px solid rgba(255,59,48,0.3) !important;
}
.badge-info {
  background: rgba(0,122,255,0.12) !important;
  color: #007AFF !important;
  border: 1px solid rgba(0,122,255,0.3) !important;
}
.badge-secondary {
  background: rgba(88,86,214,0.12) !important;
  color: #5856D6 !important;
  border: 1px solid rgba(88,86,214,0.3) !important;
}

/* ── MODALS — iOS bottom sheet on mobile ── */
.modal-overlay {
  background: rgba(0,0,0,0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
.modal-card {
  border-radius: 20px !important;
  background: #0d1526 !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  box-shadow: 0 25px 60px rgba(0,0,0,0.75) !important;
  animation: modalSlideUp 0.32s cubic-bezier(0.16,1,0.3,1) both !important;
}
@keyframes modalSlideUp {
  from { opacity:0; transform:translateY(28px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,0.07) !important; }
@media (max-width:768px) {
  .modal-overlay { align-items:flex-end !important; padding:0 !important; }
  .modal-card {
    border-radius:22px 22px 0 0 !important;
    width:100% !important; max-width:100% !important;
    max-height:90vh !important;
    padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px)) !important;
  }
  .modal-card::before {
    content:'';
    display:block; width:36px; height:4px;
    border-radius:2px; background:rgba(255,255,255,0.2);
    margin:-8px auto 14px;
  }
}

/* ── MOBILE DOCK — BYM android_native_feel style ── */
@media (max-width:768px) {
  .mobile-dock {
    background: rgba(8,14,28,0.97) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5) !important;
    height: calc(60px + env(safe-area-inset-bottom,0px)) !important;
    padding-bottom: env(safe-area-inset-bottom,0px) !important;
  }
  .mobile-dock-btn {
    -webkit-tap-highlight-color: transparent !important;
    transition: all .18s cubic-bezier(0.4,0,0.2,1) !important;
    gap: 3px !important;
  }
  .mobile-dock-btn.active { color: #007AFF !important; }
  .mobile-dock-btn.active .icon { transform: scale(1.12); display: inline-block; }
}

/* ── LIVE PULSE BADGE ── */
.live-badge {
  display: inline-flex; align-items: center; gap:6px;
  padding: 4px 10px;
  background: rgba(52,199,89,0.1);
  border: 1px solid rgba(52,199,89,0.3);
  border-radius: 999px; font-size:11px; font-weight:700; color:#34C759;
}
.live-pulse { position:relative; width:8px; height:8px; flex-shrink:0; }
.live-pulse::before {
  content:''; position:absolute; inset:0; border-radius:50%;
  background:#34C759; animation:livePulse 1.4s cubic-bezier(0,.5,.5,1) infinite;
}
.live-pulse::after {
  content:''; position:absolute; inset:0; border-radius:50%; background:#34C759;
}
@keyframes livePulse {
  0%  {transform:scale(1);opacity:.6;}
  100%{transform:scale(2.4);opacity:0;}
}

/* ── PAYMENT TYPE SELECTOR ── */
.btn-pay-type {
  border-radius: 12px !important;
  border: 1.5px solid rgba(255,255,255,0.1) !important;
  transition: all .2s cubic-bezier(0.4,0,0.2,1) !important;
}
.btn-pay-type.active {
  background: rgba(0,122,255,0.15) !important;
  border-color: #007AFF !important;
  box-shadow: 0 0 16px rgba(0,122,255,0.3) !important;
}

/* ── FILTER CHIPS ── */
.btn-chip {
  border-radius:20px !important;
  font-size:12px !important; font-weight:600 !important;
  transition: all .15s ease !important;
}
.btn-chip:hover,.btn-chip.active {
  background:rgba(0,122,255,0.2) !important;
  border-color:#007AFF !important; color:#007AFF !important;
}

/* ── SCROLLBARS ── */
::-webkit-scrollbar{width:5px;height:5px;}
::-webkit-scrollbar-track{background:transparent;}
::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.12);border-radius:999px;}
::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,0.22);}

/* ── WA STATUS CARD ── */
.wa-status-card {
  border-radius:16px !important;
  background:#0d1526 !important;
  border:1px solid rgba(255,255,255,0.07) !important;
}
.wa-status-card.connected {
  border-color:rgba(52,199,89,0.35) !important;
  box-shadow:0 0 0 1px rgba(52,199,89,0.15),0 4px 20px rgba(52,199,89,0.1) !important;
}

/* ── EMPTY STATE ── */
.empty-state { text-align:center; padding:48px 24px; color:rgba(148,163,184,.6); }
.empty-state i { font-size:48px; margin-bottom:16px; display:block; opacity:.35; }
.empty-state h3 { font-size:16px; font-weight:700; color:rgba(248,250,252,.7); margin-bottom:8px; }
.empty-state p  { font-size:13px; line-height:1.6; max-width:320px; margin:0 auto 20px; }

/* ── SEGMENT CONTROL ── */
.ios-segment-control {
  display:flex; position:relative;
  background:rgba(118,118,128,0.12);
  border-radius:10px; padding:2px;
}
.ios-seg-btn {
  flex:1; padding:7px 0; text-align:center;
  font-size:13px; font-weight:600; color:rgba(148,163,184,0.9);
  background:none; border:none; cursor:pointer; border-radius:8px;
  transition:all .2s ease;
}
.ios-seg-btn.active {
  color:#fff; background:rgba(0,122,255,0.3);
  box-shadow:0 1px 4px rgba(0,0,0,0.2);
}

/* ── BYM ANNOUNCE BANNER ── */
.bym-announce-card {
  background:linear-gradient(135deg,#007AFF,#5856D6);
  border-radius:16px; padding:16px 20px; margin-bottom:20px; color:#fff;
  display:flex; align-items:center; gap:14px;
  box-shadow:0 6px 20px rgba(0,122,255,0.35);
  position:relative; overflow:hidden;
}
.bym-announce-card::before {
  content:''; position:absolute; top:-40px; right:-40px;
  width:140px; height:140px; border-radius:50%;
  background:rgba(255,255,255,0.08);
}
.bym-announce-icon {
  width:40px; height:40px; background:rgba(255,255,255,0.18);
  border-radius:12px; display:flex; align-items:center;
  justify-content:center; font-size:18px; flex-shrink:0;
}

/* ── FAB (Floating Action Button) ── */
.fab-btn {
  position:fixed;
  bottom:calc(70px + env(safe-area-inset-bottom,0px));
  right:18px; width:52px; height:52px;
  background:#007AFF; color:#fff; border-radius:50%;
  display:none; align-items:center; justify-content:center;
  font-size:22px; box-shadow:0 6px 20px rgba(0,122,255,.5);
  border:none; cursor:pointer; z-index:2100;
  transition:transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.fab-btn:hover{transform:scale(1.08);box-shadow:0 8px 28px rgba(0,122,255,.65);}
.fab-btn:active{transform:scale(0.96);}
@media(max-width:768px){.fab-btn{display:flex !important;}}

/* ── IOS PAGE HEADER (BYM CRM DASHBOARD) ── */
.ios-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.ios-page-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ios-page-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 3px;
  letter-spacing: -0.01em;
}

/* ── ACTION SHEET (iOS Native Bottom Sheet on Mobile) ── */
.action-sheet-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  align-items: flex-end;
  justify-content: center;
  animation: fadeInSheet 0.2s ease;
}
.action-sheet-overlay.active {
  display: flex;
}
.action-sheet {
  background: #111a2e;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 540px;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUpSheet 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.action-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 16px;
}
.action-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.action-sheet-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.action-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.action-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.action-sheet-item:active {
  transform: scale(0.97);
  background: rgba(0, 122, 255, 0.2);
}
.action-sheet-item i, .action-sheet-item span.icon {
  font-size: 20px;
}

@keyframes fadeInSheet {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ── FLOWBIZ SMART CALLER ID & LEAD HUD (app.bymdigital.com) ── */
.fb-lifecycle-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.fb-score-hot {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.16) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}
.fb-score-warm {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.16) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.fb-score-cold {
  color: #38bdf8 !important;
  background: rgba(14, 165, 233, 0.16) !important;
  border: 1px solid rgba(14, 165, 233, 0.4) !important;
}
.fb-active-deal {
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.16) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
}


/* ── SUBSCRIBER TABLE & BADGE WRAPPING FIX ── */
.badge, .days-badge {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1.2 !important;
}
.data-table th, .data-table td {
  white-space: nowrap !important;
}
.data-table td:nth-child(2) {
  white-space: normal !important;
  min-width: 170px !important;
  max-width: 240px !important;
}
.data-table td:last-child {
  min-width: 175px !important;
}


/* ============================================================================
   WHITE BACKGROUND DESIGN SYSTEM — LEARNED FROM app.bymdigital.com
   ============================================================================ */

/* 1. Surfaces & Backgrounds */
html, body, .app-main {
  background: #f2f2f7 !important;
  color: #0f172a !important;
}

.top-nav {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}
#topbarActiveTitle {
  color: #0f172a !important;
}

/* 2. Cards & Panels */
.card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  color: #1e293b !important;
}
.card-header {
  border-bottom: 1px solid #edf2f7 !important;
}
.card-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

.ios-page-title {
  color: #0f172a !important;
}
.ios-page-subtitle {
  color: #64748b !important;
}

/* 3. Navigation Tabs */
.nav-tabs {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 4px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
.tab-btn {
  color: #64748b !important;
  font-weight: 600 !important;
}
.tab-btn:hover {
  color: #007AFF !important;
}
.tab-btn.active {
  background: #007AFF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35) !important;
}

/* 4. Form Inputs & Dropdowns */
.form-input, .form-select, .form-textarea,
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.form-input:focus, .form-select:focus, select:focus, input:focus {
  border-color: #007AFF !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.18) !important;
  outline: none !important;
}
.form-input::placeholder, input::placeholder {
  color: #94a3b8 !important;
}
option {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* 5. Buttons (High Contrast, Zero Color Clashing) */
.btn-primary {
  background: #007AFF !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3) !important;
}
.btn-primary:hover {
  background: #0062D2 !important;
  box-shadow: 0 6px 16px rgba(0, 122, 255, 0.45) !important;
}
.btn-secondary {
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1.5px solid #cbd5e1 !important;
}
.btn-secondary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}
.btn-danger {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border: 1px solid #fca5a5 !important;
}
.btn-danger:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* 6. Desktop Data Table in Light Mode */
.table-responsive {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}
.data-table th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 700 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.data-table td {
  color: #1e293b !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.data-table tbody tr:hover {
  background: #f8fafc !important;
}

/* 7. Superadmin Switch Bar in Light Mode */
.tenant-selector-wrap {
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #065f46 !important;
  border-radius: 12px !important;
}
.tenant-dropdown {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
}

/* 8. Badges in Light Mode */
.badge-success {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}
.badge-danger {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}
.badge-warning {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}
.badge-info {
  background: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}
.days-safe {
  background: #dcfce7 !important;
  color: #15803d !important;
}
.days-critical {
  background: #fee2e2 !important;
  color: #b91c1c !important;
}
.days-warning {
  background: #fef3c7 !important;
  color: #b45309 !important;
}

/* 9. Modals in Light Mode */
.modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}
.modal-header {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
.modal-close {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}
.modal-close:hover {
  background: #fee2e2 !important;
  color: #dc2626 !important;
}

/* 10. Mobile Action Sheet in Light Mode */
.action-sheet {
  background: #ffffff !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12) !important;
}
.action-sheet-title {
  color: #0f172a !important;
}
.action-sheet-handle {
  background: #cbd5e1 !important;
}
.action-sheet-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}
.action-sheet-item:active {
  background: #e0f2fe !important;
}

/* 11. Mobile Bottom Dock in Light Mode */
@media (max-width: 768px) {
  .mobile-dock {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
  }
  .mobile-dock-btn {
    color: #64748b !important;
  }
  .mobile-dock-btn.active {
    color: #007AFF !important;
  }
}

/* ============================================================================
   MOBILE NATIVE CARDS VIEW (CLEAN TOUCH INTERFACE — NO LIST VIEW ON MOBILE)
   ============================================================================ */

/* Universal Desktop Table View vs Mobile Touch Cards */
.subscriber-desktop-view,
.plans-desktop-view,
.desktop-table-view {
  display: block;
}
.subscriber-mobile-cards,
.plans-mobile-cards,
.mobile-cards-view {
  display: none;
}

@media (max-width: 768px) {
  /* Hide all horizontal tables on mobile screens */
  .subscriber-desktop-view,
  .plans-desktop-view,
  .desktop-table-view,
  .table-responsive.desktop-table-view {
    display: none !important;
  }

  /* Display native responsive touch cards */
  .subscriber-mobile-cards,
  .plans-mobile-cards,
  .mobile-cards-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 6px !important;
    margin-bottom: 24px !important;
  }

  .sub-mobile-card, .app-mobile-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 16px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .sub-mobile-card:active, .app-mobile-card:active {
    transform: scale(0.99) !important;
  }

  .sub-card-header, .app-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .sub-card-name, .app-card-name {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
  }
  .sub-card-address, .app-card-address {
    font-size: 11.5px !important;
    color: #64748b !important;
    margin-top: 2px !important;
  }
  .sub-card-pppoe, .app-card-pppoe {
    display: inline-block !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #007AFF !important;
    background: rgba(0, 122, 255, 0.08) !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    margin-top: 5px !important;
  }

  .sub-card-grid, .app-card-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    background: #f8fafc !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid #f1f5f9 !important;
  }
  .sub-card-field, .app-card-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }
  .sub-field-lbl, .app-field-lbl {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #94a3b8 !important;
  }
  .sub-field-val, .app-field-val {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
  }

  /* Action Buttons Container — Clean Transparent Layout (No Grey Box Overlay) */
  .sub-card-actions,
  .app-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 0 0 0 !important;
    margin: 0 !important;
    flex-wrap: wrap !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  /* 1. Quick Renew (Vibrant Emerald Gradient) */
  .sub-card-actions .btn-renew,
  .app-card-actions .btn-renew,
  .btn-renew,
  .btn.btn-renew {
    flex: 1 1 120px !important;
    min-width: 120px !important;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .sub-card-actions .btn-renew:active,
  .app-card-actions .btn-renew:active,
  .btn-renew:active {
    transform: scale(0.97) !important;
    background: #047857 !important;
  }

  /* 2. WhatsApp (Solid Vibrant WA Green) */
  .sub-card-actions .btn-wa,
  .app-card-actions .btn-wa,
  .btn-wa,
  .btn.btn-wa {
    flex: 0 0 auto !important;
    background: #16a34a !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .sub-card-actions .btn-wa:active,
  .app-card-actions .btn-wa:active,
  .btn-wa:active {
    transform: scale(0.97) !important;
    background: #15803d !important;
  }

  /* 3. Customer Pay Portal (Solid Vibrant iOS Blue) */
  .sub-card-actions .btn-pay,
  .app-card-actions .btn-pay,
  .btn-pay,
  .btn.btn-pay {
    flex: 0 0 auto !important;
    background: #007AFF !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 9px 12px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  }
  .sub-card-actions .btn-pay:active,
  .app-card-actions .btn-pay:active,
  .btn-pay:active {
    transform: scale(0.97) !important;
    background: #0062cc !important;
  }

  /* 4. Action Icon Buttons (Edit ✏️ & Ledger 📜) */
  .sub-card-actions .btn-icon,
  .app-card-actions .btn-icon,
  .btn-icon,
  .btn.btn-icon {
    flex: 0 0 auto !important;
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    font-size: 14px !important;
    padding: 8px 11px !important;
    border-radius: 11px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    min-width: 38px !important;
    height: 38px !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
  }
  .sub-card-actions .btn-icon:hover,
  .sub-card-actions .btn-icon:active,
  .app-card-actions .btn-icon:active,
  .btn-icon:active {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    transform: scale(0.95) !important;
  }

  /* 5. Generic Buttons inside cards */
  .sub-card-actions .btn-primary,
  .app-card-actions .btn-primary {
    background: #007AFF !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  }
  .sub-card-actions .btn-secondary,
  .app-card-actions .btn-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }
  .sub-card-actions .btn-danger,
  .app-card-actions .btn-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  }
  .sub-card-actions .btn-success,
  .app-card-actions .btn-success {
    background: #10b981 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    padding: 9px 14px !important;
    border-radius: 11px !important;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
  }
}


/* ── HAMBURGER 3-LINE BUTTON LIGHT MODE FIX ── */
.hamburger-btn {
  display: flex !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  -webkit-tap-highlight-color: transparent !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}
.hamburger-btn span {
  color: #0f172a !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: block !important;
}
.hamburger-btn:hover, .hamburger-btn:active {
  background: #f1f5f9 !important;
  border-color: #007AFF !important;
}
.hamburger-btn:hover span, .hamburger-btn:active span {
  color: #007AFF !important;
}

/* ── PLANS DESKTOP TABLE vs MOBILE CARDS ── */
.plans-desktop-view {
  display: block;
}
.plans-mobile-cards {
  display: none;
}
@media (max-width: 768px) {
  .plans-desktop-view {
    display: none !important;
  }
  .plans-mobile-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin-top: 4px !important;
  }
}

/* ── UNIVERSAL RESPONSIVE MODAL ACTIONS ── */
.modal-footer-responsive {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  width: 100%;
}
.modal-footer-responsive .btn-delete-action {
  margin-right: auto;
}

@media (max-width: 768px) {
  .modal-card form div[style*="justify-content"],
  .modal-card form div[style*="display:flex"]:last-child,
  .modal-footer-responsive {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
    margin-top: 20px !important;
  }
  .modal-card form div[style*="justify-content"] > div,
  .modal-card form div[style*="display:flex"]:last-child > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .modal-card form div[style*="justify-content"] button,
  .modal-card form div[style*="justify-content"] .btn,
  .modal-card form div[style*="display:flex"]:last-child button,
  .modal-card form div[style*="display:flex"]:last-child .btn,
  .modal-footer-responsive button,
  .modal-footer-responsive .btn {
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 16px !important;
    justify-content: center !important;
    align-items: center !important;
    display: inline-flex !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .modal-footer-responsive .btn-save-action { order: 1 !important; }
  .modal-footer-responsive .btn-cancel-action { order: 2 !important; }
  .modal-footer-responsive .btn-delete-action { order: 3 !important; }
}

/* ── MODERN TOAST NOTIFICATIONS & DYNAMIC MODAL ── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 40px);
}
@media (max-width: 768px) {
  .toast-container {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
    max-width: 100%;
  }
}
.app-toast {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 13px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.app-toast-success { border-left: 5px solid #10b981; }
.app-toast-error { border-left: 5px solid #ef4444; }
.app-toast-info { border-left: 5px solid #007AFF; }
.app-toast-warning { border-left: 5px solid #f59e0b; }
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-dialog-card {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25) !important;
  border-radius: 20px !important;
}


/* ==========================================================================
   PREMIUM PLAN RENEWAL & PAYMENT MODAL OVERHAUL (ZERO CONTRAST CLASH)
   ========================================================================== */
#renewModal .modal-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
  border-radius: 18px !important;
}

#renewModal .modal-title {
  color: #0f172a !important;
  font-size: 17.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

#renewModal .form-label {
  color: #475569 !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

#renewModal .form-select,
#renewModal .form-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #0f172a !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 10px 12px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

#renewModal .form-select:focus,
#renewModal .form-input:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
  outline: none !important;
}

/* ── Segmented Payment Type Selector ── */
.btn-pay-type {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 8px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-align: center !important;
  user-select: none !important;
}

.btn-pay-type:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
}

.btn-pay-type.active.active-full,
.btn-pay-type.active:not(.active-partial):not(.active-debt) {
  background: #f0fdf4 !important;
  border: 2px solid #16a34a !important;
  color: #14532d !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.18) !important;
}

.btn-pay-type.active.active-partial {
  background: #fffbeb !important;
  border: 2px solid #d97706 !important;
  color: #78350f !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.18) !important;
}

.btn-pay-type.active.active-debt {
  background: #eff6ff !important;
  border: 2px solid #2563eb !important;
  color: #1e3a8a !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18) !important;
}

.btn-pay-type span {
  color: inherit !important;
}

/* ── Quick Fill Preset Chips ── */
.btn-chip {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.btn-chip:hover, .btn-chip.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
}

/* ── Calculation Preview Invoice Breakdown Box ── */
#renewCalcPreview {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

#renewCalcPreview strong {
  color: #0f172a !important;
}

/* ── Footer Buttons ── */
#renewSubmitBtn {
  font-weight: 700 !important;
  font-size: 13.5px !important;
  padding: 11px 24px !important;
  border-radius: 10px !important;
  border: none !important;
  color: #ffffff !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#renewSubmitBtn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.05) !important;
}
