/* BLT-SafeCloak — BLT Design Style */

:root {
  --primary: #3C50E0;
  --primary-dark: #2a3bb8;
  --secondary: #80CAEE;
  --bg-dark: #1C2434;
  --bg-medium: #24303F;
  --bg-card: #2E3A47;
  --bg-light: #F5F7FD;
  --text-light: #DEE4EE;
  --text-muted: #AEB7C0;
  --success: #219653;
  --danger: #D34053;
  --warning: #FFA70B;
  --stroke: #E2E8F0;
  --stroke-dark: #2E3A47;
  --shadow: 0px 8px 13px -3px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --font-sans: 'Inter', 'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(28, 36, 52, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stroke-dark);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.navbar-brand .shield-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text-light);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  background: rgba(60, 80, 224, 0.15);
  color: #fff;
}

.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 0.45rem 1rem !important;
  border-radius: 6px;
  font-weight: 600;
}

.btn-nav:hover {
  background: var(--primary-dark) !important;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-medium);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--stroke-dark);
    gap: 0.25rem;
    align-items: flex-start;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { width: 100%; padding: 0.6rem 1rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s;
  line-height: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(60, 80, 224, 0.4); }

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--stroke-dark);
}
.btn-secondary:hover { border-color: var(--primary); color: #fff; }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1a7a42; }

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

.btn-warning { background: var(--warning); color: #1C2434; }
.btn-warning:hover { background: #e09200; }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-icon { padding: 0.6rem; border-radius: 50%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--stroke-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-body { padding: 1.4rem; }

/* ── Hero ── */
.hero {
  padding: 120px 1.5rem 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(60, 80, 224, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(60, 80, 224, 0.15);
  border: 1px solid rgba(60, 80, 224, 0.4);
  color: var(--secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Security Badge ── */
.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Feature Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 0 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-icon.blue { background: rgba(60, 80, 224, 0.15); }
.feature-icon.green { background: rgba(33, 150, 83, 0.15); }
.feature-icon.purple { background: rgba(128, 202, 238, 0.15); }
.feature-icon.orange { background: rgba(255, 167, 11, 0.15); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.feature-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── Section ── */
.section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 1.5rem;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.step h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-muted); }

/* ── Security Features ── */
.security-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(33, 150, 83, 0.08);
  border: 1px solid rgba(33, 150, 83, 0.2);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-light);
}

.security-list li .check { color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* ── Footer ── */
.footer {
  background: var(--bg-medium);
  border-top: 1px solid var(--stroke-dark);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer a { color: var(--secondary); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Page Layouts ── */
.page-container {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--bg-medium);
  border-bottom: 1px solid var(--stroke-dark);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.page-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-content {
  flex: 1;
  padding: 1.5rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ── Video Chat ── */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
}

.video-wrapper {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-label {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.video-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
}

.control-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  background: var(--bg-medium);
  color: #fff;
  border: 1px solid var(--stroke-dark);
}

.control-btn:hover { background: var(--primary); border-color: var(--primary); }
.control-btn.active { background: var(--danger); border-color: var(--danger); }
.control-btn.end-call { background: var(--danger); border-color: var(--danger); width: 56px; height: 56px; font-size: 1.3rem; }
.control-btn.end-call:hover { background: #b02a40; }

.enc-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--success);
  font-weight: 600;
}

/* ── Room Setup ── */
.room-setup {
  max-width: 460px;
  margin: 2rem auto;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.form-input {
  width: 100%;
  background: var(--bg-medium);
  border: 1px solid var(--stroke-dark);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Notes ── */
.notes-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  height: calc(100vh - 200px);
  min-height: 400px;
}

@media (max-width: 768px) {
  .notes-layout { grid-template-columns: 1fr; height: auto; }
}

.notes-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.note-item {
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  border: 1px solid transparent;
  margin-bottom: 0.25rem;
}

.note-item:hover { background: rgba(255,255,255,0.05); }
.note-item.active { background: rgba(60, 80, 224, 0.15); border-color: var(--primary); }

.note-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.note-item-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.note-item-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.note-editor {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--stroke-dark);
  flex-wrap: wrap;
}

.editor-title {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.75rem 1rem 0;
  outline: none;
  font-family: var(--font-sans);
}

.editor-body {
  flex: 1;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
  resize: none;
  outline: none;
  min-height: 200px;
  font-family: var(--font-sans);
}

.ai-panel {
  border-top: 1px solid var(--stroke-dark);
  padding: 1rem;
  background: rgba(128, 202, 238, 0.04);
}

.ai-panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-output {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
  background: var(--bg-medium);
  border-radius: 6px;
  padding: 0.75rem;
  min-height: 60px;
  white-space: pre-wrap;
}

/* ── Consent ── */
.consent-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .consent-layout { grid-template-columns: 1fr; }
}

.consent-form { }

.consent-log {
  overflow-y: auto;
  max-height: 600px;
}

.consent-entry {
  padding: 1rem;
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  position: relative;
}

.consent-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.consent-entry-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.consent-entry-type.given { background: rgba(33, 150, 83, 0.15); color: var(--success); }
.consent-entry-type.withdrawn { background: rgba(211, 64, 83, 0.15); color: var(--danger); }
.consent-entry-type.recorded { background: rgba(60, 80, 224, 0.15); color: var(--secondary); }

.consent-entry-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.consent-entry-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.consent-entry-details {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.consent-entry-hash {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 0.4rem;
  word-break: break-all;
}

/* ── Tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-blue { background: rgba(60, 80, 224, 0.15); color: var(--secondary); }
.tag-green { background: rgba(33, 150, 83, 0.15); color: var(--success); }
.tag-orange { background: rgba(255, 167, 11, 0.15); color: var(--warning); }
.tag-red { background: rgba(211, 64, 83, 0.15); color: var(--danger); }

/* ── Status indicators ── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.online { background: var(--success); box-shadow: 0 0 0 2px rgba(33,150,83,0.3); }
.status-dot.offline { background: var(--text-muted); }
.status-dot.connecting { background: var(--warning); animation: pulse 1.5s infinite; }

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

/* ── Alerts ── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.alert-info { background: rgba(60, 80, 224, 0.1); border: 1px solid rgba(60, 80, 224, 0.3); color: var(--text-light); }
.alert-success { background: rgba(33, 150, 83, 0.1); border: 1px solid rgba(33, 150, 83, 0.3); color: var(--text-light); }
.alert-warning { background: rgba(255, 167, 11, 0.1); border: 1px solid rgba(255, 167, 11, 0.3); color: var(--text-light); }
.alert-danger { background: rgba(211, 64, 83, 0.1); border: 1px solid rgba(211, 64, 83, 0.3); color: var(--text-light); }

/* ── Misc ── */
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-center { text-align: center; }
.text-small { font-size: 0.82rem; }

.divider {
  border: none;
  border-top: 1px solid var(--stroke-dark);
  margin: 1.5rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-success { background: rgba(33, 150, 83, 0.2); color: var(--success); }
.badge-primary { background: rgba(60, 80, 224, 0.2); color: var(--secondary); }
.badge-warning { background: rgba(255, 167, 11, 0.2); color: var(--warning); }

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tooltip {
  position: relative;
  cursor: help;
}

.tooltip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  margin-bottom: 4px;
  z-index: 100;
}

.tooltip:hover::after { opacity: 1; }

/* ── Voice meter ── */
.voice-meter {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.voice-bar {
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
  transition: height 0.1s;
  min-height: 4px;
}

/* ── Consent modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  padding: 2rem;
  position: relative;
}

.modal h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.modal p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--stroke-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Toast notifications ── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--stroke-dark);
  color: var(--text-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.toast-success { border-color: rgba(33, 150, 83, 0.4); }
.toast.toast-error { border-color: rgba(211, 64, 83, 0.4); }
.toast.toast-info { border-color: rgba(60, 80, 224, 0.4); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

select.form-input {
  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='%23AEB7C0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

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

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-wrapper span {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}
