
/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS VARIABLES - Modern Design System */
:root {
  /* Colors - Preserved from original */
  --color-primary: #4d8df6;
  --color-primary-dark: #1f66e0;
  --color-primary-darker: #2a6ee0;
  --color-primary-light: #60a5fa;
  --color-primary-lighter: #e3f2ff;
  --color-primary-bg: #f0f4ff;
  
  --color-success: #49d81a;
  --color-success-hover: #14c46f;
  
  --color-text: #18181b;
  --color-text-secondary: #24262b;
  --color-text-muted: #555;
  --color-text-light: #666;
  
  --color-bg: #fff;
  --color-bg-light: #f5f7fb;
  --color-bg-gradient-start: #e3f2ff;
  --color-bg-gradient-end: #ffffff;
  
  --color-border: #ddd;
  --color-border-light: #e0e6f0;
  --color-border-subtle: rgba(15, 23, 42, 0.08);
  
  /* Shadows - Modern layered shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 40px rgba(15, 23, 42, 0.15);
  --shadow-2xl: 0 24px 60px rgba(15, 23, 42, 0.18);
  --shadow-primary: 0 8px 24px rgba(31, 102, 224, 0.25);
  --shadow-primary-lg: 0 16px 40px rgba(31, 102, 224, 0.3);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Typography */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

html.theme-dark {
  color-scheme: dark;
}

body.theme-dark {
  --color-text: #ffffff;
  --color-text-secondary: #ffffff;
  --color-text-muted: #ffffff;
  --color-text-light: #ffffff;
  --color-text-strong: #ffffff;
  --color-bg: #0b1220;
  --color-bg-light: #111827;
  --color-bg-gradient-start: #0b1220;
  --color-bg-gradient-end: #111827;
  --color-border: #2a3346;
  --color-border-light: #223046;
  --color-border-subtle: rgba(148, 163, 184, 0.18);
  --color-panel: #0f172a;
  --color-danger: #f87171;
  --border-width-hairline: 1px;
}

/* BASE */
html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
  overflow-x: hidden; /* prevent horizontal scroll on mobile */
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0;
  padding-top: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

body.home-page {
  background-image:
    radial-gradient(circle at 12% 10%, rgba(77, 141, 246, 0.16), transparent 40%),
    radial-gradient(circle at 86% 12%, rgba(34, 211, 238, 0.12), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.06), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 70%, #f7faff 100%);
  background-attachment: fixed;
}

body.theme-dark.home-page {
  background-image:
    radial-gradient(circle at 10% 10%, rgba(77, 141, 246, 0.2), transparent 45%),
    radial-gradient(circle at 85% 12%, rgba(59, 130, 246, 0.18), transparent 40%),
    radial-gradient(circle at 52% 28%, rgba(14, 165, 233, 0.16), transparent 42%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #0b1220 100%);
  background-attachment: fixed;
}

html.has-top-promo-banner body {
  padding-top: 120px;
}

#footer {
  margin-top: auto;
  width: 100%;
}

/* === HEADER NAVIGATION === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition-base);
}

.top-promo-banner {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  background: radial-gradient(circle at 0% 0%, #60a5fa, #2563eb 35%, #4f46e5 70%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  padding: 6px 0;
}

.top-promo-banner--warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.unverified-form-warning {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.unverified-form-warning p {
  margin: 0;
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.5;
}

.unverified-form-warning .warning-icon {
  font-size: 1.2rem;
  color: #f59e0b;
  flex-shrink: 0;
}

.top-promo-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.top-promo-banner__badge {
  flex-shrink: 0;
  padding: 8px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-promo-banner__badge-icon {
  font-size: 0.9rem;
}

.top-promo-banner__text {
  flex: 1 1 auto;
}

.top-promo-banner__cta {
  flex-shrink: 0;
  padding: 9px 28px 8px 28px;
  border-radius: 999px;
  border: none;
  background: #49d81a;
  color: #0a1601;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(73, 216, 26, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.top-promo-banner__cta:hover {
  background: #3fb414;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 24px rgba(73, 216, 26, 0.5);
}

.top-promo-banner__close {
  background: transparent;
  border: none;
  color: #e5e7eb;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  margin-left: 4px;
  line-height: 1;
}

.top-promo-banner__close:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  html.has-top-promo-banner body {
    /* На мобилно не показваме промо банера,
       така че не е нужен допълнителен offset. */
    padding-top: 60px;
  }

  .top-promo-banner {
    display: none;
  }

  .top-promo-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  .top-promo-banner__badge-icon {
    display: none;
  }

  .top-promo-banner__badge {
    padding: 6px 10px;
    font-size: 0.7rem;
  }

  .top-promo-banner__text {
    font-size: 0.85rem;
  }

  .top-promo-banner__cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .top-promo-banner__close {
    position: absolute;
    top: 6px;
    right: 10px;
  }
}

/* Base navigation layout */
.nav {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  column-gap: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex: 1 1 auto;
  max-width: 60%;
  margin-left: 56px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg-light);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.theme-toggle:hover {
  background: var(--color-primary-bg);
  border-color: rgba(31, 102, 224, 0.3);
  color: var(--color-primary-dark);
}

.theme-toggle__icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle__icon--light {
  display: none;
}

body.theme-dark .theme-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: #2a3447;
  color: #e5e7eb;
}

body.theme-dark .theme-toggle:hover {
  background: rgba(77, 141, 246, 0.15);
  border-color: rgba(77, 141, 246, 0.35);
  color: #bfdbfe;
}

body.theme-dark .theme-toggle__icon--dark {
  display: none;
}

body.theme-dark .theme-toggle__icon--light {
  display: inline-flex;
}

.theme-toggle__label {
  line-height: 1;
}

#adminMenuSlot {
  display: none;
}

#adminMenuSlot.has-admin {
  display: flex;
  align-items: center;
}

.nav-links__mobile-lang {
  display: none;
}

.nav .nav-link,
.dropdown button {
  background: none;
  border: none;
  padding: 10px 18px;
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.nav .nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d8df6, #1f66e0);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav .nav-link:hover,
.nav .nav-link.active,
.dropdown button:hover {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
  box-shadow: inset 0 0 0 1px rgba(31, 102, 224, 0.2), 0 4px 12px rgba(31, 102, 224, 0.12);
  transform: translateY(-1px);
}

.nav .nav-link:hover::after,
.nav .nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav .nav-link:focus-visible,
.dropdown button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(31, 102, 224, 0.35);
}

/* Logo centered */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.logo img {
  max-height: 40px;
  height: auto;
  width: auto;
}

/* Mobile menu button */
.nav .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* Dropdown styles */
.dropdown {
  position: relative;
  flex-shrink: 0;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: dropdownFadeIn var(--transition-base);
}

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

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.dropdown-menu a {
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: var(--color-primary-bg);
  color: var(--color-primary-dark);
  padding-left: 20px;
}

.admin-dropdown button {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #f7f7fb;
  font-size: 0.9rem;
  gap: 6px;
}

.admin-dropdown button:hover {
  background: #eaf2ff;
  border-color: #bcd2ff;
}

.admin-dropdown .dropdown-menu {
  min-width: 220px;
  top: calc(100% + 6px);
}

.admin-dropdown.open .dropdown-menu {
  display: block;
}

/* Navbar notifications */
.notification-dropdown {
  margin-left: 6px;
}

.notification-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 999px;
  border: 1px solid rgba(31, 102, 224, 0.18);
  background: #f7faff;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.notification-toggle:hover {
  background: #eaf1ff;
  box-shadow: 0 8px 16px rgba(31, 102, 224, 0.18);
  transform: translateY(-1px);
}

.notification-icon {
  width: 30px;
  height: 30px;
  color: #94a3b8;
}

.notification-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 2px #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.notification-dot.is-active {
  opacity: 1;
  transform: scale(1);
  animation: notificationPulse 1.6s ease-in-out infinite;
}

.notification-toggle.is-active .notification-icon {
  color: #1f66e0;
}

.notification-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 102, 224, 0.35);
}

.notification-dropdown.open .notification-toggle {
  background: #eaf1ff;
  box-shadow: 0 10px 20px rgba(31, 102, 224, 0.2);
}

@keyframes notificationPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.notification-menu {
  width: 320px;
  padding: 12px;
}

.notification-menu__header {
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.notification-menu__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
}

.notification-menu__empty {
  color: #6b7280;
  font-size: 0.9rem;
  padding: 8px 4px;
}

.notification-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid #edf2f7;
  background: #f9fbff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.notification-item:hover {
  background: #eef4ff;
  border-color: #d8e6ff;
}

.notification-item--unread {
  border-color: #bfd4ff;
  background: #eaf1ff;
}

.notification-item__title {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.notification-item__meta {
  color: #6b7280;
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .notification-menu {
    width: min(320px, 85vw);
  }
}

/* Mobile layout polish */
.header {
  min-height: 64px;
}

.nav {
  min-height: 64px;
  align-items: center;
}

.nav .nav-link,
.dropdown button {
  min-height: 40px;
  line-height: 1.1;
}

#langToggle {
  min-width: 72px;
  text-align: center;
}

.account-label {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav {
    padding: 0 18px;
    column-gap: 14px;
  }

  .nav-links {
    gap: 16px;
    margin-left: 24px;
  }

  .nav-actions {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 64px;
  }

  .logo img {
    max-height: 36px;
  }

  .nav-links {
    padding: 12px 0 16px;
  }

  .nav-links .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }

  .dropdown-menu {
    width: min(280px, 90vw);
  }

  .range-form {
    flex-direction: column;
    align-items: stretch;
  }

  .range-form > div,
  .range-form button,
  .range-form input,
  .range-form select {
    width: 100%;
  }

  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive table {
    min-width: 620px;
  }

  .table-responsive th,
  .table-responsive td {
    white-space: nowrap;
  }
}

/* Profile dropdown helpers */
.dropdown-label {
  padding: 8px 16px;
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dropdown-menu .promo-info {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13px;
  border-top: 1px solid #eee;
  color: #333;
}

.dropdown-menu .promo-info strong {
  font-size: 14px;
}

.dropdown-menu .promo-info .promo-suffix {
  color: #666;
}

.dropdown-menu .promo-info .promo-hint {
  margin-left: auto;
  font-size: 12px;
  color: #888;
}

/* Nested language dropdown inside account menu (desktop) */
.dropdown-menu .dropdown-sub {
  border-top: 1px solid #eee;
  margin-top: 6px;
}

.dropdown-menu .sub-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}

.dropdown-menu .sub-toggle:hover {
  background: #f6f6f8;
}

.dropdown-menu .sub-menu {
  display: none;
  padding: 0 0 8px 8px;
}

.dropdown-menu .dropdown-sub.open .sub-menu {
  display: block;
}

.dropdown-menu .sub-menu a.active {
  font-weight: 600;
  color: #1f66e0;
}

/* Navbar links: remove underline in navbar across all states */
.header .nav a,
.header .nav a:hover,
.header .nav a:focus,
.header .nav a:active {
  text-decoration: none !important;
}

.nav-profile-pic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.nav-profile-pic.initials-avatar {
  font-size: 0.9rem;
}

.initials-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4d8df6, #3b82f6);
  color: #fff;
  font-weight: 600;
}

.dropdown-profile-box {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
}
.dropdown-profile-box img,
.dropdown-profile-box .initials-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e2e8f0;
}
.dropdown-profile-box .info {
  display: flex;
  flex-direction: column;
}

.dropdown-profile-box .name {
  font-weight: 600;
}

.dropdown-profile-box .email {
  font-size: 0.85rem;
  color: #555;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding-right: 0;
  }

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

  .nav .nav-toggle {
    display: flex;
  }

  .nav {
    padding: 0 20px;
    column-gap: 16px;
  }

  .nav-actions {
    gap: 14px;
  }

  .nav-upload-btn {
    padding: 8px 18px;
  }

  .nav-links__mobile-lang {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    gap: 10px;
  }

  .nav-links__mobile-lang:empty {
    display: none;
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }

  .nav-links__mobile-lang .dropdown {
    width: 100%;
  }

  .nav-links__mobile-lang #langToggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #d3ddf5;
    background: #f5f8ff;
    font-size: 0.95rem;
  }

  .nav-links__mobile-lang .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    border: 1px solid #d3ddf5;
    border-radius: 12px;
    box-shadow: none;
  }

  .nav-links__mobile-lang .dropdown-menu a {
    border-bottom: 1px solid #e4e9f7;
  }

  .nav-links__mobile-lang .dropdown-menu a:last-child {
    border-bottom: none;
  }
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 44px 20px 92px;
  margin-bottom: 0;
  background:
    radial-gradient(ellipse 120% 100% at 50% 0%, rgba(31, 102, 224, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(77, 141, 246, 0.1) 0%, transparent 70%),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 50%, #f8fbff 100%) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  min-height: calc(100vh - 60px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(31, 102, 224, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(77, 141, 246, 0.06) 0%, transparent 50%);
  pointer-events: none;
  animation: heroPulse 8s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  margin-bottom: 0;
  margin-bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(31, 102, 224, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(31, 102, 224, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #e3f2ff, #ffffff) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  min-height: calc(40vh - 60px);
  position: relative;
  overflow: hidden;
}


.hero .bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(31, 102, 224, 0.2), rgba(77, 141, 246, 0.15));
  filter: blur(40px);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
  box-shadow: 0 0 60px rgba(31, 102, 224, 0.2);
}

.hero .bubble1 {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 5%;
}

.hero .bubble2 {
  width: 80px;
  height: 80px;
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

.hero .bubble3 {
  width: 60px;
  height: 60px;
  top: 40%;
  right: 30%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero-text p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-text-secondary);
  margin-bottom: 0;
  font-weight: var(--font-weight-normal);
  letter-spacing: -0.01em;
  line-height: 1.7;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.05rem;
  }
}

.certificate-highlight {
  color: #1f66e0; /* brand blue accent */
}

.brand-blue {
  color: #1f66e0;
  font-weight: 700;
}

body.theme-dark .brand-blue {
  color: #93c5fd;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.hero-actions .hero-btn {
  margin-top: 0;
}

#mainUploadButton {
  box-shadow: 0 0 12px rgba(31, 102, 224, 0.6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

#mainUploadButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(31, 102, 224, 0.85);
}

.hero-btn.secondary {
  background: #fff;
  color: #1f66e0;
  border: 2px solid #1f66e0;
}

.hero-btn.secondary:hover {
  background: #e6f0ff;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-features .feature {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(31, 102, 224, 0.15);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  min-width: 160px;
}

.hero-features .feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(31, 102, 224, 0.3);
  background: rgba(255, 255, 255, 0.95);
}

.hero-features .feature img {
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(31, 102, 224, 0.1), rgba(77, 141, 246, 0.05));
  filter: none;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.hero-features .feature strong {
  display: block;
  font-size: 1.05rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}

.hero-features .feature span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.hero-text b {
  font-weight: 700;
  color: #18181b;
}

.latest-timestamp-card {
  margin: 40px auto 0;
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 460px;
  text-align: center;
  box-shadow: var(--shadow-xl), 0 0 40px rgba(31, 102, 224, 0.1);
  border: 1px solid rgba(31, 102, 224, 0.2);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.latest-timestamp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.latest-timestamp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl), 0 0 50px rgba(31, 102, 224, 0.15);
  border-color: rgba(31, 102, 224, 0.35);
}

.latest-timestamp-card:hover::before {
  left: 100%;
}

.latest-timestamp-label {
  font-size: 0.85rem;
  color: #4b5563;
}

.latest-timestamp-value {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
  .latest-timestamp-card {
    margin-top: 22px;
    padding: 12px 14px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .hero-features {
    gap: 20px;
  }
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
}

.hero-icon img {
  max-width: 210px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: 24px;
}

@media (max-width: 800px) {
  .hero {
    flex-direction: column;
    padding: 36px 0 12px 0;
    text-align: center;
  }

  .hero-icon {
    margin-top: 24px;
    margin-left: 0;
  }

  .hero-icon img {
    margin-left: 0;
    max-width: 150px;
  }
}
.upload-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  width: 100%;
}
/* Описателен параграф под заглавието – равни отстояния */
.verify-desc{
  margin-block: 16px;        /* равно разстояние над и под текста */
  margin-inline: auto;       /* центрира блока -> равни странични отстояния */
  max-width: 980px;          /* ограничена ширина за четимост */
  padding-inline: 24px;      /* вътрешен „буфер“ от ляво/дясно */
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .1px;
  text-align: center;        /* по избор: ако го искаш ляво, смени на left */
}



.upload-inline {
  display: flex;
  border: 1px solid #cdd6f3;
  border-radius: 6px;
  overflow: hidden;
  max-width: 650px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  background: #fff;
  height: 38px;
}

.upload-inline .upload-box {
  flex: 1;
  padding: 6px 10px;
  background: #f9f9f9;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.placeholder-text {
  color: #18181b;
}

.upload-btn {
  padding: 0 16px;
  background-color: #6ea8fe;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-btn:disabled {
  background-color: #b5c8f1;
  cursor: not-allowed;
}

.upload-btn:hover:enabled {
  background-color: #4f8df9;
}



/* UPLOAD SECTION */
.upload-section {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 1320px;
  /* Clear spacing below fixed navbar */
  margin: 24px auto 0;
  padding: 0 16px 16px;
  overflow: visible;
}

/* Hash/serial verification experience */
.verify-shell {
  max-width: 1200px;
  background: transparent;
  border-radius: 0;
  padding: 40px 32px 56px;
  margin: 56px auto 0;
  scroll-margin-top: 120px;
  box-shadow: none;
  border: none;
}

.verify-header h2 {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4d8df6, #1f66e0);
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

.verify-page {
  background: radial-gradient(circle at 20% 20%, rgba(31, 102, 224, 0.08), transparent 45%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.6), transparent 55%), linear-gradient(180deg, #f7fbff 0%, #ffffff 42%);
  padding-top: var(--size-px-0180);
}

.verify-hero {
  max-width: var(--layout-content-wide);
  margin: 0 auto;
  padding: var(--space-12) var(--space-4) var(--space-6);
}

.verify-hero__content h1 {
  margin: var(--space-2) 0 var(--space-3);
  color: var(--color-text-strong);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.verify-hero__lede {
  max-width: 880px;
  color: var(--color-text-muted);
  font-size: var(--font-size-1_05);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  background: rgba(31, 102, 224, 0.12);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--font-size-0_9);
}

.verify-hero__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: #fff;
  border: var(--border-width-hairline) solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  font-weight: 600;
}

.chip.ghost {
  background: var(--color-panel);
}

.verify-header h2 {
  margin-bottom: var(--space-2);
}

.verify-header .verify-desc {
  max-width: 820px;
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.2fr);
  gap: var(--space-6);
  align-items: start;
  margin-top: var(--space-2);
}

.verify-info-card {
  background: #fff;
  border-radius: 20px;
  padding: var(--space-5);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
  border: var(--border-width-hairline) solid var(--color-border-subtle);
}

.verify-info-card h3 {
  margin-top: 0;
  margin-bottom: var(--space-2);
  color: var(--color-text-strong);
}

.verify-steps {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.trust-callout {
  padding: var(--space-4);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 102, 224, 0.08), rgba(31, 102, 224, 0.03));
  border: var(--border-width-hairline) solid var(--color-border-subtle);
}

.trust-callout strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--color-text-strong);
}

.trust-callout p {
  margin: 0 0 var(--space-2) 0;
  color: var(--color-text-muted);
}

.trust-icons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.verify-panel-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.12);
  border: var(--border-width-hairline) solid var(--color-border-subtle);
  padding: var(--space-5);
  backdrop-filter: blur(4px);
}

.verify-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
  border-radius: 20px 20px 0 0;
  padding: 16px;
  margin: 28px auto 0;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: none;
}

.verify-tab {
  border: 1px solid rgba(31, 102, 224, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px 24px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex: 1 1 220px;
  text-align: center;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px rgba(31, 102, 224, 0.12);
  color: #1c2540;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.verify-tab:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e4eaff 100%);
  color: #1f66e0;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 102, 224, 0.18);
}

.verify-tab.active {
  background: linear-gradient(135deg, #4d8df6, #1f66e0);
  color: #fff;
  border-color: rgba(31, 102, 224, 0.5);
  transform: translateY(-2px);
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(31, 102, 224, 0.3);
}

.verify-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 102, 224, 0.35);
}

.verify-tab .tab-title {
  font-size: 1rem;
}

.verify-tab .tab-desc {
  font-size: 0.86rem;
  color: #516086;
  font-weight: 500;
  line-height: 1.3;
}

.verify-tab.active .tab-desc {
  color: rgba(255, 255, 255, 0.92);
}

.verify-panels {
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  padding: 40px 48px;
  display: grid;
  gap: 40px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: none;
}

.verify-panels .tab-panel {
  border-radius: 18px;
}

.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tab-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-panel .upload-box {
  padding: 32px;
  border: 1.5px solid var(--color-border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-radius: 18px;
  width: 100%;
  max-width: 100%;
}

.tab-panel.active .upload-box {
  border-color: var(--color-primary);
  box-shadow: 0 16px 38px rgba(31, 102, 224, 0.12);
}

.result-status-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  font-weight: 600;
  background: var(--color-panel);
  color: var(--color-text-strong);
  border: var(--border-width-hairline) solid var(--color-border-subtle);
}

.status-chip::before {
  content: '';
  width: 0;
  height: 0;
  display: none;
}

.status-chip.status--pending { color: var(--color-text-muted); }
.status-chip.status--success { color: var(--color-success); }
.status-chip.status--error { color: var(--color-danger); }

.digital-pass {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(31, 102, 224, 0.08), rgba(31, 102, 224, 0.02));
  border-radius: 18px;
  border: var(--border-width-hairline) solid var(--color-border-subtle);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-soft);
}

.digital-pass__qr {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  background:
    repeating-linear-gradient(45deg, var(--color-border-subtle), var(--color-border-subtle) 6px, transparent 6px, transparent 12px),
    repeating-linear-gradient(-45deg, var(--color-border-subtle), var(--color-border-subtle) 6px, transparent 6px, transparent 12px);
  box-shadow: inset 0 0 0 1px var(--color-border-subtle);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-text-strong);
  font-size: var(--font-size-1_05);
}

.digital-pass__meta h3 {
  margin: 0 0 var(--space-1) 0;
  color: var(--color-text-strong);
}

.digital-pass__desc {
  margin: 0 0 var(--space-3) 0;
  color: var(--color-text-muted);
}

.digital-pass__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
}

.digital-pass__grid .label {
  display: block;
  font-size: var(--font-size-0_9);
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.digital-pass__grid strong {
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-all;
}

.big-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 5px solid #d3d3d3;
  border-top: 5px solid var(--color-primary);
  border-radius: 50%;
  animation: spinBtn 0.8s linear infinite;
  margin: 32px auto 0 auto;
  box-sizing: border-box;
}

@keyframes spinBtn {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.big-check {
  display: block;
  font-size: 54px;
  color: var(--color-success);
  margin: 32px auto 0 auto;
  text-align: center;
  line-height: 1;
}

.result-card.animated-green {
  background: var(--color-success) !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s;
}

.result-card.animated-red {
  background: var(--color-danger) !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s;
}

.result-card.animated-green h3,
.result-card.animated-green label,
.result-card.animated-green .result-value,
.result-card.animated-red h3,
.result-card.animated-red label,
.result-card.animated-red .result-value {
  color: #fff !important;
}

.global-result-info {
  margin: 18px 0 0 0;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 1.13em;
  font-weight: 500;
  text-align: center;
  background: #f3f3f3;
  color: #222;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s, color 0.2s;
}

.global-result-info.success {
  background: var(--color-success);
  color: #fff;
}

.global-result-info.error {
  background: var(--color-danger);
  color: #fff;
}

.result-status-msg {
  font-size: 1.15em;
  font-weight: 500;
  text-align: center;
  margin: 0;
  padding: 6px 0;
  border-radius: 7px;
  background: #f3f3f3;
  color: #222;
  transition: background 0.2s, color 0.2s;
}

.result-status-msg.success {
  background: var(--color-success);
  color: #fff;
}

.result-status-msg.error {
  background: var(--color-danger);
  color: #fff;
}

.file-preview {
  margin-top: var(--space-3);
}

@media (max-width: 900px) {
  .verify-tabs {
    width: 100%;
    flex-wrap: wrap;
  }

  .digital-pass {
    grid-template-columns: 1fr;
  }
}

.stamp-two-column {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 0;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .stamp-two-column {
    flex-wrap: nowrap;
  }
}

.stamp-info-column {
  flex: 0 0 38%;
  max-width: 520px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(31, 102, 224, 0.12);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stamp-info-section + .stamp-info-section {
  margin-top: 16px;
}

.stamp-info-section h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: #1f2a44;
}

.stamp-info-section p {
  font-size: 0.98rem;
  line-height: 1.45;
  color: #303b54;
  margin: 0;
}

.stamp-info-list {
  list-style: disc;
  margin: 0 0 0 20px;
  padding: 0;
  color: #303b54;
  font-size: 0.98rem;
  line-height: 1.45;
}

.stamp-info-list li {
  margin-bottom: 6px;
}

.stamp-form-column {
  flex: 1 1 0;
  min-width: 480px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: 0;
  max-width: 100%;
}

.stamp-form-heading {
  padding: 0 20px 24px;
}

.stamp-form-heading h1 {
  font-size: 2rem;
  margin: 0 0 12px;
  color: #1f2a44;
}

.stamp-form-heading p {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.stamp-verification-intro {
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
}

.stamp-verification-intro h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #1f2a44;
}

.stamp-verification-intro p {
  font-size: 1.05rem;
  color: #374151;
  margin: 0;
}

.stamp-info-column .verify-desc {
  text-align: left;
  margin: 12px 0 0;
  max-width: none;
  padding-inline: 0;
}

.stamp-form-column h2 {
  background: linear-gradient(93deg, #3478f3, #6bb6ff);
  border-radius: 20px 20px 0 0;
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
  justify-content: center;
  white-space: normal;
  padding: 18px 24px;
  margin: 0;
}

.stamp-hero-price {
  margin: 0;
  padding: 10px 32px 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #0f172a;
  text-align: center;
}

.stamp-form-column .upload-card {
  box-shadow: none;
  background: transparent;
  padding: 12px 24px 20px;
  flex: 1;
  display: flex;
  max-width: 100%;
  overflow: visible;
}

.stamp-form-column .upload-box {
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 60, 130, 0.12);
  border: 1px solid rgba(109, 150, 242, 0.2);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: visible;
  max-width: 100%;
}

.stamp-form-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.stamp-details-section {
  flex: 1.5 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.stamp-payment-section {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  margin-top: 0;
  min-width: 280px;
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
}

.stamp-payment-section > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.stamp-payment-section .stamp-price-display {
  justify-content: flex-end;
}

.stamp-payment-section #uploadButton {
  width: 100%;
  margin-top: 8px;
  margin-bottom: 0;
}

.stamp-payment-section .terms-checkbox-inline {
  margin-top: 8px;
  margin-bottom: 0;
}

.stamp-price-display {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 12px;
  margin: 18px 0 2px 0;
  font-weight: 600;
  color: #24324a;
}

.stamp-price-display > * {
  max-width: 100%;
}

.stamp-price-display .price-label {
  justify-self: start;
  white-space: normal;
}

.stamp-price-display .price-value {
  justify-self: end;
  white-space: nowrap;
}

.stamp-price-display .price-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7890;
}

.stamp-price-display .price-value {
  font-size: 1.3rem;
  white-space: nowrap;
}

.stamp-price-display .promo-remaining,
.stamp-price-display .promo-badge,
.stamp-price-display .early-access-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.stamp-price-display .promo-remaining {
  background: #eef4ff;
  color: #2050a8;
}

.stamp-price-display .promo-badge,
.stamp-price-display .early-access-badge {
  background: #ffe9b3;
  color: #8a5b00;
}

.stamp-price-display .promo-remaining,
.stamp-price-display .promo-badge,
.stamp-price-display .early-access-badge {
  grid-column: 1 / -1;
  justify-self: end;
}

.promo-code-section {
  margin-top: 4px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 100%;
}

.promo-code-label {
  font-weight: 500;
  font-size: 0.95rem;
}

.promo-code-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.promo-code-form input {
  flex: 1 1 auto;
  min-width: 0;
}

.promo-code-form button {
  flex: 0 0 auto;
  padding: 10px 16px;
  white-space: nowrap;
}

.promo-code-message {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.promo-code-message.success {
  color: #1f7a1f;
}

.promo-code-message.error {
  color: #c62828;
}

.promo-code-message.info {
  color: #1f5fbf;
}

.stamp-price-note {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #3a4767;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  padding: 0;
}

.stamp-privacy-card {
  max-width: 1160px;
  margin: 32px auto 40px;
  background: #f7fbff;
  border: 1px solid rgba(109, 150, 242, 0.15);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(31, 102, 224, 0.12);
  padding: 28px 32px;
}

.stamp-privacy-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #1f2a44;
}

.stamp-privacy-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #303b54;
}

@media (min-width: 1200px) {
  .stamp-form-column .checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .stamp-two-column {
    flex-direction: column;
    padding: 24px 0 0;
    gap: 24px;
  }

  .stamp-info-column,
  .stamp-form-column {
    max-width: 100%;
  }

  .stamp-form-column {
    overflow: visible;
  }

  .stamp-info-column {
    padding: 28px 24px;
  }

  .stamp-form-column {
    box-shadow: none;
    min-width: 0;
    width: 100%;
    padding-bottom: 0;
  }

  .stamp-form-layout {
    flex-direction: column;
    gap: 24px;
  }

  .stamp-payment-section {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .stamp-form-heading {
    padding: 0 24px 20px;
  }

  .stamp-form-heading h1 {
    font-size: 1.65rem;
  }

  .stamp-privacy-card {
    margin: 24px 24px 40px;
  }
}

@media (max-width: 600px) {
  .upload-section {
    margin: 44px auto 0;
    padding: 0 12px 24px;
  }

  .stamp-info-column {
    padding: 22px 18px;
    box-shadow: 0 14px 32px rgba(31, 102, 224, 0.12);
  }

  .stamp-info-section h3 {
    font-size: 1.1rem;
  }

  .stamp-form-heading {
    padding: 0 18px 16px;
  }

  .stamp-form-heading h1 {
    font-size: 1.45rem;
  }

  .stamp-form-heading p {
    font-size: 0.95rem;
  }

  .stamp-form-column {
    border-radius: 0;
    box-shadow: none;
    max-width: min(380px, 94vw);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .stamp-form-column h2 {
    font-size: 0.98rem;
    padding: 12px 14px;
  }

  .stamp-hero-price {
    padding: 8px 18px 4px;
    font-size: 0.9rem;
  }

  .stamp-form-column .upload-card {
    padding: 18px 16px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .stamp-form-column .upload-box {
    min-width: 0;
    width: 100%;
    padding: 20px 16px;
    gap: 12px;
  }

  .stamp-form-column .upload-box::before {
    font-size: 18px;
  }

  .stamp-price-display {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 6px;
  }

  .stamp-price-display .price-value,
  .stamp-price-display .promo-remaining,
  .stamp-price-display .promo-badge,
  .stamp-price-display .early-access-badge {
    justify-self: start;
  }

  .stamp-form-column .top-fields {
    gap: 12px;
    flex-direction: column;
  }

  .stamp-form-column .top-field {
    min-width: 100%;
  }

  .stamp-form-column .file-input-wrapper {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .stamp-form-column .file-input-wrapper label,
  .stamp-form-column .file-input-wrapper span {
    width: 100%;
    text-align: left;
  }

  #uploadButton {
    width: 100%;
  }

  .stamp-form-column .checkbox-label {
    gap: 8px;
  }

  .stamp-form-column .nested-options {
    margin-left: 18px;
  }

  #sendCertBtn {
    margin-left: 0;
    margin-top: 16px;
  }

  #uploadButton {
    width: 100%;
    padding: 12px 14px;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    min-height: 50px;
    box-sizing: border-box;
  }

  .result-card {
    padding: 24px 18px;
  }

  .result-value {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .result-value .copy-btn {
    margin-top: 4px;
  }

  .stamp-price-note {
    font-size: 0.85rem;
    margin-top: 16px;
    margin-bottom: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  .stamp-privacy-card {
    margin: 24px 0 32px;
    padding: 24px 18px;
  }
}

@media (max-width: 480px) {
  body {
    overflow-x: hidden;
  }

  .upload-section {
    padding: 0 10px 20px;
  }

  .stamp-info-column {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .stamp-form-column {
    border-radius: 0;
    padding-bottom: 0;
  }

  .stamp-form-column h2 {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .stamp-form-column .upload-card {
    padding: 16px 12px 24px;
  }

  .stamp-form-column .upload-box {
    padding: 18px 14px;
    gap: 10px;
  }

  .top-fields {
    flex-direction: column;
    gap: 12px;
  }

  .promo-code-form {
    flex-direction: row;
    align-items: stretch;
  }

  .promo-code-form button {
    width: auto;
  }

  .stamp-price-display {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 4px;
  }

  .stamp-price-display .price-value,
  .stamp-price-display .promo-remaining,
  .stamp-price-display .promo-badge,
  .stamp-price-display .early-access-badge {
    justify-self: start;
  }

  .download-button,
  .send-button,
  #uploadButton {
    width: 100%;
    box-sizing: border-box;
  }

  .result-card {
    margin: 24px auto 0;
    padding: 20px 16px;
  }

  .result-value {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .payment-modal-content {
    width: calc(100% - 32px);
    padding: 1.25rem;
  }

  .payment-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .payment-buttons button {
    width: 100%;
  }

.stamp-privacy-card {
  margin: 20px 12px 32px;
  padding: 20px 16px;
}
}

/* Legacy upload section header (other pages) */
.upload-section h2 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
  font-size: 18px;
  font-weight: var(--font-weight-semibold);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: var(--shadow-md);
}

.upload-section h2 .emoji {
  font-size: 20px;
  margin-right: 8px;
}

/* Compact variant for the main stamp form card on small screens */
@media (max-width: 600px) {
  .upload-section .stamp-form-column h2 {
    font-size: 0.95rem;
    padding: 10px 12px;
    line-height: 1.3;
    width: calc(100% - 32px);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .upload-section .stamp-form-column h2 {
    font-size: 0.85rem;
    padding: 8px 10px;
    line-height: 1.25;
    width: calc(100% - 40px);
    margin: 0 auto;
  }
}

.upload-card {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
}

.upload-box {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  padding: 28px 24px;
  flex: 1;
  min-width: 280px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.upload-box:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.recaptcha-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.upload-box::before {
  content: attr(data-label);
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 26px;
  margin-bottom: 14px;
  white-space: pre-line;
}

.upload-box.original::before {
  background: #adadad1f;
  color: #3c3c3c;
}

.upload-box.serial::before {
  background: #fff8d9;
  color: #997d00;
}

.upload-box.hash::before {
  background: #e1f1e1;
  color: #236c23;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--color-bg-light);
  transition: all var(--transition-base);
}

.file-input-wrapper:hover {
  border-color: var(--color-primary);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.file-input-wrapper label {
  background: #4d8df6;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.file-input-wrapper label:hover {
  background: #2a6ee0;
}

input[type="file"] {
  display: none;
}

.file-input-wrapper span {
  color: #555;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 150px; /* още по-късо име, за да не разтяга колоната */
}

.upload-box input[type="text"],
.upload-box input[type="email"],
.upload-box input[type="password"] {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  transition: all var(--transition-base);
  background: var(--color-bg);
}

.upload-box textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  width: 100%;
  resize: vertical;
  transition: all var(--transition-base);
  background: var(--color-bg);
  font-family: var(--font-family);
}

/* По-стабилен фокус на полетата, без да „излиза“ черна линия извън колоната */
.upload-box input[type="text"]:focus,
.upload-box textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 141, 246, 0.1);
  transform: translateY(-1px);
}

.top-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.top-fields-stack {
  flex-direction: column;
  gap: 16px;
}

.top-fields-stack .top-field {
  min-width: 100%;
}

.top-field {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Подреди чекбокси вертикално */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 8px;
}

.checkbox-item {
  display: block;
  width: 100%;
}

/* Вътрешни (зависими) опции също вертикално и с отстъп */
.nested-options {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
  margin: 4px 0 0 28px;
}

/* Естетика на етикета + подравняване с чекбокса */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.25;
}

/* Позволи на текста да се свива и пренася в тесни колони (мобилно) */
.checkbox-label > span {
  flex: 1 1 0;
  min-width: 0;
}

.issuer-type-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
}

.issuer-type-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  cursor: pointer;
}

.issuer-type-option input[type="radio"] {
  margin: 0;
}

.issuer-extra-field input {
  width: 100%;
}

.options-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px 0;
}

.options-divider-line {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(148, 163, 184, 0.4);
}

.options-divider-label {
  flex-shrink: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7890;
}

.terms-checkbox-inline {
  display: block;
  margin-top: 12px;
  margin-bottom: 4px;
}


.upload-box button {
  background-color: #4d8df6;
  color: white;
  border: none;
  outline: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-box button:hover {
  background-color: #2a6ee0;
}

#uploadButton {
  border: none;
  outline: none;
  border-radius: 10px;
  background: rgba(77, 141, 246, 0.95);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 16px;
  min-height: 50px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 10px rgba(77, 141, 246, 0.6);
  transition: box-shadow 0.25s ease, background 0.2s ease;
}

#uploadButton:hover:not(:disabled) {
  background: rgba(77, 141, 246, 1);
  box-shadow: 0 0 14px rgba(77, 141, 246, 0.8);
}

#uploadButton:active:not(:disabled) {
  box-shadow: 0 0 8px rgba(77, 141, 246, 0.5);
}

#uploadButton:focus-visible {
  outline: 3px solid rgba(31, 102, 224, 0.35);
  outline-offset: 2px;
}

#uploadButton:disabled {
  cursor: not-allowed;
  opacity: 0.82;
  box-shadow: none;
}

.justify-center {
  justify-content: center;
}

/* RESULT CARD */
.result-card {
  background: var(--color-bg);
  margin: 40px auto 0;
  padding: 32px 32px 36px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 1000px;
  width: 100%;
  border: 1px solid var(--color-border-subtle);
  opacity: 0;
  transform: translateY(24px);
  transition: all var(--transition-base);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease;
}

.result-card * {
  text-align: left;
}

.result-card.result-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.result-card.result-card--loading {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

/* Progress bar над картата с резултат */
.result-progress {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  margin-bottom: 18px;
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: left center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.result-progress__bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4d8df6, #22c55e);
  transition: width 0.25s ease;
}

.result-progress--active {
  opacity: 1;
  transform: scaleX(1);
}

.result-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2b41;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e6f0;
  padding-bottom: 8px;
}

.result-row {
  margin-bottom: 20px;
}

.result-row label {
  font-size: 12px;
  font-weight: 600;
  color: #888;
  margin-bottom: 6px;
  display: block;
}

.result-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #1d1d1f;
  word-break: break-word;
}

.result-value span {
  display: inline-block;
  white-space: break-spaces;
}

.copy-btn {
  background: none;
  border: none;
  font-size: 14px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.copy-btn:hover {
  color: #000;
}

.send-button {
  margin-top: 24px;
  background-color: #1a4ed8;
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.send-button:hover {
  background-color: #1441c4;
}

#sendCertBtn {
  margin-left: 10px;
}

/* File preview inside result card */
.file-preview {
  margin-top: 20px;
}

.file-preview iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

/* === AUTH CONTAINERS === */
.auth-container {
  max-width: 40%;
  margin: 60px auto;
  background: var(--color-bg);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 24px;
  color: #1f2b41;
}

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

.auth-helper {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #556076;
  text-align: center;
}

.auth-links {
  display: flex;
  justify-content: flex-end;
  font-size: 0.9rem;
  margin-top: -10px;
}

.auth-links a {
  color: #2a6ee0;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-container input[type="text"],
.auth-container input[type="password"],
.auth-container input[type="email"],
.auth-container input[type="tel"] {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: all var(--transition-base);
  background: var(--color-bg);
  width: 100%;
}

.auth-container select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234d8df6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 14px) 50%;
  background-size: 12px 8px;
  padding-right: 40px;
  color: #1f2b41;
  font-weight: 500;
}

.auth-container input:focus,
.auth-container select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(77, 141, 246, 0.1);
  outline: none;
}

.auth-container select:hover {
  border-color: #4d8df6;
}

.auth-container button {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  width: 100%;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.auth-container button:hover {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.auth-container button:active {
  transform: translateY(0);
}

.phone-field {
  display: flex;
  gap: 8px;
}

.phone-field .phone-country-select {
  flex: 0 0 36%;
  max-width: 160px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  background-color: #fff;
  cursor: pointer;
}

.phone-field input[type="tel"] {
  flex: 1 1 auto;
}

.auth-container input.error,
.auth-container select.error {
  border-color: #b30000;
  box-shadow: 0 0 0 2px rgba(179, 0, 0, 0.15);
}

.field-error {
  font-size: 12px;
  color: #b30000;
  margin-top: -12px;
  margin-bottom: 8px;
}

.password-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.password-strength {
  font-size: 12px;
  color: #6b7280;
}

.password-strength--weak {
  color: #b30000;
}

.password-strength--medium {
  color: #d97706;
}

.password-strength--strong {
  color: #157c33;
}

.signup-success-step {
  margin-top: 24px;
  padding: 20px 16px;
  border-radius: 12px;
  background-color: #e7f0ff;
  color: #103e8f;
}

.signup-success-step h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.signup-success-step p {
  font-size: 14px;
  line-height: 1.5;
}

.signup-success-cta {
  margin-top: 16px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #1f66e0;
  background: #fff;
  color: #1f66e0;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.signup-success-cta:hover {
  background: #e6f0ff;
  box-shadow: 0 4px 12px rgba(31, 102, 224, 0.25);
}

/* === FORM MESSAGES === */
.message,
.auth-container .message {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 14px;
}

.message.error,
.auth-container .message.error {
  background-color: #ffe4e4;
  color: #b30000;
}

.message.success,
.auth-container .message.success {
  background-color: #e2ffe7;
  color: #157c33;
}

.message.info,
.auth-container .message.info {
  background-color: #e7f0ff;
  color: #103e8f;
}

/* === VERIFY PAGE === */
.verify-container {
  text-align: center;
}

.verify-container .verify-form {
  align-items: stretch;
  gap: 16px;
}

.verify-container input[type="text"] {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.verify-container .message {
  margin-top: 24px;
}

.verification-details {
  margin-top: 24px;
  text-align: left;
}

.verify-details__title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: #122644;
}

.verify-details__description {
  margin: 0 0 18px 0;
  color: #334155;
  line-height: 1.6;
  white-space: pre-wrap;
}

.verify-preview {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #f5f8ff;
  border: 1px solid #dbe4ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.verify-preview__title {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 600;
  color: #1f2b41;
}

.verify-preview__description {
  margin: 0 0 14px 0;
  color: #334155;
  line-height: 1.5;
  white-space: pre-wrap;
}

.verify-preview__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.verify-preview__media {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.verify-preview__media--video,
.verify-preview__media--audio {
  width: 100%;
  box-shadow: none;
  background: transparent;
}

.verify-preview__frame {
  width: 100%;
  min-height: 420px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.verify-preview__text {
  width: 100%;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  background: #fff;
  border: 1px solid #dbe4ff;
  border-radius: 10px;
  line-height: 1.5;
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.verify-preview__caption {
  margin: 14px 0 0 0;
  font-weight: 500;
  color: #1f2b41;
  text-align: center;
}

.verify-preview__error {
  margin: 0;
  color: #b4231a;
  font-weight: 500;
  text-align: center;
}

.verify-preview__download {
  margin-top: 24px;
}

.verification-details h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #1f2b41;
}

.verification-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9fafc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.verification-table th,
.verification-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
  text-align: left;
}

.verification-table th {
  width: 40%;
  font-weight: 600;
  background-color: #edf2f7;
  color: #0f172a;
}

.verification-table tr:last-child th,
.verification-table tr:last-child td {
  border-bottom: none;
}

.verify-back-link {
  margin-top: 28px;
  text-align: center;
}

.verify-back-link a {
  color: #1f66e0;
  font-weight: 500;
}

.verify-code-form {
  margin-bottom: 20px;
}

.verify-email-action {
  width: 100%;
  margin-top: 10px;
}

.notification {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.notification.success {
  background-color: #e2ffe7;
  color: #157c33;
}
.notification.error {
  background-color: #ffe4e4;
  color: #b30000;
}
.notification.info {
  background-color: #e7f0ff;
  color: #103e8f;
}
.notification.loading {
  background-color: #fff3cd;
  color: #856404;
}

.toast-container {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 5000;
  width: min(420px, calc(100% - 32px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #60a5fa;
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  pointer-events: auto;
  animation: toastIn 0.2s ease;
}
.toast--success {
  border-left-color: #49d81a;
  background: #f1fff4;
}
.toast--error {
  border-left-color: #ef4444;
  background: #fff2f2;
}
.toast--info {
  border-left-color: #3b82f6;
  background: #f3f7ff;
}
.toast--hide {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast__text {
  flex: 1;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1.4;
}
.toast__close {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}
.toast__close:hover {
  color: #111827;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 600px) {
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}

/* === UTILITY === */
.hidden {
  display: none !important;
}

/* Dedicated hidden class for the main upload button text */
.upload-text-hidden {
  display: none !important;
}

.download-button {
  margin-top: 24px;
  background-color: #1f66e0;
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 18px rgba(31, 102, 224, 0.25);
}

.download-button:hover {
  background-color: #1554c8;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31, 102, 224, 0.32);
}

.status {
  margin-top: 8px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status.success {
  color: green;
}

.status.error {
  color: red;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #f9f9f9;
}

table tr:hover {
  background-color: #f0f4ff;
}

.file-table {
  font-size: 16px;
  margin-top: 10px;
}

.about-section {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

.about-section h2,
.about-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
}

.about-section p {
  font-size: 1.1rem;
  color: #444;
  max-width: 900px;
  margin-bottom: 25px;
}

.about-section ul {
  list-style-type: disc;
  padding-left: 40px;
  max-width: 900px;
}

.about-section li {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #333;
}

.about-section strong {
  color: #000;
}

.profile-section {
  font-size: 18px;
  line-height: 1.8;
  padding: 20px;
}

.profile-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.profile-section p {
  font-size: 20px;
  margin: 8px 0;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.profile-header .info {
  display: flex;
  flex-direction: column;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 3rem;
}

.upload-pic-form {
  margin-bottom: 15px;
}


.upload-pic-form button {
  background-color: #4d8df6;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.upload-pic-form button:hover {
  background-color: #2a6ee0;
}

.public-options {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 0;
  row-gap: 6px;
  align-items: start;
}

.public-options label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
}

.pagination-controls {
  margin-top: 20px;
  text-align: center;
}

.pagination-controls button {
  margin: 0 4px;
  padding: 6px 12px;
  background-color: #eee;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-controls button.active {
  background-color: #4CAF50;
  color: white;
}

table.verification-table {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table.verification-table th,
table.verification-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
}

table.verification-table th {
  width: 180px;
  background-color: #f7f7f7;
  font-weight: 600;
}

.credit-note {
  background: #f0f7ff;
  border: 1.5px solid #b3d4fc;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 1.08em;
  color: #1a2a3a;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.07);
}

.credit-note .credit-icon {
  font-size: 1.7em;
  margin-right: 8px;
  margin-top: 2px;
}

/* Стилизиране на TSA дропдауна */
#tsaSelect {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #b3d4fc;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 1.08em;
  color: #1a2a3a;
  margin: 8px 0 12px 0;
  transition: border 0.2s;
  outline: none;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.03);
}

#tsaSelect:focus {
  border-color: #4d8df6;
  background: #f0f7ff;
}

#tsaSelect option {
  background: #fff;
  color: #1a2a3a;
  font-size: 1em;
  padding: 8px 0;
}

.credit-info-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f0f7ff;
  border: 1.5px solid #b3d4fc;
  border-radius: 10px;
  padding: 16px 22px;
  margin: 0 0 28px 0;
  font-size: 1.12em;
  color: #1a2a3a;
  box-shadow: 0 2px 8px rgba(79, 158, 255, 0.07);
  flex-wrap: wrap;
}

.credit-info-bar .credit-icon {
  font-size: 2em;
  margin-right: 8px;
  margin-top: 2px;
}

.credit-info-bar .credit-main {
  font-weight: 500;
  color: #1a2a3a;
}

.credit-info-bar .credit-sub {
  color: #1f66e0;
  font-size: 0.98em;
  margin-left: auto;
  font-weight: 400;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .credit-info-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 1em;
    padding: 12px 10px;
  }

  .credit-info-bar .credit-sub {
    margin-left: 0;
    white-space: normal;
  }
}

.open-preview-btn {
  margin: 18px auto 0 auto;
  display: block;
  padding: 10px 22px;
  background: #4d8df6;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.open-preview-btn:hover {
  background: #2560c0;
}

.preview-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 40, 60, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-modal.hidden {
  display: none;
}

.preview-modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 24px 24px;
  max-width: 80vw;
  max-height: 85vh;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2.5px solid #4d8df6;
}

.preview-modal-content iframe {
  width: 64vw;
  height: 60vh;
  border: 2px solid #b3d4fc;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 2px 12px rgba(79, 158, 255, 0.10);
  margin: 0 auto;
  display: block;
}

.preview-modal-content img {
  max-width: 60vw;
  max-height: 60vh;
  border: 2px solid #b3d4fc;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 2px 12px rgba(79, 158, 255, 0.10);
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.preview-modal-content audio {
  max-width: 60vw;
  max-height: 60vh;
  border: 2px solid #b3d4fc;
  border-radius: 12px;
  background: #f7f7f7;
  box-shadow: 0 2px 12px rgba(79, 158, 255, 0.10);
  margin: 0 auto;
  display: block;
}

.close-preview-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #333;
  cursor: pointer;
  z-index: 2;
}

/* Watermark overlay inside preview modal */
.watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48dGV4dCB4PScwJyB5PScxNTAnIHRyYW5zZm9ybT0ncm90YXRlKC00NSAxMDAgMTAwKScgZmlsZD0ncmdiYSgxNTAsMTUwLDE1MCwwLjM1KScgZm9udC1zaXplPScyMCcgZm9udC1mYW1pbHk9J0FyaWFsJz5TZWN1cmVkIGJ5IFN0YW1wUjwvdGV4dD48L3N2Zz4=");
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.25;
  z-index: 1;
}

.logo img {
  max-height: 40px;
  width: auto;
}

/* FOOTER STYLING */
.footer {
  background-color: #dddddd;
  color: #222;
  text-align: center;
  padding: 0;
  /* no inner padding */
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: calc(100% + 40px);
  /* extend width to cover body padding (20px each side) */
  margin: 0 -20px;
  /* offset horizontal body padding */
  border-top: 2px solid #ccc;
}

.footer p {
  margin: 0;
}

/* Button Styling */
.template-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4d8df6, #1f66e0);
  color: #fff;
  font-weight: 600;
  font-size: 1.05em;
  padding: 14px 28px;
  border-radius: 999px;
  margin: 14px 0 0 0;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 12px 20px rgba(77, 141, 246, 0.35);
  border: none;
  cursor: pointer;
}

.template-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(77, 141, 246, 0.35);
}

/* FAQ SECTION */
.faq-section {
  max-width: 700px;
  margin-left: 0;
  margin-right: auto;
  padding-left: 20px;
}

.faq-dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.faq-item {
  width: 100%;
  max-width: 600px;
}

.faq-btn {
  background: #fff;
  color: #222;
  border: 1.5px solid #e0e6f0;
  border-radius: 10px 10px 0 0;
  padding: 14px 28px;
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(77, 141, 246, 0.04);
  outline: none;
  text-align: left;
  width: 100%;
  border-bottom: none;
  position: relative;
  z-index: 2;
}

.faq-toggle {
  background: #fff;
  padding: 14px 22px;
  font-weight: 600;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
  font-size: 1.25em;
  /* увеличен размер */
}

.faq-btn.open,
.faq-btn:hover,
.faq-btn:focus {
  background: #f5f7fb;
  box-shadow: 0 4px 16px rgba(77, 141, 246, 0.08);
}

.faq-answer {
  width: 100%;
  background: #fff;
  color: #1a2a3a;
  border-radius: 0 0 10px 10px;
  border: 1.5px solid #e0e6f0;
  border-top: none;
  padding: 0 28px 16px 28px;
  font-size: 1.08em;
  display: none;
  box-shadow: 0 2px 8px rgba(77, 141, 246, 0.04);
  text-align: left;
  position: relative;
  z-index: 1;
}

.faq-answer.open {
  display: block;
  animation: fadeIn 0.2s;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== PATCH 2025-06-18 ==== */

/* 1. Навбар – по-добро центриране + плавна сянка */
.header {
  background: #e7e7e7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.nav .nav-link {
  font-size: var(--font-size-0_95);
  letter-spacing: 0.02em;
}

.logo img {
  max-height: 40px;
}

/* 2. Герой – лека анимация и по-мек фон */
.hero {
    background:
      radial-gradient(circle at 20% 20%, rgba(31, 102, 224, 0.15) 0%, transparent 60%),
      radial-gradient(circle at 80% 50%, rgba(31, 102, 224, 0.1) 0%, transparent 60%),
      linear-gradient(135deg, #e3f2ff, #ffffff);
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    font-weight: var(--font-weight-semibold);
    font-size: 1.1rem;
    padding: 16px 36px;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-darker));
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:active {
    transform: translateY(0);
}


@media(max-width:700px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .hero-icon img {
    max-width: 90px;
    margin-top: 24px;
  }
}
/* steps */
.steps-section {
  text-align: center;
  margin: 100px auto 140px auto;
  max-width: 1200px;
  padding: 0 20px;
  overflow: visible;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.steps-section h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 90px;
  color: #1a1a1a;
  position: relative;
  z-index: 2;
}
/* Step Wrapper to allow numbers to remain outside */
.step-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.steps-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: 100px;
  color: var(--color-text);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.how-panels {
  max-width: 1100px;
  margin: 0 auto;
}

.how-text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2b3445;
  margin: 0 auto 18px;
  max-width: 900px;
}

.how-flow {
  display: grid;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto 20px;
}

.how-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 26px 22px 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(77, 141, 246, 0.18), transparent 45%),
    linear-gradient(180deg, #ffffff, #f7faff);
  border: 1px solid rgba(31, 102, 224, 0.12);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.how-step__badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f66e0, #4d8df6);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(31, 102, 224, 0.35);
  transform: translateX(-6px);
}

.how-step__body h3 {
  margin: 2px 0 6px;
  font-size: 1.15rem;
  color: #151b2d;
}

.how-step__body p {
  margin: 0;
  color: #2b3445;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .how-step {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }
  .how-step__badge {
    width: 44px;
    height: 44px;
    transform: none;
  }
}

.steps-subtitle {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  margin: 60px auto 90px auto;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px; /* Added more gap between boxes and title indirectly */
  align-items: stretch;
  margin-top: 10px; /* Added extra space above grid */
}


.steps-section .accent {
  color: #f04c85; /* Same red as numbers */
  font-weight: bold;
  font-size: 1.8rem;
}


/* OUTSIDE number on edge */
.step-number-outside {
  position: absolute;
  top: 0; /* Align exactly with top edge of box */
  left: 0; /* Align exactly with left edge */
  transform: translate(-50%, -50%); /* Half outside, half inside */
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2.2px #f04c85;
  filter:
    drop-shadow(0 0 4px rgba(240, 76, 133, 0.2))
    drop-shadow(0 0 10px rgba(240, 76, 133, 0.14));
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  z-index: 2;
  pointer-events: none;
}

/* Step Card */
.step-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(31, 102, 224, 0.15);
  box-shadow: var(--shadow-lg);
  padding: 80px 28px 36px;
  text-align: center;
  transition: all var(--transition-base);
  overflow: visible;
  flex-grow: 1;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(31, 102, 224, 0.2), rgba(77, 141, 246, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.step-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity var(--transition-base);
}

/* Heading closer to icon */
.step-card h3 {
  margin-top: 6px;
  font-size: 1.6rem;

  font-weight: 700;
  color: #1a1a1a;
}

.step-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
  margin-top: 15px; /* slightly tighter spacing */
}


.step-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-2xl), 0 0 40px rgba(31, 102, 224, 0.15);
  border-color: rgba(31, 102, 224, 0.3);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 255, 0.95));
}

.step-card:hover::before {
  opacity: 1;
}

.step-card:hover::after {
  opacity: 1;
}

/* Blurred number INSIDE box */
.step-number-inside {
  display: none;
}

/* Icon circle outside */
.step-icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-primary), 0 0 30px rgba(31, 102, 224, 0.3);
  z-index: 3;
  transition: all var(--transition-base);
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.step-card:hover .step-icon {
  transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-primary-lg), 0 0 50px rgba(31, 102, 224, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.step-icon img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .step-number-outside,
  .step-number-inside {
    font-size: 3.8rem;
  }
  .step-icon {
    width: 75px;
    height: 75px;
  }
}
/* audience */
/* Контейнер */
/* Правим самата секция grid-контейнер */
.audience-section{
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px 32px;
  display:grid;
  grid-template-columns:repeat(5, minmax(0,1fr)); /* десктоп */
  gap:26px 36px;
  justify-items:center;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

/* Заглавието да заема цял ред */
.audience-section > h2{ grid-column:1 / -1; }

/* ВАЖНО: „сплескваме“ вътрешните .audience-grid,
   така че картите им да станат деца на .audience-section */
.audience-section .audience-grid{
  display:contents;
}

/* Responsive: 2 колони на мобилни → 5 реда × 2 колони за 10 карти */
@media (max-width: 900px){
  .audience-section{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px 18px; }
}

/* Много тесни екрани → 1 колона */
@media (max-width: 350px){
  .audience-section{ grid-template-columns:1fr; gap:16px; }
}


/* Заглавие */
.audience-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.audience-section .accent {
  color: #ff7a00;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}

/* Grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 36px 24px;
  justify-items: center;
  margin-bottom: 36px;
}

/* Карта */
.audience-card {
  text-align: center;
  max-width: 180px;
  transition: transform var(--transition-base);
}

.audience-card:hover {
  transform: translateY(-4px);
}

/* Кръгъл бейдж със сянка */
.audience-badge {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 255, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(31, 102, 224, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition-base);
  position: relative;
}

.audience-badge::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: -1;
}

.audience-card:hover .audience-badge {
  box-shadow: var(--shadow-xl), 0 0 30px rgba(31, 102, 224, 0.2);
  transform: scale(1.08) rotate(5deg);
  border-color: rgba(31, 102, 224, 0.3);
}

.audience-card:hover .audience-badge::before {
  opacity: 0.1;
}
.audience-icon {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Текст под иконите */
.audience-card p {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin: 0;
}


/* benefits */
.benefits-section {
  max-width: 1200px;
  margin: 120px auto;
  padding: 0 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.benefits-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.benefits-section .accent {
  color: #247cfb; /* Blue accent for this section */
  font-weight: bold;
  font-size: 1.8rem;
}

.benefits-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

/* List */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.benefits-list li {
  font-size: 1.05rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #222;
}

.benefits-list li img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* Icon */
.benefits-icon {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 244, 255, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.benefits-icon:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.sample-data-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.9);
  border: 1px solid rgba(45, 70, 130, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.sample-data-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-text-strong, #0f172a);
}

.sample-data-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sample-data-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.98rem;
  color: var(--c-text, #1f2933);
}

.sample-data-list span:first-child {
  font-weight: 600;
  color: var(--c-text-strong, #0f172a);
}

.sample-data-list span:last-child {
  color: var(--c-text, #1f2933);
}

.certificate-preview {
  display: none;
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 12px;
  background: #fff;
}

html[lang="bg"] .certificate-preview[data-lang="bg"],
html[lang="en"] .certificate-preview[data-lang="en"],
html[lang="es"] .certificate-preview[data-lang="es"],
html[lang="de"] .certificate-preview[data-lang="de"],
html[lang="fr"] .certificate-preview[data-lang="fr"],
html[lang="it"] .certificate-preview[data-lang="it"] {
  display: block;
}

.certificate-viewer {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certificate-viewer:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(31, 102, 224, 0.18);
}

.certificate-viewer::after {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(31, 102, 224, 0.2);
  pointer-events: none;
}

.certificate-cta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: none;
  background: linear-gradient(135deg, #1f66e0, #4d8df6);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31, 102, 224, 0.3);
}

.certificate-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(31, 102, 224, 0.35);
}

.certificate-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.certificate-modal.is-open {
  display: flex;
}

.certificate-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 24, 0.7);
  backdrop-filter: blur(6px);
}

.certificate-modal__panel {
  position: relative;
  width: min(1100px, 92vw);
  height: min(90vh, 900px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
}

.certificate-modal__frame {
  width: 100%;
  height: 100%;
  border: none;
}

.certificate-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
}

.certificate-preview a {
  color: #1a4ed8;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .certificate-preview {
    height: 260px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .benefits-content {
    flex-direction: column;
    text-align: center;
  }
  .benefits-list {
    text-align: left;
  }
  .sample-data-card {
    margin-top: 20px;
    padding: 16px;
  }
}
/* legal *//* Правна стойност */
.legal-section {
  text-align: center;
  margin: 100px auto;
  max-width: 900px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 1s forwards;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}

.legal-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.legal-section .accent {
  color: #f04c85;
  font-weight: bold;
  font-size: 1.8rem;
}

.legal-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

.legal-paragraph a,
.faq-content a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

/* FAQ Section */
.faq-section {
  margin: 120px auto;
  max-width: 1100px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
  content-visibility: auto;
  contain-intrinsic-size: 1000px;
}

.faq-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--font-weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.faq-section .accent.orange {
  color: #f07c00; /* Orange accent */
  font-weight: bold;
  font-size: 1.8rem;
}


.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: #fff;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: '–';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.faq-answer p {
  margin: 15px 0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.faq-question[aria-expanded="true"] + .faq-answer {
  max-height: 500px;
  padding-bottom: 15px;
}


/* 3. Карти (общ стил) – повече „въздух“ и цвят на заглавието */
.card {
  transition: transform .18s, box-shadow .18s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.card h3 {
  color: #133c80;
}

/* 4. Шаблон-бутоните – еднаква височина на мобилни */
@media(max-width:600px) {
  .template-btn {
    width: 100%;
    text-align: center;
  }
}

/* 5. FAQ – стрелка индикация с псевдо-елемент */
.faq-btn::after {
  content: "▸";
  float: right;
  transition: transform .2s;
  font-size: .9em;
  margin-left: 8px;
}

.faq-btn.open::after {
  transform: rotate(90deg);
}

/* 6. Footer – без хоризонтално преливане, но 100 % ширина */
.footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 0;
  background: #ececec;
  border-top: 1px solid #ccc;
}


/* 8. По-гъвкава .auth-container при малки екрани */
@media(max-width:800px) {
  .auth-container {
    max-width: 90%;
    padding: 32px 24px;
  }
}

@media(max-width:600px) {
  .verification-table {
    box-shadow: none;
    border-radius: 10px;
  }

  .verification-table th,
  .verification-table td {
    display: block;
    width: 100%;
    border-bottom: none;
    padding: 12px 14px;
  }

  .verification-table th {
    background-color: transparent;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .verification-table td {
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    word-break: break-word;
  }

  .verify-back-link {
    margin-top: 20px;
  }
}

@media(max-width:480px) {
  .auth-container {
    padding: 28px 18px;
  }

  .auth-container h2 {
    font-size: 22px;
  }

  .auth-container form {
    gap: 16px;
  }

  .auth-container input[type="text"],
  .auth-container input[type="password"],
  .auth-container input[type="email"] {
    font-size: 16px;
  }

  .auth-container button {
    font-size: 16px;
  }
}

/* 9. По-контрастен drop-down в навбара */
.dropdown-menu {
  border: 1px solid #c4c4c4;
}

/* ==== край на PATCH ==== */
/* ==== PATCH-2  (центриране и типография) ==== */

/* 1. Центрирай съдържателните секции и сложи максимум ширина */
#why,
#contacts,
#docs,
#faq {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

/* 2. Унифицирани заглавия вътре в секциите */
#why h2,
#contacts h2,
#docs h2,
#faq h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* 3. Плавни вертикални разстояния между картите, списъците и заглавията */
.card-block {
  margin-top: 60px;
}

.card+.card {
  margin-top: 32px;
}

ul {
  margin-top: 12px;
  line-height: 1.6;
}

/* 4. Линковете в параграфи – фирменият ви цвят + underline при hover */
a[href^="http"],
a[href^="mailto"],
a[href^="tel"] {
  color: #1a4ed8;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 5. Темплейт-бутоните да са подравнени по центъра дори на десктоп */
.templinks {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.templinks a {
  min-width: 180px;
  text-align: center;
}

.template-grid {
  align-items: stretch;
}

.template-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 260px;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.template-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  line-height: 1.35;
}

.template-card p {
  margin-bottom: 0.5rem;
  color: #374151;
}

.template-card .template-btn {
  margin-top: auto;
  margin-left: 0;
  margin-right: 0;
  align-self: flex-start;
}

.template-card-toggle {
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 600;
  cursor: pointer;
  color: #111827;
  gap: 12px;
}

.template-card-toggle:focus {
  outline: 2px solid rgba(79, 70, 229, 0.45);
  outline-offset: 2px;
}

.template-card-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #cbd5f5;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #4d8df6;
  transition: transform 0.2s;
}

.template-card.open .template-card-icon {
  transform: rotate(45deg);
}

.template-card-details {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.template-card.open .template-card-details {
  display: block;
}

/* 6. Контактните карти – по-читаема шапка + лек фон при hover */
.card h3 {
  font-size: 1.3rem;
}

.card:hover {
   background: #fff;     /* Use pure white */
}

/* 7. Сивият navbar и footer – малко по-топъл цвят */
.header,
.footer {
   background: #fff;     /* Use pure white */
}

/* 8. Light режим за списъците в главния текст (черна точка -> дискретна) */
ul li {
  list-style-type: disc;
  margin-left: 20px;
}

/* 9. Малък „breathing room“ под главния hero */
.hero {
  margin-bottom: 30px;
}

/* ==== край на PATCH-2 ==== */
/* ==== PATCH-3  (layout & readability)  ==== */

/* 1. Унифицирана „вътрешна рамка“ за всички card-block секции */
#why>*,
#contacts>*,
#docs>*,
#faq>* {
  max-width: 980px;
  /* става широк почти колкото картите */
  margin-left: auto;
  margin-right: auto;
}

/* 2. По-голямо междусекционно разстояние */
#contacts {
  margin-top: 80px;
}

#docs {
  margin-top: 80px;
}

#faq {
  margin-top: 80px;
}

/* 3. Заглавията – визуален контраст */
#why h2,
#contacts h2,
#docs h2,
#faq h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
  letter-spacing: .01em;
}

/* 4. Параграфи и списъци – по-четим размер и разредка */
#why p,
#docs ul,
#why ul {
  font-size: 1.05rem;
  line-height: 1.7;
}

#docs ul li,
#why ul li {
  margin-bottom: .4rem;
}

/* 5. Линковете – по-голям шрифт + underline при задържане */
a[href],
.templinks a {
  font-size: 1rem;
}

a[href]:hover {
  text-decoration: underline;
}

/* 6. Пренасяне на дълги редове (линкове) вместо хор. скрол */
#contacts .actions a {
  word-break: break-all;
}

body.theme-dark #contacts .actions a {
  background: #0f172a;
  color: #e5e7eb;
  border: 1px solid #223046;
  box-shadow: 0 8px 18px rgba(8, 12, 22, 0.4);
}

body.theme-dark #contacts .actions a:hover {
  background: #132038;
  border-color: #2b3b55;
  color: #ffffff;
}

/* 7. Скриваме черната лента между body и navbar (оставена от преден padding) */
body {
  padding-top: 60px;
  background-attachment: fixed;
}

/* 8. Адаптивно: ако екранът е > 1400 px, разширяваме до 1180 px */
@media(min-width:1400px) {

  #why>*,
  #contacts>*,
  #docs>*,
  #faq>* {
    max-width: 1180px;
  }
}

/* ====  краен PATCH-3  ==== */
/* ==== PATCH-FAQ & TEMPLATE BUTTONS ==== */

/* 1. Копче-стилове за шаблоните (има ги, но засилваме responsive) */
.templinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.template-btn {
  min-width: 200px;
  text-align: center;
}

/* 2. FAQ като „акордеон“ с бутони */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-toggle {
  background: #fff;
  padding: 14px 22px;
  font-weight: 600;
  border: 2px solid #e0e6f0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background .2s, box-shadow .2s;
  font-size: 1.25em;
  /* увеличен размер */
}

.faq-toggle::after {
  content: "▸";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .25s;
}

.faq-toggle.open {
  background: #f5f7fb;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .05);
}

.faq-toggle.open::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid #e0e6f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0 22px;
  transition: max-height .3s ease;
}

.faq-content p {
  margin: 16px 0;
  line-height: 1.65;
}

.faq-content.open {
  max-height: 260px;
}

/* ==== край на PATCH ==== */

/* ==== CONTACT PAGE – NEW WIZARD, REGIONS & CHECKLIST ==== */

/* Decision wizard */
#wizard>* {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width:1400px) {
  #wizard>* {
    max-width: 1180px;
  }
}

.wizard-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px auto 16px;
  justify-content: center;
}

.wizard-goal-btn {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 10px 18px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
}

.wizard-goal-btn:hover {
  border-color: #1a4ed8;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.wizard-goal-btn.active {
  background: #1a4ed8;
  color: #ffffff;
  border-color: #1a4ed8;
}

.wizard-body {
  margin-top: 18px;
}

.wizard-placeholder {
  text-align: center;
  color: #6b7280;
  font-size: 0.98rem;
}

.wizard-flow {
  display: none;
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.wizard-flow.active {
  display: block;
}

.wizard-flow h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.wizard-flow ol {
  padding-left: 20px;
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.wizard-tip {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* First 24 hours list */
.first-steps-list {
  max-width: 900px;
  margin: 1rem auto;
  padding-left: 22px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.first-steps-note {
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Region selector */
.region-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 22px;
}

.region-tab {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 8px 16px;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.region-tab.active {
  background: #111827;
  color: #f9fafb;
  border-color: #111827;
}

.region-tab:hover {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

body.theme-dark .region-tab {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #223046;
}

body.theme-dark .region-tab.active {
  background: #1f66e0;
  color: #ffffff;
  border-color: #1f66e0;
}

body.theme-dark .region-tab:hover {
  box-shadow: 0 6px 14px rgba(8, 12, 22, 0.45);
}

.region-panels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.region-panel {
  display: none;
}

.region-panel.active {
  display: block;
}

/* Evidence checklist */
.evidence-checklist {
  max-width: 800px;
  margin: 24px auto 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
}

.evidence-item label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.96rem;
}

.evidence-item input[type="checkbox"] {
  margin-top: 3px;
}

.evidence-info {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  width: 26px;
  height: 26px;
  padding: 0;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
}

.evidence-info:hover {
  background: #e5e7eb;
}

.evidence-popover {
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4b5563;
  background: #f9fafb;
  border-radius: 8px;
  padding: 8px 10px;
}

.evidence-summary {
  max-width: 800px;
  margin: 8px auto 0;
  font-size: 0.95rem;
  text-align: right;
  color: #4b5563;
}

.evidence-note {
  max-width: 800px;
  margin: 16px auto 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Template generator in templates section */
.template-generator {
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #f9fafb;
}

.template-generator h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.template-generator p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #4b5563;
}

.template-generator-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 16px 24px;
  margin-top: 6px;
}

.template-generator-form label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.template-generator-form input[type="text"] {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.92rem;
}

.template-generator-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-generate-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #1a4ed8;
  background: #1a4ed8;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: background .2s, box-shadow .2s, transform .05s;
}

.template-generate-btn:nth-of-type(2) {
  background: #111827;
  border-color: #111827;
}

.template-generate-btn:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.template-generator-note {
  font-size: 0.85rem;
  color: #6b7280;
}

.template-generator-output {
  margin-top: 12px;
}

.template-generator-output label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.template-generator-output textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.92rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  resize: vertical;
  min-height: 200px;
}

@media (max-width: 900px) {
  .template-generator-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* International validity & use cases */
.international-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: flex-start;
}

.international-text p {
  font-size: 0.98rem;
  line-height: 1.7;
}

.international-text ul {
  margin: 0 0 8px 20px;
  font-size: 0.96rem;
  line-height: 1.7;
}

.international-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.map-card {
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 14px 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.map-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.map-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.usecases-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.usecase-card {
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.06);
  background: #ffffff;
  padding: 16px 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.usecase-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.usecase-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

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

  .usecases-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Agreement Modal */
.agreement-modal {
  position: fixed;
  inset: 0;
  background: rgba(30, 40, 60, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.agreement-modal.hidden {
  display: none;
}

.agreement-modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: min(760px, calc(100vw - 24px));
  max-height: min(90vh, 860px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  border: 2.5px solid #4d8df6;
}

.agreement-modal-content p {
  margin: 0;
  line-height: 1.5;
}

.agreement-modal-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.agreement-modal-intro {
  margin-bottom: 12px !important;
  font-weight: 600;
}

.agreement-declaration-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agreement-declaration-heading {
  margin-top: 8px !important;
  font-weight: 700;
}

.agreement-checkitem {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1f2a44;
}

.agreement-checkitem input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: #1f66e0;
  flex: 0 0 auto;
}

.agreement-final-check {
  margin-top: 16px;
}

.agreement-modal-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ABOUT PAGE STYLING */
.about-page {
  max-width: 900px;
  margin: 32px auto 48px;
  padding: 40px 50px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  line-height: 1.75;
  font-size: 1.05rem;
}

.about-page h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--color-text);
  text-align: center;
}

.about-page h2 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  border-left: 3px solid var(--color-primary);
  padding-left: 14px;
}

.about-page p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.about-page ul {
  padding-left: 0;
  margin-bottom: 24px;
  list-style: none;
}

.about-page ul li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
  padding-left: 1.6rem;
  position: relative;
}

.about-page ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.75;
}

.about-page ol {
  padding-left: 1.5rem;
  margin-bottom: 24px;
}

.about-page ol li {
  margin-bottom: 10px;
  color: var(--color-text-muted);
}

.legal-note {
  background: rgba(245, 158, 11, 0.07);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

body.theme-dark .legal-note {
  background: rgba(245, 158, 11, 0.1);
}

/* NEWS PAGE STYLING */
.news-page {
  width: min(100%, 960px);
  margin: 32px auto;
  padding: clamp(28px, 5vw, 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  line-height: 1.75;
  font-size: 1.05rem;
}

.news-page__intro h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #1a2a3a;
  text-align: center;
}

.news-page__intro p {
  margin: 0 auto 24px auto;
  max-width: 720px;
  color: #374151;
  text-align: center;
}

.news-page__intro p,
.news-page__intro h1 {
  text-transform: none;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.news-item {
  border-bottom: 1px solid #e5e7eb;
}

.news-item:last-of-type {
  border-bottom: none;
}

.news-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #6b7280;
}

.news-item__tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 500;
}

.news-item__title {
  font-size: 1.25rem;
  margin: 4px 0 8px 0;
  color: #111827;
}

.news-item__excerpt {
  margin: 0;
  color: #374151;
}

.news-item__link {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.news-item__link:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
}

.news-item__link:hover .news-item__title {
  color: #1d4ed8;
}

.news-item__title,
.news-item__excerpt,
.news-item__meta,
.news-item__tag {
  opacity: 1;
}

.news-item__link:hover .news-item__tag {
  background: #1d4ed8;
  color: #ffffff;
}

@media (max-width: 768px) {
  .news-page {
    margin: 24px 16px;
    padding: 28px 20px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  }

  .news-page__intro h1 {
    font-size: 1.75rem;
  }

  .news-item__link {
    padding: 18px 0;
  }

  .news-item__meta {
    font-size: 0.85rem;
    gap: 6px;
  }

  .news-item__tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .news-page {
    margin: 20px 10px;
    padding: 24px 16px;
    border-radius: 12px;
  }

  .news-page__intro h1 {
    font-size: 1.5rem;
  }

  .news-page__intro p {
    font-size: 0.95rem;
  }

  .news-item__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item__tag {
    align-self: flex-start;
  }
}

.news-article {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 50px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1.05rem;
}

.news-article__header {
  margin-bottom: 18px;
}

.news-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #6b7280;
}

.news-article__title {
  font-size: 2rem;
  margin: 6px 0 10px 0;
  color: #1a2a3a;
}

.news-article__content p {
  margin-bottom: 18px;
  color: #374151;
}

.news-article__back {
  margin-top: 20px;
}

.news-article__back a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.news-article__back a:hover {
  text-decoration: underline;
}
.info-section {
  background: #f6faff;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(31,102,224,0.07);
  margin: 0 auto 36px auto;
  padding: 52px 32px 44px 32px;
  max-width: 1150px;
  border: 1px solid #e3ecfa;
  position: relative;
  transition: box-shadow 0.2s;
}

.info-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.info-section h2 {
  color: #111827;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
  text-align: left;
}

.info-section .accent {
  color: #247cfb;
  font-weight: 800;
}

.info-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #222e3a;
  background: none;
  margin-bottom: 0;
  max-width: 780px;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding-left: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.3vw;
  margin-bottom: 2.2rem;
  margin-top: 18px;
  width: 100%;
}

.info-card {
  background: #fff;
  border: 1.5px solid #d4e7fd;
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(36,124,251,0.07);
  font-size: 1.13rem;
  line-height: 1.65;
  transition: transform 0.12s, box-shadow 0.12s;
  position: relative;

  /* Ключово! */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;

  min-width: 0;
  min-height: 350px;  /* базова височина, може да увеличиш/намалиш */
  height: 100%;       /* за изравняване */
  aspect-ratio: 1 / 1; /* прави ги квадратни по възможност */
  padding: 2.2rem 1.4rem 2rem 1.6rem;
}

.info-card h3 {
  color: #1763ca;
  margin-bottom: 1.1rem;
  font-size: 1.33rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.info-card ul,
.info-card ol {
  padding-left: 1.12rem;
  margin: 0;
  color: #2e3a4a;
  font-size: 1.07rem;
}
.info-card li {
  margin-bottom: 0.42em;
}
.info-card li:last-child {
  margin-bottom: 0;
}

/* Responsive за таблет/мобилно */
@media (max-width: 1100px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2vw;
  }
  .info-card {
    min-height: 280px;
    aspect-ratio: 1/1;
  }
}
@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .info-card {
    min-height: 200px;
    aspect-ratio: unset;
    height: auto;
  }
}

/* Call-to-action button */
.info-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}
.scroll-button {
  background: linear-gradient(90deg, #247cfb 20%, #1e4ed8 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1.16rem;
  padding: 13px 38px;
  border-radius: 14px;
  border: none;
  text-decoration: none;
  box-shadow: 0 1px 7px rgba(36,124,251,0.08);
  transition: background 0.18s, transform 0.14s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.scroll-button:hover {
  background: linear-gradient(90deg, #1e4ed8 20%, #247cfb 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 20px 0 rgba(36,124,251,0.12);
}

@media (max-width: 767px) {
  .nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #fff;
    /* Ensure enough height so the absolutely-centered logo isn't clipped
       when there are no in-flow items (e.g., logged out, no dropdown). */
    min-height: 84px;
  }

  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .logo img {
    height: 80px;
    /* голямо лого */
    max-height: 80px;
    width: auto;
  }

  .nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 11;
  }

  #userDropdown {
    z-index: 11;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    /* Align mobile menu directly under navbar */
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    z-index: 5;
    text-align: center;
    padding: 16px 0;
  }

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

@media (max-width: 600px) {
  .nav {
    padding: 10px 14px;
    min-height: 64px;
  }

  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .logo img {
    height: 44px;
    max-height: 44px;
  }

  .nav-actions {
    gap: 10px;
  }

  .notification-toggle {
    width: 44px;
    height: 44px;
  }

  .notification-icon {
    width: 26px;
    height: 26px;
  }

  .notification-dot {
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
  }

  #dropdownToggle {
    width: 44px;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0;
    border-radius: 8px;
    justify-content: center;
    align-items: center !important;
    flex-direction: row !important;
    gap: 0 !important;
  }

  .account-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 600px) {
  body.theme-dark .header {
    background: rgba(11, 18, 32, 0.95);
    border-bottom: 1px solid #1f2a3b;
  }

  body.theme-dark .nav {
    background-color: #0b1220;
  }

  body.theme-dark .nav-toggle span {
    background: #e5e7eb;
  }

  body.theme-dark .notification-toggle,
  body.theme-dark #dropdownToggle {
    background: #0f172a;
    border-color: #1f2a3b;
    color: #e5e7eb;
  }
}

/* Mobile account dropdown sheet */
@media (max-width: 768px) {
  #dropdownMenu.account-dropdown {
    position: fixed;
    top: 78px;
    left: 50%;
    transform: translateX(-50%);
    width: min(92vw, 420px);
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  }

  #dropdownMenu.account-dropdown .account-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  #dropdownMenu.account-dropdown .account-menu__close {
    position: absolute;
    top: -4px;
    right: -2px;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box {
    border: 1px solid #e6efff;
    background: #eef4ff;
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 4px;
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box .name {
    font-size: 0.95rem;
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box .email {
    font-size: 0.82rem;
    color: #6b7280;
  }

  #dropdownMenu.account-dropdown .account-menu__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #dropdownMenu.account-dropdown .account-menu a {
    padding: 0;
    background: transparent;
  }

  #dropdownMenu.account-dropdown .account-menu a:hover {
    background: transparent;
    padding-left: 0;
  }

  #dropdownMenu.account-dropdown .account-menu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
  }

  #dropdownMenu.account-dropdown .account-menu__link:hover {
    color: #2563eb;
  }

  #dropdownMenu.account-dropdown .account-menu__link--danger {
    color: #ef4444;
  }

  #dropdownMenu.account-dropdown .account-menu__link--danger:hover {
    color: #dc2626;
  }

  #dropdownMenu.account-dropdown .account-menu__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: #94a3b8;
  }

  #dropdownMenu.account-dropdown .account-menu__link--danger .account-menu__icon {
    color: #ef4444;
  }

  #dropdownMenu.account-dropdown .account-menu__divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
  }

  #dropdownMenu.account-dropdown .account-menu__nav a {
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    padding: 2px 0;
  }

  #dropdownMenu.account-dropdown .account-menu__nav a:hover {
    color: #2563eb;
  }

  #dropdownMenu.account-dropdown .account-menu__lang {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langDropdown {
    width: 100%;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langToggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0;
    border: none;
    background: transparent;
    font-weight: 600;
  }

  #dropdownMenu.account-dropdown .account-menu__cta .hero-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .account-menu__mobile-only {
    display: none !important;
  }

  #dropdownMenu.account-dropdown .account-menu__close {
    display: none;
  }
}

@media (max-width: 768px) {
  .account-menu__mobile-only {
    display: block;
  }
}

@media (max-width: 768px) {
  body.theme-dark #dropdownMenu.account-dropdown {
    background: #0f172a;
    border-color: #1f2a3b;
    box-shadow: 0 24px 60px rgba(8, 12, 22, 0.55);
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__close {
    background: #0f172a;
    border-color: #223046;
    color: #e2e8f0;
  }

  body.theme-dark #dropdownMenu.account-dropdown .dropdown-profile-box {
    background: #0b1f4a;
    border-color: #1c3566;
  }

  body.theme-dark #dropdownMenu.account-dropdown .dropdown-profile-box .email {
    color: #cbd5f5;
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__link,
  body.theme-dark #dropdownMenu.account-dropdown .account-menu__nav a {
    color: #e2e8f0;
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__divider {
    background: #1f2a3b;
  }
}

/* Match body top padding to taller mobile navbar to avoid overlap */
@media (max-width: 767px) {
  /* Make dropdown menus flow inline within the mobile burger for better visibility */
  #langDropdown .dropdown-menu {
    position: static;
    right: auto;
    left: auto;
    display: none !important;
    box-shadow: none;
    border: 1px solid #e5e5e5;
    margin: 6px 12px 0 12px;
    text-align: left;
  }

  #langDropdown .dropdown-menu.show,
  #langDropdown.open .dropdown-menu {
    display: block !important;
  }

  #langToggle {
    width: auto;
    align-self: center;
  }

  body { padding-top: 84px; }
}

@media screen and (min-width: 768px) {
  .nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 54px;
    column-gap: 36px;
  }

  .logo {
    position: relative;
    left: 0;
    top: 0;
    transform: none;
    margin: 0;
  }

  .nav-links {
    display: flex !important;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    margin-left: 80px;
    max-width: 62%;
  }

  .nav .nav-toggle {
    display: none;
  }
}


.footer {
  background-color: #fff;
  padding: 40px 5vw 36px 5vw;
  border-top: 2px solid #eee;
  color: #222;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: start;
  gap: 20px 48px;
  text-align: left;
}
.footer-section {
  padding: 0;
}
.footer-logo.footer-section {
  display: flex;
  align-items: center;
}

.footer {
  background: #eef4ff;
  border-top: 1px solid #dbe6ff;
  padding: 36px 5vw 40px;
  font-family: var(--font-family);
  color: var(--color-text);
  margin-top: var(--spacing-3xl);
  content-visibility: auto;
  contain-intrinsic-size: 280px;
}

.footer-container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) minmax(260px, 1fr);
  align-items: start;
  gap: 18px 7vw;
}

.footer-logo img {
  max-width: 140px;
  height: auto;
}

.footer-contact {
  font-size: 14.5px;
  line-height: 1.7;
  color: #1f66e0;
}

.footer-contact strong {
  color: #1f66e0;
}

.footer-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  color: #1f66e0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px 22px;
  font-size: 14px;
  justify-content: end;
}

.footer-links a,
.footer-links .cookie-settings-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  color: #1f66e0;
  transition: color 0.2s, transform 0.2s;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer-theme-toggle {
  grid-column: 1 / -1;
  margin-top: 8px;
  justify-self: start;
}

.footer-links a:hover,
.footer-links .cookie-settings-link:hover {
  color: var(--color-primary-dark);
  transform: translateX(2px);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    width: 100%;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }
  .footer-links {
    grid-template-columns: repeat(2, max-content);
    justify-content: start;
  }
}

.card-icons {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.card-icons img {
  height: 36px;
}

/* mobile & tablet */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: 0 16px;
  }
  .footer-logo-block {
    min-width: 0;
    margin-bottom: 14px;
    gap: 16px;
  }
  .footer-payments {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .footer-logo-img {
    height: 100px;
  }
  .footer-container {
    padding: 0 6px;
    gap: 9px;
  }
}


html {
  scroll-behavior: smooth;
}

#dropdownToggle {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.2s, background 0.2s;
  padding: 10px 14px;
}

/* На мобилно! */
@media (max-width: 800px) {
  #dropdownToggle {
    flex-direction: column !important;
    align-items: flex-end !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    font-size: 1em !important;
    gap: 0 !important;
    min-width: 94px;
    height: auto;
  }

  #dropdownToggle .greet-word {
    display: block !important;
    font-weight: 400 !important;
    margin-bottom: 1px;
  }

  #dropdownToggle .greet-username {
    display: block !important;
    font-weight: 700 !important;
  }

  #dropdownToggle .greet-caret {
    display: block !important;
    font-size: 0.97em !important;
    margin-top: 1px;
  }
}


.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-weight: normal;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background: #333;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 10px 14px;
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 12px);
  left: 0;
  transform: none;
  opacity: 0;
  font-size: 0.95em;
  line-height: 1.5;
  transition: opacity 0.2s ease;
  pointer-events: none;
  box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.20);
  width: clamp(220px, 32ch, 320px);
  max-width: calc(100vw - 32px);
  min-width: 220px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.tooltip:hover .tooltiptext,
.tooltip:focus .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .tooltip .tooltiptext {
    width: calc(100vw - 32px);
    max-width: none;
    min-width: 0;
    left: 0;
  }
}

.info-text {
  font-size: 1.15rem;
  /* Slightly larger than default for easy reading */
  line-height: 1.7;
  /* More breathing room */
  color: #36373a;
  /* Soft, dark gray for less strain */
  margin-top: 18px;
  margin-bottom: 0;
  max-width: 680px;
  /* Keeps text from being too wide */
  font-weight: 400;
  letter-spacing: -0.02em;
  background: none;
  /* No background, just blends in */
  box-shadow: none;
  border-left: 4px solid #e3eaf5;
  padding-left: 18px;
}

.content-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}
/* Full-width layout for the new landing pages */
.for-creators-page,
.free-timestamp-page,
.legal-validity-page,
.how-it-works-page {
  max-width: 100%;
  padding: 0;
}

.for-creators-page .section,
.free-timestamp-page .section,
.legal-validity-page .section {
  max-width: 1180px;
  margin: 0 auto 2.5rem auto;
  padding: 0 2.5rem;
}

.page-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.for-creators-page .hero,
.free-timestamp-page .hero,
.legal-validity-page .hero {
  margin: 0 0 2.5rem 0;
}

.section {
  margin-bottom: 2.5rem;
}

.section-intro {
  text-align: left;
}

.section-intro h2 {
  margin-bottom: 0.75rem;
}

.section-intro p {
  max-width: 720px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.audience-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d8e2f1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  padding: 1.5rem 1.4rem;
  text-align: center;
}

.audience-card--popup {
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #d8e2f1;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.audience-card--popup:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.14);
}

.audience-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.audience-modal.is-open {
  display: flex;
}

.audience-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 24, 0.7);
  backdrop-filter: blur(6px);
}

.audience-modal__panel {
  position: relative;
  width: min(960px, 92vw);
  max-height: min(88vh, 900px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.audience-modal__content {
  padding: 28px 32px 32px;
  overflow: auto;
}

.audience-modal__content h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.audience-modal__content p {
  margin: 0 0 12px;
  color: #2b3445;
}

.audience-modal__content h4 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  color: #1a1a1a;
}

.audience-modal__content ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

.audience-modal__content li {
  margin-bottom: 6px;
}

.audience-modal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f66e0, #4d8df6);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 102, 224, 0.3);
}

.audience-modal__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(31, 102, 224, 0.35);
}

.audience-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
}

.audience-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.audience-tagline {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.8rem;
}

.audience-card ul {
  padding-left: 1.1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.92rem;
}

.how-it-works-page .steps-section {
  max-width: 100%;
  margin: 80px auto 120px auto;
}

.how-it-works-page .steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .how-it-works-page .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.how-it-works-hero {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
}

.how-it-works-hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #2563eb 60%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.how-it-works-hero-icon img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.35));
}

@media (max-width: 768px) {
  .how-it-works-hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .how-it-works-hero-icon {
    margin-top: 24px;
  }
}

/* Override for How it works hero:
   keep full-width blue background, but with
   the more compact height similar to hero-contact. */
.how-it-works-hero {
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: calc(40vh - 60px);
}

.how-it-works-hero {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
}

.how-it-works-hero-icon {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #60a5fa, #2563eb 60%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.how-it-works-hero-icon img {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.35));
}

@media (max-width: 768px) {
  .how-it-works-hero {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .how-it-works-hero-icon {
    margin-top: 24px;
  }
}

.how-it-works-page .steps-section {
  max-width: 100%;
  margin: 80px auto 120px auto;
}

.how-it-works-page .steps-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .how-it-works-page .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.workflow-card {
  background: #f3f4ff;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  border: 1px solid #d0dbff;
}

.workflow-card h3 {
  margin-bottom: 0.6rem;
}

.section-cta {
  text-align: center;
  background: radial-gradient(circle at 0% 0%, #e0ebff, #ffffff 60%);
  border-radius: 18px;
  padding: 2rem 1.5rem;
  border: 1px solid #d8e2f1;
  box-shadow: 0 16px 32px rgba(31, 111, 235, 0.12);
}

.section-cta h2 {
  margin-bottom: 0.75rem;
}

.section-cta p {
  max-width: 640px;
  margin: 0 auto 1.3rem auto;
}

.free-timestamp-page .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.pill {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #e5ecff;
  color: #1f2933;
  font-size: 0.8rem;
  font-weight: 500;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.benefit-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #d8e2f1;
  padding: 1.3rem 1.2rem;
  font-size: 0.95rem;
}

.comparison-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.comparison-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  border: 1px solid #e5e7eb;
}

.comparison-card--highlight {
  background: radial-gradient(circle at 0% 0%, #e0ebff, #ffffff 60%);
  border-color: #c4d4ff;
  box-shadow: 0 14px 30px rgba(31, 111, 235, 0.16);
}

.comparison-card h3 {
  margin-bottom: 0.7rem;
}

.comparison-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.comparison-card .hero-btn {
  margin-top: 1rem;
}

.steps-list {
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.faq-section .faq-item + .faq-item {
  margin-top: 1.1rem;
}

@media (max-width: 768px) {
  .faq-section {
    margin: 60px auto;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .faq-answer p {
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 10px 0;
  }

  .faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 1500px;
  }
}

.section-highlight {
  background: #f3f4ff;
  border-radius: 16px;
  padding: 1.5rem 1.4rem;
  border: 1px solid #d0dbff;
}

.free-timestamp-page .promo-code-highlight {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid #d8e2f1;
}

.promo-code-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4b5563;
  font-weight: 600;
}

.promo-code-code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
}

.promo-code-copy {
  border: none;
  background: #ffffff;
  color: #1f66e0;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(31, 102, 224, 0.18);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.promo-code-copy:hover {
  background: #e6f0ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 102, 224, 0.3);
}

@media (max-width: 900px) {
  .audience-grid,
  .workflow-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .for-creators-page .hero,
  .free-timestamp-page .hero,
  .legal-validity-page .hero {
    margin: 0 -1.5rem 2rem -1.5rem;
  }
  .audience-grid,
  .workflow-grid,
  .benefit-grid,
  .comparison-layout {
    grid-template-columns: 1fr;
  }
  .free-timestamp-page .promo-code-highlight {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}
.pricing-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.pricing-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pricing-subtitle {
  font-size: 1.1rem;
  max-width: 720px;
  color: var(--color-text-muted);
  margin: 0 auto;
  line-height: 1.7;
}

.price-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #d8e2f1;
  box-shadow: 0 18px 35px rgba(31, 111, 235, 0.1);
  padding: 2.5rem 2rem;
  max-width: 540px;
  width: 100%;
  text-align: left;
}

.price-card__label {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: #1f6feb;
  background: rgba(31, 111, 235, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.price-card__price {
  margin-bottom: 1.5rem;
}

.price-card__amount {
  display: block;
  font-size: 2.35rem;
  font-weight: 700;
  color: #192a56;
}

.price-card__note {
  display: block;
  margin-top: 0.35rem;
  color: #5a6170;
  font-size: 0.95rem;
}

.price-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.price-card__features li {
  position: relative;
  padding-left: 1.75rem;
  color: #2f333a;
  line-height: 1.6;
}

.price-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f6feb, #0b4ebf);
  box-shadow: 0 4px 12px rgba(31, 111, 235, 0.25);
}

.price-card__features li::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.52rem;
  width: 0.3rem;
  height: 0.55rem;
  border: solid #ffffff;
  border-width: 0 0.12rem 0.12rem 0;
  transform: rotate(45deg);
}

.price-card__cta {
  display: inline-block;
  margin-top: 2rem;
  background: linear-gradient(135deg, #1f6feb, #0b4ebf);
  color: #ffffff;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(31, 111, 235, 0.25);
}

.price-card__trust {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(31, 111, 235, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.price-card__trust-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.price-card__trust-label svg {
  width: 14px;
  height: 14px;
  color: #22c55e;
  flex-shrink: 0;
}

.price-card__payment-logos {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.payment-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.payment-logo:hover {
  opacity: 1;
}

.pricing-section {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.05);
}

.pricing-section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
  color: var(--color-text);
}

.pricing-section p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.pricing-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.pricing-list li {
  margin-bottom: 0.65rem;
}

@media (max-width: 640px) {
  .price-card {
    padding: 2rem 1.5rem;
  }

  .price-card__amount {
    font-size: 2rem;
  }

  .pricing-section {
    padding: 1.5rem;
  }
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 2rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
}

.price-table th {
  background-color: #f2f7ff;
  font-weight: bold;
}
.payment-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.payment-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
}

.guest-info-modal-content {
  text-align: left;
}

.guest-info-step-label {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.guest-info-error {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  color: #b91c1c;
}

.guest-info-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guest-info-step input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.95rem;
}

.payment-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.payment-logos {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.payment-logos img {
  height: 32px;
}
.custom-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.custom-modal:not(.hidden) {
  display: flex;
}
.custom-modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px 30px 32px;
  max-width: 450px;
  margin: auto;
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
}
.modal-ok-button {
  background: #3586f5;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 36px;
  font-size: 18px;
  cursor: pointer;
}
.modal-icon {
  font-size: 64px;
  text-align: center;
}

.info-section.no-bg {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 48px 0;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.info-section.no-bg > h2 {
  max-width: 1300px;
  margin: 0 auto 32px auto;
  padding-left: 12px;
  font-size: 2.3rem;
  letter-spacing: -0.5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.1vw;
  max-width: 1500px;
  margin: 0 auto 2.2rem auto;
  width: 100%;
  align-items: stretch;
}

.info-card {
  background: #fff;
  border: 1.5px solid #e4e4e4;
  border-radius: 22px;
  box-shadow: 0 1.5px 8px rgba(24,30,56,0.04);
  font-size: 1.13rem;
  line-height: 1.67;
  padding: 2.1rem 1.2rem 2.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 220px;
  height: 100%;
  aspect-ratio: 5 / 6; /* малко по-правоъгълни! */
  transition: box-shadow 0.13s, transform 0.13s;
}

.info-card h3 {
  color: #1763ca;
  margin-bottom: 1.12rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.info-card ul, .info-card ol {
  padding-left: 1.2rem;
  margin: 0;
  color: #29334b;
  font-size: 1.07rem;
}

.info-card li { margin-bottom: 0.38em; }
.info-card li:last-child { margin-bottom: 0; }

.info-cta {
  text-align: center;
  margin: 32px 0 0 0;
}

.scroll-button {
  background: #247cfb;
  color: #fff;
  border-radius: 8px;
  padding: 13px 32px;
  font-weight: bold;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(36,124,251,0.11);
  border: none;
  transition: background 0.18s;
}
.scroll-button:hover { background: #1259c7; }

/* Responsive */
@media (max-width: 1100px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .info-card { aspect-ratio: 9/8; min-height: 190px; }
}
@media (max-width: 700px) {
  .info-section.no-bg > h2 { font-size: 1.4rem; padding: 0 4px; }
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-card { aspect-ratio: unset; min-height: 140px; }
}


/* Enhanced navbar and footer styling */
.header {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  border: none;
}

.nav .nav-link,
.dropdown button {
  color: #1f1f27;
  border: none;
  outline: none;
}

.nav .nav-link:hover,
.nav .nav-link.active,
.dropdown button:hover {
  background: rgba(31, 102, 224, 0.08);
  color: #1f66e0;
  box-shadow: inset 0 0 0 1px rgba(31, 102, 224, 0.15), 0 8px 20px rgba(31, 102, 224, 0.18);
}

.nav .nav-link:focus-visible,
.dropdown button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(31, 102, 224, 0.35);
}

.nav-upload-btn {
  padding: 8px 24px;
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  background: rgba(77, 141, 246, 0.9);
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(77, 141, 246, 0.6);
  transition: box-shadow 0.3s ease;
}

.nav-upload-btn:hover {
  box-shadow: 0 0 14px rgba(77, 141, 246, 0.8);
}

.footer {
  background: linear-gradient(90deg, #eaf2ff, #f8fbff);
  color: #1f66e0;
  border-top: none;
}

.footer-links a,
.footer-contact a {
  color: #1f66e0;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: #0d47bf;
}

/* Account dropdown icon/label */
.account-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .dropdown .account-label {
    display: none;
  }

  #dropdownToggle .account-icon {
    width: 26px;
    height: 26px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-upload-btn {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .hero-btn {
    width: 100%;
  }
}

/* === COOKIE CONSENT === */
.cookie-banner {
  position: fixed;
  right: 24px;
  left: auto;
  bottom: 24px;
  transform: translate(0, 20px);
  width: min(560px, calc(100% - 32px));
  background: #0e1a36;
  color: #fff;
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 28px 50px rgba(12, 23, 58, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 4000;
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0);
}

.cookie-banner.cookie-banner--compact {
  width: min(360px, calc(100% - 32px));
}

.cookie-banner__body {
  display: flex;
  gap: 24px;
  align-items: center;
}

.cookie-banner__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.cookie-banner__text {
  margin: 0 0 12px;
  color: #dbe4ff;
  font-size: 0.95rem;
}

.cookie-banner__link {
  color: #9fd4ff;
  font-weight: 600;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.95rem;
}

.cookie-btn:focus {
  outline: 3px solid rgba(31, 102, 224, 0.35);
  outline-offset: 2px;
}

.cookie-btn.primary {
  background: #49d81a;
  color: #0a1601;
  box-shadow: 0 8px 20px rgba(73, 216, 26, 0.35);
}

.cookie-btn.primary:hover {
  transform: translateY(-1px);
}

.cookie-btn.secondary {
  background: #f1f5ff;
  color: #0e1a36;
}

.cookie-btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn.link {
  background: none;
  border: none;
  color: #1f66e0;
  padding: 0;
  text-decoration: underline;
  border-radius: 0;
  box-shadow: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 24, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 4001;
}

.cookie-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal__dialog {
  background: #fff;
  border-radius: 20px;
  width: min(640px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
}

.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.cookie-modal__intro {
  margin-top: 6px;
  color: #475467;
}

.cookie-modal__footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.cookie-category {
  border: 1px solid #e4e9f2;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cookie-category.is-highlighted {
  border-color: #1f66e0;
  box-shadow: 0 0 0 2px rgba(31, 102, 224, 0.15);
}

.cookie-category__text h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cookie-category__text p {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
}

.cookie-category__control {
  flex-shrink: 0;
}

.cookie-badge {
  background: #e5efff;
  color: #1f66e0;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
}

.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cookie-toggle input {
  display: none;
}

.cookie-toggle__slider {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #cfd8ea;
  position: relative;
  transition: background 0.2s ease;
}

.cookie-toggle__slider::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #1f66e0;
}

.cookie-toggle input:checked + .cookie-toggle__slider::after {
  transform: translateX(18px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.4;
}

.recaptcha-placeholder {
  margin-top: 12px;
  border: 1px dashed #bcd0ff;
  border-radius: 12px;
  padding: 14px 16px;
  background: #f3f6ff;
  color: #1f2a44;
  font-size: 0.92rem;
}

.g-recaptcha.recaptcha-suppressed {
  opacity: 0.35;
  pointer-events: none;
}

body.cookie-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .cookie-banner__body {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-start;
  }
  .cookie-banner {
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    width: min(320px, calc(100% - 24px));
  }
  .cookie-banner__title {
    font-size: 0.9rem;
  }
  .cookie-banner__text {
    font-size: 0.8rem;
  }
  .cookie-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .cookie-modal__dialog {
    padding: 24px;
  }
  .cookie-modal__footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-category {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === DARK MODE OVERRIDES === */
body.theme-dark {
  background: var(--color-bg);
  color: var(--color-text);
}

body.theme-dark .header {
  background: rgba(11, 18, 32, 0.92);
  border-bottom: 1px solid #1f2a3b;
  box-shadow: 0 6px 20px rgba(8, 12, 22, 0.45);
}

body.theme-dark .nav .nav-link,
body.theme-dark .dropdown button {
  color: #e5e7eb;
  background: transparent;
  box-shadow: none;
}

body.theme-dark .nav .nav-link::after {
  background: linear-gradient(90deg, #60a5fa, #1f66e0);
}

body.theme-dark .nav .nav-link:hover,
body.theme-dark .nav .nav-link.active,
body.theme-dark .dropdown button:hover {
  background: transparent;
  color: #bfdbfe;
  box-shadow: none;
}

body.theme-dark .nav-toggle span {
  background: #e5e7eb;
}

body.theme-dark .nav-links {
  background: #0f172a;
}

body.theme-dark .logo img,
body.theme-dark .footer-logo img {
  filter: brightness(0) invert(1);
}

body.theme-dark a {
  color: #ffffff;
}

body.theme-dark a:hover {
  color: #bfdbfe;
}

body.theme-dark .hero,
body.theme-dark .hero-contact {
  background: radial-gradient(circle at 20% 20%, rgba(77, 141, 246, 0.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(31, 102, 224, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #0b1220 100%) !important;
}

body.theme-dark .verify-page {
  background: radial-gradient(circle at 20% 20%, rgba(77, 141, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(15, 23, 42, 0.6) 0%, transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 60%) !important;
}

body.theme-dark .hero-features .feature {
  background: rgba(15, 23, 42, 0.85);
  border-color: #26324a;
  box-shadow: 0 10px 24px rgba(8, 12, 22, 0.35);
}

body.theme-dark .hero-btn.secondary {
  background: transparent;
  color: #93c5fd;
  border-color: #3b82f6;
}

body.theme-dark .hero-btn.secondary:hover {
  background: rgba(59, 130, 246, 0.15);
}

body.theme-dark .dropdown-menu,
body.theme-dark .notification-menu {
  background: #0f172a;
  border-color: #1f2a3b;
  color: #e5e7eb;
}

body.theme-dark .dropdown-menu a {
  color: #e5e7eb;
}

body.theme-dark .dropdown-menu a:hover {
  background: #16213a;
  color: #93c5fd;
}

body.theme-dark .footer {
  background: linear-gradient(180deg, #0b1220, #0f172a);
  border-top: 1px solid #1f2a3b;
  color: #cbd5f5;
}

body.theme-dark .footer a,
body.theme-dark .footer-links .cookie-settings-link {
  color: #93c5fd;
}

body.theme-dark .footer a:hover,
body.theme-dark .footer-links .cookie-settings-link:hover {
  color: #bfdbfe;
}

body.theme-dark input,
body.theme-dark textarea,
body.theme-dark select {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #25324a;
}

body.theme-dark .price-card,
body.theme-dark .audience-card,
body.theme-dark .workflow-card,
body.theme-dark .comparison-card,
body.theme-dark .info-card,
body.theme-dark .section-cta,
body.theme-dark .latest-timestamp-card,
body.theme-dark .payment-modal-content,
body.theme-dark .custom-modal-content,
body.theme-dark .cookie-modal__dialog,
body.theme-dark .notification-menu {
  background: #0f172a;
  border-color: #1f2a3b;
  color: #e5e7eb;
}

body.theme-dark .price-table,
body.theme-dark .price-table th,
body.theme-dark .price-table td {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #1f2a3b;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark p,
body.theme-dark li,
body.theme-dark span,
body.theme-dark label,
body.theme-dark small {
  color: #ffffff;
}

body.theme-dark .section,
body.theme-dark .card-block,
body.theme-dark .content-container,
body.theme-dark .pricing-section,
body.theme-dark .comparison-card,
body.theme-dark .benefit-card,
body.theme-dark .workflow-card,
body.theme-dark .info-card,
body.theme-dark .audience-card,
body.theme-dark .section-highlight,
body.theme-dark .comparison-card--highlight,
body.theme-dark .price-card,
body.theme-dark .upload-section,
body.theme-dark .verify-shell {
  background: #0f172a;
  border-color: #1f2a3b;
}

body.theme-dark .faq-item,
body.theme-dark .faq-btn,
body.theme-dark .faq-question,
body.theme-dark .faq-answer,
body.theme-dark .faq-content,
body.theme-dark .faq-section .faq-item,
body.theme-dark #faq .faq-item,
body.theme-dark .faq-grid .faq-toggle,
body.theme-dark .faq-container .faq-item,
body.theme-dark .faq-toggle {
  background: #0b1f4a;
  border-color: #1c3566;
  color: #ffffff;
}

body.theme-dark .faq-question::after,
body.theme-dark .faq-toggle::after {
  color: #ffffff;
}

body.theme-dark .faq-item:hover,
body.theme-dark .faq-btn:hover,
body.theme-dark .faq-btn:focus {
  background: #0f285e;
}

body.theme-dark .audience-card p,
body.theme-dark .benefits-list li {
  color: #ffffff;
}

body.theme-dark .benefits-icon {
  background: #0b1f4a;
  border-color: #1c3566;
  box-shadow: 0 12px 26px rgba(8, 12, 22, 0.45);
}

body.theme-dark .step-card {
  background: #0b1f4a;
  border-color: #1f2937;
}

body.theme-dark .step-card h3,
body.theme-dark .step-card p {
  color: #ffffff;
}

body.theme-dark .latest-timestamp-card,
body.theme-dark .latest-timestamp-label,
body.theme-dark .latest-timestamp-value {
  color: #ffffff;
}

body.theme-dark .stamp-info-column,
body.theme-dark .stamp-form-column .upload-box,
body.theme-dark .stamp-privacy-card {
  background: #0f172a;
  border-color: #1f2a3b;
  box-shadow: 0 18px 45px rgba(8, 12, 22, 0.45);
}

body.theme-dark .upload-card {
  background: #0f172a;
}

body.theme-dark .upload-box::before,
body.theme-dark .upload-box.original::before {
  background: #0b1f4a;
  color: #ffffff;
}

body.theme-dark .stamp-info-section h3,
body.theme-dark .stamp-info-section p,
body.theme-dark .stamp-info-list,
body.theme-dark .stamp-info-list li,
body.theme-dark .stamp-form-heading h1,
body.theme-dark .stamp-form-heading p,
body.theme-dark .stamp-verification-intro h1,
body.theme-dark .stamp-verification-intro p,
body.theme-dark .stamp-hero-price,
body.theme-dark .stamp-price-display,
body.theme-dark .stamp-price-display .price-label,
body.theme-dark .stamp-price-display .price-value,
body.theme-dark .stamp-price-note,
body.theme-dark .promo-code-label,
body.theme-dark .promo-code-message,
body.theme-dark .stamp-privacy-card h3,
body.theme-dark .stamp-privacy-card p {
  color: #ffffff;
}

body.theme-dark .about-page {
  background: #0f172a;
  border-color: #1f2a3b;
  box-shadow: 0 18px 45px rgba(8, 12, 22, 0.45);
}

body.theme-dark .about-page h1,
body.theme-dark .about-page h2,
body.theme-dark .about-page p,
body.theme-dark .about-page ul li {
  color: #ffffff;
}

body.theme-dark .news-page,
body.theme-dark .news-article {
  background: #0f172a;
  border-color: #1f2a3b;
  box-shadow: 0 18px 45px rgba(8, 12, 22, 0.45);
}

body.theme-dark .news-page__intro h1,
body.theme-dark .news-page__intro p,
body.theme-dark .news-item__title,
body.theme-dark .news-item__excerpt,
body.theme-dark .news-item__meta,
body.theme-dark .news-article__title,
body.theme-dark .news-article__meta,
body.theme-dark .news-article__content p {
  color: #ffffff;
}

body.theme-dark .news-item__tag {
  background: #0b1f4a;
  color: #93c5fd;
}

body.theme-dark .news-item {
  border-bottom-color: #1f2a3b;
}

body.theme-dark .news-item__link:hover {
  background-color: #0b1f4a;
}

body.theme-dark .wizard-goal-btn {
  background: #0b1f4a;
  border-color: #1c3566;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(8, 12, 22, 0.4);
}

body.theme-dark .wizard-goal-btn:hover {
  border-color: #4d8df6;
  box-shadow: 0 10px 22px rgba(8, 12, 22, 0.55);
}

body.theme-dark .wizard-goal-btn.active {
  background: linear-gradient(135deg, #1f66e0, #4d8df6);
  border-color: rgba(77, 141, 246, 0.7);
  color: #ffffff;
}

body.theme-dark .wizard-flow {
  background: #0f172a;
  border-color: #1f2a3b;
  box-shadow: 0 12px 26px rgba(8, 12, 22, 0.45);
  color: #ffffff;
}

body.theme-dark .wizard-placeholder {
  color: #ffffff;
}

body.theme-dark .evidence-item,
body.theme-dark .evidence-popover,
body.theme-dark .template-card,
body.theme-dark .template-generator,
body.theme-dark .template-generator-output textarea,
body.theme-dark .template-generator-form input[type="text"],
body.theme-dark .map-card,
body.theme-dark .usecase-card {
  background: #0f172a;
  border-color: #1f2a3b;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(8, 12, 22, 0.45);
}

body.theme-dark .template-card-toggle {
  color: #ffffff;
}

body.theme-dark .template-card-icon {
  border-color: #2a3b5a;
  color: #93c5fd;
}

body.theme-dark .template-card-details {
  border-top-color: #1f2a3b;
}

body.theme-dark .evidence-info {
  background: #0b1f4a;
  border-color: #1c3566;
  color: #ffffff;
}

body.theme-dark .evidence-info:hover {
  background: #13295f;
}

body.theme-dark .evidence-summary,
body.theme-dark .evidence-note,
body.theme-dark .template-generator p,
body.theme-dark .template-generator-note,
body.theme-dark .international-text p,
body.theme-dark .international-text ul,
body.theme-dark .map-card ul,
body.theme-dark .usecase-card p {
  color: #ffffff;
}

body.theme-dark .agreement-modal-content {
  background: #0f172a;
  border-color: #1f66e0;
  color: #ffffff;
}

body.theme-dark .agreement-checkitem {
  color: #ffffff;
}

body.theme-dark .verify-tabs {
  background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
  border-color: #1f2a3b;
}

body.theme-dark .verify-tab {
  background: #0f172a;
  border-color: #223046;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(8, 12, 22, 0.45);
}

body.theme-dark .verify-tab .tab-desc {
  color: #cbd5f5;
}

body.theme-dark .verify-tab:hover {
  background: #132038;
  color: #bfdbfe;
  box-shadow: 0 12px 24px rgba(8, 12, 22, 0.55);
}

body.theme-dark .verify-tab.active {
  background: linear-gradient(135deg, #1f66e0, #4d8df6);
  border-color: rgba(77, 141, 246, 0.6);
  color: #ffffff;
}

body.theme-dark .verify-panels {
  background: #0f172a;
  border-color: #1f2a3b;
  box-shadow: 0 22px 60px rgba(8, 12, 22, 0.6);
}

body.theme-dark .tab-panel .upload-box {
  background: #0b1f4a;
  border-color: #1c3566;
}

@media (max-width: 900px) {
  .theme-toggle__label {
    display: none;
  }
}

/* Modern footer layout (matches reference mock) */
.footer.footer--modern {
  background: #eef4ff;
  border-top: 1px solid #d7e3f8;
  padding: 56px 24px 32px;
  color: #1f2a44;
  display: block;
  width: 100%;
  margin: 0;
  text-align: left;
  box-sizing: border-box;
}

.footer--modern .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 28px 72px;
  align-items: start;
}

.footer--modern .footer-brand__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer--modern .footer-brand__logo img {
  max-width: 160px;
  height: auto;
}

.footer--modern .footer-brand__company {
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2a44;
}

.footer--modern .footer-contact {
  display: grid;
  gap: 14px;
}

.footer--modern .footer-contact__item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #526079;
}

.footer--modern .footer-contact__icon {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  margin-top: 2px;
}

.footer--modern .footer-contact__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer--modern .footer-contact__label {
  font-weight: 600;
  color: #1f2a44;
  margin-right: 6px;
}

.footer--modern .footer-contact__link {
  color: #2563eb;
  text-decoration: none;
}

.footer--modern .footer-contact__link:hover {
  text-decoration: underline;
}

.footer--modern .footer-links-group h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1f2a44;
}

.footer--modern .footer-links-group a,
.footer--modern .footer-links-group .cookie-settings-link {
  display: block;
  margin-bottom: 8px;
  color: #5a6a83;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.footer--modern .footer-links-group a:hover,
.footer--modern .footer-links-group .cookie-settings-link:hover {
  color: #2563eb;
}

.footer--modern .footer-theme-toggle {
  margin-top: 12px;
  border-radius: 999px;
  background: #f5f8ff;
  border: 1px solid #d4e0f7;
  color: #1f2a44;
  font-size: 0.85rem;
}

.footer--modern .footer-theme-toggle:hover {
  background: #e6efff;
  border-color: #bcd2ff;
  color: #1f2a44;
}

.footer--modern .footer-divider {
  max-width: 1200px;
  height: 1px;
  margin: 28px auto 16px;
  background: #d7e3f8;
}

.footer--modern .footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 900px) {
  .footer--modern .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .footer.footer--modern {
    padding: 48px 18px 28px;
  }
}

body.theme-dark .footer.footer--modern {
  background: #0b1220;
  border-top: 1px solid #1f2a3b;
  color: #e2e8f0;
}

body.theme-dark .footer--modern .footer-brand__company,
body.theme-dark .footer--modern .footer-contact__label,
body.theme-dark .footer--modern .footer-links-group h4 {
  color: #f1f5f9;
}

body.theme-dark .footer--modern .footer-contact__item {
  color: #cbd5f5;
}

body.theme-dark .footer--modern .footer-contact__icon {
  color: #60a5fa;
}

body.theme-dark .footer--modern .footer-links-group a,
body.theme-dark .footer--modern .footer-links-group .cookie-settings-link {
  color: #cbd5f5;
}

body.theme-dark .footer--modern .footer-links-group a:hover,
body.theme-dark .footer--modern .footer-links-group .cookie-settings-link:hover {
  color: #93c5fd;
}

body.theme-dark .footer--modern .footer-divider {
  background: #1f2a3b;
}

body.theme-dark .footer--modern .footer-bottom {
  color: #94a3b8;
}

body.theme-dark .footer--modern .footer-theme-toggle {
  background: #0f172a;
  border-color: #223046;
  color: #e2e8f0;
}

body.theme-dark .footer--modern .footer-theme-toggle:hover {
  background: #132038;
  border-color: #2b3b55;
  color: #f8fafc;
}

@media (max-width: 768px) {
  .nav-links.show {
    display: none;
  }
}

@media (max-width: 768px) {
  #navActions > #langDropdown {
    display: none !important;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langDropdown {
    display: flex !important;
  }

  body.mobile-menu-open .header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: none;
  }

  body.mobile-menu-open .nav {
    min-height: 72px;
    padding: 12px 16px;
    column-gap: 0;
  }

  .nav .nav-toggle {
    display: none !important;
  }

  .logo img {
    height: 44px;
    max-height: 44px;
    width: auto;
  }

  #dropdownToggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
    overflow: hidden;
  }

  #dropdownToggle > * {
    display: none !important;
  }

  #dropdownToggle::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 14px;
    background:
      linear-gradient(#1f2937 0 0) 0 0 / 20px 2px no-repeat,
      linear-gradient(#1f2937 0 0) 3px 6px / 14px 2px no-repeat,
      linear-gradient(#1f2937 0 0) 0 12px / 20px 2px no-repeat;
    box-shadow: none;
  }

  #dropdownToggle.is-open::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 0;
    background:
      linear-gradient(45deg,
        transparent calc(50% - 1px),
        #1f2937 calc(50% - 1px),
        #1f2937 calc(50% + 1px),
        transparent calc(50% + 1px)),
      linear-gradient(-45deg,
        transparent calc(50% - 1px),
        #1f2937 calc(50% - 1px),
        #1f2937 calc(50% + 1px),
        transparent calc(50% + 1px));
    box-shadow: none;
  }

  body.mobile-menu-open .logo img {
    height: 44px;
    max-height: 44px;
  }

  body.mobile-menu-open #navActions {
    margin-left: auto;
    gap: 0;
  }

  body.mobile-menu-open #navActions > :not(#userDropdown) {
    display: none !important;
  }

  body.mobile-menu-open #userDropdown {
    display: flex;
    align-items: center;
  }

  body.mobile-menu-open #dropdownToggle {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
    overflow: hidden;
  }

  body.mobile-menu-open #dropdownToggle > * {
    display: none !important;
  }

  body.mobile-menu-open #dropdownToggle::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background:
      linear-gradient(45deg,
        transparent calc(50% - 1px),
        #1f2937 calc(50% - 1px),
        #1f2937 calc(50% + 1px),
        transparent calc(50% + 1px)),
      linear-gradient(-45deg,
        transparent calc(50% - 1px),
        #1f2937 calc(50% - 1px),
        #1f2937 calc(50% + 1px),
        transparent calc(50% + 1px));
  }

  body.mobile-menu-open .nav .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  body.mobile-menu-open .nav .nav-toggle span {
    display: none;
  }

  body.mobile-menu-open .nav .nav-toggle::before {
    content: "\2190";
    color: #111827;
    font-size: 34px;
    line-height: 1;
    font-weight: 500;
  }

  body.has-mobile-back .nav .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
  }

  body.has-mobile-back .nav .nav-toggle span {
    display: none;
  }

  body.has-mobile-back .nav .nav-toggle::before {
    content: "\2190";
    color: #111827;
    font-size: 34px;
    line-height: 1;
    font-weight: 500;
  }

  body.mobile-menu-open .nav-links,
  body.mobile-menu-open .nav-links.show {
    display: none !important;
  }

  #dropdownMenu.account-dropdown {
    position: fixed;
    top: 72px;
    left: 50%;
    right: auto;
    width: min(96vw, 420px);
    max-height: calc(100vh - 72px);
    padding: 0;
    border-radius: 18px;
    border: 1px solid #e4e7ec;
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.14);
    overflow: auto;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -18px) scale(0.98);
    transform-origin: top center;
    will-change: transform, opacity;
    transition:
      opacity 0.28s ease,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.38s;
    animation: none !important;
  }

  #dropdownMenu.account-dropdown.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition:
      opacity 0.28s ease,
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0s;
  }

  #dropdownMenu.account-dropdown .account-menu {
    gap: 0;
  }

  #dropdownMenu.account-dropdown .account-menu__close {
    display: none !important;
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box {
    margin: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    background: #e9efff;
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box img,
  #dropdownMenu.account-dropdown .dropdown-profile-box .initials-avatar {
    width: 44px;
    height: 44px;
    margin-right: 12px;
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box .name {
    font-size: 1.02rem;
    font-weight: 700;
    color: #1f2937;
  }

  #dropdownMenu.account-dropdown .dropdown-profile-box .email {
    font-size: 0.92rem;
    color: #6b7280;
  }

  #dropdownMenu.account-dropdown .account-menu__section {
    padding: 0 18px 16px;
    gap: 14px;
  }

  #dropdownMenu.account-dropdown .account-menu > .account-menu__section:first-of-type {
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 12px;
  }

  #dropdownMenu.account-dropdown .account-menu__link {
    font-size: 1.03rem;
    font-weight: 500;
    color: #5b677c;
  }

  #dropdownMenu.account-dropdown .account-menu__icon {
    width: 19px;
    height: 19px;
    color: #97a2b3;
  }

  #dropdownMenu.account-dropdown .account-menu__link--danger {
    color: #ef4444;
    font-weight: 500;
  }

  #dropdownMenu.account-dropdown .account-menu__link--danger .account-menu__icon {
    color: #ef4444;
  }

  #dropdownMenu.account-dropdown .account-menu__divider {
    margin: 0;
    background: #e5e7eb;
  }

  #dropdownMenu.account-dropdown .account-menu__nav {
    padding: 16px 18px 12px;
    gap: 18px;
  }

  #dropdownMenu.account-dropdown .account-menu__nav a {
    font-size: 1.03rem;
    color: #5b677c;
    font-weight: 500;
  }

  #dropdownMenu.account-dropdown .account-menu__lang {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 18px;
    gap: 10px;
  }

  #dropdownMenu.account-dropdown .account-menu__lang .account-menu__icon {
    color: #6b7280;
    margin-top: 10px;
    flex-shrink: 0;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langDropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langToggle {
    width: fit-content;
    min-height: 0;
    min-width: 0;
    padding: 10px 0;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 1.03rem;
    font-weight: 500;
    color: #5b677c;
    align-self: flex-start !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
    text-align: left;
    justify-content: flex-start;
    transform: none !important;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langToggle:hover {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langCurrent {
    min-width: 2ch;
    text-align: left;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu {
    position: static !important;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 8px 0 0 !important;
    padding: 6px 0;
    border: 1px solid #dbe1eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    z-index: 30;
    text-align: left;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu a {
    padding: 10px 14px;
    border-bottom: none;
    white-space: nowrap;
    line-height: 1.25;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu a:hover {
    padding-left: 14px;
  }

  #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu a.active {
    background: #eef4ff;
    color: #1f66e0;
    font-weight: 600;
  }

  #dropdownMenu.account-dropdown .account-menu__cta {
    padding: 16px 18px 18px;
    border-top: 1px solid #e5e7eb;
  }

  #dropdownMenu.account-dropdown .account-menu__cta .nav-upload-btn {
    display: inline-flex !important;
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 1.03rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu {
    background: #0f172a;
    border-color: #223046;
    box-shadow: 0 14px 28px rgba(8, 12, 22, 0.5);
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu a {
    color: #e2e8f0;
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu a.active {
    background: #132038;
    color: #bfdbfe;
  }

  body.theme-dark #dropdownMenu.account-dropdown .account-menu__lang-slot #langMenu a:hover {
    background: #132038;
    color: #bfdbfe;
  }
}

/* Navbar desktop overflow fix (2026-02-17) */
@media (min-width: 768px) {
  .header .nav {
    max-width: 1720px;
    padding: 10px clamp(16px, 2.2vw, 40px);
    column-gap: clamp(14px, 1.4vw, 28px);
  }

  .header .nav-links {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin-left: clamp(20px, 3vw, 64px);
    gap: clamp(10px, 1.2vw, 20px);
  }

  .header .nav .nav-link {
    padding: 8px clamp(10px, 0.9vw, 14px);
    font-size: clamp(0.88rem, 0.84rem + 0.18vw, 0.95rem);
    letter-spacing: 0;
    font-feature-settings: "locl" 0;
  }

  .header .nav-actions {
    margin-left: auto;
    gap: clamp(8px, 0.9vw, 14px);
    flex-shrink: 0;
  }

  .header .nav-upload-btn {
    padding: 8px clamp(12px, 1.1vw, 18px);
    font-size: 0.92rem;
  }

  .header #langToggle,
  .header #dropdownToggle,
  .header #adminDropdownToggle {
    padding: 8px 10px;
    font-size: 0.92rem;
    font-feature-settings: "locl" 0;
  }

  .header #dropdownToggle {
    min-width: 42px;
  }

  .header #adminDropdownToggle {
    min-width: 40px;
  }
}

@media (min-width: 768px) and (max-width: 1480px) {
  .header .nav-links {
    margin-left: 18px;
    gap: 8px;
  }

  .header .nav .nav-link {
    padding: 8px 9px;
    font-size: 0.88rem;
  }

  .header .nav-upload-btn {
    padding: 8px 12px;
    font-size: 0.88rem;
  }

  .header #adminDropdownToggle span {
    display: none;
  }

  .header #adminDropdownToggle {
    padding: 8px;
  }
}

/* FAQ mobile readability fix (2026-02-17) */
.faq-content.open {
  max-height: 9999px;
}

.faq-content p,
.faq-content li,
.faq-content a {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  .faq-content {
    padding: 0 16px;
  }

  .faq-content p,
  .faq-content li {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

/* Mobile navbar polish (2026-02-18) */
@media (max-width: 800px) {
  #dropdownToggle .greet-caret {
    display: none !important;
  }

  .notification-toggle {
    width: 60px !important;
    height: 60px !important;
  }

  .notification-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .notification-dot {
    top: 12px !important;
    right: 12px !important;
    width: 12px;
    height: 12px;
  }
}

.footer-contact__social-links { margin-top: 8px; }
