/* ============================================
   PVL PREP - SHARED DESIGN SYSTEM
   Modern, clean, consistent styling
   ============================================ */

/* CSS Variables (Design Tokens) */
:root {
  /* Foundation */
  --bg-primary: #05070d;
  --bg-secondary: #0b1020;
  --bg-tertiary: #121a2f;
  --bg-card: rgba(15, 23, 42, 0.66);
  --bg-card-hover: rgba(20, 30, 55, 0.82);
  --bg-elevated: rgba(21, 31, 53, 0.92);

  /* Legacy variables (for compatibility) */
  --bg: #05070d;
  --surface: rgba(15, 23, 42, 0.66);
  --surface-2: rgba(21, 31, 53, 0.92);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(96, 165, 250, 0.45);
  --line: rgba(255, 255, 255, 0.11);

  /* Text colors */
  --text-primary: #f5f8ff;
  --text-secondary: #b2bfd6;
  --text-muted: #7d8ba6;
  --text: #f5f8ff;
  --muted: #b2bfd6;

  /* Accent colors */
  --accent-blue: #3b82f6;
  --accent-blue-bright: #7dd3fc;
  --accent-cyan: #22d3ee;
  --accent-green: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #a855f7;

  /* Legacy accent variables */
  --primary: #3b82f6;
  --primary-2: #2563eb;
  --accent: #7dd3fc;
  --accent-2: #22d3ee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Glows */
  --glow-blue: rgba(59, 130, 246, 0.22);
  --glow-cyan: rgba(34, 211, 238, 0.16);
  --glow-purple: rgba(168, 85, 247, 0.14);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px -15px rgba(59, 130, 246, 0.2);
  --elev-1: 0 4px 12px rgba(0, 0, 0, 0.2);
  --elev-2: 0 10px 25px rgba(0, 0, 0, 0.3);

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

html, body { 
  min-height: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}

/* Shared animated background (used by index + all pages) */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--glow-blue), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, var(--glow-cyan), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(168, 85, 247, 0.08), transparent),
    var(--bg-primary);
  z-index: -2;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, black 20%, transparent 70%);
}

/* Links */
a { 
  color: var(--accent-blue-bright); 
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { 
  color: var(--accent-cyan);
}

/* Generic Containers */
.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 24px; 
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Buttons */
button, .btn, a.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary { 
  background: linear-gradient(135deg, var(--accent-blue) 0%, #2563eb 58%, var(--accent-cyan) 100%); 
  color: #fff; 
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover { 
  transform: translateY(-2px);
  box-shadow: 0 16px 42px -10px rgba(59, 130, 246, 0.65);
}

.btn-accent { 
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%); 
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(59, 130, 246, 0.4);
}

.btn-success { 
  background: linear-gradient(135deg, var(--accent-green) 0%, #059669 100%); 
  color: #fff;
}

.btn-danger { 
  background: rgba(239, 68, 68, 0.1); 
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover { 
  background: rgba(239, 68, 68, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Inputs */
input[type="text"], 
input[type="number"], 
input[type="datetime-local"], 
input[type="date"], 
input[type="time"], 
input[type="password"],
select, 
textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: var(--accent-blue-bright);
  box-shadow: 0 0 0 4px var(--glow-blue);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* Checkboxes */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

/* Modal Base */
.modal { 
  position: fixed; 
  inset: 0; 
  background: rgba(6, 10, 18, 0.9); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 99999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content { 
  background: var(--bg-card); 
  border: 1px solid var(--border-subtle); 
  border-radius: var(--radius-xl); 
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

/* Page Headers */
.app-header {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan), var(--accent-green));
}

.app-header h1 { 
  letter-spacing: -0.02em;
  font-weight: 800;
}

.subtext { 
  color: var(--text-secondary); 
}

/* Lists */
.list-reset { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
}

/* Tags/Badges */
.tag { 
  display: inline-flex; 
  align-items: center;
  padding: 6px 12px; 
  border-radius: var(--radius-sm); 
  font-weight: 700; 
  font-size: 0.8rem; 
}

.tag-primary { 
  background: rgba(59, 130, 246, 0.15); 
  color: var(--accent-blue); 
}

.tag-accent { 
  background: rgba(96, 165, 250, 0.15); 
  color: var(--accent-blue-bright); 
}

.tag-warning { 
  background: rgba(245, 158, 11, 0.15); 
  color: var(--accent-amber); 
}

.tag-success { 
  background: rgba(16, 185, 129, 0.15); 
  color: var(--accent-green); 
}

.tag-danger { 
  background: rgba(239, 68, 68, 0.15); 
  color: var(--accent-red); 
}

/* ============================================
   Assigned Accounts (sheet header module)
   ============================================ */
.account-assignment {
  margin: 0 0 18px 0;
}

.account-assignment.pp-card {
  --card-accent: #f59e0b;
  position: relative;
  border: 1px solid rgba(245, 158, 11, 0.26);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(245, 158, 11, 0.12), transparent 45%),
    linear-gradient(165deg, rgba(26, 24, 20, 0.7), rgba(20, 18, 16, 0.6));
  box-shadow: 0 20px 48px -30px rgba(245, 158, 11, 0.52);
}

.account-assignment__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.account-assignment__title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.account-assignment__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-assignment__icon {
  flex: 0 0 auto;
  font-size: 1.1rem;
}

.account-assignment__copy {
  min-width: 0;
  flex: 1;
}

.account-assignment__label {
  margin: 0;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.account-assignment__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  padding: 5px 11px;
  font-size: 0.8rem;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.14);
  color: #ffd08a;
  border: 1px solid rgba(245, 158, 11, 0.24);
}

.account-assignment__sub {
  margin-top: 8px;
}

.account-assignment__sub p {
  margin: 0;
  color: var(--text-secondary);
}

.account-assignment__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  flex: 0 0 auto;
}

.account-assignment__btn {
  padding: 9px 15px;
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0;
}

.account-assignment__actions .btn-primary.account-assignment__btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.98) 0%, rgba(249, 115, 22, 0.98) 58%, rgba(250, 204, 21, 0.96) 100%);
  box-shadow: 0 14px 30px -12px rgba(245, 158, 11, 0.62);
}
.account-assignment__actions .btn-primary.account-assignment__btn:hover {
  box-shadow: 0 18px 38px -14px rgba(245, 158, 11, 0.7);
}

.account-assignment__actions .btn-secondary.account-assignment__btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}
.account-assignment__actions .btn-secondary.account-assignment__btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.account-assignment__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-assignment__chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 0;
}

.account-assignment__empty {
  margin: 0;
}

.account-assignment__empty h4 {
  margin: 0 0 8px;
}

.account-assignment__empty p {
  margin: 0;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1.2;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.account-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.5);
}

.account-chip__name {
  font-weight: 700;
  color: var(--text-primary);
}

.account-chip__role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: capitalize;
}

.account-chip[data-role="manager"] {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.08);
}
.account-chip[data-role="manager"]:hover {
  border-color: rgba(245, 158, 11, 0.35);
}
.account-chip[data-role="manager"] .account-chip__role {
  color: #ffd08a;
  border-color: rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.1);
}

.account-chip[data-role="engineer"] {
  border-color: rgba(34, 211, 238, 0.2);
  background: rgba(34, 211, 238, 0.08);
}
.account-chip[data-role="engineer"]:hover {
  border-color: rgba(34, 211, 238, 0.35);
}
.account-chip[data-role="engineer"] .account-chip__role {
  color: #8ce7f7;
  border-color: rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.12);
}

.account-chip[data-role="driver"] {
  border-color: rgba(59, 130, 246, 0.2);
  background: rgba(59, 130, 246, 0.08);
}
.account-chip[data-role="driver"]:hover {
  border-color: rgba(59, 130, 246, 0.35);
}
.account-chip[data-role="driver"] .account-chip__role {
  color: #9fc5ff;
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.12);
}

.account-chip__remove {
  margin-left: 2px;
  appearance: none;
  border: 1px solid rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  color: #ffbdbd;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-weight: 900;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.account-chip__remove:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

@media (max-width: 720px) {
  .account-assignment__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .account-assignment__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .account-assignment__title {
    width: 100%;
  }
  .account-chip {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================
   Liquid Glass Modal (Account Picker) – matches public/accounts.html
   ============================================ */
.glass-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.glass-modal {
  position: relative;
  width: min(1100px, 96vw);
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  color: #e7eefc;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 80px -10px rgba(0, 0, 0, 0.5),
    0 0 60px -20px rgba(99, 102, 241, 0.12);
  overflow: hidden;
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
}

.glass-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.1) 70%, transparent 95%);
  pointer-events: none;
}

.glass-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-modal__title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.glass-modal__mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.75), rgba(34, 211, 238, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 14px 30px rgba(99, 102, 241, 0.22);
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
  line-height: 1;
}

.glass-modal__title-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f0f4ff;
}

.glass-modal__close {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.88);
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-modal__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.35);
}

.glass-modal__toolbar {
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 0;
}

/* Search – matches accounts.html .search */
.glass-modal__search {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.glass-modal__search:focus-within {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.glass-modal__search-icon {
  opacity: 0.8;
  flex-shrink: 0;
  pointer-events: none;
}

.glass-modal__search .glass-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 13px;
  color: #e7eefc;
}
.glass-modal__search .glass-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.glass-modal__search .glass-input:focus {
  box-shadow: none;
}

/* Role filters – matches accounts.html .filters button */
.glass-seg {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}

.glass-seg__btn {
  appearance: none;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-seg__btn:hover:not([aria-pressed="true"]):not(.is-active) {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.07);
}
.glass-seg__btn:active {
  transform: translateY(1px);
}
.glass-seg__btn.is-active,
.glass-seg__btn[aria-pressed="true"] {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.15));
  color: #fff;
}

.glass-modal__bulk {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.glass-modal__sel {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  font-size: 13px;
}

.glass-mini-btn {
  appearance: none;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.glass-mini-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.25);
}
.glass-mini-btn--success {
  border-color: rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}
.glass-mini-btn--success:hover {
  background: rgba(255, 255, 255, 0.07);
}
.glass-mini-btn--danger {
  border: none;
  background: transparent;
  color: #ffbdbd;
}
.glass-mini-btn--danger:hover {
  color: #ffcfcf;
}

.glass-modal__body {
  padding: 14px 20px 18px;
  overflow: auto;
  flex: 1 1 auto;
  max-height: min(70vh, 520px);
}

.glass-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}
@media (min-width: 520px) {
  .glass-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 680px) {
  .glass-modal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .glass-modal__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.glass-modal__grid::-webkit-scrollbar {
  width: 8px;
}
.glass-modal__grid::-webkit-scrollbar-track {
  background: transparent;
}
.glass-modal__grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.glass-modal__empty {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.09);
  color: rgba(231, 238, 252, 0.55);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 500;
}

.glass-modal__footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.glass-modal__footer-btn {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 14px;
  transition: all 0.2s;
}

/* Optional warning above grid (e.g. Assign Driver picker) */
.glass-modal__warn {
  margin: 0 20px 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 80, 110, 0.35);
  background: rgba(255, 80, 110, 0.1);
  color: rgba(231, 238, 252, 0.9);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

/* Account cards – match accounts.html .card */
.glass-account-card {
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
  overflow: hidden;
}
.glass-account-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 8%, rgba(255, 255, 255, 0.13) 50%, transparent 92%);
  opacity: 0;
  transition: opacity 0.25s;
}
.glass-account-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.06) inset,
    0 8px 28px rgba(99, 102, 241, 0.09),
    0 0 18px -8px rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}
.glass-account-card:hover::after {
  opacity: 1;
}
.glass-account-card:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}
.glass-account-card.is-selected {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.05));
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.1) inset,
    0 10px 36px rgba(34, 211, 238, 0.12),
    0 0 24px -8px rgba(34, 211, 238, 0.18);
}

.glass-account-card .glass-account-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.glass-account-card__avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(34, 211, 238, 0.12));
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  flex: 0 0 auto;
}
.glass-account-card[data-role="manager"] .glass-account-card__avatar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(251, 191, 36, 0.12));
  color: #fcd34d;
}
.glass-account-card[data-role="engineer"] .glass-account-card__avatar {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(34, 211, 238, 0.12));
  color: #a5b4fc;
}
.glass-account-card[data-role="driver"] .glass-account-card__avatar {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(52, 211, 153, 0.12));
  color: #6ee7b7;
}

.glass-account-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.glass-account-card__name {
  font-weight: 700;
  font-size: 14px;
  color: #f0f4ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glass-account-card__role {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.65;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
}

.glass-account-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  flex-shrink: 0;
}

.glass-account-card__tick {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 12px;
  color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s;
}
.glass-account-card.is-selected .glass-account-card__tick {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #10b981, #22c55e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

/* Assign Driver picker: selected state for multi-select */
.glass-account-card--selected {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.05));
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.1) inset,
    0 10px 36px rgba(34, 211, 238, 0.12),
    0 0 24px -8px rgba(34, 211, 238, 0.18);
}
.glass-account-card--selected::before {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(34, 211, 238, 0.35);
  animation: drvCheckPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes drvCheckPop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Assign Driver picker: error state when driver already assigned */
.glass-account-card--error {
  outline: 2px solid rgba(239, 68, 68, 0.5);
  outline-offset: 2px;
}

/* Assign Accounts modal specific refresh */
.glass-modal--accounts {
  width: min(1160px, 96vw);
  max-height: min(90vh, 860px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(125, 211, 252, 0.12), transparent 42%),
    radial-gradient(90% 90% at 100% 0%, rgba(168, 85, 247, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(14, 20, 34, 0.97) 0%, rgba(8, 12, 22, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 84px -24px rgba(0, 0, 0, 0.72),
    0 0 42px -22px rgba(56, 189, 248, 0.24);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}

.glass-modal--accounts::before {
  height: 2px;
  background: linear-gradient(90deg, transparent 4%, rgba(125, 211, 252, 0.82) 26%, rgba(96, 165, 250, 0.55) 62%, transparent 96%);
}

.glass-modal--accounts .glass-modal__header {
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(125, 211, 252, 0.08), rgba(125, 211, 252, 0));
}

.glass-modal--accounts .glass-modal__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(34, 211, 238, 0.66));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 10px 26px -10px rgba(59, 130, 246, 0.44);
}

.glass-modal--accounts .glass-modal__title-text {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.glass-modal--accounts .glass-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.glass-modal--accounts .glass-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
}

.glass-modal__toolbar--accounts {
  padding: 12px 16px 10px;
  gap: 8px;
}

.glass-modal--accounts .glass-modal__search {
  min-width: 260px;
  flex: 1 1 420px;
  padding: 9px 12px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.glass-modal--accounts .glass-modal__search:focus-within {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.glass-modal--accounts .glass-modal__search-icon {
  opacity: 0.6;
}

.glass-modal--accounts .glass-modal__search .glass-input {
  font-size: 0.92rem;
}

.glass-modal--accounts .glass-seg {
  gap: 6px;
}

.glass-modal--accounts .glass-seg__btn,
.glass-modal--accounts .glass-mini-btn {
  padding: 7px 11px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.8rem;
}

.glass-modal--accounts .glass-seg__btn.is-active,
.glass-modal--accounts .glass-seg__btn[aria-pressed="true"] {
  border-color: rgba(59, 130, 246, 0.32);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  box-shadow: 0 8px 22px -16px rgba(59, 130, 246, 0.6);
}

.glass-modal__bulk--accounts {
  gap: 8px;
}

.glass-modal--accounts .glass-modal__sel {
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.84rem;
}

.glass-modal--accounts .glass-mini-btn--success:hover,
.glass-modal--accounts .glass-mini-btn:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.glass-modal--accounts .glass-mini-btn--danger {
  padding-left: 4px;
  padding-right: 4px;
  border-color: transparent;
  background: transparent;
  color: #ffb1b1;
}

.glass-modal--accounts .glass-modal__body--accounts {
  padding: 10px 16px 14px;
}

.glass-modal--accounts .glass-modal__grid--accounts {
  gap: 8px;
}

.glass-modal--accounts .glass-account-card {
  min-height: 78px;
  padding: 12px 14px;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 12% 18%, rgba(125, 211, 252, 0.06), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.glass-modal--accounts .glass-account-card:hover {
  border-color: rgba(125, 211, 252, 0.36);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08) inset,
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 0 24px -14px rgba(56, 189, 248, 0.2);
}

.glass-modal--accounts .glass-account-card.is-selected {
  border-color: rgba(34, 211, 238, 0.48);
  background:
    radial-gradient(circle at 12% 18%, rgba(52, 211, 153, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 39, 51, 0.86), rgba(9, 25, 35, 0.82));
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12) inset,
    0 14px 26px rgba(0, 0, 0, 0.3),
    0 0 26px -12px rgba(34, 211, 238, 0.3);
}

.glass-modal--accounts .glass-account-card__row {
  gap: 10px;
}

.glass-modal--accounts .glass-account-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.84rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) inset;
}

.glass-modal--accounts .glass-account-card__name {
  font-size: 0.86rem;
}

.glass-modal--accounts .glass-account-card__role {
  margin-top: 4px;
  padding: 2px 7px;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.75);
}

.glass-modal--accounts .glass-account-card__tick {
  right: 10px;
  width: 20px;
  height: 20px;
  font-size: 0.72rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.glass-modal--accounts .glass-account-card.is-selected .glass-account-card__tick {
  background: linear-gradient(135deg, #22c55e, #34d399);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 18px -6px rgba(52, 211, 153, 0.6);
}

.glass-modal__footer--accounts {
  padding: 10px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}

.glass-modal--accounts .glass-modal__footer-btn {
  min-width: 86px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.82rem;
}

.glass-modal--accounts .glass-modal__footer-btn.btn-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.98), rgba(96, 165, 250, 0.96));
  box-shadow: 0 18px 28px -16px rgba(59, 130, 246, 0.55);
}

.glass-modal--accounts .glass-modal__footer-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

.glass-modal--driver {
  width: min(1080px, 95vw);
  max-height: min(86vh, 760px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 30%),
    radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(18, 22, 31, 0.97) 0%, rgba(11, 14, 20, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 34px 92px -18px rgba(0, 0, 0, 0.62),
    0 0 34px -16px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(24px) saturate(135%);
  -webkit-backdrop-filter: blur(24px) saturate(135%);
}

.glass-modal--driver::before {
  height: 2px;
  background: linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, 0.2) 18%, rgba(59, 130, 246, 0.7) 42%, rgba(34, 211, 238, 0.42) 68%, transparent 96%);
}

.glass-modal--driver .glass-modal__header {
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
}

.glass-modal--driver .glass-modal__mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.88), rgba(34, 211, 238, 0.68));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 14px 34px rgba(59, 130, 246, 0.22);
}

.glass-modal--driver .glass-modal__title-text {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.glass-modal--driver .glass-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.glass-modal--driver .glass-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.09);
}

.glass-modal__toolbar--driver {
  padding: 14px 18px 12px;
  gap: 12px;
}

.glass-modal--driver .glass-modal__search {
  min-width: 240px;
  flex: 1 1 420px;
  padding: 12px 16px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
}

.glass-modal--driver .glass-modal__search:focus-within {
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.glass-modal--driver .glass-seg {
  gap: 10px;
}

.glass-modal--driver .glass-seg__btn {
  padding: 10px 14px;
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.glass-modal--driver .glass-seg__btn.is-active,
.glass-modal--driver .glass-seg__btn[aria-pressed="true"] {
  border-color: rgba(59, 130, 246, 0.32);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  box-shadow: 0 8px 22px -16px rgba(59, 130, 246, 0.6);
}

.glass-modal--driver .glass-modal__warn {
  margin: 0 18px 10px;
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.1);
}

.glass-modal--driver .glass-modal__body--driver {
  padding: 14px 18px 18px;
}

.glass-modal--driver .glass-modal__grid--driver {
  gap: 12px;
}

.glass-modal--driver .glass-account-card {
  min-height: 88px;
  padding: 15px 18px;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.04), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.glass-modal--driver .glass-account-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.05) inset,
    0 14px 30px rgba(0, 0, 0, 0.22),
    0 0 28px -12px rgba(56, 189, 248, 0.15);
}

.glass-modal--driver .glass-account-card__row {
  gap: 14px;
}

.glass-modal--driver .glass-account-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16) inset;
}

.glass-modal--driver .glass-account-card__name {
  font-size: 1rem;
}

.glass-modal--driver .glass-account-card__role {
  margin-top: 8px;
  padding: 4px 9px;
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.75);
}

.glass-modal--driver .glass-account-card--selected {
  border-color: rgba(34, 211, 238, 0.55);
  background:
    radial-gradient(circle at 12% 18%, rgba(52, 211, 153, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 39, 51, 0.86), rgba(9, 25, 35, 0.82));
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12) inset,
    0 16px 34px rgba(0, 0, 0, 0.24),
    0 0 34px -10px rgba(34, 211, 238, 0.3);
}

.glass-modal--driver .glass-account-card--selected::before {
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  box-shadow: 0 0 18px -6px rgba(59, 130, 246, 0.6);
}

.glass-modal__footer--driver {
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}

.glass-modal--driver .glass-modal__footer-btn {
  min-width: 92px;
  padding: 11px 18px;
  border-radius: 15px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .glass-modal__toolbar--accounts {
    align-items: stretch;
  }

  .glass-modal__bulk--accounts {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .glass-modal__toolbar--driver {
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .glass-modal--accounts .glass-modal__title-text {
    font-size: 1.45rem;
  }

  .glass-modal--accounts .glass-modal__search {
    flex-basis: 100%;
    min-width: 0;
  }

  .glass-modal--driver .glass-modal__title-text {
    font-size: 1.35rem;
  }

  .glass-modal--driver .glass-modal__search {
    flex-basis: 100%;
    min-width: 0;
  }
}

/* Scrollbar (WebKit) */
*::-webkit-scrollbar { 
  width: 10px; 
  height: 10px; 
}

*::-webkit-scrollbar-thumb { 
  background: rgba(100, 116, 139, 0.4); 
  border-radius: 6px; 
  border: 2px solid var(--bg-primary);
}

*::-webkit-scrollbar-thumb:hover { 
  background: rgba(100, 116, 139, 0.6); 
}

*::-webkit-scrollbar-track { 
  background: var(--bg-secondary); 
}

/* Focus Visible */
:where(button, a, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Utility Classes */
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  white-space: nowrap; 
  border: 0; 
}

.muted { 
  color: var(--text-muted); 
}

.hidden { 
  display: none !important; 
}

.text-center { 
  text-align: center; 
}

.text-secondary { 
  color: var(--text-secondary); 
}

/* Legacy Class Compatibility */
.menu-header, 
.header { 
  background: var(--bg-card); 
  border-bottom: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.menu-container, 
.race-section, 
.timeline-container, 
.gantt-container, 
.checklist, 
.team-structure { 
  background: var(--bg-card); 
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}

.sheet-list li, 
.race-card, 
.phase-card { 
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* Hover Effects */
.hover-raise { 
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; 
}

.hover-raise:hover { 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-lg); 
  border-color: var(--border-accent); 
}

/* Print Tweaks */
@media print {
  body { 
    background: #fff !important; 
    color: #000; 
  }
  .btn, button, a.btn { 
    display: none !important; 
  }
}

/* Gantt Chart - Today Highlight */
.gantt-day-item.today {
  background: var(--accent-green);
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.gantt-timeline { 
  position: relative; 
}

.gantt-day-highlight-overlay {
  position: absolute;
  top: 0; 
  bottom: 0;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
  border-left: 2px solid rgba(16, 185, 129, 0.4);
  border-right: 2px solid rgba(16, 185, 129, 0.4);
  pointer-events: none;
  z-index: 1;
  display: none;
}

.gantt-timeline .gantt-bar { 
  position: absolute; 
  z-index: 2; 
}

/* Animation Utilities */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive Typography */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}
