/* ============================================================
   CREWTHAT — APP SHELL STYLES
   Dark industrial design system for daily operations
   ============================================================ */

:root {
  --bg: #0a0b0d;
  --bg-2: #121418;
  --bg-3: #1a1d22;
  --bg-4: #22262d;
  --line: #2a2e36;
  --line-2: #383d47;
  --ink: #e8eaed;
  --ink-dim: #9097a3;
  --ink-faint: #5a616d;
  --accent: #ca3f35;
  --accent-2: #ffb020;
  --accent-glow: rgba(202, 63, 53, 0.35);
  --success: #3ecf8e;
  --warning: #ffb020;
  --danger: #ff3860;
  --info: #5ea1ff;

  --display: 'Bebas Neue', 'Impact', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  --sidebar-w: 232px;
  --topbar-h: 56px;
  --bottom-tabs-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 14px;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
}

/* === APP SHELL === */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

@media (max-width: 880px) {
  .app-shell {
    grid-template-columns: 1fr;
    padding-bottom: var(--bottom-tabs-h);
  }
}

/* === SIDEBAR === */
.sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (max-width: 880px) { .sidebar { display: none; } }

.sidebar-brand {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.2s;
}
.sidebar-brand:hover { background: var(--bg-3); }

.logo-mark {
  width: 24px;
  height: 24px;
  background: var(--accent);
  clip-path: polygon(10% 0, 90% 0, 100% 30%, 100% 70%, 90% 100%, 10% 100%, 0 70%, 0 30%);
  flex-shrink: 0;
  position: relative;
}
.logo-mark::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--bg-2);
  clip-path: polygon(10% 0, 90% 0, 100% 30%, 100% 70%, 90% 100%, 10% 100%, 0 70%, 0 30%);
}
.logo-mark::before {
  content: '';
  position: absolute;
  inset: 9px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 1;
}

.sidebar-brand-text {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.sidebar-section {
  padding: 16px 20px 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}
.sidebar-link:hover { background: var(--bg-3); color: var(--ink); }
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(202,63,53,0.08), transparent 80%);
  color: var(--ink);
  border-left-color: var(--accent);
}
.sidebar-link.active .sidebar-icon { color: var(--accent); }

.sidebar-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.sidebar-link:hover .sidebar-icon { color: var(--ink); }

.sidebar-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  background: rgba(202,63,53,0.12);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.user-info { flex: 1; min-width: 0; }
.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-role {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.user-menu-btn {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}
.user-menu-btn:hover { color: var(--ink); }

/* === BOTTOM TABS === */
.bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  height: var(--bottom-tabs-h);
  z-index: 90;
  padding: 0 4px;
}

@media (max-width: 880px) {
  .bottom-tabs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }
}

.bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--ink-faint);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 4px;
  position: relative;
}
.bottom-tab:hover, .bottom-tab.active { color: var(--accent); }
.bottom-tab.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--accent);
  border-radius: 0 0 2px 2px;
}

.bottom-tab-icon {
  font-size: 18px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === MAIN === */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 20, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (max-width: 600px) { .topbar { padding: 0 16px; } }

.mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
@media (max-width: 880px) { .mobile-brand { display: flex; } }

.mobile-brand .logo-mark { width: 22px; height: 22px; }
.mobile-brand .logo-mark::after { inset: 4px; background: var(--bg); }
.mobile-brand .logo-mark::before { inset: 8px; }

.mobile-brand-text {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
}

.page-title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.03em;
}

@media (max-width: 880px) { .page-title { display: none; } }

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

.search-input {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  width: 240px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(202,63,53,0.2);
}
.search-input::placeholder { color: var(--ink-faint); }
@media (max-width: 720px) { .search-input { display: none; } }

.icon-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 16px;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.icon-btn.primary:hover { background: var(--ink); border-color: var(--ink); }

/* === CONTENT === */
.content {
  flex: 1;
  padding: 28px;
  max-width: 100%;
}
@media (max-width: 600px) { .content { padding: 20px 16px; } }

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.content-title-group h1 {
  font-family: var(--display);
  font-size: 36px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.content-title-group .subtitle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 4px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.secondary {
  background: var(--bg-3);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn.secondary:hover { background: var(--bg-4); border-color: var(--ink-faint); }
.btn.ghost {
  background: transparent;
  color: var(--ink-dim);
  border-color: transparent;
}
.btn.ghost:hover { color: var(--ink); background: var(--bg-3); }
.btn.danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn.danger:hover { background: var(--danger); color: var(--bg); }

/* === STAT TILES === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  transition: border-color 0.2s;
}
.stat-tile:hover { border-color: var(--line-2); }

.stat-tile-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-tile-value {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-tile-value .unit {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-dim);
  letter-spacing: 0.05em;
}

.stat-tile.accent .stat-tile-value { color: var(--accent); }
.stat-tile.success .stat-tile-value { color: var(--success); }
.stat-tile.warning .stat-tile-value { color: var(--warning); }

.stat-tile-trend {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--success);
  letter-spacing: 0.06em;
}
.stat-tile-trend.neg { color: var(--danger); }

/* === PANELS === */
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.panel-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
}

.panel-body { padding: 18px; }
.panel-body.flush { padding: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 18px; }

@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-sidebar { grid-template-columns: 1fr; }
}

/* === DATA TABLES === */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  background: var(--bg-3);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink);
}

.data-table tbody tr { transition: background 0.15s; cursor: pointer; }
.data-table tbody tr:hover { background: var(--bg-3); }
.data-table tbody tr:last-child td { border-bottom: none; }

.td-mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.td-primary { color: var(--ink); font-weight: 600; }
.td-secondary { color: var(--ink-dim); font-size: 12px; }
.td-right { text-align: right; }

/* === STATUS CHIPS === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.chip.available, .chip.in, .chip.paid, .chip.signed {
  color: var(--success);
  border-color: rgba(62,207,142,0.4);
  background: rgba(62,207,142,0.08);
}
.chip.booked, .chip.out, .chip.invoiced, .chip.prepped {
  color: var(--accent);
  border-color: rgba(202,63,53,0.4);
  background: rgba(202,63,53,0.08);
}
.chip.warning, .chip.pending {
  color: var(--warning);
  border-color: rgba(255,176,32,0.4);
  background: rgba(255,176,32,0.08);
}
.chip.danger, .chip.damaged, .chip.cancelled {
  color: var(--danger);
  border-color: rgba(255,56,96,0.4);
  background: rgba(255,56,96,0.08);
}
.chip.neutral, .chip.quote {
  color: var(--ink-dim);
  border-color: var(--line-2);
  background: var(--bg-3);
}
.chip.live {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(202,63,53,0.15);
}
.chip.live::before { animation: pulse 2s infinite; }

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

/* === AVATARS === */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.avatar.xl { width: 72px; height: 72px; font-size: 28px; }

.avatar-c-1 { background: linear-gradient(135deg, #ca3f35, #ffb020); }
.avatar-c-2 { background: linear-gradient(135deg, #3ecf8e, #5ea1ff); }
.avatar-c-3 { background: linear-gradient(135deg, #7a5cff, #ff5fa1); }
.avatar-c-4 { background: linear-gradient(135deg, #ffb020, #ca3f35); }
.avatar-c-5 { background: linear-gradient(135deg, #5ea1ff, #7a5cff); }

.avatar-group { display: inline-flex; align-items: center; }
.avatar-group .avatar {
  border: 2px solid var(--bg-2);
  margin-left: -8px;
}
.avatar-group .avatar:first-child { margin-left: 0; }

/* === FILTERS === */
.filters {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--line-2); color: var(--ink); }
.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(202,63,53,0.08);
}
.filter-chip .count { margin-left: 6px; color: var(--ink-faint); font-size: 10px; }
.filter-chip.active .count { color: var(--accent); }

/* === EMPTY / LOADING === */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-dim);
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}
.empty-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.empty-text { font-size: 14px; color: var(--ink-dim); margin-bottom: 20px; }

.skeleton {
  background: linear-gradient(90deg, var(--bg-3), var(--bg-4), var(--bg-3));
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 40px auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === MODALS === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  transform: scale(0.96);
  transition: transform 0.2s;
}
.modal-backdrop.open .modal { transform: scale(1); }

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
}
.modal-close {
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
}
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 22px; }
.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* === FORMS === */
.field-group { margin-bottom: 16px; }

.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(202,63,53,0.15);
}

.field-textarea {
  min-height: 100px;
  resize: vertical;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* === TOAST === */
.toast {
  position: fixed;
  bottom: calc(var(--bottom-tabs-h) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--success);
  border-radius: 4px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.3s;
  max-width: 90%;
}
.toast.shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (min-width: 881px) { .toast { bottom: 20px; } }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

/* === UTILITIES === */
.hazard-bar {
  height: 4px;
  background: repeating-linear-gradient(45deg, var(--accent) 0 10px, #000 10px 20px);
}

.spacer { flex: 1; }
.text-dim { color: var(--ink-dim); }
.text-faint { color: var(--ink-faint); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.mono { font-family: var(--mono); }

/* === VIEW TOGGLE === */
.view-toggle {
  display: inline-flex;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px;
}
.view-toggle button {
  padding: 6px 14px;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  font-weight: 600;
  transition: all 0.15s;
}
.view-toggle button.active {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================================
   EMAIL VERIFICATION — soft banner + hard lock
   ============================================================ */
.verify-banner {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: rgba(255, 176, 32, 0.12);
  border-bottom: 1px solid rgba(255, 176, 32, 0.35);
  color: var(--ink);
  font-size: 13px;
  grid-column: 1 / -1;
}
.verify-banner.warning {
  background: rgba(202, 63, 53, 0.14);
  border-bottom-color: rgba(202, 63, 53, 0.45);
}
.verify-banner.critical {
  background: rgba(255, 56, 96, 0.14);
  border-bottom-color: rgba(255, 56, 96, 0.55);
  animation: verify-pulse 2.5s infinite;
}
@keyframes verify-pulse {
  0%, 100% { background-color: rgba(255, 56, 96, 0.14); }
  50% { background-color: rgba(255, 56, 96, 0.22); }
}

.verify-banner-inner {
  max-width: 100%;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.verify-banner-icon {
  color: var(--warning);
  font-size: 16px;
  flex-shrink: 0;
}
.verify-banner.warning .verify-banner-icon { color: var(--accent); }
.verify-banner.critical .verify-banner-icon { color: var(--danger); }

.verify-banner-msg { flex: 1; line-height: 1.4; }
.verify-banner-msg strong { color: var(--ink); font-weight: 700; }

.verify-banner-email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  white-space: nowrap;
}

.verify-banner-btn {
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.verify-banner-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.verify-banner-btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.verify-banner-btn.ghost:hover:not(:disabled) {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.verify-banner-btn:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 640px) {
  .verify-banner-inner { padding: 10px 16px; gap: 8px; }
  .verify-banner-email { display: none; }
}

/* --- HARD LOCK MODAL (day 5+) --- */
.verify-lock {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: verify-fade-in 0.25s ease-out;
}
@keyframes verify-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.verify-lock-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--danger);
  border-radius: 10px;
  padding: 44px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  position: relative;
}
.verify-lock-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(45deg, var(--danger) 0 10px, #000 10px 20px);
  border-radius: 10px 10px 0 0;
}

.verify-lock-icon {
  font-size: 44px;
  margin-bottom: 20px;
  filter: grayscale(0.3);
}

.verify-lock-title {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--ink);
}

.verify-lock-sub {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.verify-lock-sub strong {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.verify-lock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.verify-lock-actions .btn { justify-content: center; padding: 12px 20px; }

.verify-lock-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
