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

@font-face {
  font-family: "Poppins";
  src: url("poppins.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start, #ffe3e5) 0%,
    var(--bg-gradient-end, #ff9ca8) 100%
  );
  min-height: 100vh;
  color: #222;
}

h1,
h2 {
  margin: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  max-width: 960px;
  margin: 40px auto 80px;
  padding: 0 16px 40px;
}

.logo-wrapper {
  display: flex;
  flex-direction: column; /* stack logo and buttons vertically */
  justify-content: center;
  align-items: center;
  margin: 0 auto 8px;
  padding: 0;
  max-width: 520px;
  background: transparent;
  box-shadow: none;
}

.logo-auth-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 12px auto 16px; /* add space between logo and buttons */
}

.logo-auth-btn {
  font-size: 13px;
  padding: 6px 22px;
  border-radius: 6px; /* square-ish buttons, not pills */
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.search-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.search-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 12px 30px var(--primary-shadow-color-soft, rgba(255, 75, 106, 0.25));
}

.domain-status {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
  max-width: 460px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}

.domain-status--ok {
  background-color: #24b47e;
  color: #ffffff;
}

.domain-status--bad {
  background-color: #ff4b6a;
  color: #ffffff;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #444;
}

.search-input::placeholder {
  color: #b07280;
}

.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  font-size: 13px;
  padding: 8px 18px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 18px var(--primary-shadow-color-strong, rgba(255, 75, 106, 0.4));
}

.btn-primary:hover {
  background: var(--primary-hover-color);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 75, 106, 0.45);
}

/* Special styling for "Visit" buttons */
.visit-btn {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 75, 106, 0.4);
}

.visit-btn:hover {
  background: var(--primary-hover-color);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--primary-color);
  border-radius: 999px;
  padding-inline: 20px;
  box-shadow: 0 6px 14px var(--primary-shadow-color-soft, rgba(255, 75, 106, 0.25));
}

.btn-outline:hover {
  background: #ffe3e7;
  transform: translateY(-1px);
}

/* Ensure Visit buttons override outline styles */
.btn-outline.visit-btn {
  background: var(--primary-color);
  color: #fff;
}

.btn-outline.visit-btn:hover {
  background: var(--primary-hover-color);
  color: #fff;
}

.search-btn {
  font-size: 12px;
}

.title-section {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 18px 40px var(--primary-shadow-color-strong, rgba(255, 75, 106, 0.35));
}

.card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.title-card {
  text-align: center;
  max-width: 460px;
}

.title-icon {
  margin-bottom: 8px;
}

.title-icon-img {
  height: 32px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.title-text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.title-subtext {
  font-size: 12px;
  color: #888;
  margin-bottom: 14px;
}

.install-btn {
  font-size: 12px;
  padding-inline: 26px;
}

.ios-install-hint {
  margin-top: 8px;
  font-size: 11px;
  color: #555;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  padding: 6px 10px;
  display: none;
}

.ios-install-hint.is-visible {
  display: block;
}

.domains-section {
  margin-bottom: 24px;
}

.domains-card {
  max-width: 460px;
  margin: 0 auto;
}

/* Prediction AI info section under verified domains */
.prediction-info-section {
  margin: 0 auto 24px;
}

.prediction-info-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
}

.prediction-info-text,
.prediction-info-note {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
}

.prediction-info-note {
  font-weight: 500;
}

.prediction-info-btn {
  font-size: 12px;
  padding-inline: 20px;
  text-decoration: none;
}

/* Override generic button styling for header auth buttons */
.logo-auth-btn {
  border-radius: 6px !important;
  text-decoration: none;
}

.logo-auth-btn:hover {
  text-decoration: none;
}

.prediction-info-actions {
  margin-top: 16px; /* pagebreak-style spacing before button */
  text-align: center;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}

.lock-icon {
  font-size: 16px;
}

.card-title {
  font-weight: 600;
  font-size: 14px;
}

.domains-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.domain-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff6f7;
  border-radius: 999px;
}

.domain-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.domain-name {
  flex: 1;
  font-size: 13px;
  color: #444;
}

.why-section {
  margin-top: 8px;
}

.why-card {
  max-width: 460px;
  margin: 0 auto;
}

.why-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.why-icon {
  font-size: 16px;
}

.why-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.why-highlight {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.why-text {
  font-size: 12px;
  color: #777;
  line-height: 1.55;
}

.pill {
  display: inline-block;
  background: #f2f2f2;
  padding: 4px 8px;
  border-radius: 4px;
}

.feature-block {
  margin-top: 12px;
}

.feature-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-icon {
  margin-right: 4px;
}

.feature-text {
  font-size: 12px;
  color: #777;
  line-height: 1.55;
}

.guide-section {
  margin-top: 16px;
}

.guide-card {
  max-width: 460px;
  margin: 0 auto;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.guide-icon {
  font-size: 16px;
}

.guide-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

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

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-text {
  font-size: 12px;
  color: #777;
  line-height: 1.55;
}

.bold {
  font-weight: 600;
}

.floating-wrapper {
  position: fixed;
  left: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  background: #fff;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.fab-telegram {
  /* Remove outer white circle look; let the image define the shape */
  background: transparent;
  box-shadow: none;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
}

.fab-telegram:hover {
  /* No hover shadow/background for telegram icon */
  transform: none;
  box-shadow: none;
}

.fab-icon {
  font-size: 22px;
}

.fab-icon-img {
  width: 64px;
  height: 64px;
  display: block;
  border-radius: 50%;
}

.fab-support {
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-support-inner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

/* Fullscreen iframe preview overlay */
.preview-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.35);
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.preview-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.preview-inner {
  max-width: none;
  width: 100%;
  margin: 0;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.preview-label {
  font-size: 11px;
  font-weight: 600;
  color: #aa4d5f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-close-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 4px 8px;
  color: #aa4d5f;
}

.preview-frame {
  width: 100%;
  flex: 1;
  border-radius: 0;
  border: none;
  background: #fff;
  /* Allow full interaction inside the iframe */
  pointer-events: auto;
  user-select: auto;
}

body.preview-open {
  overflow: hidden;
  height: 100vh;
}

@media (max-width: 600px) {
  .content {
    margin-top: 24px;
    padding-inline: 12px;
  }

  .card {
    padding: 18px 18px;
  }

  .floating-wrapper {
    left: 16px;
    bottom: 16px;
  }
}

/* Legal / static content pages */
.legal-card {
  max-width: 720px;
  margin: 0 auto 24px;
}

.legal-card h2 {
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 8px;
  color: #333;
}

.legal-card p,
.legal-card li {
  font-size: 12px;
  color: #555;
  line-height: 1.6;
}

.legal-card ul {
  margin-left: 18px;
  margin-bottom: 8px;
}

.legal-intro {
  margin-bottom: 10px;
}

/* Site footer */
.site-footer {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  font-size: 11px;
  color: #555;
}

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

.site-footer-links a {
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.site-footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Legal page specific layout */
.legal-page .content {
  max-width: 900px;
}

.legal-section {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.legal-card--with-header {
  max-width: 720px;
  box-shadow: none;
  border-radius: 14px;
  border: 1px solid #f0d0d8;
  padding: 18px 22px 22px;
  background: #ffffff;
}

.legal-heading {
  font-size: 22px;
  text-align: center;
  margin-bottom: 10px;
}

.legal-subtitle {
  font-size: 11px;
  color: #666;
  text-align: center;
  margin-bottom: 16px;
}

/* Notification bar */
.notify-bar {
  position: fixed;
  right: 20px;
  bottom: 20px;
  transform: translateY(20px);
  z-index: 800;
  max-width: 280px;
  padding: 6px 14px;
  font-size: 11px;
  background: #ffeb3b;
  border-radius: 999px;
  color: #000;
  text-align: center;
  box-shadow: 0 8px 18px var(--primary-shadow-color-soft, rgba(255, 75, 106, 0.25));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notify-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

