/* Auth Landing Pages CSS - Dark Mode */

:root {
  --primary-color: #ED166C;
  --primary-hover: #c41058;
  --bg-dark: #1e1e1e;
  --bg-darker: #000;
  --bg-card: #282828;
  --bg-input: #333333;
  --border-color: #444;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --text-muted: #b0b0b0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-darker);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /* Brand name always reads LTR: "DevOpser Lite" */
  direction: ltr;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.nav-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Language selector — dropdown that matches the landing page (/). Replaces
   the prior single-button Hebrew toggle which was a dead-end for non-Hebrew
   readers who tapped it by accident. Colors are tuned for the auth nav's
   translucent-on-dark context (rgba backgrounds) rather than the landing
   page's solid dark sidebar — same component, same markup, same JS. */
.nav-links .lang-select {
  position: relative;
}

.nav-links .lang-select-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: inherit;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1;
  min-height: 36px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.nav-links .lang-select-trigger:hover,
.nav-links .lang-select-trigger:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.nav-links .lang-select.open .lang-select-trigger {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.nav-links .lang-select-icon {
  font-size: 0.9rem;
  opacity: 0.8;
}

.nav-links .lang-select.open .lang-select-icon,
.nav-links .lang-select-trigger:hover .lang-select-icon {
  color: var(--primary-color);
  opacity: 1;
}

.nav-links .lang-select-current {
  white-space: nowrap;
}

.nav-links .lang-select-chevron {
  font-size: 0.7rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.nav-links .lang-select.open .lang-select-chevron {
  transform: rotate(180deg);
}

.nav-links .lang-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #1f2937; /* opaque so dropdown doesn't blend into the hero */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 200;
}

.nav-links .lang-select.open .lang-select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-links .lang-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-links .lang-select-option:hover,
.nav-links .lang-select-option:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-links .lang-select-option.active {
  color: #fff;
}

.nav-links .lang-select-check {
  font-size: 0.75rem;
  color: var(--primary-color);
  opacity: 0;
}

.nav-links .lang-select-option.active .lang-select-check {
  opacity: 1;
}

[dir="rtl"] .nav-links .lang-select-menu {
  right: auto;
  left: 0;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 500px;
}

/* Login Card */
.login-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-primary);
}

/* Form Elements */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 1rem;
}

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

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(237, 22, 108, 0.15);
}

/* Auth Button */
.auth-button {
  display: block;
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 22, 108, 0.3);
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-button.secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.auth-button.secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

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

.button-group .auth-button {
  flex: 1;
}

/* Social Auth */
.social-auth {
  margin-bottom: 1rem;
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.google-auth-button:hover {
  background: var(--border-color);
  border-color: var(--text-muted);
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.divider span {
  padding: 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Magic Link Steps */
#magic-link-code-step {
  display: none;
}

#magic-link-code-step.show {
  display: block;
}

#magic-link-email-step.hide {
  display: none;
}

.magic-code-input {
  font-size: 1.5rem !important;
  letter-spacing: 0.5rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  touch-action: manipulation;
}

.form-group input {
  touch-action: manipulation;
}

.code-instruction {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.code-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Flash Messages */
.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
  font-size: 0.9rem;
}

.flash.show {
  display: block;
}

.flash.error {
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.flash.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.flash.info {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: block;
}

/* Signup Info */
.signup-info {
  background: rgba(237, 22, 108, 0.1);
  border: 1px solid rgba(237, 22, 108, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.signup-info p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Signup Link */
.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.signup-link a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: var(--primary-color);
}

.scroll-indicator i {
  font-size: 1rem;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Features Section */
.features-section {
  padding: 5rem 2rem;
  background: var(--bg-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, border-color 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: #fff;
}

.feature-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About Section */
.about-section {
  padding: 5rem 2rem;
  background: var(--bg-darker);
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Audience Section */
.audience-section {
  padding: 5rem 2rem;
  background: var(--bg-dark);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.audience-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
}

.audience-icon {
  width: 48px;
  height: 48px;
  background: rgba(237, 22, 108, 0.15);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.audience-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.audience-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pricing Section */
.pricing-section {
  padding: 5rem 2rem;
  background: var(--bg-darker);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-item {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border-color);
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.pricing-item:hover {
  transform: translateY(-4px);
}

.pricing-item.highlighted {
  border-color: var(--primary-color);
  position: relative;
}

.pricing-item.highlighted::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--primary-color);
  margin-right: 0.75rem;
  font-weight: bold;
}

.pricing-cta {
  display: inline-block;
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: auto;
}

.pricing-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(237, 22, 108, 0.3);
}

.pricing-cta.current-plan-btn {
  background: #6c757d;
  cursor: default;
  pointer-events: none;
  opacity: 0.8;
}

.pricing-cta.current-plan-btn:hover {
  transform: none;
  box-shadow: none;
}

.pricing-more {
  text-align: center;
  margin-top: 2rem;
}

.pricing-more a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.pricing-more a:hover {
  text-decoration: underline;
}

/* Pricing Page Specific */
.pricing-page-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.pricing-page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pricing-page-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-page-section {
  padding: 3rem 2rem 5rem;
  background: var(--bg-dark);
}

.pricing-full-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pricing-full-grid .pricing-item {
  padding: 1.5rem;
}

.pricing-full-grid .pricing-price {
  font-size: 2rem;
}

.pricing-full-grid .pricing-features li {
  font-size: 0.85rem;
  padding: 0.4rem 0;
}

.pricing-item-free {
  border-color: var(--border-color);
}

.pricing-item-free .pricing-price {
  color: var(--text-primary);
}

.pricing-cta-free {
  background: var(--bg-card);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.pricing-cta-free:hover {
  background: var(--primary-color);
  color: #fff;
}

.pricing-feature-excluded {
  text-decoration: line-through;
  opacity: 0.5;
}

.pricing-feature-excluded::before {
  content: '\2717' !important;
  color: var(--text-muted) !important;
}

.all-plans-include {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  text-align: center;
}

.all-plans-include h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.all-plans-include ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 0;
}

.all-plans-include li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.all-plans-include li::before {
  content: '\2713';
  color: var(--primary-color);
  margin-right: 0.5rem;
  font-weight: bold;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5em;
}

.enterprise-callouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}

.enterprise-callout {
  padding: 2rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.enterprise-callout .enterprise-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.enterprise-callout h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.enterprise-callout p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.enterprise-hosted {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.enterprise-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.enterprise-link:hover {
  color: var(--primary-hover);
}

.enterprise-cta {
  display: inline-block;
  width: auto;
  padding: 0.75rem 2rem;
}

.trial-note {
  max-width: 600px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.trial-note strong {
  color: var(--primary-color);
}

@media (max-width: 1400px) {
  .pricing-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .pricing-full-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .enterprise-callouts {
    grid-template-columns: 1fr;
  }
  .pricing-page-header {
    padding: 5rem 1rem 2rem;
  }
  .pricing-page-header h1 {
    font-size: 2rem;
  }
}

/* Legal Pages (Terms, Privacy) */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.legal-page .last-updated {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page a {
  color: var(--primary-color);
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-page th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}

/* Support page layout — push footer to bottom */
.support-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.support-page-body main {
  flex: 1;
}

/* Blog page layout */
.blog-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #111;
}

.blog-page-body main {
  flex: 1;
}

.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.blog-heading {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #222;
}

.blog-card-placeholder {
  background: linear-gradient(135deg, #ED166C 0%, #c41058 100%);
}

.blog-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.blog-card-desc {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0 0 1rem;
  line-height: 1.5;
  flex: 1;
}

.blog-card-date {
  font-size: 0.8rem;
  color: #666;
}

.blog-empty {
  color: #888;
  text-align: center;
  padding: 3rem 0;
  font-size: 1.1rem;
}

/* Single article view */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

.blog-back-link {
  display: inline-block;
  color: #ED166C;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.blog-back-link:hover {
  text-decoration: underline;
}

.blog-back-bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.blog-article-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.blog-article-date {
  display: block;
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.blog-article-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 2rem;
  max-height: 420px;
  object-fit: cover;
}

.blog-article-content {
  color: #ddd;
  font-size: 1.05rem;
  line-height: 1.8;
}

.blog-article-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 2rem 0 0.75rem;
}

.blog-article-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin: 1.5rem 0 0.5rem;
}

.blog-article-content p {
  margin: 0 0 1.25rem;
}

.blog-article-content a {
  color: #ED166C;
  text-decoration: underline;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.blog-article-content li {
  margin-bottom: 0.4rem;
}

.blog-article-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}

.blog-article-content blockquote {
  border-left: 3px solid #ED166C;
  margin: 1.5rem 0;
  padding: 0.5rem 1rem;
  color: #bbb;
  background: #1a1a1a;
  border-radius: 0 8px 8px 0;
}

@media (max-width: 480px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-heading {
    font-size: 1.6rem;
  }
  .blog-article-title {
    font-size: 1.5rem;
  }
}

/* Support page contact cards */
.support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.support-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.support-card:hover,
.support-card:focus {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  text-decoration: none !important;
}

.support-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(237, 22, 108, 0.1);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.support-card-icon-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.support-card h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.support-card p {
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.support-card-detail {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.support-card-static {
  cursor: default;
  position: relative;
}

.support-card-static:hover,
.support-card-static:focus-within {
  border-color: rgba(37, 211, 102, 0.45);
  transform: none;
}

.support-card-static:focus-within {
  border-color: var(--primary-color);
}

.support-dropdown {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-top: 0.5rem;
}

.support-card-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem 0.85rem 1.4rem;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-align: start;
  background-color: rgba(37, 211, 102, 0.08);
  border: 1.5px solid rgba(37, 211, 102, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.18s ease, box-shadow 0.25s ease;
  box-shadow: 0 1px 0 rgba(37, 211, 102, 0.05);
}

.support-dropdown-trigger-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-dropdown-chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25D366;
  transition: color 0.2s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card-select:hover {
  border-color: #25D366;
  background-color: rgba(37, 211, 102, 0.14);
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}

.support-card-select:focus,
.support-card-select:focus-visible {
  border-color: var(--primary-color);
  background-color: rgba(237, 22, 108, 0.06);
  outline: none;
  box-shadow: 0 0 0 3px rgba(237, 22, 108, 0.25);
}

.support-card-select:focus .support-dropdown-chevron,
.support-card-select:focus-visible .support-dropdown-chevron {
  color: var(--primary-color);
}

.support-card-select[aria-expanded="true"] {
  border-color: #25D366;
  background-color: rgba(37, 211, 102, 0.14);
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.45);
}

.support-card-select[aria-expanded="true"] .support-dropdown-chevron {
  transform: rotate(180deg);
}

/* Custom dropdown menu panel */
.support-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: linear-gradient(180deg, #2e2e2e 0%, #262626 100%);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 14px;
  box-shadow:
    0 18px 40px -12px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(37, 211, 102, 0.06),
    0 8px 28px -10px rgba(37, 211, 102, 0.35);
  transform-origin: top center;
  animation: support-dropdown-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes support-dropdown-pop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-dropdown-menu[hidden] {
  display: none;
}

.support-dropdown-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.support-dropdown-option:not(:last-child) {
  margin-bottom: 0.15rem;
}

.support-dropdown-option-region {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.support-dropdown-option-number {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  font-feature-settings: "tnum" 1;
  letter-spacing: 0.02em;
}

.support-dropdown-option:hover,
.support-dropdown-option.is-active,
.support-dropdown-option:focus {
  background-color: rgba(37, 211, 102, 0.16);
}

.support-dropdown-option:hover .support-dropdown-option-number,
.support-dropdown-option.is-active .support-dropdown-option-number,
.support-dropdown-option:focus .support-dropdown-option-number {
  color: #6be399;
}

.support-dropdown-option:active {
  transform: scale(0.985);
}

[dir="rtl"] .support-dropdown-option {
  align-items: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  .support-card-select,
  .support-card-select:hover,
  .support-dropdown-chevron,
  .support-dropdown-menu,
  .support-dropdown-option {
    transition: none;
    transform: none;
    animation: none;
  }
}

/* Focus visible styles for keyboard navigation (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}
.skip-link:focus {
  top: 0;
}

/* Reduced motion support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 2rem;
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.site-footer .footer-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.site-footer .footer-content p a,
.site-footer .footer-content p a:visited {
  color: var(--primary-color) !important;
  text-decoration: none;
}

.site-footer .footer-content p a:hover {
  color: #fff !important;
  text-decoration: underline;
}

.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-footer .footer-links a,
.site-footer .footer-links a:visited,
.site-footer .footer-links .footer-link-btn {
  color: #ccc !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  /* Reset button chrome so .footer-link-btn matches the surrounding <a>s. */
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links .footer-link-btn:hover {
  color: #fff !important;
}

/* Hamburger Toggle (Mobile) */
.hamburger-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.hamburger-toggle.open span:nth-child(2) {
  opacity: 0;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    max-width: none;
    margin: 0 auto;
  }

  .login-card {
    max-width: 400px;
    margin: 0 auto;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 1rem;
  }

  .hamburger-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    flex-direction: column;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

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

  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links .nav-cta {
    text-align: center;
    margin: 0.5rem 0;
    display: block;
  }

  .nav-links .lang-select {
    margin: 0.5rem 0;
    width: fit-content;
  }

  /* In the mobile hamburger panel, anchor the dropdown menu to the left
     edge of the trigger so it doesn't overflow off-screen. */
  .nav-links .lang-select-menu {
    right: auto;
    left: 0;
  }

  .hero-section {
    padding: 6rem 1rem 3rem;
    min-height: auto;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .features-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .audience-item {
    padding: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .about-content h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .pricing-item {
    padding: 1.5rem;
  }
}

/* Scroll margin for anchor links */
section[id] {
  scroll-margin-top: 80px;
}

/* Marketing Verification Page */
.marketing-verify-container {
  max-width: 500px;
  margin: 80px auto;
  padding: 40px 24px;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.marketing-verify-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marketing-verify-icon.success {
  background: #10b981;
}

.marketing-verify-icon.error {
  background: #ef4444;
}

.marketing-verify-container h1 {
  font-size: 24px;
  color: #1f2937;
  margin: 0 0 12px;
}

.marketing-verify-container p {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
}

.marketing-verify-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background: #ED166C;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.marketing-verify-cta:hover {
  opacity: 0.9;
}
