/* SPDX-License-Identifier: MPL-2.0 */
/* Sendrify Modern Design System */

/* ========================================
   1. CSS VARIABLES & DESIGN TOKENS
   ======================================== */
:root {
  /* Brand Colors - from Logo */
  --brand-navy: #001f76;
  --brand-coral: #f96156;
  --brand-coral-dark: #e54a3f;
  --brand-coral-light: #ff7b72;
  
  /* Neutral Palette */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;
  
  /* Layout */
  --header-h: 72px;
  --footer-h: 64px;
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 31, 118, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 31, 118, 0.06), 0 1px 2px rgba(0, 31, 118, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 31, 118, 0.08), 0 2px 4px rgba(0, 31, 118, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 31, 118, 0.12), 0 4px 8px rgba(0, 31, 118, 0.06);
  --shadow-xl: 0 24px 48px rgba(0, 31, 118, 0.16), 0 8px 16px rgba(0, 31, 118, 0.08);
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  
  /* Component specific */
  --chip-h: 38px;
  --input-h: 48px;
  --btn-h: 48px;
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500&display=swap');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--gray-50) 0%, #fff 100%);
  min-height: 100vh;
}

/* Override Pico defaults */
[data-theme="light"] {
  --primary: var(--brand-navy);
  --primary-hover: #001558;
  --form-element-active-border-color: var(--brand-navy);
  --form-element-focus-color: rgba(0, 31, 118, 0.15);
}

/* ========================================
   3. TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
  color: var(--gray-600);
}

a {
  color: var(--brand-navy);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-coral);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--gray-100);
  padding: 0.2em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
}

/* ========================================
   4. LAYOUT & CONTAINERS
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--container-padding);
}

main.container {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid[data-cols="2"] {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
  .grid, .grid[data-cols="2"] {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================
   5. HEADER
   ======================================== */
.site-header {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.site-header nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav li {
  display: block;
}

.site-header .brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.site-header .logo {
  height: 32px;
  width: auto;
}

.site-header .beta-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-coral);
  background: rgba(249, 97, 86, 0.1);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
}

.site-header nav a {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
}

.site-header nav a:hover {
  color: var(--brand-navy);
}

.site-header nav a.active,
.site-header nav a strong {
  color: var(--brand-navy);
  font-weight: 600;
}

/* Hamburger Menu - Simple SVG Icon */
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--gray-700);
  stroke-width: 2;
  fill: none;
}

/* Mobile Navigation - Simple */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-header nav .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0;
    margin: 0;
    list-style: none;
    flex-direction: column;
    z-index: 1001;
  }

  .site-header nav .nav-menu.active {
    display: flex;
  }

  .site-header nav .nav-menu li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .site-header nav .nav-menu li:last-child {
    border-bottom: none;
  }

  .site-header nav .nav-menu a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 1rem;
    color: var(--gray-700);
    text-decoration: none;
    background: #fff;
  }

  .site-header nav .nav-menu a:hover,
  .site-header nav .nav-menu a:active {
    background: var(--gray-100);
    color: var(--brand-navy);
  }

  .site-header .logo {
    height: 28px;
  }

  .site-header .container {
    position: relative;
  }
}

/* Menu Overlay - Deaktiviert */
.menu-overlay {
  display: none !important;
}

/* ========================================
   6. FOOTER
   ======================================== */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-lg) 0;
}

.site-footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease-out);
}

.site-footer a:hover {
  color: var(--brand-navy);
}

@media (max-width: 640px) {
  .site-footer nav {
    flex-direction: column;
    text-align: center;
  }
}

/* ========================================
   7. BUTTONS
   ======================================== */
button, 
[type="submit"],
[type="button"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: var(--btn-h);
  padding: 0 var(--space-xl);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--brand-navy);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
}

button:hover, 
[type="submit"]:hover,
[type="button"]:hover,
.btn:hover {
  background: #001558;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

button:active, 
[type="submit"]:active,
[type="button"]:active,
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary Button */
button.secondary,
.btn.secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

button.secondary:hover,
.btn.secondary:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Coral/Accent Button */
button.accent,
.btn.accent {
  background: var(--brand-coral);
}

button.accent:hover,
.btn.accent:hover {
  background: var(--brand-coral-dark);
}

/* Ghost Button */
button.ghost,
.btn.ghost {
  background: transparent;
  color: var(--gray-700);
}

button.ghost:hover,
.btn.ghost:hover {
  background: var(--gray-100);
  box-shadow: none;
  transform: none;
}

/* Small Button */
button.sm, .btn.sm {
  height: 36px;
  padding: 0 var(--space-md);
  font-size: 0.8125rem;
}

/* Icon Button */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.icon-btn:hover {
  background: var(--gray-200);
  color: var(--brand-navy);
  transform: none;
  box-shadow: none;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-btn i {
  font-size: 1rem;
}

/* Copy Button Success State */
.icon-btn.copied {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.icon-btn.copied svg {
  stroke: #fff;
}

/* Tooltip for copy feedback */
.icon-btn::after {
  content: 'Kopiert!';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.15s ease;
  margin-bottom: 4px;
}

.icon-btn.copied::after {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 480px) {
  button, [type="submit"], [type="button"], .btn {
    width: 100%;
  }
}

/* ========================================
   8. FORM ELEMENTS
   ======================================== */
input, select, textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  height: var(--input-h);
  padding: 0 var(--space-md);
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--ease-out);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px rgba(0, 31, 118, 0.1);
}

input::placeholder {
  color: var(--gray-400);
}

textarea {
  height: auto;
  min-height: 120px;
  padding: var(--space-md);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: var(--space-xs);
}

fieldset {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

legend {
  font-weight: 600;
  color: var(--gray-800);
  padding: 0 var(--space-sm);
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-navy);
  cursor: pointer;
}

/* ========================================
   9. CARDS & ARTICLES
   ======================================== */
article, .card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--duration-normal) var(--ease-out);
}

article:hover, .card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

article header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
}

article header h2 {
  margin-bottom: var(--space-xs);
}

article header p {
  margin-bottom: 0;
  color: var(--gray-500);
}

/* ========================================
   10. TABLES
   ======================================== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

thead {
  background: var(--gray-50);
}

th {
  font-weight: 600;
  color: var(--gray-700);
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid var(--gray-200);
}

td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}

tr:hover td {
  background: var(--gray-50);
}

/* Table wrapper for scroll */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.table-responsive table {
  margin: 0;
}

/* Mobile Card Table */
@media (max-width: 768px) {
  .table-cards {
    display: block;
    border: none;
  }

  .table-cards thead {
    display: none;
  }

  .table-cards tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .table-cards tr {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-xs);
  }

  .table-cards tr:hover {
    box-shadow: var(--shadow-sm);
  }

  .table-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border: none;
    white-space: normal;
  }

  .table-cards td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gray-500);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .table-cards td:first-child {
    font-weight: 600;
    font-size: 1.0625rem;
    color: var(--gray-900);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--gray-100);
  }

  .table-cards td:first-child::before {
    display: none;
  }

  .table-cards td.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: flex-start;
    padding-top: var(--space-md);
    margin-top: var(--space-sm);
    border-top: 1px solid var(--gray-100);
  }

  .table-cards td.actions::before {
    display: none;
  }

  .table-cards td.actions a {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--brand-navy);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-out);
  }

  .table-cards td.actions a:hover {
    background: #001558;
  }

  .table-cards td.actions a:last-child {
    background: var(--gray-100);
    color: var(--gray-700);
  }

  .table-cards td.actions a:last-child:hover {
    background: var(--gray-200);
  }
}

/* ========================================
   11. DROPZONE / FILE UPLOAD
   ======================================== */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, var(--gray-50) 0%, #fff 100%);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  text-align: center;
}

.dropzone:hover {
  border-color: var(--brand-navy);
  background: linear-gradient(135deg, rgba(0, 31, 118, 0.02) 0%, #fff 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dropzone.is-dragover {
  border-color: var(--brand-coral);
  background: linear-gradient(135deg, rgba(249, 97, 86, 0.05) 0%, #fff 100%);
  transform: scale(1.01);
  box-shadow: var(--shadow-lg);
}

.dropzone svg {
  width: 48px;
  height: 48px;
  color: var(--gray-400);
  margin-bottom: var(--space-md);
  transition: all var(--duration-normal) var(--ease-out);
}

.dropzone:hover svg {
  color: var(--brand-navy);
  transform: translateY(-4px);
}

.dropzone.is-dragover svg {
  color: var(--brand-coral);
}

.dropzone .dz-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.dropzone .dz-primary {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.dropzone .dz-secondary {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.dropzone .file-selected {
  display: none;
}

.dropzone.has-file {
  cursor: default;
  border-style: solid;
  border-color: var(--success);
  background: var(--success-bg);
}

.dropzone.has-file .dz-text {
  display: none;
}

.dropzone.has-file .file-selected {
  display: block;
}

.dropzone.has-file svg {
  color: var(--success);
}

.file-name {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  word-break: break-all;
  border: 1px solid var(--gray-200);
}

.dz-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ========================================
   12. COPY LINE (URL/Password chips)
   ======================================== */
.copyline {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.copyline strong {
  font-size: 0.875rem;
  color: var(--gray-600);
  min-width: 100px;
}

.copyline-field {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
}

.copyline-field code {
  display: flex;
  align-items: center;
  height: var(--chip-h);
  padding: 0 var(--space-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .copyline {
    flex-direction: column;
    align-items: flex-start;
  }

  .copyline strong {
    min-width: auto;
  }

  .copyline-field {
    width: 100%;
  }
}

/* ========================================
   13. STATS GRID (Analytics)
   ======================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.stat:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--gray-300);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================================
   14. ALERTS & NOTICES
   ======================================== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  border-left: 4px solid;
}

.alert-error {
  background: var(--error-bg);
  border-color: var(--error);
  color: #991b1b;
}

.alert-success {
  background: var(--success-bg);
  border-color: var(--success);
  color: #065f46;
}

.alert-warning {
  background: var(--warning-bg);
  border-color: var(--warning);
  color: #92400e;
}

.alert-info {
  background: var(--info-bg);
  border-color: var(--info);
  color: #1e40af;
}

/* Demo Banner */
.demo-banner {
  background: linear-gradient(135deg, var(--brand-coral) 0%, #ff7b72 100%);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  text-align: center;
  font-weight: 500;
  box-shadow: var(--shadow-md);
}

.demo-banner a {
  color: #fff;
  text-decoration: underline;
}

/* ========================================
   15. PDF VIEWER
   ======================================== */
iframe#pdf {
  display: block;
  width: 100%;
  height: calc(100dvh - var(--header-h) - var(--footer-h));
  border: none;
  background: var(--gray-100);
}

/* ========================================
   16. DETAILS/ACCORDION
   ======================================== */
details {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

details summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-out);
}

details[open] summary::before {
  transform: rotate(45deg);
}

details summary:hover {
  background: var(--gray-100);
}

details > *:not(summary) {
  padding: 0 var(--space-lg) var(--space-lg);
}

/* ========================================
   17. LOGIN/AUTH PAGES
   ======================================== */
.auth-container {
  max-width: 420px;
  margin: 0 auto;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-links {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-100);
}

.auth-links a {
  font-size: 0.9375rem;
  color: var(--gray-500);
}

.auth-links a:hover {
  color: var(--brand-navy);
}

/* ========================================
   18. ANIMATIONS & KEYFRAMES
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-in {
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

.animate-slide-in {
  animation: slideIn var(--duration-normal) var(--ease-out);
}

/* Staggered animations */
.stagger > * {
  animation: fadeIn var(--duration-normal) var(--ease-out) both;
}

.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 50ms; }
.stagger > *:nth-child(3) { animation-delay: 100ms; }
.stagger > *:nth-child(4) { animation-delay: 150ms; }
.stagger > *:nth-child(5) { animation-delay: 200ms; }

/* ========================================
   19. UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
