/* =============================================
   SKILLSWAP — PREMIUM DESIGN SYSTEM
   White-theme · Glassmorphism · 3D Depth
   ============================================= */

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

/* ─── CSS TOKENS ─────────────────────────────────────────── */
:root {
  /* Brand */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #e0e7ff;
  --primary-glow: rgba(99, 102, 241, 0.18);
  --accent: #8b5cf6;
  --accent-pink: #ec4899;

  /* Surfaces */
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-dark: rgba(255, 255, 255, 0.08);

  /* Text */
  --text: #0f172a;
  --text-2: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  /* Borders */
  --border: #e2e8f0;
  --border-2: #f1f5f9;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.05), 0 20px 60px rgba(0, 0, 0, 0.09);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.06), 0 24px 64px rgba(99, 102, 241, 0.14);
  --shadow-glow: 0 0 0 1px rgba(99, 102, 241, 0.12), 0 4px 16px rgba(99, 102, 241, 0.16);
  --shadow-primary: 0 8px 24px rgba(99, 102, 241, 0.35);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-3xl: 32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

::selection { background: var(--primary-light); color: var(--primary-dark); }

/* ─── GLASSMORPHISM ──────────────────────────────────────── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-surface {
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

/* ─── CARDS ──────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-hover {
  transition: transform var(--t-base), box-shadow var(--t-base);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: all var(--t-base);
  text-decoration: none;
  outline: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--text);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-full);
  box-shadow: 0 4px 16px rgba(15,23,42,0.25);
}

.btn-dark:hover {
  background: var(--text-2);
  box-shadow: 0 8px 28px rgba(15,23,42,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: none;
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
}

.btn-danger {
  background: transparent;
  color: #ef4444;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: none;
}

.btn-danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-muted);
  border: none;
}

.btn-icon:hover { background: var(--surface); color: var(--text); }

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-full { width: 100%; }

/* ─── INPUTS ─────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 11px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-family: var(--font);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text);
  transition: all var(--t-fast);
  outline: none;
  appearance: none;
}

.input::placeholder { color: var(--text-faint); }

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
  background: var(--bg);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-faint);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.input-icon + .input { padding-left: 42px; }

.label {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

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

textarea.input { resize: vertical; min-height: 100px; line-height: 1.6; }

select.input { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }

/* ─── BADGES ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-primary { background: var(--primary-light); color: var(--primary-dark); }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: var(--surface-2); color: var(--text-muted); }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }

/* ─── SIDEBAR ────────────────────────────────────────────── */
.sidebar {
  width: 272px;
  min-width: 272px;
  background: var(--bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  transition: transform var(--t-base);
}

@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 0; transform: none !important; }
}

.sidebar-hidden { transform: translateX(-100%); }

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  box-shadow: 0 2px 12px var(--primary-glow);
}

.sidebar-brand {
  font-size: 20px;
  font-weight: var(--fw-black);
  letter-spacing: -0.04em;
  color: var(--text);
}

.sidebar-brand span { color: var(--primary); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 8px 10px 4px;
  margin-top: 8px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  font-size: 14px;
  transition: all var(--t-fast);
  position: relative;
  letter-spacing: -0.01em;
}

.sidebar-item:hover {
  background: var(--surface);
  color: var(--text);
}

.sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: var(--fw-semibold);
}

.sidebar-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}

.sidebar-item:hover svg { opacity: 1; }
.sidebar-item.active svg { opacity: 1; color: var(--primary); }

.sidebar-item.admin-item {
  border: 1px dashed var(--border);
  margin-top: 4px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border-2);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--r-lg);
  margin-bottom: 8px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user-name {
  font-weight: var(--fw-semibold);
  font-size: 13.5px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-credits {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--primary);
}

/* ─── MOBILE HEADER ──────────────────────────────────────── */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

@media (max-width: 1023px) { .mobile-header { display: flex; } }

/* ─── SIDEBAR OVERLAY ────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 35;
}

/* ─── MODALS ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.hidden { display: none; }

.modal-card {
  width: 100%;
  background: var(--bg);
  border-radius: var(--r-3xl);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  border: 1px solid var(--border);
  animation: scaleIn var(--t-spring) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-2);
}

.modal-title { font-size: 18px; font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--text); }
.modal-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.modal-body { flex: 1; overflow-y: auto; padding: 24px; }
.modal-footer { padding: 18px 24px; border-top: 1px solid var(--border-2); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* ─── STAT CARDS ─────────────────────────────────────────── */
.stat-card {
  border-radius: var(--r-2xl);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.stat-card-value { font-size: 36px; font-weight: var(--fw-black); letter-spacing: -0.04em; line-height: 1; position: relative; z-index: 1; }
.stat-card-label { font-size: 11px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; margin-top: 6px; position: relative; z-index: 1; }
.stat-card-icon { font-size: 28px; margin-bottom: 12px; position: relative; z-index: 1; display: block; }

.stat-card-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.stat-card-violet { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.stat-card-rose { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%); }
.stat-card-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-card-emerald { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-card-sky { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }

/* ─── PAGE LAYOUT ────────────────────────────────────────── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--surface);
}

.app-main {
  flex: 1;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
}

.page-content { padding: 32px; }
@media (max-width: 768px) { .page-content { padding: 20px 16px; } }

.page-header { margin-bottom: 28px; }
.page-title { font-size: 28px; font-weight: var(--fw-black); letter-spacing: -0.03em; color: var(--text); line-height: 1.2; }
.page-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; font-weight: var(--fw-medium); }

/* ─── ACTIVITY FEED ──────────────────────────────────────── */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-2);
}
.activity-item:last-child { border-bottom: none; padding-bottom: 0; }
.activity-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.activity-title { font-size: 14px; font-weight: var(--fw-semibold); color: var(--text); }
.activity-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ─── SKILL CARDS ────────────────────────────────────────── */
.skill-card {
  background: var(--bg);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.skill-card-category {
  align-self: flex-start;
}

.skill-card-title {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.skill-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.skill-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
}

.skill-credit {
  font-size: 15px;
  font-weight: var(--fw-black);
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ─── QUICK ACTION TILES ─────────────────────────────────── */
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  cursor: pointer;
  transition: all var(--t-base);
  text-align: left;
  font-family: var(--font);
}

.quick-action:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-action-label {
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ─── FILTER TABS / PILLS ────────────────────────────────── */
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font);
  letter-spacing: -0.01em;
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border-2); margin: 4px 0; }

/* ─── RATING STARS ───────────────────────────────────────── */
.stars { color: #f59e0b; font-size: 13px; letter-spacing: 1px; }

/* ─── GRADIENT TEXT ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-white {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── AMBIENT BG ─────────────────────────────────────────── */
.ambient-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  mix-blend-mode: multiply;
  opacity: 0.55;
  animation: blobDrift 12s ease-in-out infinite;
}

.orb-1 { width: 500px; height: 500px; background: #c7d2fe; top: -10%; left: -5%; animation-delay: 0s; }
.orb-2 { width: 450px; height: 450px; background: #fce7f3; top: -5%; right: -10%; animation-delay: 3s; }
.orb-3 { width: 400px; height: 400px; background: #fde68a; bottom: -10%; left: 30%; animation-delay: 6s; }

/* ─── NAV PILL ───────────────────────────────────────────── */
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 7px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 12.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-2);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-fast);
}

.nav-pill:hover { transform: scale(1.03); }
.nav-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulseGlow 2s ease-in-out infinite; }

/* ─── MESSAGES SPECIFIC ──────────────────────────────────── */
.convo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background var(--t-fast);
}
.convo-item:hover { background: var(--surface); }
.convo-item.active { background: var(--primary-light); }

.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.msg-bubble.sent { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg-bubble.received { background: var(--surface); color: var(--text); border-bottom-left-radius: 6px; align-self: flex-start; border: 1px solid var(--border); }

/* ─── BOOKING CARD ───────────────────────────────────────── */
.booking-card {
  background: var(--bg);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--t-base);
}

.booking-card:hover { box-shadow: var(--shadow-md); }

/* ─── TRANSACTION ────────────────────────────────────────── */
.txn-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-2);
}
.txn-item:last-child { border-bottom: none; }
.txn-positive { color: #059669; font-weight: var(--fw-bold); }
.txn-negative { color: #dc2626; font-weight: var(--fw-bold); }

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -36px) scale(1.06); }
  66% { transform: translate(-18px, 16px) scale(0.94); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both; }
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

/* Stagger delays */
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.10s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.20s; }

/* ─── ERROR / SUCCESS MESSAGES ───────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-size: 13.5px;
  font-weight: var(--fw-medium);
  border: 1px solid transparent;
}
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-color: #c7d2fe; }

/* ─── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
}
.empty-state-icon { font-size: 48px; opacity: 0.4; }
.empty-state-title { font-size: 16px; font-weight: var(--fw-semibold); color: var(--text-2); }
.empty-state-desc { font-size: 13.5px; max-width: 280px; line-height: 1.6; }

/* ─── HIDDEN UTILITY ─────────────────────────────────────── */
.hidden { display: none !important; }
.modal-open { overflow: hidden; }

/* ─── GRADIENT & COLOR UTILITIES ─────────────────────────── */
.gradient-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
}

.text-white { color: #ffffff !important; }
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-muted) !important; }

/* ─── GRID UTILITIES ─────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ─── MOBILE RESPONSIVENESS (APPENDED SAFELY) ────────────── */
@media (max-width: 768px) {
  /* Typography & Spacing */
  .page-title { font-size: 24px; line-height: 1.3; }
  .page-subtitle { font-size: 13px; }
  .page-content { padding: 20px 16px; }
  
  /* Cards & Modals */
  .stat-card { padding: 16px; }
  .stat-card-value { font-size: 28px; }
  .stat-card-label { font-size: 10px; }
  .modal-card { width: calc(100% - 32px); max-height: 90vh; }
  .modal-header { padding: 16px 20px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 16px 20px; }
  
  /* Forms & Buttons */
  .btn-lg { padding: 12px 20px; font-size: 15px; }
  .input { padding: 10px 14px; font-size: 14px; }
  
  /* Tables (Make them horizontally scrollable on small screens) */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  
  /* Action Tiles */
  .quick-action { padding: 14px; }
}

@media (max-width: 480px) {
  /* Tighter Layout for Phones */
  .page-content { padding: 16px 12px; }
  .skill-card { padding: 16px; gap: 10px; }
  .booking-card { padding: 16px; gap: 10px; }
  
  /* Quick Actions turn into horizontal compact rows */
  .quick-action { flex-direction: row; align-items: center; gap: 12px; }
  .quick-action-icon { width: 32px; height: 32px; margin-bottom: 0px; }
  
  /* Filters become swipeable row */
  .filter-group { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
  
  /* Fix messages bubbles for phones */
  .msg-bubble { max-width: 85%; font-size: 13.5px; }
  
  /* Meta data wrapping */
  .skill-card-meta { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 10px; }
  .skill-credit { font-size: 14px; }
  
  /* Admin / Bookings adjustments */
  .txn-item { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
  .txn-amount { align-self: flex-start; }
}