/* SchoolOpsPro — Full Design System */
:root {
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #0f172a;
  --bg-hover: #1a2740;
  --primary: #4f46e5;
  --primary-light: #818cf8;
  --primary-dark: #3730a3;
  --accent: #ec4899;
  --accent-light: #f472b6;
  --success: #34d399;
  --success-light: #34d399;
  --warning: #f59e0b;
  --warning-light: #fbbf24;
  --danger: #dc2626;
  --danger-light: #f87171;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --border-light: #475569;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-hand: 'Patrick Hand', cursive;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.15s ease;
}
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#main-content {
  flex: 1;
  padding: var(--space-4);
  max-width: 1152px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 768px) {
  body {
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
  }
  #main-content {
    padding: var(--space-3) var(--safe-left) var(--safe-bottom) var(--safe-right);
  }
  h1 {
    font-size: clamp(20px, 4vw, 24px);
  }
  h2 {
    font-size: clamp(17px, 3vw, 20px);
  }
  h3 {
    font-size: clamp(16px, 2.5vw, 18px);
  }
  .btn-sm {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 14px;
  }
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
h1 {
  font-size: var(--text-title1);
}
h2 {
  font-size: var(--text-title2);
}
h3 {
  font-size: var(--text-title3);
}
h4 {
  font-size: var(--text-subhead);
  font-weight: 600;
  color: var(--text-dim);
}
h5 {
  font-size: var(--text-footnote);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h6 {
  font-size: var(--text-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  text-decoration: underline;
  color: var(--primary);
}
img {
  max-width: 100%;
  height: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-heading);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-p {
  background: var(--primary);
  color: white;
}
.btn-p:hover {
  background: var(--primary-dark);
}
.btn-g {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-g:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text);
}
.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: #dc2626;
}
button,
.btn,
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.btn-xs {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 11px;
}
.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}
.btn-hero {
  min-height: 56px;
  padding: 16px 32px;
  font-size: clamp(16px, 2.5vw, 18px);
  border-radius: var(--radius-pill);
  font-weight: 800;
}
.btn-icon {
  min-height: 36px;
  min-width: 36px;
  padding: var(--space-2);
  justify-content: center;
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: var(--transition);
}
.card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

/* ── Forms ── */
input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 14px;
}
input[type='text'],
input[type='email'],
input[type='password'],
input[type='number'],
input[type='search'],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: var(--transition);
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
textarea {
  resize: vertical;
  min-height: 80px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-weight: 500;
}
input[type='checkbox'] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* ── Modern Navigation ── */
.nav-bar {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.5vw, 18px);
  font-weight: 800;
}
.nav-logo:hover {
  text-decoration: none;
}
.nav-logo-icon {
  font-size: clamp(18px, 3.5vw, 22px);
}
.nav-logo-accent {
  color: var(--primary-light);
}
.nav-ham {
  display: none;
  background: none;
  border: none;
  font-size: clamp(18px, 3.5vw, 22px);
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
}
.nav-link {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}
.nav-link-sm {
  font-size: 12px;
}
.nav-link-signin {
  color: var(--primary-light);
  border: 1px solid var(--primary);
  font-weight: 600;
}
.nav-link-signin:hover {
  background: var(--primary);
  color: white;
}
.nav-spacer {
  flex: 1;
}
.nav-avatar-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.nav-avatar-link:hover {
  text-decoration: none;
  border-color: var(--primary);
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-name {
  font-size: 13px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.footer-content {
  max-width: 1152px;
  margin: 0 auto;
  padding: var(--space-7) 24px;
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-logo {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
}
.footer-desc {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 13px;
  color: var(--text);
  margin-bottom: var(--space-2);
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 2px 0;
}
.footer-col a:hover {
  color: var(--primary-light);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1152px;
  margin: 0 auto;
  padding: var(--space-3) 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
}
.footer-bottom a {
  color: var(--text-dim);
}
@media (max-width: 768px) {
  .nav-ham {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3);
    gap: var(--space-1);
    box-shadow: var(--shadow);
  }
  .nav-open .nav-links {
    display: flex;
  }
  .nav-spacer {
    display: none;
  }
  .footer-content {
    flex-direction: column;
    gap: var(--space-5);
  }
}
/* ── Legacy Nav (overridden above) ── */
.nav-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-bar .logo {
  font-family: var(--font-heading);
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav-bar .logo span {
  color: var(--primary-light);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.nav-bar a.nav-link {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-bar a.nav-link:hover {
  color: var(--text);
  background: var(--bg-hover);
  text-decoration: none;
}
.flex-spacer {
  flex: 1;
}
.ham {
  display: none;
  background: none;
  border: none;
  font-size: clamp(20px, 4vw, 24px);
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: var(--space-6) 24px;
  color: var(--text-dim);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: var(--space-8);
}
.footer a {
  color: var(--primary-light);
  text-decoration: none;
}
.footer nav {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ── States ── */
.state-box {
  text-align: center;
  padding: var(--space-8) 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.state-box .icon {
  font-size: 48px;
  margin-bottom: var(--space-3);
}
.state-box h3 {
  font-size: clamp(16px, 2.5vw, 18px);
  margin-bottom: 6px;
}
.state-box p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: var(--space-4);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Toast ── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: var(--space-3) 24px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 10000;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
}
.toast.show {
  opacity: 1;
}
.toast.error {
  background: var(--danger);
}
.toast.warning {
  background: var(--warning);
}

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show {
  display: flex;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-lg);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-heading);
}
.badge-admin {
  background: var(--primary);
  color: white;
}
.badge-active {
  background: var(--success);
  color: white;
}
.badge-premium {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: white;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  padding: var(--space-2) 18px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab-btn:hover {
  color: var(--text);
}
.tab-btn.active {
  color: var(--primary-light);
  border-bottom-color: var(--primary);
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
th {
  color: var(--text-dim);
  font-weight: 600;
  background: var(--bg);
}
tr:hover td {
  background: var(--bg-hover);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ham {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-3) 24px;
    gap: var(--space-1);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Projector mode ── */
.projector-mode {
  font-size: 1.4em;
}
.projector-mode .game-container {
  max-width: 95vw;
  padding: var(--space-4);
}
.projector-mode .controls {
  display: none;
}
.projector-mode .result-overlay .result-box {
  padding: var(--space-4);
  font-size: 1.2em;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .ws-wrap {
    flex-direction: column;
    padding: var(--space-3);
  }
  .sidebar {
    flex: none;
    width: 100%;
    max-height: 40vh;
    overflow-y: auto;
  }
  .canvas-area {
    position: relative;
    top: 0;
  }
  .fc-layout {
    flex-direction: column;
  }
  .fc-sidebar {
    flex: none;
    width: 100%;
  }
  .fc-canvas-area {
    position: relative;
    top: 0;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lib-grid,
  .mw-grid,
  .mf-grid,
  .class-grid {
    grid-template-columns: 1fr;
  }
  .adm-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pf-hero {
    text-align: center;
    justify-content: center;
  }
  .tc-teams {
    flex-direction: column;
  }
  .board {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .fc-toolbar,
  .mw-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links a {
    font-size: 11px;
    padding: 4px 8px;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .adm-tabs {
    flex-wrap: nowrap;
  }
}
html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
input,
button,
select,
textarea {
  font-size: 16px;
  touch-action: manipulation;
}
img {
  max-width: 100%;
  height: auto;
}

/* ── Touch & Orientation (S3.2 + S3.6) ── */
html {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button,
a,
.btn,
.nav-link,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
.btn,
.nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
input,
select,
textarea {
  min-height: 44px;
  font-size: 16px;
}
@media (orientation: landscape) {
  .ws-wrap {
    flex-direction: row;
  }
  .game-host-layout {
    flex-direction: row;
  }
  .sidebar {
    max-height: none;
  }
}
@media (orientation: portrait) {
  .sidebar {
    max-height: 45vh;
    overflow-y: auto;
  }
}
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .nav-link:hover {
    transform: none;
  }
  .feature-card:hover {
    transform: none;
  }
  .game-card:hover {
    transform: none;
  }
}

/* ── Component-Level Mobile (Modals, Panels, Editors) ── */
@media (max-width: 640px) {
  /* Block edit modal — collapse two-column to stacked */
  #editOverlay .edit-box > div:first-child {
    flex-direction: column !important;
  }
  #editOverlay .edit-box > div:first-child > div:first-child {
    flex: none;
    width: 100%;
  }
  #editOverlay .edit-box > div:first-child > div:last-child {
    flex: none;
    width: 100%;
  }
  #blockPreview {
    max-height: 200px;
  }
  /* Generic modal */
  .modal-overlay .modal-body {
    width: 95vw;
    max-height: 85vh;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    margin: 8px;
  }
  .modal-overlay .modal-body h3 {
    font-size: 15px;
  }
  .modal-overlay .modal-row {
    flex-direction: column;
    gap: var(--space-2);
  }
  .modal-overlay .modal-row > div:last-child {
    flex: none;
    width: 100%;
  }
  .modal-overlay input,
  .modal-overlay select,
  .modal-overlay textarea {
    font-size: 16px;
    padding: 10px;
  }
  .modal-overlay button {
    min-height: 40px;
    font-size: 14px;
  }

  /* Add activity panel */
  #addPanel {
    width: 100vw;
    height: auto;
    max-height: 60vh;
    overflow-y: auto;
    bottom: 0;
    left: 0;
    border-radius: var(--radius-xl) 16px 0 0;
    position: fixed;
  }
  #addPanel .add-panel {
    padding: var(--space-3);
  }
  #addPanel button {
    padding: 10px;
    font-size: 13px;
  }

  /* Flashcard editor modal */
  #fcEditOverlay .fc-grid {
    grid-template-columns: 1fr;
  }
  #fcEditOverlay .fc-edit-body {
    flex-direction: column;
    gap: var(--space-2);
  }
  #fcEditOverlay .fc-img-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  #fcEditOverlay .fc-img-tab {
    display: inline-block;
    font-size: 11px;
    padding: 6px 10px;
  }

  /* Flashcard study mode */
  .fc-study-card {
    width: 90vw;
    height: auto;
    min-height: 200px;
  }
  .fc-study-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Flashcard print layout */
  #fcPrintModal .fc-print-options {
    flex-direction: column;
    gap: var(--space-2);
  }
  #fcPrintModal canvas {
    max-width: 100%;
    height: auto;
  }

  /* Style panel + settings */
  .styles-panel,
  .settings-panel {
    width: 100%;
    padding: var(--space-3);
  }
  .styles-panel .style-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .styles-panel select,
  .styles-panel input {
    width: 100%;
  }

  /* Student fields */
  .student-fields {
    flex-direction: column;
    gap: var(--space-1);
  }
  .student-fields input {
    width: 100%;
  }

  /* Blog reading */
  .blog-post {
    max-width: 100%;
    padding: var(--space-4);
  }
  .blog-post h1 {
    font-size: clamp(18px, 3.5vw, 22px);
  }

  /* Feature request form */
  .fr-form input,
  .fr-form textarea {
    width: 100%;
    font-size: 16px;
  }

  /* Image search results */
  .img-results {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
  }
  .img-result img {
    height: 120px;
    object-fit: cover;
  }
}

.light-mode {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;
  --text: #0f172a;
  --text-dim: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.light-mode .sop-nav {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
}
.light-mode .nav-link {
  color: #64748b;
}
.light-mode .nav-link:hover {
  color: #0f172a;
  background: rgba(79, 70, 229, 0.08);
}
.light-mode .sop-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
}
.light-mode .feature-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Premium lock badges */
.premium-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-md);
  font-size: 9px;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: white;
  margin-left: 4px;
}
.premium-lock {
  position: relative;
}
.premium-lock::after {
  content: '🔒';
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 10px;
  opacity: 0.7;
}
.toast.warning {
  background: var(--warning);
}
