:root {
  --bg: #ecdcff;
  --card: #f6eeff;
  --primary: #65539a;
  --primary-dark: #4b3d78;
  --text: #2e2450;
  --muted: #6f6490;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

header {
  width: 100%;
  max-width: 1000px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
  font-size: 20px;
}

header .mini {
  width: 34px;
  height: 34px;
  display: inline-block;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.logo {
  width: 100%;
  max-width: 340px;
  margin: auto;
  display: block;
  animation: spin 30s linear infinite;
  filter: drop-shadow(0 15px 35px rgba(101, 83, 154, 0.25));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

h1 {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tag {
  margin: 18px 0 28px;
  font-size: 19px;
  color: var(--muted);
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 19px;
  padding: 18px 34px;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px var(--primary);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px var(--primary-dark);
}

.btn:active {
  transform: translateY(1px);
}

.btn.disabled {
  background: #a99bcc;
  pointer-events: none;
  box-shadow: none;
}

.meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--card);
  border-radius: 16px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.4;
  display: none;
  border: 1px solid rgba(101, 83, 154, 0.12);
}

.features {
  width: 100%;
  max-width: 1000px;
  padding: 24px 24px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.f {
  background: var(--card);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(101, 83, 154, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.f:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(101, 83, 154, 0.15);
}

.f b {
  display: block;
  color: var(--primary);
  font-size: 18px;
  margin-bottom: 6px;
  font-weight: 700;
}

.f p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

footer {
  padding: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: auto;
}

/* Modal Locker */
.lock-bg {
  position: fixed;
  inset: 0;
  background: rgba(46, 36, 80, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.lock-bg.show {
  display: flex;
}

.lock {
  background: var(--card);
  border-radius: 28px;
  max-width: 440px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(46, 36, 80, 0.5);
  animation: pop 0.25s ease forwards;
}

@keyframes pop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lock .mini {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  display: block;
}

.lock h2 {
  color: var(--primary);
  font-size: 24px;
  font-weight: 800;
}

.lock p.sub {
  color: var(--muted);
  font-size: 15px;
  margin: 8px 0 18px;
  line-height: 1.5;
}

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

.offers a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 18px;
  transition: all 0.2s ease;
  text-align: left;
  border: 1px solid rgba(101, 83, 154, 0.12);
  position: relative;
  overflow: hidden;
}

.offers a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(101, 83, 154, 0.4);
}

.offers a:hover .offer-sub,
.offers a:hover .offer-num {
  color: rgba(255, 255, 255, 0.8);
}

.offers a:hover .offer-num {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.offers a:hover .offer-arrow {
  color: #fff;
  transform: translateX(2px);
}

.offer-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(101, 83, 154, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.offer-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}

.offer-content {
  flex: 1;
  min-width: 0;
}

.offer-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}

.offer-arrow {
  font-size: 16px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.offers a.clicked {
  border-color: var(--primary);
}

.status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--muted);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

.close {
  margin-top: 14px;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s ease;
}

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

@media (max-width: 760px) {
  main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .logo {
    max-width: 220px;
  }
  .features {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
  }
  h1 {
    font-size: 52px;
  }
  .tag {
    font-size: 17px;
  }
}

/* ─── iOS / TikTok Redirect Popup ─────────────── */
.ios-popup {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease;
}

.ios-popup-background {
  position: absolute;
  inset: 0;
  background: rgba(46, 36, 80, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ios-popup-content {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid rgba(101, 83, 154, 0.2);
  border-radius: 28px;
  width: min(92vw, 420px);
  padding: 24px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(46, 36, 80, 0.6);
  animation: pop 0.25s ease forwards;
}

.ios-popup-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(101, 83, 154, 0.12);
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.ios-gif-container {
  width: 100%;
  margin-top: 8px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px -6px rgba(101, 83, 154, 0.25);
}

.ios-instruction-gif {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.ios-instruction-text h3 {
  color: var(--primary);
  font-size: 20px;
  font-weight: 800;
  margin: 18px 0 8px;
}

.ios-instruction-text p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.ios-instruction-text strong {
  color: var(--text);
  font-weight: 700;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
