/* ============================================================
   SkyPlay Media CRM — Premium Light Theme (White & Blue)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary:    #f8fafc; /* Slate 50 */
  --bg-secondary:  #ffffff; /* White */
  --bg-card:       #ffffff; /* White */
  --bg-card-hover: #f1f5f9; /* Slate 100 */
  --sidebar-bg:    #0f172a; /* Deep Slate (Midnight Blue) */
  --sidebar-width: 260px;

  --accent:        #2563eb; /* Royal Blue */
  --accent-light:  #3b82f6; /* Medium Blue */
  --accent-glow:   rgba(37, 99, 235, 0.15);
  --accent2:       #0ea5e9; /* Sky Blue */
  --success:       #10b981; /* Emerald Green */
  --warning:       #d97706; /* Dark Amber (good contrast) */
  --danger:        #ef4444; /* Rose Red */
  --critical:      #dc2626;

  --text-primary:  #0f172a; /* Slate 900 */
  --text-secondary:#475569; /* Slate 600 */
  --text-muted:    #94a3b8; /* Slate 400 */
  --border:        #e2e8f0; /* Slate 200 */
  --border-accent: #cbd5e1; /* Slate 300 */

  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0,0,0,0.03);
  --shadow-lg:     0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.07);
  --transition:    all 0.2s ease;
}

/* ── Dark Theme Overrides ── */
[data-theme="dark"] {
  --bg-primary:    #090d16; /* Dark Midnight Blue */
  --bg-secondary:  #111827; /* Dark Slate Grey */
  --bg-card:       #111827;
  --bg-card-hover: #1f2937;
  --sidebar-bg:    #030712; /* Rich Midnight Black */
  --text-primary:  #f9fafb; /* Off-White */
  --text-secondary:#cbd5e1; /* Light Slate */
  --text-muted:    #6b7280; /* Muted Slate */
  --border:        #1f2937;
  --border-accent: #374151;
  --shadow:        0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg:     0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

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

/* ── Sidebar (Dark Blue theme for high premium feel) ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.sidebar-brand .brand-text { font-size: 14px; font-weight: 700; color: #ffffff; }
.sidebar-brand .brand-sub  { font-size: 10px; color: #64748b; margin-top: 1px; }

.sidebar-section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #64748b;
  padding: 20px 20px 6px;
}

.nav-item { list-style: none; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
}

.nav-link .nav-icon {
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  transition: all 0.2s ease-in-out;
  flex-shrink: 0;
}
.nav-link .nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.nav-link:hover .nav-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.08) rotate(3deg);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.12);
}
.nav-link.active .nav-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.user-name  { font-size: 13px; font-weight: 600; color: #ffffff; }
.user-role  { font-size: 11px; color: #64748b; }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  width: 100%;
}

/* ── Topbar ── */
.topbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.page-title  { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.breadcrumb-text { font-size: 12px; color: var(--text-muted); }
.breadcrumb-text a { color: var(--accent); text-decoration: none; }
.breadcrumb-text a:hover { text-decoration: underline; }

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

.topbar-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
}

.topbar-btn:hover { border-color: var(--accent); color: var(--accent); background-color: rgba(37,99,235,0.03); }

.notif-dot {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--danger);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}

/* ── Page Content ── */
.page-content { padding: 28px; flex: 1; min-width: 0; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.015), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.04), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
}

.card:hover::after {
  opacity: 1;
}

.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  left: 24px;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--accent);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-title i {
  transform: scale(1.1) rotate(-3deg);
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--accent-glow);
  border-color: var(--accent);
}

.card-body  { padding: 24px; }

/* ── Stat Cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 2;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.03), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px -10px rgba(0, 0, 0, 0.05), 0 8px 16px -8px rgba(0, 0, 0, 0.04);
  border-color: rgba(37, 99, 235, 0.25);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
  border: 1px solid currentColor;
  opacity: 0.95;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.stat-value  { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-label  { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-change { font-size: 11px; margin-top: 8px; font-weight: 600; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

.icon-purple { background: rgba(37,99,235,0.08); color: var(--accent); }
.icon-cyan   { background: rgba(14,165,233,0.08); color: var(--accent2); }
.icon-green  { background: rgba(16,185,129,0.08); color: var(--success); }
.icon-yellow { background: rgba(217,119,6,0.08);  color: var(--warning); }
.icon-red    { background: rgba(239,68,68,0.08);   color: var(--danger); }

/* ── Tables ── */
.table-wrapper {
  border-radius: var(--radius);
  overflow-x: auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  background: var(--bg-primary);
  padding: 16px 20px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  text-align: left;
  transition: var(--transition);
}

tbody tr {
  transition: var(--transition);
}

tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.4);
}

tbody tr:hover td {
  background: rgba(37, 99, 235, 0.02) !important;
  color: var(--text-primary);
}

tbody tr:hover td:first-child {
  border-left-color: var(--accent);
}

tbody td {
  padding: 16px 20px;
  color: var(--text-secondary);
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  font-size: 13.5px;
  transition: var(--transition);
}

tbody tr:last-child td {
  border-bottom: none;
}

.td-primary { color: var(--text-primary) !important; font-weight: 600; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

@keyframes badgePulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.badge-danger::before, .badge-critical::before {
  animation: badgePulse 0.8s ease-in-out infinite alternate;
}

.badge-success   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-danger    { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-warning   { background: #fffbeb; color: #92400e; border: 1px solid #fef3c7; }
.badge-info      { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-critical  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-weight:700; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn i {
  font-size: 14px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover i.bi-arrow-right,
.btn:hover i.bi-box-arrow-up-right,
.btn:hover i.bi-arrow-right-circle {
  transform: translateX(3px);
}

.btn:hover i.bi-plus-lg {
  transform: rotate(90deg);
}

.btn:hover i.bi-pencil {
  transform: rotate(-12deg) scale(1.1);
}

.btn:hover i.bi-trash {
  transform: scale(1.15) translateY(-1px);
}

.btn:hover i.bi-download,
.btn:hover i.bi-file-pdf,
.btn:hover i.bi-filetype-csv {
  transform: translateY(2px);
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 4px 12px var(--accent-glow); color: white; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { opacity: 0.85; color: white; }

.btn-danger  { background: var(--danger);  color: white; }
.btn-danger:hover  { opacity: 0.85; color: white; }

.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { opacity: 0.85; }

.btn-secondary { background: #ffffff; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background-color: rgba(37,99,235,0.03); }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 8px;  font-size: 11px; }
.btn-icon { padding: 7px; border-radius: 8px; }

.btn-group { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-control, .form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.form-check-input {
  width: 18px; height: 18px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  transition: var(--transition);
}
.form-check-input:checked {
  background: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Progress Bar ── */
.progress-wrap { margin: 8px 0; }
.progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-secondary); margin-bottom: 5px; font-weight: 600; }
.progress-bar-bg { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width 0.6s ease; }
.progress-bar-fill.danger  { background: linear-gradient(90deg, var(--danger), var(--warning)); }
.progress-bar-fill.success { background: linear-gradient(90deg, var(--success), var(--accent2)); }

/* ── Alerts ── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13.5px;
}
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; }
.alert-info    { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }
.alert-dismissible { position: relative; padding-right: 40px; }
.btn-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none; border: none;
  color: inherit; cursor: pointer; font-size: 16px;
  opacity: 0.6;
}
.btn-close:hover { opacity: 1; }

/* ── DataTables Override ── */
.dataTables_wrapper {
  padding: 16px 0 0 0;
}

.dataTables_wrapper .dt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dataTables_wrapper .dt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 0 20px 16px 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dataTables_wrapper .dataTables_filter {
  float: none !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_filter label {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: transparent !important; /* Hide default 'Search:' text */
}

.dataTables_wrapper .dataTables_filter input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  color: var(--text-primary);
  padding: 8px 16px 8px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  width: 240px;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Custom search icon inside filter input */
.dataTables_wrapper .dataTables_filter label::before {
  content: '🔍';
  position: absolute;
  left: 14px;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.dataTables_wrapper .dataTables_filter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  width: 280px;
}

.dataTables_wrapper .dataTables_length {
  float: none !important;
  margin: 0 !important;
}

.dataTables_wrapper .dataTables_length select {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 6px 28px 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
}

.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--accent);
  outline: none;
}

.dataTables_wrapper .dataTables_info {
  float: none !important;
  padding-top: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 12.5px;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate {
  float: none !important;
  padding-top: 0 !important;
  display: flex;
  gap: 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-sm) !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg-card-hover) !important;
  border-color: var(--border-accent) !important;
  color: var(--text-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  border-color: var(--accent) !important;
  color: white !important;
  box-shadow: 0 4px 10px var(--accent-glow) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  background: #f8fafc !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Notifications Inbox UI ── */
.notif-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.notif-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.notif-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

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

.notif-item-row {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease-in-out;
  position: relative;
  border-left: 4px solid transparent;
}

.notif-item-row:hover {
  background: rgba(37, 99, 235, 0.01);
  transform: translateX(4px);
  box-shadow: -4px 4px 12px rgba(0,0,0,0.02);
}

.notif-item-row.notif-unread {
  background: rgba(37, 99, 235, 0.03);
}

.notif-item-row.notif-unread:hover {
  background: rgba(37, 99, 235, 0.05);
}

/* Color Coding Accent Strips */
.notif-item-row.notif-info { border-left-color: var(--accent); }
.notif-item-row.notif-success { border-left-color: var(--success); }
.notif-item-row.notif-warning { border-left-color: var(--warning); }
.notif-item-row.notif-danger { border-left-color: var(--danger); }

.notif-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.notif-icon-info { background: rgba(37, 99, 235, 0.08); color: var(--accent); }
.notif-icon-success { background: rgba(16, 185, 129, 0.08); color: var(--success); }
.notif-icon-warning { background: rgba(217, 119, 6, 0.08); color: var(--warning); }
.notif-icon-danger { background: rgba(239, 68, 68, 0.08); color: var(--danger); }

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-message {
  margin: 6px 0 0 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notif-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.notif-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* ── Checklist ── */
.checklist-category { margin-bottom: 28px; }
.checklist-cat-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: var(--bg-card);
  transition: var(--transition);
  cursor: pointer;
}

.checklist-item:hover { border-color: var(--accent-light); background: var(--bg-card-hover); }
.checklist-item.completed { opacity: 0.75; }
.checklist-item.completed .checklist-title { text-decoration: line-through; color: var(--text-secondary); }

.checklist-checkbox {
  width: 22px; height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: var(--transition);
  margin-top: 1px;
  background: #ffffff;
}

.checklist-item.completed .checklist-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.checklist-step {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.checklist-title   { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.checklist-desc    { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.checklist-tip     {
  font-size: 12px;
  color: #b45309; /* Deep warning text */
  background: #fffbeb;
  border-left: 3px solid var(--warning);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 6px;
  line-height: 1.5;
}

.checklist-tip::before { content: '💡 Tip: '; font-weight: 700; }

/* ── Website Card (grid view) ── */
.website-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }

.website-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.website-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.website-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.06), 0 8px 16px -8px rgba(0,0,0,0.04);
}
.website-card:hover::before { opacity: 1; }

.website-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.website-card-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.website-card-url  { font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.website-card-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Tabs ── */
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-nav::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}
.tab-btn i {
  font-size: 13px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-btn.active i {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.15);
  color: var(--accent);
  transform: scale(1.05);
}
.tab-btn:hover:not(.active) { color: var(--text-primary); }
.tab-btn:hover:not(.active) i {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Login Page ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f4f8; /* Softer layout background */
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(37,99,235,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 70%, rgba(14,165,233,0.05) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0%   { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.login-logo p  { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3   { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p    { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }

/* ── Chart wrapper ── */
.chart-wrap { position: relative; height: 280px; }

/* ── Notification item ── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: rgba(37,99,235,0.02); }
.notif-dot-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.notif-msg   { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.notif-time  { font-size: 11px; color: var(--text-secondary); margin-top: 4px; }

/* ── Utility ── */
.text-muted   { color: var(--text-muted) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-accent  { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-small   { font-size: 12px; }
.fw-bold      { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.required-note { font-size: 11px; color: var(--text-secondary); margin-bottom: 16px; }

/* ── Responsive Grid Utilities ── */
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.grid-1-1, .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }

/* ── Responsive Filters ── */
.filter-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }

/* ── Responsive Tables & DataTables ── */
.table-wrapper, .table-responsive, .dataTables_wrapper {
  width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}
.table-wrapper table, .table-responsive table, .dataTables_wrapper table {
  width: 100% !important;
}
.table-wrapper table.datatable, .table-responsive table.datatable, .dataTables_wrapper table.datatable {
  min-width: 900px !important; /* Prevents column squishing, forces horizontal scroll on narrow screens */
}
/* Ensure search and page entries row inside DataTables wrap cleanly on mobile */
.dt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.dt-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ── Responsive Breakpoints ── */
@media (max-width: 992px) {
  :root { --sidebar-width: 0px; }
  .sidebar { transform: translateX(-260px); }
  .sidebar.mobile-open { transform: translateX(0); width: 260px; z-index: 1100; }
  .main-content { margin-left: 0; }
  
  #sidebarToggle { display: flex !important; }
  
  .grid-2-1, .grid-1-1, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  
  .page-content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  
  /* Filter inputs stack to 100% */
  .filter-form > div {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 576px) {
  .stat-grid { grid-template-columns: 1fr; }
  .topbar { height: 64px; padding: 0 16px; flex-wrap: nowrap; gap: 8px; }
  .topbar-left { width: auto; }
  .topbar-right { width: auto; justify-content: flex-end; }
  .breadcrumb-text { display: none; }
  .page-title { font-size: 16px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .login-card { padding: 32px 20px; border-radius: 12px; }
  .login-logo .logo-icon { width: 56px; height: 56px; font-size: 26px; }
  .login-logo h1 { font-size: 18px; }
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.3s ease; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner { animation: spin 1s linear infinite; display: inline-block; }

/* ── Chat Messages ── */
.chat-msg {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.chat-msg:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.chat-msg-own {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.15);
}
.chat-msg-own:hover {
  background: rgba(37, 99, 235, 0.08);
}

/* ── Transferred Badge ── */
.badge-transferred {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
}

/* Quill Editor Overrides */
.ql-toolbar.ql-snow {
  border-color: #cbd5e1 !important;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: #f8fafc;
}
.ql-container.ql-snow {
  border-color: #cbd5e1 !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: #ffffff;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
}
.ql-editor {
  min-height: 200px;
}

/* ── Prompt Text Display Render Styles ── */
.prompt-text-display p {
  margin-bottom: 0.8em;
}
.prompt-text-display ul,
.prompt-text-display ol {
  padding-left: 24px;
  margin-bottom: 0.8em;
  display: block;
}
.prompt-text-display ul {
  list-style-type: disc !important;
}
.prompt-text-display ol {
  list-style-type: decimal !important;
}
.prompt-text-display li {
  margin-bottom: 0.3em;
  display: list-item;
}
.prompt-text-display blockquote {
  border-left: 4px solid var(--border);
  padding-left: 12px;
  color: var(--text-secondary);
  margin-bottom: 0.8em;
  font-style: italic;
}
.prompt-text-display pre,
.prompt-text-display code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-sm);
  font-size: 12px;
}
.prompt-text-display pre {
  padding: 8px 12px;
  overflow-x: auto;
  margin-bottom: 0.8em;
}
.prompt-text-display code {
  padding: 2px 4px;
}

/* Table responsive overrides */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Ensure tables inside card-body fit perfectly without double borders */
.card-body > .table-responsive > table,
.card-body > table {
  border: none !important;
}

.card-body > .table-responsive > table thead th,
.card-body > table thead th {
  background: rgba(248, 250, 252, 0.8) !important;
}

/* ── AdSense Account Cards (grid view) ── */
.adsense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
  gap: 20px;
}
.adsense-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}
.adsense-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f9ab00, #185abc, #1a73e8); /* AdSense Accent Gradient */
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.adsense-card:hover {
  border-color: rgba(249, 171, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,0.06), 0 8px 16px -8px rgba(0,0,0,0.04);
}
.adsense-card:hover::before {
  opacity: 1;
}
.adsense-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.adsense-card-gmail {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}
.adsense-card-body {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.adsense-card-detail-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 4px;
}
.adsense-card-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}
.adsense-card-detail-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adsense-card-websites {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Green Tick Indicator ── */
.green-tick-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.green-tick-badge.active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.green-tick-badge.inactive {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.green-tick-badge i {
  font-size: 13px;
}

/* ── GAM Status Badge ── */
.badge-gam-created { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-gam-approved { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-gam-rejected { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-gam-under-review { background: #fffbeb; color: #92400e; border: 1px solid #fef3c7; }
.badge-gam-not-created { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* ── Account Detail Page ── */
.account-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.account-detail-title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.account-detail-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9ab00, #1a73e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(249, 171, 0, 0.25);
}
.account-detail-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.account-detail-email {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.account-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Detail Section Cards ── */
.detail-section {
  margin-bottom: 24px;
}
.detail-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.detail-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.detail-info-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
  background: var(--bg-card-hover);
}
.detail-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.detail-info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

/* ── KYC Progress Cards ── */
.kyc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.kyc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.kyc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.3s ease;
}
.kyc-card.kyc-verified::before { background: linear-gradient(90deg, #10b981, #34d399); }
.kyc-card.kyc-submitted::before,
.kyc-card.kyc-received::before { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.kyc-card.kyc-rejected::before,
.kyc-card.kyc-expired::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.kyc-card.kyc-pending::before { background: linear-gradient(90deg, #d97706, #f59e0b); }
.kyc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.kyc-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
  transition: transform 0.3s ease;
}
.kyc-card:hover .kyc-card-icon {
  transform: scale(1.1) rotate(-5deg);
}
.kyc-card-icon.icon-verified { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.kyc-card-icon.icon-submitted,
.kyc-card-icon.icon-received { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.kyc-card-icon.icon-rejected,
.kyc-card-icon.icon-expired { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.kyc-card-icon.icon-pending { background: rgba(217, 119, 6, 0.1); color: #d97706; }
.kyc-card-icon.icon-not-started { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }
.kyc-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.kyc-card-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kyc-card-status.status-verified { color: #10b981; }
.kyc-card-status.status-submitted,
.kyc-card-status.status-received,
.kyc-card-status.status-active { color: #2563eb; }
.kyc-card-status.status-rejected,
.kyc-card-status.status-expired,
.kyc-card-status.status-suspended { color: #ef4444; }
.kyc-card-status.status-pending,
.kyc-card-status.status-on-hold { color: #d97706; }
.kyc-card-status.status-not-started,
.kyc-card-status.status-not-setup { color: #94a3b8; }

/* ── Status Mini Indicators (for table/grid list) ── */
.status-mini-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.status-mini {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.status-mini.s-green { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.status-mini.s-blue { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.status-mini.s-red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-mini.s-yellow { background: #fffbeb; color: #92400e; border: 1px solid #fef3c7; }
.status-mini.s-gray { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

/* ── Detail page linked websites grid ── */
.linked-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.linked-site-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}
.linked-site-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.linked-site-card i {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.linked-site-card .site-name {
  font-weight: 600;
  font-size: 13px;
}
.linked-site-card .site-url {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

