/* ============================================================
   ONE PAYMENT — ADMIN CSS
   Color-coded Design System
   ============================================================

   COLOR SYSTEM
   ─────────────────────────────────────────────────────────
   --clr-primary   Indigo   #4f46e5  Brand / CTAs / Nav active
   --clr-success   Emerald  #10b981  Paid / Active / Done
   --clr-warning   Amber    #f59e0b  Pending / Low-stock
   --clr-danger    Rose     #ef4444  Error / Cancel / Delete
   --clr-info      Sky      #0ea5e9  Info / Shipped / In-transit
   --clr-purple    Violet   #8b5cf6  Admin roles / Premium
   --clr-neutral   Slate    #64748b  Muted text / Inactive
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand palette */
  --clr-primary:        #4f46e5;
  --clr-primary-dark:   #4338ca;
  --clr-primary-dim:    #6366f1;
  --clr-primary-light:  #eef2ff;
  --clr-primary-ring:   rgba(79,70,229,.18);

  /* Semantic colors */
  --clr-success:        #10b981;
  --clr-success-light:  #d1fae5;
  --clr-success-border: #6ee7b7;
  --clr-success-text:   #065f46;

  --clr-warning:        #f59e0b;
  --clr-warning-light:  #fffbeb;
  --clr-warning-border: #fde68a;
  --clr-warning-text:   #92400e;

  --clr-danger:         #ef4444;
  --clr-danger-light:   #fee2e2;
  --clr-danger-border:  #fca5a5;
  --clr-danger-text:    #991b1b;

  --clr-info:           #0ea5e9;
  --clr-info-light:     #e0f2fe;
  --clr-info-border:    #7dd3fc;
  --clr-info-text:      #0c4a6e;

  --clr-purple:         #8b5cf6;
  --clr-purple-light:   #ede9fe;
  --clr-purple-border:  #c4b5fd;
  --clr-purple-text:    #5b21b6;

  --clr-neutral:        #64748b;

  /* Surface & background */
  --bg:             #f1f5f9;
  --surface:        #ffffff;
  --surface-2:      #f8fafc;
  --border:         #e2e8f0;
  --border-strong:  #cbd5e1;

  /* Text */
  --text:           #0f172a;
  --text-secondary: #334155;
  --text-muted:     #64748b;
  --text-faint:     #94a3b8;

  /* Sidebar */
  --sidebar-bg:     #0f172a;
  --sidebar-text:   #94a3b8;
  --sidebar-hover:  #1e293b;
  --sidebar-active: var(--clr-primary);
  --sidebar-w:      248px;

  /* Layout */
  --topbar-h:       64px;

  /* Shape & depth */
  --radius-sm:      6px;
  --radius:         10px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --radius-full:    9999px;

  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 10px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.16);

  /* Transitions */
  --ease:       cubic-bezier(.4,0,.2,1);
  --t-fast:     .15s var(--ease);
  --t-base:     .22s var(--ease);
  --t-slow:     .35s var(--ease);

  --op-primary: #4f46e5;
    --op-primary-dark: #4338ca;
    --op-primary-light: #eef2ff;
    --op-primary-ring: rgba(79, 70, 229, .18);
    --op-success: #059669;
    --op-success-light: #d1fae5;
    --op-danger: #dc2626;
    --op-danger-light: #fee2e2;
    --op-warning: #d97706;
    --op-warning-light: #fffbeb;
    --op-border: #e5e7eb;
    --op-text: #111827;
    --op-muted: #6b7280;
    --op-bg: #f9fafb;
    --op-white: #ffffff;
    --op-radius: 14px;
    --op-shadow: 0 4px 24px rgba(0, 0, 0, .07);
    --op-shadow-hover: 0 8px 32px rgba(79, 70, 229, .15);
    --op-muted-2:#94A3B8;
    --op-muted-border:#E4E6EB;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: var(--bg);
  color: var(--text);
  font-size: 0.65rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color var(--t-fast); }
/* a:hover { color: var(--clr-primary); } */

code, kbd {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: .78em;
  color: var(--clr-primary-dark);
}

img { max-width: 100%; display: block; }


/* ── Layout ───────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: var(--sidebar-w);
  transition: margin-left var(--t-slow);
  min-width: 0;
}




  .s1-wrap {
    max-width: 680px;
    margin: 0 auto;
  }

  .s1-card {
    background: var(--op-white);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--op-shadow);
  }

  .s1-header-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--op-primary-light);
    color: var(--op-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: .85rem;
  }

  .s1-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--op-text);
    margin: 0 0 .45rem;
    line-height: 1.25;
  }

  .s1-sub {
    font-size: .88rem;
    color: var(--op-muted);
    margin: 0 0 2rem;
    line-height: 1.65;
  }

  .s1-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .s1-option {
    flex: 1;
    min-width: 230px;
    border: 2px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: 1.6rem 1.4rem;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s, transform .15s;
    position: relative;
    background: var(--op-white);
    outline: none;
  }

  .s1-option:hover {
    border-color: var(--op-primary);
    box-shadow: var(--op-shadow-hover);
    transform: translateY(-2px);
  }

  .s1-option:focus-visible {
    border-color: var(--op-primary);
    box-shadow: 0 0 0 4px var(--op-primary-ring);
  }

  .s1-option.selected {
    border-color: var(--op-primary);
    background: var(--op-primary-light);
    box-shadow: var(--op-shadow-hover);
    transform: translateY(-2px);
  }

  .s1-option-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--op-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: background .2s;
    border: 1px solid var(--op-border);
  }

  .s1-option.selected .s1-option-icon-wrap {
    background: var(--op-white);
    border-color: var(--op-primary);
  }

  .s1-option-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--op-text);
    margin-bottom: .45rem;
  }

  .s1-option-desc {
    font-size: .83rem;
    color: #374151;
    line-height: 1.65;
  }

  .s1-option-examples {
    margin-top: .85rem;
    padding: .55rem .75rem;
    background: var(--op-bg);
    border-radius: 8px;
    font-size: .77rem;
    color: var(--op-muted);
    line-height: 1.55;
    border: 1px solid var(--op-border);
  }

  .s1-option.selected .s1-option-examples {
    background: rgba(255, 255, 255, .7);
  }

  .s1-option-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--op-primary);
    color: var(--op-white);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--op-primary-ring);
  }

  .s1-option.selected .s1-option-check {
    display: flex;
  }

  @media (max-width: 520px) {
    
    .s1-option {
      min-width: 100%;
    }

    .s1-card {
      padding: 1.5rem 1.1rem;
    }
  }

  .s1-error {
    display: none;
    margin-top: 1.1rem;
    padding: .7rem 1rem;
    background: var(--op-danger-light);
    border: 1px solid #fca5a5;
    border-radius: 9px;
    font-size: .84rem;
    color: #991b1b;
    display: flex;
    align-items: center;
    gap: .45rem;
  }

  .s1-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    margin-top: 1.75rem;
    padding: .85rem 1.5rem;
    background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
    color: var(--op-white);
    border: none;
    border-radius: 10px;
    font-size: .97rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px var(--op-primary-ring);
    letter-spacing: .01em;
  }

  .s1-btn:hover:not(:disabled) {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .3);
  }

  .s1-btn:active:not(:disabled) {
    transform: translateY(0);
  }

  .s1-btn:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
  }





 .co-steps {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 1.1rem 1.4rem;
    background: var(--op-white);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
  }

  .co-step {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
  }

  .co-step:not(:last-child) {
    flex: 1;
  }

  .co-step:not(:last-child)::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--op-border);
    margin: 0 .65rem;
    border-radius: 2px;
  }

  .co-step.done::after {
    background: linear-gradient(90deg, var(--op-success), var(--op-primary));
  }

  .co-step-num {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--op-border);
    background: var(--op-bg);
    color: var(--op-muted);
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
  }

  .co-step.active .co-step-num {
    background: var(--op-primary);
    border-color: var(--op-primary);
    color: var(--op-white);
    box-shadow: 0 0 0 4px var(--op-primary-ring);
  }

  .co-step.done .co-step-num {
    background: var(--op-success);
    border-color: var(--op-success);
    color: var(--op-white);
  }

  .co-step-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--op-muted);
    white-space: nowrap;
    transition: color .2s;
  }

  .co-step.active .co-step-label {
    color: var(--op-primary);
  }

  .co-step.done .co-step-label {
    color: var(--op-success);
  }
  .co-card {
    background: var(--op-white);
    border: 1px solid var(--op-border);
    border-radius: var(--op-radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--op-shadow);
  }

  .co-card-header-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--op-primary-light);
    color: var(--op-primary);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: .85rem;
  }

  .co-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--op-text);
    margin: 0 0 .4rem;
    line-height: 1.25;
  }

  .co-card-sub {
    font-size: .87rem;
    color: var(--op-muted);
    margin: 0 0 1.75rem;
    line-height: 1.65;
  }

  .co-section {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--op-muted);
    margin: 0 0 1rem;
  }

  .co-section::before,
  .co-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--op-border);
  }

  .co-field {
    margin-bottom: 1rem;
  }

  .co-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: .35rem;
  }

  .co-label .req {
    color: var(--op-danger);
  }

  .co-input {
    display: block;
    width: 100%;
    padding: .6rem .85rem;
    font-size: .9rem;
    border: 1.5px solid var(--op-border);
    border-radius: 9px;
    background: var(--op-white);
    color: var(--op-text);
    box-sizing: border-box;
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .co-input::placeholder {
    color: #9ca3af;
  }

  .co-input:focus {
    border-color: var(--op-primary);
    box-shadow: 0 0 0 3px var(--op-primary-ring);
  }

  .co-input[readonly] {
    background: var(--op-bg);
    color: var(--op-muted);
    cursor: default;
  }

  select.co-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2.5rem;
  }

  .co-row {
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
  }

  .co-row>.co-field {
    flex: 1;
    min-width: 160px;
  }
  .co-alert {
    padding: .8rem 1.1rem;
    border-radius: 10px;
    font-size: .86rem;
    margin-bottom: 1.1rem;
    display: none;
    align-items: flex-start;
    gap: .5rem;
    line-height: 1.55;
  }

  .co-alert-error {
    background: var(--op-danger-light);
    color: #991b1b;
    border: 1px solid #fca5a5;
  }

  .co-alert-success {
    background: var(--op-success-light);
    color: #065f46;
    border: 1px solid #6ee7b7;
  }

  .co-confirm-warning {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    background: var(--op-warning-light);
    border: 1px solid #fde68a;
    border-left: 4px solid var(--op-warning);
    border-radius: 10px;
    font-size: .84rem;
    color: #92400e;
    line-height: 1.6;
  }

  .co-confirm-warning strong {
    display: block;
    margin-bottom: .3rem;
    color: #78350f;
  }

  .co-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .9rem 1.5rem;
    background: linear-gradient(135deg, var(--op-primary) 0%, var(--op-primary-dark) 100%);
    color: var(--op-white);
    border: none;
    border-radius: 10px;
    font-size: .97rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px var(--op-primary-ring);
    letter-spacing: .01em;
  }

  .co-btn:hover:not(:disabled) {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .3);
  }

  .co-btn:active:not(:disabled) {
    transform: translateY(0);
  }

  .co-btn:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
  }

  .co-back-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    color: var(--op-muted);
    text-decoration: none;
    margin-bottom: 1.25rem;
    padding: .35rem .65rem;
    border-radius: 7px;
    transition: background .15s, color .15s;
  }

  .co-back-link:hover {
    background: var(--op-bg);
    color: var(--op-primary);
    text-decoration: none;
  }

  
  @media (max-width: 520px) {
    .s1-btn {
    font-size: .75rem;
  }
    
    .co-row {
    gap: 0;
  }
    .co-steps {
      padding: .85rem .9rem;
      position:sticky;
      top: 10px;margin-bottom: 15px;
    }
    .co-btn {
      position: sticky;
      bottom: 10px;
      font-size: 0.75rem;
    }

    .co-step-label {
      display: none;
    }

    .co-step:not(:last-child)::after {
      margin: 0 .4rem;
    }
  }

  
  @media (max-width: 560px) {
    .co-row>.co-field {
      flex: none;
      width: 100%;
      min-width: 0;
    }

    .co-row>.co-field[style*="flex:0"] {
      flex: none !important;
      width: 100%;
    }

    .co-card {
      padding: 1.5rem 1.1rem;
    }
  }



/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform var(--t-slow);
  border-right: 1px solid rgba(255,255,255,.04);
}

.sidebar.collapsed { transform: translateX(-100%); }
.sidebar.collapsed ~ .main { margin-left: 0; }

.menu-toggle {
    transition: rotate 0.3s ease;
}

.sidebar.collapsed ~ .menu-toggle {
    transform: rotate(180deg);
}

.sidebar-header {
  padding: 15px 10px 15px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 26px;
  color: var(--clr-primary-dim);
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(99,102,241,.5));
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.4px;
}

.sidebar-client-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(51, 65, 85, 0.55) 100%);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 10px;
  min-width: 0;
  width: 100%;
  justify-content: space-between;
}
.sidebar-client-badge .left-bar{
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-client-badge .right-bar{
  height: 25px;
}

.sidebar-client-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(79, 70, 229, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.sidebar-client-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-client-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
}

.sidebar-client-name {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav { flex: 1; padding: 10px 0; overflow-y: auto; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.sidebar-nav ul { list-style: none; padding: 0;}

.nav-links {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px 9px 13px;
  margin: 2px 10px;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  height: 42px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  border-left: 3px solid transparent;
}

.nav-links:hover {
  background: var(--sidebar-hover);
  color: #e2e8f0;
  border-left-color: rgba(99,102,241,.35);
}

/* ── TOP-LEVEL ACTIVE STATE ──────────────────────────────── */
.nav-links.active {
  background: linear-gradient(90deg, rgba(99,102,241,.22) 0%, rgba(99,102,241,.06) 100%);
  color: #fff;
  font-weight: 700;
  border-left: 3px solid var(--clr-primary-dim);
}

/* Glowing pill on the left edge */
.nav-links.active::after {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  border-radius: 0 3px 3px 0;
  background: var(--clr-primary-dim);
  box-shadow: 0 0 10px rgba(99,102,241,.9), 0 0 22px rgba(99,102,241,.45);
}

.nav-links span { font-size: 0.75rem; line-height: 1; }

.nav-icon {
  font-size: 17px;
  /* width: 22px; */
  text-align: center;
  flex-shrink: 0;
  opacity: .72;
  transition: opacity var(--t-fast), filter var(--t-fast);
}

.nav-links:hover .nav-icon { opacity: .92; }

.nav-links.active .nav-icon {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(99,102,241,.75));
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(79,70,229,.4);
}

.user-details { min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--sidebar-text); }

.logout-btn {
  font-size: 18px;
  color: var(--sidebar-text);
  cursor: pointer;
  transition: color var(--t-fast);
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  border-radius: var(--radius-sm);
}
.logout-btn svg{
  width: 25px;
  height: 25px;
  fill: #fff;
}
.logout-btn svg:hover{
  fill: rgb(199, 0, 0);
}
.logout-btn:hover { color: var(--clr-danger); }

.password-wrapper {
  position: relative;
}
.password-wrapper .form-control {
  padding-right: 40px;
}
.password-toggle-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 16px;
  opacity: 0.7;
  color: #ffffff;
}
.password-toggle-icon:hover {
  opacity: 1;
}


.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px 0 20px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;

  /* Subtle top accent line — brand color */
  /* box-shadow:
    0 1px 0 var(--border),
    0 -1px 0 var(--clr-primary) inset,
    0 1px 16px rgba(0,0,0,.05); */
}

/* ── Menu toggle ─────────────────────────────────────────── */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.menu-toggle.mobile-toggle{
  display: none;
}
.menu-toggle.mobile-toggle svg{
  width: 30px;
  height: 30px;
  fill: var(--bg);
}
.menu-toggle:hover {
  /* background: var(--clr-primary-light); */
  color: var(--clr-primary);
  transform: scale(1.08);
}
.menu-toggle:active { transform: scale(.96); }

/* ── Page title + pill ───────────────────────────────────── */
.topbar-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.page-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.25px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Left accent bar before title */
  /* padding-left: 12px;
  border-left: 3px solid var(--clr-primary); */
  margin: 0;
}

/* ── Right actions zone ──────────────────────────────────── */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin: 0 0 0 auto;
}

/* ── Divider between action items ───────────────────────── */
.topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ── Role badge (violet — admin identity) ────────────────── */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: var(--radius-full);
  background: var(--clr-purple-light);
  color: var(--clr-purple-text);
  border: 1px solid var(--clr-purple-border);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
}
/* Avatar dot before name */
.badge-role::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clr-purple);
  box-shadow: 0 0 5px rgba(139,92,246,.6);
  flex-shrink: 0;
}
.client-on-list{
  margin-bottom:1.5rem;
}
.client-on-list .card-header{
  display:flex;justify-content:space-between;align-items:center;
}
.client-on-list .card-title{
  margin:0;font-size:1rem;
}
.client-on-list .card-header .card-on-list{
  display:flex;align-items:center;gap:1rem;
}
div.dataTables_wrapper div.dataTables_filter{
  margin: 10px 0;
}
.client-on-list .card-header .card-on-list #tx-count{
  display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--clr-info-light);
    color: var(--clr-info-text);
    border: 1px solid var(--clr-info-border);
    font-size: 12px;
    font-weight: 700;
}
/* ── Logout button (slate outline) ──────────────────────── */
.topbar-actions .btn-outline-sm {
  padding: 6px 14px;
  font-size: 12.5px;
  border-color: var(--border-strong);
  color: var(--text-muted);
  gap: 5px;
}
.topbar-actions .btn-outline-sm:hover {
  border-color: var(--clr-danger);
  color: var(--clr-danger);
  background: var(--clr-danger-light);
}

/* ── Content ──────────────────────────────────────────────── */
.content { padding: 15px 10px; flex: 1; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.ryftpay-on .card-header .card-header-ti{
  display:flex;
  align-items:center;
  gap:.75rem;
}
.ryftpay-on .card-header .card-header-do{
  display:flex;align-items:center;gap:.75rem;
}
.ryftpay-on .card-header .card-header-do .new-div{
  display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;
}

.card-title { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -.1px; }
.card-body  { padding: 20px; }
.mt-4 { margin-top: 20px; }

/* ── Stats Grid ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

/* Color-coded stat icons */
.stat-icon.blue   { background: var(--clr-info-light);   color: var(--clr-info); }
.stat-icon.green  { background: var(--clr-success-light); color: var(--clr-success); }
.stat-icon.orange { background: var(--clr-warning-light); color: var(--clr-warning); }
.stat-icon.purple { background: var(--clr-purple-light);  color: var(--clr-purple); }
.stat-icon.red    { background: var(--clr-danger-light);  color: var(--clr-danger); }
.stat-icon.indigo { background: var(--clr-primary-light); color: var(--clr-primary); }

.stat-info h3 { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; }
.stat-info p  { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ── Table ────────────────────────────────────────────────── */

/* Offset = topbar(64) + card-header(~52) + panel-header(~48) + stats(~70) + breathing room */
:root { --table-max-h: calc(100vh - 280px); }

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-height: var(--table-max-h);
}

.table { width: 100%; border-collapse: collapse; }

/* ── Sticky thead ───────────────────────────────────────────── */
.table-wrapper .table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface-2);
}

.table td {
  text-align: left;
  padding: 2px 5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: .75rem;
}
.table td:first-child {
  padding-left: 15px;
}
.table th:first-child {
  padding-left: 15px;
}
.table th {
  text-align: left;
  padding: 7px 5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
}

/* ── Sticky first column ────────────────────────────────────── */
.table th:first-child,
.table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface);
}

.table th:first-child {
  background: var(--surface-2);
  z-index: 3; /* above sticky td */
}

/* shadow to indicate more content to the left */
/* .table th:first-child::after,
.table td:first-child::after {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  bottom: 0;
  width: 8px;
  background: linear-gradient(to right, rgba(0,0,0,.06), transparent);
  pointer-events: none;
} */

/* ── Sticky last column ─────────────────────────────────────── */
.table th:last-child,
.table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--surface);
}

.table th:last-child {
  background: var(--surface-2);
  z-index: 3;
}

/* shadow to indicate more content to the right */
.table th:last-child::before,
.table td:last-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  bottom: 0;
  width: 8px;
  /* background: linear-gradient(to left, rgba(0,0,0,.06), transparent); */
  pointer-events: none;
}

/* keep hover background on sticky cells */
.table tbody tr:hover td:first-child,
.table tbody tr:hover td:last-child {
  background: #f8fafc;

  color: var(--text-muted);
  background: var(--surface-2);
}

.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }

.user-cell { display: flex; align-items: center; gap: 10px; }

.avatar-sm {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}

/* ── Badges — full color-coded set ───────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-size: .65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    line-height: 1.4;
}

/* Green — success / active / in-stock */
.badge-success,
.badge-active,
.badge-delivered,
.badge-in-stock,
.badge-paid,
.badge-verified   { background: var(--clr-success-light); color: var(--clr-success-text); border: 1px solid var(--clr-success-border); }

/* Amber — warning / pending / low-stock */
.badge-warning,
.badge-pending,
.badge-processing,
.badge-low-stock  { background: var(--clr-warning-light); color: var(--clr-warning-text); border: 1px solid var(--clr-warning-border); }

/* Rose — danger / cancelled / out-of-stock / failed */
.badge-danger,
.badge-cancelled,
.badge-failed,
.badge-out-of-stock { background: var(--clr-danger-light); color: var(--clr-danger-text); border: 1px solid var(--clr-danger-border); }

/* Sky — info / shipped / in-transit */
.badge-info,
.badge-shipped,
.badge-in-transit  { background: var(--clr-info-light); color: var(--clr-info-text); border: 1px solid var(--clr-info-border); }

/* Violet — admin / premium / purple */
.badge-purple,
.badge-admin,
.badge-role        { background: var(--clr-purple-light); color: var(--clr-purple-text); border: 1px solid var(--clr-purple-border); }

/* Slate — editor role */
.badge-editor      { background: var(--clr-info-light); color: var(--clr-info-text); border: 1px solid var(--clr-info-border); }

/* Mint — viewer role */
.badge-viewer      { background: var(--clr-success-light); color: var(--clr-success-text); border: 1px solid var(--clr-success-border); }

/* Neutral */
.badge-neutral,
.badge-inactive    { background: #f1f5f9; color: var(--text-muted); border: 1px solid var(--border); }

/* Status dot */
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 5px; flex-shrink: 0;
}
.status-dot.active   { background: var(--clr-success); box-shadow: 0 0 4px rgba(16,185,129,.5); }
.status-dot.inactive { background: var(--text-faint); }
.status-dot.warning  { background: var(--clr-warning); }
.status-dot.danger   { background: var(--clr-danger); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: none;
  transition: background var(--t-fast), opacity var(--t-fast),
              transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap; outline: none; line-height: 1;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
  color: #fff;
  box-shadow: 0 2px 10px var(--clr-primary-ring);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(79,70,229,.35); }

.btn-success  { background: var(--clr-success); color: #fff; box-shadow: 0 2px 8px rgba(16,185,129,.3); }
.btn-warning  { background: var(--clr-warning); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.3); }
.btn-danger   { background: var(--clr-danger);  color: #fff; box-shadow: 0 2px 8px rgba(239,68,68,.3);  }
.btn-info     { background: var(--clr-info);    color: #fff; box-shadow: 0 2px 8px rgba(14,165,233,.3); }

.btn-outline-sm {
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px; font-weight: 500;
  cursor: pointer; color: var(--text);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn-outline-sm:hover { background: var(--bg); border-color: var(--clr-primary); color: var(--clr-primary); }

.btn-danger-outline {
  background: transparent; color: var(--clr-danger);
  border: 1.5px solid var(--clr-danger);
  padding: 6px 14px; border-radius: var(--radius);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background var(--t-fast);
}
.btn-danger-outline:hover { background: var(--clr-danger-light); }

.btn-sm { padding: 4px; border-radius: var(--radius-sm); background-color: #fff; };
.btn-sm-new { padding: 4px; border-radius: var(--radius-sm); };
.btn-block { width: 100%; }
.btn-primary-new{
  height: 28px; width: 28px;
  border: 1px solid var(--op-muted-border);
}
.btn-primary-new:hover{
  background: #F5F6F8;
  border-color: rgb(82.5181476846%, 83.813099708%, 87.0504797664%);
  color: #12151C;
}
.btn-primary-new svg{
  color: var(--op-muted-2);
}
/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block; margin-bottom: 7px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.ryft-on-details{
  flex:0 0 380px;display:flex;flex-direction:column;gap:1.25rem;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control::placeholder { color: var(--text-faint); }
.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
}
.form-control[readonly] { background: var(--surface-2); color: var(--text-muted); cursor: default; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
}

/* Validation states */
.form-group.has-error .form-control {
  border-color: var(--clr-danger);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.form-group.has-error label { color: var(--clr-danger); }
.field-error { color: var(--clr-danger); font-size: 11.5px; margin-top: 4px; display: block; }

/* Input prefix */
.input-prefix-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none;
}
.form-control.with-prefix { padding-left: 28px; }

/* Form layout helpers */
.form-page-grid { display: grid; grid-template-columns: 1fr 280px; gap: 20px; align-items: start; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-side { display: flex; flex-direction: column; gap: 16px; }
.form-actions {
  display: flex; align-items: center; gap: 10px;
  padding-top: 10px; margin-top: 10px;
  border-top: 1px solid var(--border);
}

/* Labels */
.req { color: var(--clr-danger); margin-left: 2px; }
.label-hint { font-size: 11px; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.char-counter { font-size: 11px; color: var(--text-muted); text-align: right; margin-top: 4px; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  AUTH PAGE  —  Login                                     ║
   ╚══════════════════════════════════════════════════════════╝ */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;

  /* Rich layered gradient background */
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,   rgba(79,70,229,.32) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 100%,  rgba(139,92,246,.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%,   rgba(14,165,233,.08) 0%, transparent 60%),
    linear-gradient(145deg, #080e1f 0%, #0c1630 40%, #0f172a 100%);
}

/* Animated ambient orbs */
.auth-body::before,
.auth-body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: authOrb 10s ease-in-out infinite alternate;
}
/* .auth-body::before {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(79,70,229,.18), transparent 70%);
  top: -180px; left: -140px;
}
.auth-body::after {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139,92,246,.15), transparent 70%);
  bottom: -160px; right: -120px;
  animation-delay: -5s;
} */

@keyframes authOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.auth-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 420px;
  padding: 20px 16px;
}

.auth-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-xl);
  padding: 44px 40px 40px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    var(--shadow-xl),
    0 0 80px rgba(79,70,229,.12);
  animation: authCardIn .45s cubic-bezier(.34,1.2,.64,1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo / branding ─────────────────────────────────────── */
.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 20px;
  font-size: 34px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-purple));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12) inset,
    0 8px 28px rgba(79,70,229,.45);
  margin-bottom: 16px;
  animation: logoFloat 3.6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0); box-shadow: 0 8px 28px rgba(79,70,229,.45); }
  50%      { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(79,70,229,.55); }
}

.auth-logo h2 {
  font-size: 24px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.5px;
  margin-bottom: 6px;
}

.auth-logo p {
  color: rgba(148,163,184,.8);
  font-size: 13.5px;
  font-weight: 400;
}

/* ── Auth form fields ─────────────────────────────────────── */
.auth-form .form-group { margin-bottom: 16px; }

.auth-form .form-group label {
  display: block; margin-bottom: 7px;
  font-size: 12.5px; font-weight: 600;
  color: rgba(148,163,184,.9);
  text-transform: uppercase; letter-spacing: .06em;
}

.auth-form .form-control {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.10);
  border-radius: 12px;
  color: #f1f5f9;
  font-size: 14.5px;
  padding: 13px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.auth-form .form-control::placeholder { color: rgba(148,163,184,.45); }
.auth-form .form-control:focus {
  background: rgba(255,255,255,.10);
  border-color: rgba(99,102,241,.65);
  box-shadow: 0 0 0 4px rgba(79,70,229,.20);
}
.auth-form .form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px rgba(15,23,42,.9) inset;
  -webkit-text-fill-color: #f1f5f9;
}

/* ── Auth submit button ───────────────────────────────────── */
.auth-form .btn-primary.btn-block {
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-purple) 100%);
  box-shadow: 0 4px 20px rgba(79,70,229,.45);
  letter-spacing: .01em;
  position: relative;
  overflow: hidden;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}

.auth-form .btn-primary.btn-block::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}

.auth-form .btn-primary.btn-block:hover {
  opacity: .92;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,.55);
}

.auth-form .btn-primary.btn-block:active { transform: translateY(0); }

/* ── Auth alert (error / info) ───────────────────────────── */
.auth-form .alert,
.auth-card .alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid transparent;
  animation: alertSlide .3s var(--ease) both;
}
@keyframes alertSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert-error {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.28);
  color: #fca5a5;
}
.alert-success {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.25);
  color: #6ee7b7;
}
.alert-warning {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.25);
  color: #fcd34d;
}
.alert-info {
  background: rgba(14,165,233,.12);
  border-color: rgba(14,165,233,.25);
  color: #7dd3fc;
}

/* ── Auth hint box ───────────────────────────────────────── */
.auth-hint {
  margin-top: 22px;
  padding: 13px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(148,163,184,.7);
  line-height: 1.6;
}
.auth-hint p { margin-bottom: 3px; }
.auth-hint p:last-child { margin-bottom: 0; }

/* ── Alert banners (main app) ────────────────────────────── */
.alert {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 13px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--clr-success-light); border-color: var(--clr-success-border); color: var(--clr-success-text); }
.alert-danger,
.alert-error   { background: var(--clr-danger-light);  border-color: var(--clr-danger-border);  color: var(--clr-danger-text);  }
.alert-warning { background: var(--clr-warning-light); border-color: var(--clr-warning-border); color: var(--clr-warning-text); }
.alert-info    { background: var(--clr-info-light);    border-color: var(--clr-info-border);    color: var(--clr-info-text);    }

/* ── Settings page ───────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.setting-row:last-child { border-bottom: none; }
.setting-row p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #cbd5e1; border-radius: var(--radius-full);
  transition: background var(--t-base);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform var(--t-base);
  box-shadow: var(--shadow-xs);
}
.toggle input:checked + .toggle-slider { background: var(--clr-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

.card-pay-methods .tab-nav{
  display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #dee2e6;padding:0 1.25rem;
}
.card-pay-methods .tab-nav .tab-pay{
  display:flex;
}
.card-pay-methods .tab-nav .tab-pay .tab-btn{
  padding:.75rem 1.5rem;border:none;background:none;cursor:pointer;font-weight:600;border-bottom:3px solid transparent;margin-bottom:-2px; color: var(--text);;
}
.card-pay-methods .tab-nav .tab-pay .tab-btn.active{
  color: #0d6efd ;
  background: #f8f9fa;
}

/* ── Side info card helpers ──────────────────────────────── */
.card-body-pad { padding: 16px; }
.side-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .55px; color: var(--text-muted); margin-bottom: 12px; }

.guide-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.guide-list li { font-size: 12.5px; color: var(--text-muted); padding-left: 14px; position: relative; }
.guide-list li::before { content: '•'; position: absolute; left: 0; color: var(--clr-primary); }
.guide-list strong { color: var(--text); }

.meta-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
}
.meta-row:last-child { border-bottom: none; }
.meta-row strong, .meta-row code { color: var(--text); }

/* ============================================================
   MAIN LAYOUT — Sidebar submenu & topbar dropdowns
   ============================================================ */

/* ── Submenu (collapsible sidebar children) ──────────────── */
.has-submenu > .nav-links { position: relative; }

.submenu-arrow {
  margin-left: auto;
  font-size: .6rem;
  color: rgba(148,163,184,.55);
  transition: transform var(--t-base), color var(--t-fast);
  flex-shrink: 0;
}
.has-submenu.open > .nav-links .submenu-arrow {
  transform: rotate(180deg);
  color: rgba(148,163,184,.9);
}

.submenu {
  list-style: none;
  padding: 0;
  margin: 0px 10px 4px 23px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s cubic-bezier(.4,0,.2,1);
  background: rgba(255,255,255,.025);
  border-radius: var(--radius);
}
.submenu.open { max-height: 240px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  border-radius: var(--radius);
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}
.nav-link:hover { background: var(--sidebar-hover); color: #e2e8f0; }
.nav-link.active { color: var(--clr-primary-dim); font-weight: 700; }

.nav-link-sub {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 7px 12px 7px 34px !important;
  color: rgba(148, 163, 184, .6);
  border-radius: var(--radius-sm);
  margin: 2px 0;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-left-color var(--t-fast);
  border-left: 2px solid transparent;
  position: relative;
  height: 40px;
}

/* Gateway SVG logo sizing inside sub-link */
.nav-link-sub .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex-shrink: 0;
}

.nav-link-sub .nav-icon svg {
  display: block;
  width: 52px;
  height: auto;
  color: rgba(148, 163, 184, .55);
  transition: color var(--t-fast);
}

.nav-link-sub:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, .05);
  border-left-color: rgba(99, 102, 241, .35);
}

.nav-link-sub:hover .nav-icon svg {
  color: rgba(199, 210, 254, .85);
}

/* ── SUB-LINK ACTIVE STATE ───────────────────────────────── */
.nav-link-sub.active {
  background: rgba(99, 102, 241, .12);
  border-left: 2px solid var(--clr-primary-dim);
  padding: 7px 12px 7px 34px;
  height: 40px;
}

.nav-link-sub.active .nav-icon svg {
  color: #c7d2fe;
  filter: drop-shadow(0 0 4px rgba(99, 102, 241, .6));
}

/* ── Shared dropdown shell ───────────────────────────────── */
/* Both .client-dropdown and .client-service-dropdown share
   the same visual language — defined once, applied to both  */

.client-dropdown,
.client-service-dropdown {
  position: relative;
}

/* ── Trigger button (indigo — service selector in topbar) ── */
.client-dropdown-btn,
.client-service-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1.5px solid var(--clr-primary-ring);
  border-radius: var(--radius);
  background: var(--clr-primary-light);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--clr-primary-dark);
  white-space: nowrap;
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
              background var(--t-fast), color var(--t-fast);
  outline: none;
  max-width: 220px;
}

.client-service-dropdown-btn > span:nth-child(2),
.client-dropdown-btn > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.client-dropdown-btn:hover,
.client-service-dropdown-btn:hover {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
  background: #e0e7ff;
  color: var(--clr-primary);
}

.client-dropdown-icon,
.client-service-dropdown-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.client-dropdown-arrow,
.client-service-dropdown-arrow {
  font-size: .6rem;
  color: var(--clr-primary);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--t-base);
}

/* Rotate arrow when panel is open */
.client-service-dropdown-menu.open ~ button .client-service-dropdown-arrow,
.client-dropdown-menu.open ~ button .client-dropdown-arrow { transform: rotate(180deg); }

/* ── Dropdown panel ──────────────────────────────────────── */
.client-dropdown-menu,
.client-service-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  overflow: hidden;
  animation: dropdownIn .18s var(--ease) both;
}

.client-dropdown-menu.open,
.client-service-dropdown-menu.open { display: block; }

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Search bar inside dropdown ──────────────────────────── */
.client-dropdown-search,
.client-service-dropdown-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.client-dropdown-search input,
.client-service-dropdown-search input {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
}

.client-dropdown-search input:focus,
.client-service-dropdown-search input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
}
.client-dropdown-search input::placeholder,
.client-service-dropdown-search input::placeholder { color: var(--text-faint); }

/* ── Dropdown list ───────────────────────────────────────── */
.client-dropdown-list,
.client-service-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 272px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.client-dropdown-list::-webkit-scrollbar,
.client-service-dropdown-list::-webkit-scrollbar { width: 4px; }
.client-dropdown-list::-webkit-scrollbar-thumb,
.client-service-dropdown-list::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

/* ── Dropdown item ───────────────────────────────────────── */
.client-dropdown-item,
.client-service-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.client-dropdown-item:hover,
.client-service-dropdown-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.client-dropdown-item.selected,
.client-service-dropdown-item.selected {
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);
  font-weight: 700;
}

/* ── Avatar in dropdown ──────────────────────────────────── */
.client-item-avatar,
.client-service-item-avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--clr-primary-light), #ddd6fe);
  color: var(--clr-primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
  text-transform: uppercase;
  border: 1px solid rgba(79,70,229,.12);
}

/* ── Name in dropdown ────────────────────────────────────── */
.client-item-name,
.client-service-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

/* ── Inline badge in dropdown ───────────────────────────── */
/* Color-coded: verified = emerald, pending = amber           */
.client-item-badge,
.client-service-item-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.client-item-badge.verified,
.client-service-item-badge.verified {
  background: var(--clr-success-light);
  color: var(--clr-success-text);
  border: 1px solid var(--clr-success-border);
}

.client-item-badge.pending,
.client-service-item-badge.pending {
  background: var(--clr-warning-light);
  color: var(--clr-warning-text);
  border: 1px solid var(--clr-warning-border);
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--clr-primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { color: var(--border-strong); font-size: 10px; }

/* ── Text utilities ──────────────────────────────────────── */
.text-muted   { color: var(--text-muted) !important; }
.text-success { color: var(--clr-success) !important; }
.text-danger  { color: var(--clr-danger) !important; }
.text-warning { color: var(--clr-warning) !important; }
.text-info    { color: var(--clr-info) !important; }
.text-primary { color: var(--clr-primary) !important; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }

/* ── Dark mode ───────────────────────────────────────────── */
body.dark {
  --bg:           #0a0f1e;
  --surface:      #111827;
  --surface-2:    #1a2234;
  --border:       #1e2d45;
  --border-strong:#2d3f5c;
  --text:         #e2e8f0;
  --text-secondary:#b8c5d4;
  --text-muted:   #64748b;
  --text-faint:   #475569;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
}

@media (max-width: 768px) {
  .menu-toggle.mobile-toggle{
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}
.co-steps {
      position:sticky;
      top: 10px;
      z-index: 9999;
    }
    .co-btn, .s1-btn {
      position: sticky;
      bottom: 10px;
    }
  .sidebar {
    transform: translateX(-100%);
    --sidebar-w: 248px;
    box-shadow: var(--shadow-xl);
  }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0 !important; }
  .content { padding: 16px; }
  .topbar { padding: 0 16px 0 14px; gap: 8px; }
  .page-title { font-size: 14px; }
  .client-service-dropdown-btn > span:nth-child(2),
  .client-dropdown-btn > span:nth-child(2) { max-width: 90px; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  .form-page-grid { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .client-service-dropdown-menu,
  .client-dropdown-menu { width: 260px; right: -16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar-actions .badge-role { display: none; }
  .client-service-dropdown-menu,
  .client-dropdown-menu { width: calc(100vw - 98px); right: -110px; }
}

/* ── Sidebar overlay on mobile ───────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 199;
  opacity: 0;
  transition: opacity var(--t-base);
}
.sidebar-overlay.visible {
  /* display: block; */
  /* opacity: 1; */
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  DASHBOARD — Modern stat cards & fee pills               ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Wide stat card (RyftPay Platform Fee) ───────────────── */
.stat-card-wide {
  grid-column: 1 / -1;  /* Span all columns */
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid var(--clr-success-border);
  border-left: 4px solid var(--clr-success);
  position: relative;
  overflow: hidden;
  margin-top: 16px;
}

/* Subtle glow effect behind the wide card */
.stat-card-wide::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(16,185,129,.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.stat-card-wide .stat-icon {
  position: relative;
  z-index: 1;
}

.stat-card-wide .stat-info {
  position: relative;
  z-index: 1;
  width: 100%;
}

.stat-card-wide .stat-info > p {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-success-text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Fee pills (pending / cleared / available) ────────────── */
.stat-card-wide .stat-info > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fee-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  min-width: 120px;
  flex: 1;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.fee-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.fee-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
}

.fee-amount {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.3px;
}

/* Color-coded fee pills */
.fee-pending {
  background: var(--clr-warning-light);
  color: var(--clr-warning-text);
  border-color: var(--clr-warning-border);
}

.fee-cleared {
  background: var(--clr-success-light);
  color: var(--clr-success-text);
  border-color: var(--clr-success-border);
}

.fee-available {
  background: var(--clr-info-light);
  color: var(--clr-info-text);
  border-color: var(--clr-info-border);
}

/* Icon emoji before each pill label */
.fee-pill .fee-label::before {
  content: attr(data-icon);
  margin-right: 4px;
}

/* ── Responsive dashboard ────────────────────────────────── */
@media (max-width: 768px) {
  .client-on-list .card-header .card-on-list {
    gap: 10px;
    flex-direction: column;
}
  .client-on-list .card-header {
    flex-direction: column;
    gap: 10px;
}
  .ryft-on-details{
  flex:1;
}

  .ryftpay-on .card-header{
    flex-direction: column;
    gap: 10px;
  }
  .ryftpay-on .card-header .card-header-do {
    flex-direction: column;
  }
  .ryftpay-on #search-btn{
    margin: 0 auto;
    height: 35px;
  }
  .stat-card-wide {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  
.sidebar.collapsed {
    transform: translateX(-0%);
}
  .stat-card-wide .stat-info > div {
    width: 100%;
  }
  .fee-pill {
    min-width: 100px;
    padding: 8px 12px;
  }
  .fee-amount {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .fee-pill {
    flex: none;
    width: 100%;
  }
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  ACCOUNT VERIFICATION LIST — Stats strip + search modal  ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Stats strip (av = Account Verification) ─────────────── */
.av-stats {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.av-stats::-webkit-scrollbar { display: none; }

.av-stat-card {
  /* flex: 1;
  min-width: 110px; */
  background: var(--surface);
  border-radius: var(--radius);
  text-align: left;
  padding: 10px 20px;
  border: 1px solid var(--border);
  /* border-right: none; */
  transition: background var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  cursor: default;
  position: relative;
  width: 150px;
}

.av-stat-card[data-filter] {
  cursor: pointer;
  user-select: none;
}

.av-stat-card.av-stat-active {
  border-color: rgba(79, 70, 229, .45);
  background: var(--clr-primary-light);
  box-shadow: 0 2px 8px rgba(79, 70, 229, .12);
}

.av-stat-card.av-stat-active .av-stat-label,
.av-stat-card.av-stat-active .av-stat-value {
  color: var(--clr-primary);
}

/* .av-stat-card:first-child { border-radius: var(--radius) 0 0 var(--radius); } */
/* .av-stat-card:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--border); } */

.av-stat-card:hover {
  background: var(--surface-2);
}

/* Active/selected card — purple left border accent like the picture */
/* .av-stat-total {
  border-left: 2px solid var(--clr-primary);
  background: var(--clr-primary-light);
} */
/* .av-stat-total .av-stat-label { color: var(--clr-primary); } */
/* .av-stat-total .av-stat-value { color: var(--clr-primary); } */

/* The rest — neutral */
.av-stat-verified  { border-left: 1px solid var(--border); }
.av-stat-pending   { border-left: 1px solid var(--border); }
.av-stat-required  { border-left: 1px solid var(--border); }

.av-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
}

.av-stat-value {
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -.3px;
}

.badge-secondary {
  background: #6c757d;
  color: #fff;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 400;
  border: 1px solid #5c636a;
}

.sm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: smOverlayIn .2s var(--ease) both;
}

@keyframes smOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.sm-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 24px 64px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.06) inset;
  border: 1px solid var(--border);
  animation: smIn .22s var(--ease) both;
}

@keyframes smIn {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface-2);
  z-index: 1;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sm-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.sm-body {
  padding: 20px;
}

.sm-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  font-size: 17px;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
  line-height: 1;
}
.sm-close:hover {
  background: var(--clr-danger-light);
  color: var(--clr-danger);
  transform: scale(1.1);
}

/* ── Modal form helpers ──────────────────────────────────────
   Used by client-detail, client-lists and onboarding modals
────────────────────────────────────────────────────────── */

/* 2-column grid for wide modals (≥ 560px) */
.sm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.sm-form-grid .sm-col-full   { grid-column: 1 / -1; }
.sm-form-grid .sm-col-third  { grid-column: span 1; }

/* Section divider inside a modal */
.sm-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-muted);
  margin-top: .5rem;
}
.sm-section::before,
.sm-section::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Read-only key display */
.sm-readonly-key {
  padding: .5rem .75rem;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .75rem;
  color: var(--text-secondary);
  word-break: break-all;
  min-height: 38px;
  display: flex;
  align-items: center;
}

/* URL prefix input row (https:// prefix + input) */
.sm-url-row {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.sm-url-row:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
}
.sm-url-prefix {
  padding: .6rem .65rem;
  background: var(--surface-2);
  border-right: 1.5px solid var(--border);
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.sm-url-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: .6rem .75rem;
  font-size: .88rem;
  color: var(--text);
  outline: none;
  min-width: 0;
}
.sm-url-input::placeholder { color: var(--text-faint); }

/* Credentials reset bar */
.sm-cred-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .65rem;
}

/* Modal footer action row */
.sm-footer {
  display: flex;
  gap: .65rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .sm-form-grid { grid-template-columns: 1fr; }
  .sm-form-grid .sm-col-full,
  .sm-form-grid .sm-col-third { grid-column: 1; }
  .sm-footer { flex-direction: column; }
  .sm-footer .btn { width: 100%; justify-content: center; }
}

.sm-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px 16px;
  margin-bottom: 16px;
}

.sm-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
  font-weight: 700;
}

.sm-value {
  font-weight: 600;
  color: var(--text);
  font-size: 13.5px;
  word-break: break-word;
  line-height: 1.4;
}

.sm-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.sm-action-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.sm-action-row .form-group {
  margin: 0;
  width: 100%;
}

.sm-action-row label {
  font-size: 12px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.sm-action-row .btn {
  align-self: flex-start;
  margin-top: 4px;
}

/* Two-button rows (e.g. Update + View) stay side by side */
.sm-action-row > .btn ~ .btn,
.sm-action-row-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.sm-msg { margin-top: 12px; }

@media (max-width: 768px) {
  .av-stats { padding: 10px 12px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
  .av-stats::-webkit-scrollbar { display: none; }
  .av-stat-card { min-width: 150px; padding: 8px 12px; }
  .av-stat-value { font-size: 1.25rem; }
  .av-stat-label { font-size: 11px; }
  .sm-grid { grid-template-columns: 1fr; }
  .sm-action-row .form-group { min-width: 100%; }
  .card-pay-methods .tab-nav .tab-pay .tab-btn{
    padding: 10px 12px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
  }
  .card-pay-methods .card-body{
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: thin;
  }
  .card-pay-methods .tab-nav{
    /* overflow-x: scroll; */
    flex-direction: column;
    gap: 15px;
  }
  .card-pay-methods .tab-nav .btn-primary{
    margin: 0 0 10px auto;
  }

}

/* @media (max-width: 480px) {
  .av-stat-card { flex: none; width: 100%; }
} */

.tx-list-card { margin-bottom: 1.5rem; height: 80dvh; }

.tx-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--clr-info-light);
  color: var(--clr-info-text);
  border: 1px solid var(--clr-info-border);
  font-size: 12px;
  font-weight: 700;
}

.tx-table-body {
  padding: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tx-table th {
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  background: var(--surface-2) !important;
}

.tx-table td { vertical-align: middle; font-size: 13px; }

/* Scoped DataTables control styles */
.dataTables_wrapper .dataTables_length select {
  font-size: 0.65rem;
  font-weight: 800;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 5px 10px !important;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.dataTables_wrapper .dataTables_filter input{
  font-size: 13px;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 5px 10px !important;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--clr-primary) !important;
  box-shadow: 0 0 0 3px var(--clr-primary-ring) !important;
}
.dataTables_wrapper .dataTables_info      { font-size: 12px; color: var(--text-muted); }
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  font-size: 12.5px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--clr-primary) !important;
  border-color: var(--clr-primary) !important;
  color: #fff !important;
}

.tx-key        { font-size: 11.5px; }
.tx-order-id   { font-size: 12px; }
.tx-amount     { white-space: nowrap; font-weight: 700; color: var(--text); }
.tx-date       { white-space: nowrap; font-size: 12px; color: var(--text-muted); }
.tx-biz-name   { font-size: 12px; color: var(--text-secondary); }
.tx-customer-name  { font-weight: 600; font-size: 13px; }
.tx-customer-email { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.tx-view-btn   { font-size: 12px; padding: 4px 12px; }

.modal-xl { max-width: 1100px !important; }

.tx-modal-content {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tx-modal-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.tx-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.tx-modal-body  { padding: 20px; background: var(--bg); }
.tx-modal-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
}

/* ── Loading text ────────────────────────────────────────── */
.tx-loading { color: var(--text-muted); font-size: 13px; padding: 1rem 0; }

/* ── Badge row at top of modal ───────────────────────────── */
.tx-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

/* ── 2×2 detail card grid ────────────────────────────────── */
.tx-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .tx-detail-grid { grid-template-columns: 1fr; }
}

/* ── Detail cards ────────────────────────────────────────── */
.tx-detail-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* Color-coded left border per card type */
.tx-card-primary { border-left: 3px solid var(--clr-primary); }
.tx-card-success { border-left: 3px solid var(--clr-success); }
.tx-card-warning { border-left: 3px solid var(--clr-warning); }
.tx-card-neutral { border-left: 3px solid var(--clr-neutral); }

.tx-detail-card-header {
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Header bg per card type */
.tx-header-primary { background: var(--clr-primary-light); color: var(--clr-primary-dark); }
.tx-header-success { background: var(--clr-success-light); color: var(--clr-success-text); }
.tx-header-warning { background: var(--clr-warning-light); color: var(--clr-warning-text); }
.tx-header-neutral { background: var(--surface-2);         color: var(--text-muted); }

.tx-detail-card-body { padding: 12px 14px; background: var(--surface); }

/* ── Detail row (label / value pairs) ────────────────────── */
.tx-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.tx-detail-row:last-child { border-bottom: none; }

.tx-detail-label {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  padding-top: 2px;
}

.tx-detail-value {
  font-size: 12.5px;
  color: var(--text);
  text-align: right;
  word-break: break-all;
  font-weight: 500;
}

.tx-details-raw { margin-top: 8px; }

.tx-details-summary {
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}
.tx-details-summary:hover { color: var(--clr-primary); }

.tx-raw-json {
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px;
  overflow: auto;
  max-height: 180px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tx-no-data { font-size: 12.5px; color: var(--text-muted); margin: 0; }

.tx-meta-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-muted);
}
.tx-meta-bar strong { color: var(--text); }

@media (max-width: 768px) {
  .tx-table-body { padding: 8px; }
  .tx-modal-body { padding: 14px; }
  .tx-meta-bar   { gap: 10px; }
  .tx-badge-row  { gap: 6px; }
}

.btn-refresh {
  /* Layout */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  width: 100%;

  /* Shape */
  border-radius: var(--radius);
  border: 1.5px solid var(--clr-primary);

  /* Colors — indigo ghost style */
  background: var(--clr-primary-light);
  color: var(--clr-primary-dark);

  /* Typography */
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;

  /* Transitions */
  transition:
    background   var(--t-fast),
    color        var(--t-fast),
    border-color var(--t-fast),
    box-shadow   var(--t-fast),
    transform    var(--t-fast);

  /* Depth */
  box-shadow: 0 2px 8px var(--clr-primary-ring);

  /* Accessibility */
  outline: none;
  user-select: none;
}

.btn-refresh:hover:not(:disabled) {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary-dark);
  box-shadow: 0 4px 18px rgba(79,70,229,.35);
  transform: translateY(-2px);
}

.btn-refresh:active:not(:disabled) {
  transform: translateY(0) scale(.97);
  box-shadow: 0 1px 4px var(--clr-primary-ring);
}

.btn-refresh:disabled,
.btn-refresh--spinning {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}
.btn-refresh .btn-refresh-icon svg{
  fill: var(--clr-primary);
}
.btn-refresh:hover .btn-refresh-icon svg{
  fill: var(--bg);
}

.btn-refresh-icon {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transition: transform .4s var(--ease);
}

/* Spin the icon while loading */
.btn-refresh--spinning .btn-refresh-icon {
  animation: refreshSpin .7s linear infinite;
}

@keyframes refreshSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.btn-refresh-label {
  line-height: 1;
}

.btn-refresh-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,255,255,.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.btn-refresh:active .btn-refresh-ripple { opacity: 1; }

.btn-refresh-sm {
  padding: 6px 14px;
  font-size: 12px;
  gap: 6px;
  border-radius: var(--radius-sm);
}
.btn-refresh-sm .btn-refresh-icon { font-size: 12px; }

.btn-refresh:focus-visible {
  box-shadow: 0 0 0 4px var(--clr-primary-ring);
  border-color: var(--clr-primary);
}

@media (max-width: 480px) {
  .btn-refresh { width: 100%; justify-content: center; }
  .btn-refresh-sm { width: auto; }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  CLIENT ONBOARDING — Step 3 (Verification view)          ║
   ║  Shared by client-onboarding.hbs                         ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Two-column layout ──────────────────────────────────────── */
.vd-grid {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.vd-grid > *:first-child {
  flex: 1;
  min-width: 300px;
}

.card-new-sce-for {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Flex row that stacks on small screens ──────────────────── */
.flex-direc-mobile {
  display: flex;
  flex-wrap: wrap;
}

/* ── Detail rows ────────────────────────────────────────────── */
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .55rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 1rem;
}
.detail-row:last-child { border-bottom: none; }

.detail-label {
  font-size: .77rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.detail-value {
  font-size: .88rem;
  color: #212529;
  text-align: right;
  word-break: break-all;
}

/* ── Badges ─────────────────────────────────────────────────── */
.vd-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.vd-badge-lg { font-size: .88rem; padding: 5px 14px; border-radius: 20px; }
.vd-NotRequired, .vd-neutral    { background: #e9ecef; color: #495057; }
.vd-Required,    .vd-required   { background: #f8d7da; color: #58151c; }
.vd-PendingVerification, .vd-pending { background: #fff3cd; color: #664d03; }
.vd-Verified,    .vd-verified   { background: #d1e7dd; color: #0a3622; }

/* ── Hints ──────────────────────────────────────────────────── */
.vd-hint {
  font-size: .81rem;
  color: #6c757d;
  margin: 0 0 .75rem;
  line-height: 1.55;
}

/* ── Step guide (inside verification status card) ───────────── */
.vd-steps { display: flex; flex-direction: column; gap: .6rem; margin-top: .5rem; }
.vd-step  { display: flex; gap: .75rem; align-items: flex-start; }
.vd-step-num {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #0d6efd;
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

/* ── Lists ──────────────────────────────────────────────────── */
.vd-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.vd-list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: .84rem;
}
.vd-icon { font-size: .95rem; }

/* ── Document cards ─────────────────────────────────────────── */
.vd-doc-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: .65rem;
  margin-bottom: .5rem;
}
.vd-doc-card:last-child { margin-bottom: 0; }

.vd-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .3rem;
}
.vd-doc-cat   { font-weight: 600; font-size: .85rem; color: #212529; }
.vd-doc-types { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .25rem; }
.vd-type-pill {
  background: #e9ecef;
  color: #495057;
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: 10px;
}

/* ── Error items ────────────────────────────────────────────── */
.vd-error-item {
  padding: .55rem;
  border: 1px solid #f1aeb5;
  border-radius: 6px;
  background: #fff8f8;
  margin-bottom: .45rem;
}
.vd-error-item:last-child { margin-bottom: 0; }

/* ── Banners ────────────────────────────────────────────────── */
.vd-banner {
  padding: .7rem 1rem;
  border-radius: 8px;
  font-size: .85rem;
}
.vd-banner-warning { background: #fff3cd; color: #664d03; border: 1px solid #ffecb5; }
.vd-banner-success { background: #d1e7dd; color: #0a3622; border: 1px solid #a3cfbb; }
.vd-banner-error   { background: #f8d7da; color: #58151c; border: 1px solid #f1aeb5; }

/* ── JSON pre ───────────────────────────────────────────────── */
.vd-json {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: .75rem;
  font-size: .76rem;
  overflow: auto;
  max-height: 240px;
  margin: 0;
}

/* ── Person cards ───────────────────────────────────────────── */
.vd-person-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: .7rem;
  margin-bottom: .5rem;
  background: #fff;
}
.vd-person-card:last-child { margin-bottom: 0; }

.vd-person-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.vd-person-name { font-weight: 700; font-size: .88rem; color: #212529; }
.vd-person-meta { font-size: .76rem; color: #6c757d; margin-top: .15rem; }

.vd-person-roles {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .4rem;
}
.vd-role-pill {
  background: #dbeafe;
  color: #1e40af;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.vd-person-actions { display: flex; gap: .35rem; flex-shrink: 0; }

/* ── Person requirement note ────────────────────────────────── */
.vd-person-note {
  margin: .85rem 1rem 0;
  padding: .75rem .85rem;
  background: #e7f1ff;
  border: 1px solid #b6d4fe;
  border-radius: 8px;
  font-size: .8rem;
  color: #084298;
  line-height: 1.5;
}

/* ── Form helpers ───────────────────────────────────────────── */
.vd-field-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: .25rem;
}
.vd-req { color: #dc3545; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .vd-grid {
    flex-direction: column;
  }

  .card-new-sce-for {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .vd-grid {
    gap: .85rem;
  }

  .vd-grid > *:first-child {
    min-width: 0;
  }

  .flex-direc-mobile {
    flex-direction: column;
  }

  .vd-person-header {
    flex-direction: column;
    gap: .65rem;
  }

  .vd-person-actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
  }

  .detail-label {
    white-space: normal;
  }
}


/* ╔══════════════════════════════════════════════════════════╗
   ║  ONBOARDING HUB — Tab toggle UI                          ║
   ╚══════════════════════════════════════════════════════════╝ */

/* ── Outer card wrapper ─────────────────────────────────────── */
.ob-hub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════
   TAB BAR  — segmented control style
═══════════════════════════════════════════════════════════ */
.ob-tab-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.ob-tab-bar::-webkit-scrollbar { display: none; }

.tab-format{
  display: flex;
  align-items: center;
  gap: 6px;}

/* ── Individual tab pill ────────────────────────────────────── */
.ob-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
  transition:
    color        var(--t-fast),
    background   var(--t-fast),
    border-color var(--t-fast),
    box-shadow   var(--t-fast),
    transform    var(--t-fast);
  position: relative;
  user-select: none;
}

.ob-tab-pill:hover {
  color: var(--clr-primary);
  border-color: rgba(79, 70, 229, .35);
  background: var(--clr-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(79, 70, 229, .1);
}

.ob-tab-pill:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── Active state — solid filled ────────────────────────────── */
.ob-tab-pill.active {
  color: var(--clr-primary);
  background: var(--clr-primary-light);
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
  font-weight: 700;
}

/* Animated bottom indicator bar on active tab */
.ob-tab-pill.active::after {
  content: '';
  position: absolute;
  bottom: -13px;            /* sits on the tab-bar's bottom border */
  left: 0;
  right: 0;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px 2px 0 0;
  animation: obTabLine .18s var(--ease) both;
}

@keyframes obTabLine {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── Icon inside pill ───────────────────────────────────────── */
.ob-tab-pill-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  opacity: .75;
  transition: opacity var(--t-fast);
}
.ob-tab-pill:hover .ob-tab-pill-icon,
.ob-tab-pill.active .ob-tab-pill-icon { opacity: 1; }

/* ── Count badge ────────────────────────────────────────────── */
.ob-tab-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.ob-tab-pill:hover .ob-tab-pill-count {
  background: rgba(79, 70, 229, .15);
  color: var(--clr-primary);
}
.ob-tab-pill.active .ob-tab-pill-count {
  background: var(--clr-primary);
  color: #fff;
}

/* ── Hide old indicator markup (kept for safety) ────────────── */
.ob-tab-indicator-track,
.ob-tab-indicator { display: none; }

/* ═══════════════════════════════════════════════════════════
   PANEL ANIMATION
═══════════════════════════════════════════════════════════ */
.ob-tab-panel { display: none; }

.ob-tab-panel.ob-panel-enter {
  display: block;
  animation: obPanelIn .22s var(--ease) both;
}

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

/* ═══════════════════════════════════════════════════════════
   PANEL HEADER  (title + actions row)
═══════════════════════════════════════════════════════════ */
.ob-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  /* gap: 10px; */
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.ob-panel-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ob-panel-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  white-space: nowrap;
}

.ob-panel-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  /* flex-wrap: wrap; */
  flex-shrink: 0;
}

.ob-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ob-search-row .form-control {
  width: 280px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ob-panel-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    /* gap: 10px; */
  }
  .ob-panel-header-right {
    width: 100%;
    /* flex-direction: column;
    align-items: stretch; */
  }
  .ob-search-row {
    width: 100%;
    /* flex-direction: column; */
  }
  .ob-search-row .form-control {
    width: 100%;
    flex: 1;
    min-width: 0;
  }
  .ob-search-row .btn,
  .ob-panel-header-right > .btn {
    /* width: 100%; */
    justify-content: center;
    padding: 8px 10px;
  }
}

@media (max-width: 900px) {
  .ob-panel-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
  }
  .ob-panel-header-right {
    width: 100%;
    /* flex-direction: column; */
    align-items: stretch;
  }
  .ob-search-row {
    width: 100%;
  }
  .ob-search-row .form-control {
    width: 100%;
    flex: 1;
    min-width: 0;
  }
  .ob-search-row .btn,
  .ob-panel-header-right > .btn {
    /* width: 100%; */
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .ob-tab-bar {
    padding: 8px 12px;
    gap: 6px;
    flex-direction: column;
  }
  .ob-tab-pill {
    padding: 6px 12px;
    font-size: 12px;
    gap: 5px;
    flex: 1;
    justify-content: center;
  }
  .ob-tab-pill.active::after { display: none; } /* no bottom bar on mobile */
  .ob-tab-pill-icon { display: none; }          /* icon hidden, label + count only */
  .ob-tab-pill-count { font-size: 10px; min-width: 18px; height: 16px; }
}

/* ── DataTables — project theme override (Client Onboarding tab) ── */
/* Forces the jquery.dataTables theme to match the project's .table  */

#co-tx-table.table {
  border-collapse: collapse;
  border: none;
  width: 100% !important;
}

#co-tx-table.table td {
  font-size: .75rem;
  padding: 2px 5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
  background: none;
  box-shadow: none;
  border-top: none;
}
#co-tx-table.table td:first-child, #co-tx-table.table th:first-child{
  padding-left: 10px;
  padding-right: 10px;
}

#co-tx-table.table th{
  font-size: .75rem;
  padding: 7px 5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
  background: none;
  box-shadow: none;
  border-top: none;
}

#co-tx-table.table thead th {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
  color: var(--text-muted);
  background: var(--surface-2) !important;
}

/* Sorting arrows — inherit project colors */
#co-tx-table.table thead th.sorting::after,
#co-tx-table.table thead th.sorting_asc::after,
#co-tx-table.table thead th.sorting_desc::after {
  color: var(--text-faint);
}

#co-tx-table.table tbody tr:hover td { background: #f8fafc !important; }
#co-tx-table.table tbody tr:last-child td { border-bottom: none; }

/* Sticky first/last for DataTable — override generic .table sticky bg with correct surface colors */
#co-tx-table.table th:first-child,
#co-tx-table.table td:first-child { background: var(--surface); }
#co-tx-table.table thead th:first-child { background: var(--surface-2); }
#co-tx-table.table th:last-child,
#co-tx-table.table td:last-child { background: var(--surface); }
#co-tx-table.table thead th:last-child { background: var(--surface-2); }
#co-tx-table.table tbody tr:hover td:first-child,
#co-tx-table.table tbody tr:hover td:last-child { background: #f8fafc !important; }

/* DataTables controls */
#panel-client .dataTables_wrapper { padding: 0; }

#panel-client .dataTables_wrapper .dataTables_length,
#panel-client .dataTables_wrapper .dataTables_filter {
  padding: 0 10px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

#panel-client .dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
#panel-client .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
}

#panel-client .dataTables_wrapper .dataTables_info,
#panel-client .dataTables_wrapper .dataTables_paginate {
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
}

#panel-client .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  font-size: 12.5px;
}
#panel-client .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--clr-primary) !important;
  border-color: var(--clr-primary) !important;
  color: #fff !important;
}

/* ── Connected Accounts — extra top spacing in sidebar ──────── */
.sidebar .nav-links[href="/admin/onboarding"] {
  margin-top: 50px;
}
.nav-link-sub .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* width: 22px; */
  flex-shrink: 0;
}

.nav-link-sub .nav-icon svg {
  display: block;
  max-width: 100%;
  height: auto;
  color: rgba(148, 163, 184, 0.7);   /* sidebar muted color */
  transition: color var(--t-fast);
}

.nav-link-sub:hover .nav-icon svg,
.nav-link-sub.active .nav-icon svg {
  color: #c7d2fe;                     /* bright on hover/active */
}


/* Header */
.dt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 10px;
}

/* Keep both controls on one line */
.dt-header .dt-length,
.dt-header .dt-search {
    flex: 0 0 auto;
}

/* Search input */
.dataTables_filter {
    margin: 0;
}

.dataTables_filter input {
    width: 150px;
    min-width: 120px;
    max-width: 180px;
}

/* Mobile */
@media (max-width: 576px) {
    .dt-header {
        display: flex;
        justify-content: space-around;
        align-items: center;
        flex-wrap: nowrap;
    }

    .dataTables_length label,
    .dataTables_filter label {
        display: flex;
        align-items: center;
        margin: 0;
        white-space: nowrap;
        font-size: 0.65rem;
        gap: 5px;
    }

    .dataTables_filter input {
        width: 110px;
        margin-left: 6px;
    }

    .dataTables_length select {
        width: 65px;
    }
}

/* ── Transactions DataTable — project theme (mirrors co-tx-table block) ── */
#tx-table.table {
  border-collapse: collapse;
  border: none;
  width: 100% !important;
}

#tx-table.table th,
#tx-table.table td {
  font-size: .75rem;
  padding: 2px 5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  vertical-align: middle;
  background: none;
  box-shadow: none;
  border-top: none;
}

#tx-table.table td:first-child,
#tx-table.table th:first-child {
  padding-left: 10px;
  padding-right: 10px;
}

#tx-table.table thead th {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .55px;
  color: var(--text);
  background: var(--surface-2) !important;
}

#tx-table.table thead th.sorting::after,
#tx-table.table thead th.sorting_asc::after,
#tx-table.table thead th.sorting_desc::after { color: var(--text-faint); }

#tx-table.table tbody tr:hover td  { background: #f8fafc !important; }
#tx-table.table tbody tr:last-child td { border-bottom: none; }

/* sticky first/last for tx-table */
#tx-table.table th:first-child,
#tx-table.table td:first-child { background: var(--surface); }
#tx-table.table thead th:first-child { background: var(--surface-2); }
#tx-table.table th:last-child,
#tx-table.table td:last-child  { background: var(--surface); }
#tx-table.table thead th:last-child { background: var(--surface-2); }
#tx-table.table tbody tr:hover td:first-child,
#tx-table.table tbody tr:hover td:last-child { background: #f8fafc !important; }

/* DataTables controls scoped to tx panel */
.tx-list-card .dataTables_wrapper { padding: 0; }

.tx-list-card .dataTables_wrapper .dataTables_length,
.tx-list-card .dataTables_wrapper .dataTables_filter {
  padding: 0 10px;
  font-size: .65rem;
  color: var(--text-muted);
}

.tx-list-card .dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 10px;
  font-size: .75rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tx-list-card .dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px var(--clr-primary-ring);
}

.tx-list-card .dataTables_wrapper .dataTables_info,
.tx-list-card .dataTables_wrapper .dataTables_paginate {
  padding: 10px;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-muted);
}

.tx-list-card .dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--radius-sm) !important;
  font-size: .75rem;
}
.tx-list-card .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--clr-primary) !important;
  border-color: var(--clr-primary) !important;
  color: #fff !important;
}

/* ── Sticky thead for DataTables (.table-responsive wrapper) ──
   DataTables injects div.table-responsive as the scroll container.
   Give it overflow-y so sticky thead works within it.
──────────────────────────────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  max-height: var(--table-max-h);
}

.table-responsive .table thead th,
.table-responsive table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface-2);
}

/* Ensure DataTable-specific table thead th keep correct bg */
#tx-table.table     thead th,
#co-tx-table.table  thead th,
#payout-table.table thead th,
#av-table.table     thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--surface-2) !important;
}

#gateway-service-table_paginate,#gateway-service-table_info, #client-user-table_info, #client-user-table_paginate{
  padding: 10px;
}
#client-user-table_wrapper{
  background-color: #fff;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: var(--shadow-md);
}

.fixed-topber{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 10px 20px;
  background-color: rgba(79, 70, 229, 0.85);
}
.fixed-topber .text-dix h3{
  color: var(--bg);
}

.fixed-topber .btn-outline-sm:hover:last-child {
    border-color: var(--clr-danger);
    color: var(--clr-danger);
    background: var(--clr-danger-light);
}

#sidebar.collapsed .menu-toggle svg {
  transform: rotate(180deg);
}

.continue-bank{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 15px;
}
.continue-bank a{
  padding: .7rem 1.2rem;
}

@media (max-width: 768px) {
  .continue-bank{
    position: sticky;
    top: 83px;
    width: 100%;
  }
  .continue-bank a{
    width: 100%;
    padding: .9rem 1.5rem;
  }
}