/* ============================================================
   ID-Alert Design System — v1.0
   Light theme · Mobile-first · Warm professional
   ============================================================ */

/* ---- Google Fonts (loaded in base.html) ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Primary palette */
  --primary: #1B3A5C;
  --primary-dark: #0F2440;
  --primary-light: #E8EFF6;
  --primary-50: #F0F5FA;
  --primary-10: rgba(27, 58, 92, 0.10);

  /* Accent palette */
  --accent: #C8913E;
  --accent-dark: #A6742A;
  --accent-light: #FDF4E3;
  --accent-20: rgba(200, 145, 62, 0.12);

  /* Neutrals */
  --bg: #F5F2ED;
  --surface: #FFFFFF;
  --surface-alt: #FAF8F5;
  --border: #E5E0D8;
  --border-light: #F0ECE6;

  /* Text */
  --text: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-inverse: #FFFFFF;

  /* Semantic */
  --success: #2e7d32;
  --success-bg: #ECFDF5;
  --error: #8a3c3c;
  --error-bg: #FEF2F2;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --info: #2563EB;
  --info-bg: #EFF6FF;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(27, 58, 92, 0.06);
  --shadow-md: 0 4px 16px rgba(27, 58, 92, 0.08);
  --shadow-lg: 0 8px 32px rgba(27, 58, 92, 0.12);
  --shadow-xl: 0 12px 48px rgba(27, 58, 92, 0.15);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ui: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

svg {
  fill: currentColor;
}

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

/* ============================================================
   LAYOUT
   ============================================================ */

.content-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Animated background squares (from scripts.js) */
.squares-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.square {
  position: absolute;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation:
    moveSquare 10s infinite alternate ease-in-out,
    fade 5s infinite alternate;
  border-radius: 30%;
}

@keyframes moveSquare {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(50px) translateX(30px); }
}

@keyframes fade {
  0% { opacity: 0.15; }
  100% { opacity: 0.35; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
}

.container--narrow {
  max-width: 600px;
}

.container--medium {
  max-width: 800px;
}

main {
  flex: 1;
  padding: var(--space-2xl) 0 var(--space-2xl);
}

/* ---- Section Spacing ---- */
.section {
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: var(--space-md); }

.text--center { text-align: center; }
.text--muted { color: var(--text-secondary); }
.text--small { font-size: 0.85rem; }
.text--xs { font-size: 0.75rem; }

.heading--accent {
  color: var(--accent);
  font-family: var(--font-heading);
  font-style: italic;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  line-height: 1;
}

.site-logo sup {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 0.6rem;
  color: var(--accent);
  margin-left: 2px;
}

.site-logo:hover { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-50);
}

/* Avatar trigger — always in header, luxurious */
.user-avatar-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  background: var(--primary-50);
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.user-avatar-trigger:hover {
  background: var(--primary-light);
  border-color: var(--primary-10);
}

.user-avatar-trigger .avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.greeting {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
}

.greeting__name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.greeting__chevron {
  width: 14px;
  height: 14px;
  color: var(--primary);
  transition: transform var(--transition);
}

.user-avatar-trigger.is-open .greeting__chevron {
  transform: rotate(180deg);
}

/* Badge dot — circular indicator on the avatar */
.badge-dot {
  position: absolute;
  top: 2px;
  right: 34px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 2px solid var(--surface);
  border-radius: 50%;
  z-index: 2;
}

/* Badge in menu — pill next to "Register Your Documents" */
.badge-menu {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}

/* Dropdown Menu */
.user-menu {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  min-width: 220px;
  padding: var(--space-xs) 0;
  overflow: hidden;
}

.user-menu.show {
  display: block;
  animation: menuSlideIn 0.2s ease-out;
}

@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* User header in menu */
.user-menu__header {
  padding: var(--space-sm) var(--space-lg) var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-menu__name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.user-menu__email {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.user-menu__divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-xs) var(--space-sm);
}

/* Menu links with icons */
.user-menu__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  border-radius: 0;
}

.user-menu__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--transition);
}

.user-menu__link:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.user-menu__link:hover svg {
  color: var(--primary);
}

.user-menu__link--danger {
  color: var(--error);
}

.user-menu__link--danger svg {
  color: var(--error);
}

.user-menu__link--danger:hover {
  background: var(--error-bg);
  color: var(--error);
}

.user-menu__link--danger:hover svg {
  color: var(--error);
}

/* Keep old .user-menu a selector for backwards compat */
.user-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  border-radius: 0;
}

.user-menu a:hover {
  background: var(--primary-50);
  color: var(--primary);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--primary);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
  }

  .nav-links.nav-links--open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .nav-links a {
    width: 100%;
    text-align: left;
    padding: var(--space-sm) var(--space-md);
  }

  .user-avatar-trigger .avatar-img {
    width: 28px;
    height: 28px;
  }

  .user-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 100%;
    border-radius: 0;
  }

  .user-menu__header {
    padding: var(--space-sm) var(--space-md) var(--space-xs);
  }

  .user-menu__link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.82rem;
  }

  .user-menu__link svg {
    width: 14px;
    height: 14px;
  }

  .user-menu__divider {
    margin: 2px var(--space-sm);
  }

  .user-menu__email {
    font-size: 0.7rem;
  }

  /* Register button on mobile — subtle background to distinguish from plain links */
  .nav-links .btn--primary {
    background: var(--primary-50);
    color: var(--primary);
    border: none;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin: 0;
  }

  .nav-links .btn--primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-inverse);
}

.btn--accent {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--text-inverse);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--text-inverse);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

.btn--block {
  width: 100%;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .card {
    padding: var(--space-lg);
  }
}

.card--tight {
  padding: var(--space-lg);
}

.card--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

.card--bordered-accent {
  border-top: 3px solid var(--accent);
}

.card--bordered-primary {
  border-top: 3px solid var(--primary);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: var(--space-lg);
  width: 100%;
}

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 145, 62, 0.15);
}

.form-input--error {
  border-color: var(--error);
}

.form-input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23C8913E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: var(--space-xs);
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Simple label-above-input pattern (not overlapping) */
.form-field {
  position: relative;
  margin-bottom: var(--space-lg);
  width: 100%;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 145, 62, 0.12);
}

.form-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Password Toggle */
.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1;
}

.input-icon-wrap {
  position: relative;
  width: 100%;
}

.input-icon-wrap input,
.input-icon-wrap select,
.input-icon-wrap textarea {
  padding-right: 2.5rem;
  width: 100%;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

/* Checkbox & Radio */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-sm) 0;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.checkbox-group label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   OTP INPUTS (Phase D)

   Single source of truth. `forms.css` used to carry a second, conflicting copy of these
   rules (green `--form-*` tokens that belong to the retired palette, plus its own @media
   overrides that silently won or lost depending on load order). No template loads
   forms.css — base.html loads only this file — so that copy has been deleted rather than
   left to rot.

   Geometry: the boxes are *fixed and equal* widths that scale with the viewport, not
   `flex: 1`. That is what made them read as "not proportional": they stretched to fill
   whatever space the card had.
   ============================================================ */

.otp-container {
  display: flex;
  gap: clamp(0.35rem, 1.5vw, var(--space-sm));
  justify-content: center;
  align-items: center;
  margin: var(--space-xl) 0 var(--space-md);
  /* Together with the clamp() widths below this keeps six boxes inside the narrowest
     common phone (320 px) instead of overflowing the card. */
  max-width: 100%;
}

.otp-input {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: clamp(38px, 12.5vw, 54px);
  height: clamp(46px, 15vw, 62px);
  padding: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(1.1rem, 4.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition), transform var(--transition);
}

/* Filled boxes read as done, so the user can see how many digits are in at a glance. */
.otp-input.filled {
  border-color: var(--primary-light);
  background: var(--surface-alt);
}

.otp-input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
  transform: translateY(-1px);
}

.otp-input:focus-visible {
  outline: none;
}

/* Wrong code: a designed state on the boxes themselves, not only a toast that vanishes. */
.otp-container--error .otp-input {
  border-color: var(--error);
  background: var(--error-bg);
}

.otp-container--error {
  animation: otp-shake 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .otp-container--error { animation: none; }
}

/* A line under the heading that says where the code went and, when relevant, that the
   code was wrong. Text, not colour alone. */
.otp-status {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.otp-status--error {
  color: var(--error);
}

.otp-status__number {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* The resend cooldown as a progress indicator rather than a bare ticking number. */
.otp-resend-progress {
  height: 3px;
  width: 100%;
  max-width: 260px;
  margin: 0 auto var(--space-sm);
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.otp-resend-progress__bar {
  height: 100%;
  width: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

.otp-resend-progress__bar.is-done {
  background: var(--success);
}

/* ============================================================
   MESSAGES (Django messages framework)
   ============================================================ */

.messages-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  left: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 380px;
  width: calc(100% - var(--space-xl) * 2);
  pointer-events: none;
}

@media (max-width: 480px) {
  .messages-container {
    right: var(--space-sm);
    left: var(--space-sm);
    width: auto;
    max-width: none;
    top: var(--space-sm);
  }
}

.message-toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  padding-right: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  animation: toastSlideIn 0.3s ease-out;
  pointer-events: auto;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  word-break: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.message-toast__close {
  position: absolute;
  top: 50%;
  right: var(--space-sm);
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.4;
  transition: opacity var(--transition);
  border-radius: 50%;
  padding: 0;
  line-height: 1;
  font-size: 18px;
  font-weight: 600;
}

.message-toast__close:hover {
  opacity: 1;
  background: rgba(0,0,0,0.06);
}

.message-toast__close:active {
  opacity: 1;
  background: rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
  .message-toast {
    padding: var(--space-sm) var(--space-md);
    padding-right: 2.25rem;
    font-size: 0.9rem;
  }
  .message-toast__close {
    width: 28px;
    height: 28px;
    font-size: 20px;
    right: 4px;
  }
}

/* Nudge animation — quick left-right to hint swipeability */
@keyframes toastNudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(0); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(0); }
}

.message-toast--nudge {
  animation: toastNudge 0.8s ease-in-out;
}

/* Swipe to dismiss */
.message-toast--swiping {
  transition: transform 0.15s ease-out;
}

.message-toast--success {
  background: var(--success-bg);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.message-toast--error {
  background: var(--error-bg);
  color: var(--error);
  border-left: 4px solid var(--error);
}

.message-toast--warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-left: 4px solid var(--warning);
}

.message-toast--info {
  background: var(--info-bg);
  color: var(--info);
  border-left: 4px solid var(--info);
}

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

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

.message-toast--hiding {
  animation: toastSlideOut 0.3s ease-out forwards;
}

/* Inline alert (non-toast) */
.alert-inline {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-body);
}

.alert-inline--info {
  background: var(--info-bg);
  color: var(--info);
  border: 1px solid #BFDBFE;
}

.alert-inline--success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #A7F3D0;
}

.alert-inline--error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #FECACA;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a1a2e 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-3xl) 0 var(--space-lg);
  flex-shrink: 0;
  position: relative;
  border-top: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  border-radius: 0 0 2px 2px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.site-footer__col h4 {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: var(--space-sm);
}

.site-footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.5;
}

.site-footer__col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition);
}

.site-footer__col a:hover {
  color: var(--accent);
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.site-footer__social > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
  line-height: 0;
}

.site-footer__social > a:hover {
  background: var(--accent-20);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(200, 145, 62, 0.2);
}

.site-footer__social svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.site-footer__copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.site-footer__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__email:hover {
  color: var(--accent);
}

.site-footer__email svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: -2px;
}

/* ============================================================
   GRID & UTILITIES
   ============================================================ */

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

.grid--2 {
  grid-template-columns: 1fr;
}

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

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

.flex { display: flex; }
.flex--col { flex-direction: column; }
.flex--wrap { flex-wrap: wrap; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { justify-content: space-between; align-items: center; }
.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }

/* Spacing helpers */
.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-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); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

/* Width helpers */
.w-full { width: 100%; }
.max-w-sm { max-width: 400px; }
.max-w-md { max-width: 500px; }
.max-w-lg { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Visibility */
.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;
}

/* ============================================================
   HERO SECTION (Home)
   ============================================================ */

.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
  position: relative;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

.hero__title .word-cycler {
  color: var(--accent);
  font-style: italic;
  display: inline-block;
  min-width: 140px;
  min-height: 1.25em;
  vertical-align: baseline;
  line-height: 1.25;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__how-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  text-align: center;
  margin: var(--space-2xl) 0 var(--space-lg);
}

/* ============================================================
   SLIDER / CAROUSEL (Home)
   ============================================================ */

.slider-section {
  margin-bottom: var(--space-2xl);
}

.slider-container {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}

.slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.slide-image {
  height: 260px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 768px) {
  .slide-image { height: 320px; }
}

.slide-content-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 36, 64, 0.92) 0%, rgba(27, 58, 92, 0.45) 50%, rgba(27, 58, 92, 0.2) 100%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-xl);
}

.slide-content-overlay h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: white;
  line-height: 1.3;
  margin: 0;
}

.slide-description-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  align-items: center;
}

.slide-description-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.slide {
  min-width: 100%;
  padding: 0;
}

@media (min-width: 768px) {
  .slide {
    min-width: 50%;
    padding: 0 var(--space-sm);
  }
}

@media (min-width: 1024px) {
  .slide {
    min-width: 33.333%;
    padding: 0 var(--space-sm);
  }
}

/* Desktop: show all slides in a row */
.desktop-view .slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  transform: none !important;
}

.desktop-view .slide {
  min-width: auto;
  padding: 0;
}

/* Slider Dots */
.main-navigation-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.main-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.main-dot-active {
  background: var(--primary);
  width: 28px;
  border-radius: var(--radius-full);
}

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

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

/* ============================================================
   REVIEWS SECTION
   ============================================================ */

.reviews-section {
  margin-top: var(--space-2xl);
}

.reviews-section__title {
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 1.3rem;
  color: var(--primary);
}

.review-container {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
}

.review-list {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-sm) 0 var(--space-lg);
  flex: 1;
}

.review-list::-webkit-scrollbar { display: none; }

.review-list li {
  min-width: calc(100vw - 3rem);
  scroll-snap-align: start;
  list-style: none;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .review-list li { min-width: calc(50vw - 3rem); }
}

@media (min-width: 1024px) {
  .review-list li { min-width: calc(33.333vw - 3rem); }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-md);
}

.review-card--spotlight {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.review-card--spotlight .review-header {
  color: var(--accent);
}

.review-card--spotlight p {
  color: rgba(255, 255, 255, 0.9);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.review-header strong {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
}

.review-rating {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
}

.quote-svg {
  margin-left: auto;
  opacity: 0.15;
}

.quote-svg svg {
  width: 28px;
  height: 28px;
}

.review-comment {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-secondary);
  flex: 1;
}

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.review-date svg {
  width: 14px;
  height: 14px;
}

.review-nav-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  align-self: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-family: var(--font-ui);
}

.review-nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.nav-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: var(--radius-full);
}

/* Average rating card */
.average-rating {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.average-rating__value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.average-rating__star {
  color: var(--accent);
  font-size: 1.3rem;
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

/* ============================================================
   PRICING — luxurious feel
   ============================================================ */

.pricing-hero {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg) var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.pricing-hero::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  margin: var(--space-md) auto 0;
  border-radius: 2px;
}

.pricing-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--space-sm);
}

.pricing-hero__subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.pricing-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
  padding: 0 var(--space-lg) var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    max-width: 960px;
  }
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow:
    0 1px 2px rgba(27, 58, 92, 0.04),
    0 4px 12px rgba(27, 58, 92, 0.06);
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

/* Gradient bars removed per design feedback */

.pricing-card:hover {
  box-shadow:
    0 4px 16px rgba(27, 58, 92, 0.08),
    0 12px 40px rgba(27, 58, 92, 0.12);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}

/* hover bar removed */

.pricing-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--primary-10);
  color: var(--primary);
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.pricing-card__badge--gold {
  background: var(--accent-20);
  color: var(--accent-dark);
}

.pricing-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.pricing-card__doc-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  padding: 4px;
  border: 1px solid var(--border-light);
}

.pricing-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 4px;
}

.pricing-card__subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.pricing-card__price--free {
  color: var(--success);
  font-size: 1.8rem;
}

.pricing-card__currency {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
}

.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--success-bg);
  color: var(--success);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.pricing-card__check-icon {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-footer {
  text-align: center;
  padding: 0 var(--space-lg) var(--space-2xl);
  max-width: 500px;
  margin: 0 auto;
}

.pricing-footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 480px) {
  .pricing-grid {
    padding: 0 var(--space-sm) var(--space-lg);
    gap: var(--space-md);
  }

  .pricing-card {
    padding: var(--space-lg) var(--space-sm) var(--space-md);
  }

  .pricing-hero {
    padding: var(--space-xl) var(--space-sm) var(--space-lg);
  }
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.doc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.doc-list__item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.doc-list__item:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

.doc-list__item--active {
  border-color: var(--primary);
  background: var(--primary-50);
  box-shadow: 0 0 0 2px rgba(27, 58, 92, 0.1);
}

.log-display {
  background: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  min-height: 60px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

/* ============================================================
   CHAT
   ============================================================ */

.chat-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 500px;
  box-shadow: var(--shadow-sm);
}

.chat-card__header {
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-card__header h3 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.chat-card__messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.chat-card__footer {
  padding: var(--space-md) var(--space-lg);
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: var(--space-sm);
}

.chat-card__input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.chat-card__input:focus {
  border-color: var(--primary);
}

.msg {
  max-width: 85%;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.msg--owner {
  align-self: flex-end;
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 2px;
}

.msg--collector {
  align-self: flex-start;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.msg__sender {
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 2px;
  opacity: 0.7;
}

.msg__time {
  display: block;
  font-size: 0.65rem;
  margin-top: 4px;
  opacity: 0.6;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-ui);
}

.status-badge--online {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #A7F3D0;
}

.status-badge--offline {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #FECACA;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge--online .status-dot { background: var(--success); }
.status-badge--offline .status-dot { background: var(--error); }

/* ============================================================
   PROGRESS TABLE
   ============================================================ */

.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.progress-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary-50);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
  border-bottom: 2px solid var(--primary-light);
}

.progress-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-ui);
}

.badge--pending { background: var(--warning-bg); color: var(--warning); }
.badge--claimed { background: var(--info-bg); color: var(--info); }
.badge--completed { background: var(--success-bg); color: var(--success); }
.badge--danger { background: var(--error-bg); color: var(--error); }

/* ============================================================
   RESPONSIVE HELPERS
   ============================================================ */

@media (max-width: 639px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 640px) {
  .hide-desktop { display: none !important; }
}

/* Large touch targets for mobile */
@media (max-width: 767px) {
  .btn, .nav-links a, .doc-list__item, .form-input {
    min-height: 44px;
  }
}

/* ============================================================
   FEATURE TAGS — clickable variant
   ============================================================ */

.feature-tag--link {
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.feature-tag--link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(200, 145, 62, 0.2);
}

.feature-tag--outline.feature-tag--link:hover {
  background: var(--accent-20);
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: 0 var(--space-lg) var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.privacy-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent-light);
}

.privacy-card__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.privacy-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 var(--space-sm);
}

.privacy-card__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
