:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fb;
  --color-bg-hover: #f1f3f5;
  --color-surface: #ffffff;
  --color-border: #e8eaed;
  --color-border-focus: #a0b4f0;
  --color-text: #1a1d23;
  --color-text-secondary: #5f6577;
  --color-text-muted: #8b90a0;
  --color-primary: #4f6ef7;
  --color-primary-hover: #3b5ce4;
  --color-primary-light: #eef1fe;
  --color-primary-text: #ffffff;
  --color-accent: #7c5cfc;
  --color-accent-light: #f0ecff;
  --color-success: #22c55e;
  --color-success-light: #ecfdf5;
  --color-error: #ef4444;
  --color-error-light: #fef2f2;
  --color-warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 64px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
}

img.logo-icon {
  display: block;
  background: transparent;
  object-fit: contain;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: var(--color-bg-hover);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  padding: 24px 20px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  z-index: 99;
}

.nav.open {
  display: flex;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-hover);
}

.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}

.nav-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

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

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

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
}

/* ===== FIELDS ===== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.field-input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
}

.field-input::placeholder {
  color: var(--color-text-muted);
}

.field-input:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-group .field-input {
  padding-right: 44px;
}

.input-group-btn {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.input-group-btn:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

/* ===== CHECKBOX ===== */
.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}

.checkbox-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition);
}

.checkbox-input:checked + .checkbox-custom {
  border-color: var(--color-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}

.alert-error {
  background: var(--color-error-light);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-success {
  background: var(--color-success-light);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

/* ===== AUTH PAGES ===== */
.auth-section {
  min-height: calc(100vh - var(--header-height) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 24px;
}

.auth-link {
  color: var(--color-primary);
  font-weight: 500;
}

.auth-link:hover {
  text-decoration: underline;
}

.onboarding-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

/* ===== HERO ===== */
.hero {
  padding: 60px 20px 48px;
  text-align: center;
}

.hero-content {
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== SEARCH ===== */
.search-container {
  max-width: 580px;
  margin: 0 auto 28px;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input-wrapper:focus-within {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1), var(--shadow-md);
}

.search-icon {
  flex-shrink: 0;
  margin-left: 12px;
  color: var(--color-text-muted);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px;
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--color-text);
  background: transparent;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-btn {
  flex-shrink: 0;
  padding: 10px 20px;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.search-tag {
  padding: 6px 14px;
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  font-size: 13px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}

.search-tag:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: rgba(79, 110, 247, 0.15);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.hero-feature svg {
  color: var(--color-success);
}

/* ===== FEATURES SECTION ===== */
.features-section {
  padding: 48px 0;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.highlight-card {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-color: rgba(79, 110, 247, 0.12);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.feature-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(79, 110, 247, 0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.feature-tag svg {
  color: var(--color-primary);
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 60px 20px 48px;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-hero-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero-text {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.how-column-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-align: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-focus);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-text {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.info-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.info-card-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.benefit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}

.benefit-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-primary);
}

.benefit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.testimonial-stars {
  color: var(--color-warning);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial-author {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ===== CTA ===== */
.cta-section {
  padding: 64px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
  border-top: 1px solid var(--color-border);
}

.cta-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-text {
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 20px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  min-height: calc(100vh - var(--header-height) - 80px);
}

/* ===== RESPONSIVE: TABLET (640px+) ===== */
@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }

  .hero-title,
  .page-hero-title {
    font-size: 40px;
  }

  .hero-description,
  .page-hero-text {
    font-size: 17px;
  }

  .auth-card {
    padding: 40px 32px;
  }

  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-it-works {
    flex-direction: row;
    gap: 32px;
  }

  .how-column {
    flex: 1;
  }

  .section-title,
  .cta-title {
    font-size: 30px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ===== RESPONSIVE: DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .nav-link {
    padding: 8px 14px;
    font-size: 14px;
  }

  .nav-user {
    border-top: none;
    margin-top: 0;
    padding: 0 0 0 12px;
    border-left: 1px solid var(--color-border);
    margin-left: 8px;
  }

  .hero {
    padding: 80px 20px 64px;
  }

  .hero-title,
  .page-hero-title {
    font-size: 48px;
  }

  .page-hero {
    padding: 80px 20px 64px;
  }

  .section {
    padding: 80px 0;
  }

  .cta-section {
    padding: 80px 20px;
  }

  .search-btn {
    padding: 12px 28px;
  }

  .search-input {
    font-size: 16px;
  }
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

/* ===== PROFESSION BUTTONS ===== */
.profession-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.profession-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
}

.profession-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.profession-btn.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

.profession-emoji {
  font-size: 32px;
  line-height: 1;
}

.profession-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
}

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

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--color-bg-hover);
  color: var(--color-text);
}

.modal-body {
  padding: 20px 24px;
}

.modal-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding-left: 24px;
  position: relative;
}

.modal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.modal-footer {
  padding: 0 24px 24px;
}

/* ===== MULTI-STEP FORM ===== */
.auth-card-wide {
  max-width: 560px;
}

.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  padding: 0 20px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.step-dot-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: all var(--transition);
}

.step-dot.active .step-dot-number {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}

.step-dot.completed .step-dot-number {
  background: var(--color-success);
  border-color: var(--color-success);
  color: var(--color-primary-text);
}

.step-dot-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.step-dot.active .step-dot-label {
  color: var(--color-primary);
}

.step-dot.completed .step-dot-label {
  color: var(--color-success);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  margin: 0 12px;
  margin-bottom: 20px;
  max-width: 80px;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6577' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ===== PANEL ===== */
.panel-section {
  padding: 40px 0;
  min-height: calc(100vh - var(--header-height) - 80px);
}

.panel-header {
  margin-bottom: 32px;
}

.panel-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.panel-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
}

.panel-alert {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.panel-alert-warning {
  background: #fef3c7;
  border: 1px solid #fde68a;
}

.panel-alert-warning .panel-alert-icon {
  color: #d97706;
}

.panel-alert-warning .panel-alert-title {
  color: #92400e;
}

.panel-alert-warning .panel-alert-text {
  color: #a16207;
}

.panel-alert-success {
  background: var(--color-success-light);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.panel-alert-success .panel-alert-icon {
  color: var(--color-success);
}

.panel-alert-success .panel-alert-title {
  color: #166534;
}

.panel-alert-success .panel-alert-text {
  color: #15803d;
}

.panel-alert-icon {
  flex-shrink: 0;
}

.panel-alert-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.panel-alert-text {
  font-size: 13px;
  line-height: 1.5;
}

.panel-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ===== PANEL HEADER ===== */
.panel-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

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

.panel-header-left {
  flex: 1;
}

.panel-header-right {
  flex-shrink: 0;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge svg {
  flex-shrink: 0;
}

.badge-success {
  background: var(--color-success-light);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.badge-action {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color var(--transition);
  font-family: var(--font-family);
}

.badge-action:hover {
  color: var(--color-primary-hover);
}

/* ===== FILE INPUT ===== */
.field-file {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
}

.field-file::file-selector-button {
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  transition: all var(--transition);
}

.field-file::file-selector-button:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-text-muted);
}

/* ===== ADMIN TABLES ===== */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  background: var(--color-bg-alt);
}

.admin-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover {
  background: var(--color-bg-alt);
}

.admin-table code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text);
}

.admin-inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 639px) {
  .admin-inline-form {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-table {
    font-size: 12px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.tag:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.tag-success {
  background: var(--color-success-light);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tag-info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

/* ===== BADGES ===== */
.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(79, 110, 247, 0.2);
}

.badge-info {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.badge-default {
  background: var(--color-bg-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* ===== SEARCH BAR ===== */
.admin-search-bar {
  position: relative;
}

.admin-search-bar .field-input {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b90a0' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* ===== PAGINATION ===== */
.admin-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
