*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-img {
  height: 48px;
  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;
}

.domains-section {
  margin-bottom: 24px;
}

.domains-card {
  max-width: 460px;
  margin: 0 auto;
}

.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;
  }
}


