/* Juzt-Tap Design System v1.0 */
/* Powered by DreamDynamics by H&S */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 16px;  --r-xl: 24px;  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 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 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 360ms ease;
}

/* =========================================
   LIGHT MODE TOKENS
   ========================================= */
:root, [data-theme="light"] {
  --bg-page:    #F7F7F5;
  --bg-card:    #FFFFFF;
  --bg-surface: #F2F1EF;
  --bg-inset:   #ECEAE6;
  --bg-hover:   #F0EFED;

  --text-primary:   #1A1A18;
  --text-secondary: #4A4A46;
  --text-tertiary:  #7A7A74;
  --text-disabled:  #B0B0A8;
  --text-inverse:   #FFFFFF;

  --border-subtle:  rgba(0,0,0,.07);
  --border-default: rgba(0,0,0,.12);
  --border-strong:  rgba(0,0,0,.20);

  --accent:         #1A1A18;
  --accent-hover:   #3A3A36;
  --accent-surface: #F0EFED;

  --brand:       #0066FF;
  --brand-light: #E6F0FF;
  --brand-hover: #0052CC;

  --success:     #16A34A;
  --success-bg:  #F0FDF4;
  --warning:     #D97706;
  --warning-bg:  #FFFBEB;
  --danger:      #DC2626;
  --danger-bg:   #FEF2F2;
  --info:        #2563EB;
  --info-bg:     #EFF6FF;

  --trust-gold:  #D97706;
  --safe-hire:   #0066FF;

  --verified-1: #9CA3AF;
  --verified-2: #6B7280;
  --verified-3: #3B82F6;
  --verified-4: #8B5CF6;

  --chat-bubble-own:   #1A1A18;
  --chat-bubble-other: #ECEAE6;
  --chat-text-own:     #FFFFFF;
  --chat-text-other:   #1A1A18;
}

/* =========================================
   DARK MODE TOKENS
   ========================================= */
[data-theme="dark"], .dark {
  --bg-page:    #0E0E0C;
  --bg-card:    #161614;
  --bg-surface: #1E1E1C;
  --bg-inset:   #262622;
  --bg-hover:   #1E1E1A;

  --text-primary:   #EDEDEB;
  --text-secondary: #A8A8A2;
  --text-tertiary:  #6A6A64;
  --text-disabled:  #44443E;
  --text-inverse:   #0E0E0C;

  --border-subtle:  rgba(255,255,255,.06);
  --border-default: rgba(255,255,255,.10);
  --border-strong:  rgba(255,255,255,.18);

  --accent:         #EDEDEB;
  --accent-hover:   #C8C8C2;
  --accent-surface: #1E1E1C;

  --brand:       #4D94FF;
  --brand-light: #0A1929;
  --brand-hover: #80B3FF;

  --success:     #34D399;
  --success-bg:  #052E16;
  --warning:     #FBBF24;
  --warning-bg:  #1C1200;
  --danger:      #F87171;
  --danger-bg:   #2D0707;
  --info:        #60A5FA;
  --info-bg:     #0C1C3B;

  --trust-gold:  #FBBF24;
  --safe-hire:   #4D94FF;

  --chat-bubble-own:   #2A2A28;
  --chat-bubble-other: #1E1E1C;
  --chat-text-own:     #EDEDEB;
  --chat-text-other:   #EDEDEB;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.5);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--t-base), color var(--t-base);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
h5 { font-size: .9375rem; font-weight: 600; }
h6 { font-size: .875rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.7; }
small { font-size: .8125rem; }
.mono { font-family: var(--font-mono); font-size: .875em; }
.muted { color: var(--text-tertiary); }
.label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }

/* =========================================
   LAYOUT
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--sp-6); }
.container--narrow { max-width: 720px; }
.container--wide   { max-width: 1440px; }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex--center  { align-items: center; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--gap-2   { gap: var(--sp-2); }
.flex--gap-3   { gap: var(--sp-3); }
.flex--gap-4   { gap: var(--sp-4); }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--sp-6);
  max-width: 1200px; margin: 0 auto;
}

.nav__logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}

.nav__links { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: .9rem; font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link:hover, .nav__link.active {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav__avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  object-fit: cover;
  border: 2px solid var(--border-default);
  transition: border-color var(--t-fast);
}
.nav__avatar:hover { border-color: var(--brand); }

/* =========================================
   SIDEBAR (app layout)
   ========================================= */
.app-layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

.sidebar {
  width: 240px; flex-shrink: 0;
  padding: var(--sp-6) var(--sp-4);
  border-right: 1px solid var(--border-subtle);
  position: sticky; top: 60px;
  height: calc(100vh - 60px);
  overflow-y: auto;
  display: block; /* Explicitly shown on desktop */
}
/* Desktop only — sidebar visible at 1024px+ */
/* desktop rules → see responsive section below */

.sidebar__nav { display: flex; flex-direction: column; gap: var(--sp-1); }

.sidebar__link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: .9rem; font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.sidebar__link:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar__link.active { background: var(--bg-inset); color: var(--text-primary); }
.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar__label {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-tertiary);
  padding: var(--sp-4) var(--sp-3) var(--sp-1);
}

.app-main { flex: 1; padding: var(--sp-8); min-width: 0; }

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.card:hover { box-shadow: var(--shadow-md); }
.card--padded { padding: var(--sp-6); }
.card--interactive { cursor: pointer; }
.card--interactive:hover { border-color: var(--border-default); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-5);
  height: 40px;
  border-radius: var(--r-md);
  font-size: .9rem; font-weight: 500;
  border: none; outline: none;
  transition: all var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--text-primary);
  color: var(--bg-card);
}
.btn--primary:hover { opacity: .85; color: var(--bg-card); }

.btn--brand {
  background: var(--brand);
  color: #fff;
}
.btn--brand:hover { background: var(--brand-hover); color: #fff; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
}
.btn--outline:hover { background: var(--bg-hover); border-color: var(--border-strong); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn--ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--danger:hover { opacity: .85; }

.btn--sm { height: 32px; padding: 0 var(--sp-4); font-size: .8125rem; }
.btn--lg { height: 48px; padding: 0 var(--sp-8); font-size: 1rem; }
.btn--full { width: 100%; }
.btn--icon { width: 40px; padding: 0; }
.btn--icon.btn--sm { width: 32px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--loading { pointer-events: none; }

/* =========================================
   FORMS
   ========================================= */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group + .form-group { margin-top: var(--sp-4); }

.form-label {
  font-size: .875rem; font-weight: 500; color: var(--text-primary);
}
.form-label .required { color: var(--danger); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-size: .9375rem;
  line-height: 1.5;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.form-input::placeholder { color: var(--text-disabled); }
.form-input--error { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A74' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right var(--sp-4) center; padding-right: var(--sp-10); }
.form-error { font-size: .8125rem; color: var(--danger); }
.form-hint  { font-size: .8125rem; color: var(--text-tertiary); }

/* =========================================
   PROFILE CARD
   ========================================= */
.profile-hero {
  position: relative;
}

.profile-cover {
  width: 100%; height: 200px;
  object-fit: cover;
  background: var(--bg-inset);
}

.profile-cover--placeholder {
  background: linear-gradient(135deg, var(--bg-inset) 0%, var(--bg-surface) 100%);
}

.profile-identity {
  padding: 0 var(--sp-6) var(--sp-6);
  position: relative;
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-top: -40px;
}

.profile-avatar {
  width: 80px; height: 80px;
  border-radius: var(--r-full);
  border: 3px solid var(--bg-card);
  object-fit: cover;
  background: var(--bg-inset);
}

.profile-badge {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: var(--r-full);
  border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
}

.profile-badge--1 { background: var(--verified-1); }
.profile-badge--2 { background: var(--verified-2); }
.profile-badge--3 { background: var(--verified-3); }
.profile-badge--4 { background: var(--verified-4); }

.safe-hire-badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 2px 8px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: .75rem; font-weight: 600;
  border-radius: var(--r-full);
  border: 1px solid var(--brand);
}

.trust-score {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: .875rem; font-weight: 600;
  color: var(--trust-gold);
}

/* =========================================
   CHAT
   ========================================= */
.chat-layout {
  display: flex;
  height: calc(100vh - 60px);
  overflow: hidden;
}

.chat-list {
  width: 320px; flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  display: flex; flex-direction: column;
  overflow: hidden;
}

.chat-list__header {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}

.chat-list__items { flex: 1; overflow-y: auto; }

.chat-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--border-subtle);
}
.chat-item:hover { background: var(--bg-hover); }
.chat-item.active { background: var(--bg-inset); }

.chat-item__avatar {
  width: 44px; height: 44px;
  border-radius: var(--r-full);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-inset);
}

.chat-item__info { flex: 1; min-width: 0; }
.chat-item__name { font-weight: 600; font-size: .9rem; }
.chat-item__preview { font-size: .8125rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item__time { font-size: .75rem; color: var(--text-tertiary); flex-shrink: 0; }

.chat-item__unread {
  width: 18px; height: 18px;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-full);
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.chat-main {
  flex: 1;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: var(--sp-3) var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: var(--sp-3);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  gap: var(--sp-3);
}

.chat-message { display: flex; gap: var(--sp-3); align-items: flex-end; }
.chat-message--own { flex-direction: row-reverse; }

.chat-message__avatar {
  width: 32px; height: 32px;
  border-radius: var(--r-full);
  object-fit: cover; flex-shrink: 0;
  background: var(--bg-inset);
}

.chat-bubble {
  max-width: 68%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: .9375rem;
  line-height: 1.5;
}

.chat-message--own .chat-bubble {
  background: var(--chat-bubble-own);
  color: var(--chat-text-own);
  border-bottom-right-radius: var(--r-sm);
}

.chat-message:not(.chat-message--own) .chat-bubble {
  background: var(--chat-bubble-other);
  color: var(--chat-text-other);
  border-bottom-left-radius: var(--r-sm);
}

.chat-timestamp {
  font-size: .7rem;
  color: var(--text-tertiary);
  padding: 0 var(--sp-2);
  align-self: flex-end;
  margin-bottom: 2px;
}

.chat-input-area {
  padding: var(--sp-4) var(--sp-6);
  border-top: 1px solid var(--border-subtle);
  display: flex; gap: var(--sp-3); align-items: flex-end;
}

.chat-input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-size: .9375rem;
  resize: none;
  max-height: 160px;
  overflow-y: auto;
  line-height: 1.5;
  transition: border-color var(--t-fast);
}
.chat-input:focus { outline: none; border-color: var(--brand); }

/* =========================================
   BADGES / PILLS
   ========================================= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: .75rem; font-weight: 600;
}
.badge--default  { background: var(--bg-inset); color: var(--text-secondary); }
.badge--brand    { background: var(--brand-light); color: var(--brand); }
.badge--success  { background: var(--success-bg); color: var(--success); }
.badge--warning  { background: var(--warning-bg); color: var(--warning); }
.badge--danger   { background: var(--danger-bg); color: var(--danger); }
.badge--outline  { background: transparent; border: 1px solid var(--border-default); color: var(--text-secondary); }

/* =========================================
   AVATAR
   ========================================= */
.avatar {
  border-radius: var(--r-full);
  object-fit: cover;
  background: var(--bg-inset);
  flex-shrink: 0;
}
.avatar--xs  { width: 24px; height: 24px; }
.avatar--sm  { width: 32px; height: 32px; }
.avatar--md  { width: 44px; height: 44px; }
.avatar--lg  { width: 64px; height: 64px; }
.avatar--xl  { width: 96px; height: 96px; }
.avatar--2xl { width: 128px; height: 128px; }

/* =========================================
   DIVIDER
   ========================================= */
.divider { border: none; border-top: 1px solid var(--border-subtle); margin: var(--sp-6) 0; }
.divider--text {
  display: flex; align-items: center; gap: var(--sp-4);
  color: var(--text-tertiary); font-size: .8125rem;
}
.divider--text::before, .divider--text::after {
  content: ''; flex: 1; border-top: 1px solid var(--border-subtle);
}

/* =========================================
   TOASTS
   ========================================= */
.toast-container {
  position: fixed; bottom: var(--sp-6); right: var(--sp-6);
  z-index: 9999;
  display: flex; flex-direction: column; gap: var(--sp-3);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  background: var(--text-primary);
  color: var(--bg-card);
  border-radius: var(--r-lg);
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  pointer-events: all;
  animation: toast-in var(--t-base) forwards;
  max-width: 360px;
}
.toast--success { background: var(--success); }
.toast--danger  { background: var(--danger); }
.toast--warning { background: var(--warning); color: var(--text-primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   TABLES
   ========================================= */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.table th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-default);
}
.table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }

/* =========================================
   DROPDOWN
   ========================================= */
.dropdown { position: relative; display: inline-flex; }
.dropdown__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
  animation: dropdown-in var(--t-fast) forwards;
}
.dropdown__item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-secondary);
  font-size: .9rem;
  cursor: pointer;
  transition: background var(--t-fast);
}
.dropdown__item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown__item--danger { color: var(--danger); }
.dropdown__separator { border-top: 1px solid var(--border-subtle); margin: var(--sp-1) 0; }

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

/* =========================================
   MODAL
   ========================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  backdrop-filter: blur(4px);
  animation: fade-in var(--t-base) forwards;
}
.modal-overlay[style*="display:none"],
.modal-overlay[style*="display: none"] { pointer-events: none; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  width: 100%; max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-in var(--t-base) forwards;
}
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.modal__title { font-weight: 600; font-size: 1.125rem; }
.modal--wide { max-width: 680px; }

@keyframes fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-in { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: scale(1) } }

/* =========================================
   PAGINATION
   ========================================= */
.pagination { display: flex; align-items: center; gap: var(--sp-2); }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  font-size: .875rem;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  background: none; border: none;
}
.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.page-btn.active { background: var(--text-primary); color: var(--bg-card); pointer-events: none; }
.page-btn[disabled] { opacity: .4; pointer-events: none; }

/* =========================================
   EMPTY STATE
   ========================================= */
.empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
}
.empty__icon { font-size: 2.5rem; margin-bottom: var(--sp-4); color: var(--text-tertiary); }
.empty__title { font-weight: 600; margin-bottom: var(--sp-2); }
.empty__desc { color: var(--text-tertiary); font-size: .9rem; margin-bottom: var(--sp-6); }

/* =========================================
   INSTALL WIZARD
   ========================================= */
.install-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  background: var(--bg-page);
}
.install-card {
  width: 100%; max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-lg);
}
.install-step {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.install-step__dot {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--t-base);
}
.install-step__dot.active { background: var(--text-primary); color: var(--bg-card); border-color: var(--text-primary); }
.install-step__dot.done   { background: var(--success); color: #fff; border-color: var(--success); }
.install-step__line { flex: 1; height: 1px; background: var(--border-subtle); }

/* =========================================
   ADMIN PANEL
   ========================================= */
.admin-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.admin-stat__label { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: var(--sp-2); }
.admin-stat__value { font-size: 2rem; font-weight: 700; letter-spacing: -.04em; color: var(--text-primary); }
.admin-stat__delta { font-size: .8rem; color: var(--text-tertiary); margin-top: var(--sp-1); }

/* =========================================
   SEARCH BAR
   ========================================= */
.search-bar {
  position: relative;
  width: 100%;
}
.search-bar__icon {
  position: absolute; left: var(--sp-4); top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
  width: 18px; height: 18px;
}
.search-bar__input {
  width: 100%;
  padding: var(--sp-3) var(--sp-4) var(--sp-3) calc(var(--sp-4) + 26px);
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-full);
  color: var(--text-primary);
  font-size: .9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-bar__input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px var(--brand-light);
}

/* =========================================
   SKELETON LOADER
   ========================================= */
.skeleton {
  background: var(--bg-inset);
  border-radius: var(--r-sm);
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* =========================================
   THEME TOGGLE
   ========================================= */
.theme-toggle {
  width: 40px; height: 22px;
  background: var(--bg-inset);
  border: 1px solid var(--border-default);
  border-radius: var(--r-full);
  cursor: pointer;
  position: relative;
  transition: background var(--t-base);
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: var(--r-full);
  background: var(--text-primary);
  transition: transform var(--t-base);
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(18px); }

/* =========================================
   POWERED BY FOOTER
   ========================================= */
.powered-by {
  text-align: center;
  font-size: .75rem;
  color: var(--text-tertiary);
  padding: var(--sp-4);
}
.powered-by a { color: var(--text-tertiary); }
.powered-by a:hover { color: var(--text-primary); }

/* =========================================
   RESPONSIVE — MOBILE FIRST
   Breakpoints:
   --mobile:  < 640px
   --tablet:  640px – 1023px
   --desktop: ≥ 1024px
   ========================================= */

/* ── Hamburger toggle button ── */
.nav__hamburger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  transition: background var(--t-fast);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.nav__hamburger:hover { background: var(--bg-hover); }
.nav__hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .25s cubic-bezier(.22,1,.36,1);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   NAV COMPONENT
   ============================================================ */
.nav__logo-text { font-size:1.15rem; font-weight:800; letter-spacing:-.045em; color:var(--text-primary); }
.nav__logo-dot  { color:var(--brand); }

.nav__icon-btn {
  width:36px; height:36px;
  display:inline-flex; align-items:center; justify-content:center;
  background:transparent; border:none; border-radius:var(--r-md);
  color:var(--text-secondary); cursor:pointer; text-decoration:none; flex-shrink:0;
  transition:background var(--t-fast), color var(--t-fast);
}
.nav__icon-btn:hover { background:var(--bg-hover); color:var(--text-primary); }

.nav__search { display:flex; align-items:center; position:relative; }
.nav__search-icon { position:absolute; left:10px; color:var(--text-tertiary); pointer-events:none; }
.nav__search-input {
  background:var(--bg-inset); border:1px solid var(--border-subtle);
  border-radius:var(--r-full); padding:7px 14px 7px 32px;
  font-size:.8rem; width:200px; color:var(--text-primary);
  outline:none; transition:border-color var(--t-fast); font-size:16px;
}
.nav__search-input:focus { border-color:var(--brand); }
.nav__search-input::placeholder { color:var(--text-disabled); font-size:.8rem; }

.nav__avatar-btn {
  display:inline-flex; padding:2px; border-radius:var(--r-full);
  border:2px solid transparent; background:none; cursor:pointer;
  transition:border-color var(--t-fast);
}
.nav__avatar-btn:hover { border-color:var(--brand); }
.nav__avatar { width:30px; height:30px; border-radius:var(--r-full); object-fit:cover; display:block; }

.nav__lang-btn {
  font-size:.75rem; font-weight:700; letter-spacing:.04em;
  color:var(--text-secondary); background:transparent; border:none;
  cursor:pointer; padding:6px 8px; border-radius:var(--r-md);
  transition:background var(--t-fast);
}
.nav__lang-btn:hover { background:var(--bg-hover); color:var(--text-primary); }

.dropdown__header { padding:12px 16px; border-bottom:1px solid var(--border-subtle); }
.dropdown__name   { font-weight:600; font-size:.875rem; color:var(--text-primary); }
.dropdown__email  { font-size:.75rem; color:var(--text-tertiary); margin-top:2px; }

/* ============================================================
   MOBILE DRAWER — JS-built, never in HTML flow
   ============================================================ */

/* The drawer is created by JS and appended to <body>.
   These rules control its appearance only. */
.jt-drawer-overlay {
  position:fixed; inset:0; z-index:998;
  background:rgba(0,0,0,.52);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
  opacity:0; transition:opacity .24s ease;
  pointer-events:none;
  cursor:pointer;
}
.jt-drawer-overlay.is-open { opacity:1; pointer-events:auto; }

.jt-drawer {
  position:fixed; top:0; left:0; bottom:0;
  width:min(320px, 85vw);
  z-index:999;
  background:var(--bg-card);
  overflow-y:auto;
  transform:translateX(-100%);
  transition:transform .28s cubic-bezier(.22,1,.36,1);
  box-shadow:8px 0 32px rgba(0,0,0,.18);
  display:flex; flex-direction:column;
  padding-bottom:env(safe-area-inset-bottom, 0px);
  visibility:hidden;
  pointer-events:none;
}
.jt-drawer.is-open { transform:translateX(0); visibility:visible; pointer-events:auto; }

/* Drawer header */
.jt-drawer__hdr {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid var(--border-subtle);
  background:var(--bg-surface); flex-shrink:0;
}
.jt-drawer__logo { font-size:1.1rem; font-weight:800; letter-spacing:-.04em; color:var(--text-primary); text-decoration:none; }
.jt-drawer__logo span { color:var(--brand); }
.jt-drawer__close {
  width:32px; height:32px; border:none; background:var(--bg-inset);
  border-radius:var(--r-md); cursor:pointer; font-size:18px; line-height:1;
  color:var(--text-tertiary); display:flex; align-items:center; justify-content:center;
  transition:background var(--t-fast), color var(--t-fast);
}
.jt-drawer__close:hover { background:var(--bg-hover); color:var(--text-primary); }

/* Drawer user profile strip */
.jt-drawer__profile {
  display:flex; align-items:center; gap:12px;
  padding:14px 20px; background:var(--bg-surface);
  border-bottom:1px solid var(--border-subtle); flex-shrink:0;
}
.jt-drawer__avatar {
  width:42px; height:42px; border-radius:50%;
  object-fit:cover; flex-shrink:0; border:2px solid var(--border-subtle);
}
.jt-drawer__uname  { font-weight:700; font-size:.9rem; color:var(--text-primary); line-height:1.3; }
.jt-drawer__uemail { font-size:.75rem; color:var(--text-tertiary); margin-top:2px; }

/* Drawer nav links */
.jt-drawer__nav { flex:1; padding:8px 0; }
.jt-drawer__link {
  display:flex; align-items:center; gap:14px;
  padding:13px 20px; color:var(--text-secondary);
  text-decoration:none; font-size:.9375rem; font-weight:500;
  transition:background var(--t-fast), color var(--t-fast);
  min-height:48px; /* touch target */
  border:none; background:none; width:100%; text-align:left; cursor:pointer;
}
.jt-drawer__link:hover  { background:var(--bg-hover); color:var(--text-primary); }
.jt-drawer__link.active { background:var(--brand-light); color:var(--brand); font-weight:600; }
.jt-drawer__link--danger { color:var(--danger); }
.jt-drawer__link--danger:hover { background:var(--danger-bg); color:var(--danger); }
.jt-drawer__link svg { width:20px; height:20px; flex-shrink:0; opacity:.7; }
.jt-drawer__link.active svg, .jt-drawer__link:hover svg { opacity:1; }
.jt-drawer__divider { height:1px; background:var(--border-subtle); margin:6px 0; }

/* Drawer auth buttons */
.jt-drawer__auth { padding:16px 20px; display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--border-subtle); flex-shrink:0; }

/* Drawer footer */
.jt-drawer__footer {
  padding:14px 20px; border-top:1px solid var(--border-subtle);
  display:flex; gap:16px; flex-shrink:0;
}
.jt-drawer__lang {
  font-size:.8rem; font-weight:600; color:var(--text-tertiary);
  background:none; border:none; cursor:pointer; padding:0;
}
.jt-drawer__lang.active { color:var(--brand); }

/* ============================================================
   BOTTOM NAV TAB BAR
   ============================================================ */
.bottom-nav {
  display:none; /* shown via media query */
  position:fixed; bottom:0; left:0; right:0; z-index:100;
  background:var(--bg-card);
  border-top:1px solid var(--border-subtle);
  padding-bottom:max(8px, env(safe-area-inset-bottom));
}
.bottom-nav__inner {
  display:flex; align-items:center; justify-content:space-around;
  height:54px; max-width:600px; margin:0 auto;
}
.bottom-nav__item {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  flex:1; padding:6px 4px;
  color:var(--text-tertiary); text-decoration:none;
  font-size:.6rem; font-weight:600; letter-spacing:.02em;
  transition:color var(--t-fast);
  -webkit-tap-highlight-color:transparent;
}
.bottom-nav__item svg { width:22px; height:22px; }
.bottom-nav__item.active { color:var(--brand); }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash {
  padding:11px 24px; font-size:.875rem; font-weight:500;
  text-align:center; border-bottom:2px solid transparent;
}
.flash--success { background:var(--success-bg); border-color:var(--success); color:var(--success); }
.flash--error   { background:var(--danger-bg);  border-color:var(--danger);  color:var(--danger);  }

/* ============================================================
   VERIFICATION BANNER
   ============================================================ */
.verify-banner {
  background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);
  border-bottom:1px solid rgba(77,148,255,.3);
}
.verify-banner__icon {
  width:32px; height:32px; background:rgba(77,148,255,.2);
  border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.verify-banner__title { font-size:.825rem; font-weight:700; color:#fff; margin-bottom:1px; }
.verify-banner__sub   { font-size:.775rem; color:rgba(255,255,255,.6); }
.verify-banner__btn {
  background:rgba(77,148,255,.25); border:1px solid rgba(77,148,255,.4);
  color:#4d94ff; border-radius:8px; padding:7px 14px;
  font-size:.78rem; font-weight:700; cursor:pointer; white-space:nowrap;
  transition:background var(--t-fast);
}
.verify-banner__btn:hover { background:rgba(77,148,255,.42); }
.verify-banner__close {
  background:none; border:none; color:rgba(255,255,255,.4);
  cursor:pointer; padding:6px; border-radius:6px; font-size:16px; line-height:1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--bg-card); border-top:1px solid var(--border-subtle); margin-top:clamp(40px,8vw,80px); }
.footer .container { padding-top:clamp(36px,6vw,56px); padding-bottom:clamp(32px,5vw,48px); }
.footer__grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:36px 40px; margin-bottom:36px;
}
.footer__grid > div:first-child { grid-column: span 1; }
@media (min-width:900px) {
  .footer__grid > div:first-child { grid-column: span 2; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer__logo {
  display:inline-block; text-decoration:none;
  font-size:1.1rem; font-weight:800; letter-spacing:-.04em;
  color:var(--text-primary); margin-bottom:12px;
}
.footer__about { font-size:.875rem; color:var(--text-tertiary); line-height:1.7; max-width:280px; margin-bottom:14px; }
.footer__contact { display:flex; flex-direction:column; gap:5px; }
.footer__contact-item { font-size:.8rem; color:var(--text-tertiary); text-decoration:none; }
.footer__contact-item:hover { color:var(--text-primary); }
.footer__col { display:flex; flex-direction:column; }
.footer__col-title { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--text-tertiary); margin-bottom:14px; }
.footer__link { font-size:.875rem; color:var(--text-tertiary); text-decoration:none; padding:4px 0; transition:color var(--t-fast); }
.footer__link:hover { color:var(--text-primary); }
.footer__bottom {
  border-top:1px solid var(--border-subtle); padding-top:20px;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:10px; font-size:.78rem; color:var(--text-tertiary);
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   Breakpoints:  mobile < 768px  |  tablet 768-1023px  |  desktop >= 1024px
   ============================================================ */

/* ── Desktop baseline (>= 1024px): sidebar shows, hamburger hidden ── */
@media (min-width:1024px) {
  .sidebar           { display:block !important; }
  .nav__hamburger    { display:none  !important; }
  .nav__links        { display:flex  !important; }
  .nav__search       { display:flex  !important; }
  .bottom-nav        { display:none  !important; }
  body.has-bottom-nav{ padding-bottom:0 !important; }
}

/* ── Tablet + mobile (< 1024px): hamburger replaces everything ── */
@media (max-width:1023px) {
  /* Grids */
  .grid--4 { grid-template-columns:repeat(2,1fr); }
  .grid--3 { grid-template-columns:repeat(2,1fr); }

  /* Nav: hide desktop links + search, show hamburger */
  .nav__links    { display:none !important; }
  .nav__search   { display:none !important; }
  .nav__hamburger{ display:flex !important; }

  /* Sidebar replaced by bottom nav */
  .sidebar    { display:none !important; }
  .app-layout { flex-direction:column; }
  .app-main   { padding:var(--sp-4) var(--sp-4) 80px; }

  /* Admin */
  .admin-wrap    { flex-direction:column; }
  .admin-sidebar { display:none !important; }
  .admin-body    { padding:var(--sp-4) !important; }

  /* Bottom nav */
  .bottom-nav { display:block; }
  body.has-bottom-nav { padding-bottom:calc(54px + env(safe-area-inset-bottom,0px)); }

  /* Container */
  .container { padding-left:var(--sp-4); padding-right:var(--sp-4); }

  /* Footer */
  .footer__grid { grid-template-columns:1fr 1fr; gap:28px; }
}

/* ── Mobile only (< 640px) ── */
@media (max-width:639px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns:1fr; }
  .footer__grid { grid-template-columns:1fr; gap:20px; }
  .footer__about { max-width:100%; }
  .footer__bottom { flex-direction:column; text-align:center; }
  .app-main { padding:var(--sp-4) var(--sp-3) 80px; }

  /* Prevent iOS zoom on inputs */
  input, select, textarea { font-size:16px !important; }

  /* Touch targets */
  .btn { min-height:44px; }
  .dropdown__item { min-height:44px; }
  .sidebar__link  { min-height:44px; }
}

/* ── Touch devices: remove hover effects ── */
@media (hover:none) and (pointer:coarse) {
  .feature-card:hover { transform:none; box-shadow:none; }
  .profile-card:hover { transform:none; box-shadow:none; }
  .pcard:hover { transform:none; box-shadow:none; }
  .prow:hover  { box-shadow:none; }
}

/* ── iPhone safe area ── */
@supports (padding:env(safe-area-inset-bottom)) {
  .bottom-nav { padding-bottom:env(safe-area-inset-bottom); }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-wrap { display:flex; min-height:calc(100vh - 60px); }
.admin-sidebar {
  width:220px; flex-shrink:0; background:var(--bg-card);
  border-right:1px solid var(--border-subtle); padding:24px 12px;
  position:sticky; top:60px; height:calc(100vh - 60px); overflow-y:auto;
}
.admin-sidebar .sl { font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--text-tertiary); padding:0 10px; margin:16px 0 6px; }
.admin-sidebar .sl:first-child { margin-top:0; }
.anl { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; font-size:.85rem; font-weight:500; color:var(--text-secondary); text-decoration:none; transition:background var(--t-fast),color var(--t-fast); }
.anl:hover  { background:var(--bg-hover); color:var(--text-primary); }
.anl.active { background:var(--bg-inset); color:var(--text-primary); }
.anl svg    { flex-shrink:0; opacity:.7; }
.admin-body { flex:1; padding:32px 40px; min-width:0; }
.panel { background:var(--bg-card); border:1px solid var(--border-subtle); border-radius:12px; overflow:hidden; margin-bottom:20px; }
.panel-head { padding:14px 20px; border-bottom:1px solid var(--border-subtle); display:flex; align-items:center; justify-content:space-between; }
.panel-head span { font-weight:600; font-size:.9rem; }

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */
[data-theme="dark"] .jt-drawer      { box-shadow:8px 0 32px rgba(0,0,0,.5); }
[data-theme="dark"] .feature-card:hover { box-shadow:0 20px 56px rgba(0,0,0,.5); border-color:rgba(77,148,255,.3); }
[data-theme="dark"] .profile-card:hover { box-shadow:0 20px 56px rgba(0,0,0,.5); }
[data-theme="dark"] .cta-section { background:#0f0f17; }
[data-theme="dark"] .stat-num {
  background:linear-gradient(135deg,#f0f0f4 30%,#4d94ff);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* ============================================================
   HOMEPAGE SPECIFIC
   ============================================================ */
.hero-bg { position:relative; overflow:hidden; background:var(--bg-card); }
[data-theme="dark"] .hero-bg { background:var(--bg-page); }
.hero-bg::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 80% 60% at 60% -10%,rgba(0,102,255,.08) 0%,transparent 60%),
             radial-gradient(ellipse 40% 40% at 90% 80%,rgba(0,102,255,.05) 0%,transparent 50%);
}
[data-theme="dark"] .hero-bg::before {
  background:radial-gradient(ellipse 80% 60% at 60% -10%,rgba(77,148,255,.12) 0%,transparent 60%),
             radial-gradient(ellipse 40% 40% at 90% 80%,rgba(77,148,255,.07) 0%,transparent 50%);
}
.stat-num {
  font-size:2.5rem; font-weight:900; letter-spacing:-.05em;
  background:linear-gradient(135deg,#1a1a18 30%,var(--brand));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.cta-section { background:#0f0f17; position:relative; overflow:hidden; }
.cta-section::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse 60% 80% at 80% 50%,rgba(0,102,255,.2) 0%,transparent 70%);
}
.feature-card {
  background:var(--bg-card); border:1px solid var(--border-subtle);
  border-radius:16px; padding:28px 24px;
  transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .2s;
}
.feature-card:hover { transform:translateY(-6px); box-shadow:0 20px 56px rgba(0,0,0,.12); border-color:rgba(0,102,255,.25); }
.feature-icon { width:44px; height:44px; border-radius:12px; background:var(--brand-light); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.step-number  { width:52px; height:52px; border-radius:50%; border:2px solid var(--brand); color:var(--brand); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:1.1rem; margin:0 auto 20px; background:var(--brand-light); }
.profile-card { background:var(--bg-card); border:1px solid var(--border-subtle); border-radius:16px; overflow:hidden; transition:transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s; text-decoration:none; color:inherit; display:block; }
.profile-card:hover { transform:translateY(-6px); box-shadow:0 20px 56px rgba(0,0,0,.14); }
.anim-up { opacity:0; transform:translateY(24px); transition:opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.anim-up.visible { opacity:1; transform:none; }

/* ============================================================
   ADMIN SHARED STYLES (loaded globally so admin pages work)
   ============================================================ */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 20px;
  transition: box-shadow .15s, transform .15s;
  display: block; color: inherit;
}
.stat-card:where(a):hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-tertiary); margin-bottom: 8px;
}
.stat-value {
  font-size: 1.875rem; font-weight: 800;
  letter-spacing: -.04em; line-height: 1;
  color: var(--text-primary);
}
.stat-sub { font-size: .75rem; color: var(--text-tertiary); margin-top: 5px; }
