/* ADSkyscraper v2 – skyscraper design */
body {
  background: #c0def9;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}

.skyscraper-outer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0 auto;
  padding-top: 4px;
  overflow: visible;
}

.skyscraper-roof {
  width: 280px;
  height: 160px;
  margin-bottom: -56px;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.skyscraper-roof svg {
  width: 280px;
  height: 140px;
}

.skyscraper {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: none;
  box-shadow: 0 0 48px 12px rgba(0,124,240,0.13);
  border-radius: 32px;
  overflow: visible;
}

.floor {
  width: 100%;
  max-width: 720px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid #00dfd8;
  background: linear-gradient(135deg, #e0f7fa 0%, #f8fbff 100%);
  box-shadow: 0 8px 32px 0 rgba(0,223,216,0.18), 0 0 20px 5px rgba(0,223,216,0.10);
  z-index: 1;
  position: relative;
  overflow: visible;
}

.floor.top-floor {
  border: 3px solid #ffd700;
  background: linear-gradient(135deg, #fff6d5 0%, #fffef9 100%);
  box-shadow: 0 8px 32px 0 rgba(255,215,0,0.25);
}

.floor.top-floor::before {
  content: "I'm sticky! 😏";
  position: absolute;
  top: -15px;
  right: 25%;
  background: #ffd700;
  color: #000;
  padding: 5px 15px;
  border-radius: 15px;
  font-weight: bold;
  font-size: 0.9em;
  z-index: 3;
}

@media (min-width: 768px) {
  .floor.top-floor::before {
    right: 6%;
  }
}

.floor-content {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

.floor-content-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
}

.floor-content-link .ad-title-overlay,
.floor-content-link .ad-badges {
  pointer-events: none;
}

.floor-content a {
  width: 100%;
  display: block;
  text-decoration: none;
}

.floor-content img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.ad-title-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
  text-align: center;
  pointer-events: none;
  z-index: 5;
  max-width: 92%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-badges { position: absolute; bottom: 8px; right: 8px; z-index: 6; }
.price-badge {
  background: rgba(0,124,240,0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95em;
}

.floor-empty .floor-content-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.no-ads-message {
  margin: 0;
  color: #007cf0;
  font-weight: 600;
  font-size: 1.1rem;
}

.sky {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 220px;
  z-index: 0;
  pointer-events: none;
}

.cloud {
  position: absolute;
  left: -25vw; /* off-screen until animation moves it in */
  animation: cloudMove 40s linear infinite;
  transform: scale(1.45);
  transform-origin: center center;
}

.cloud1 { top: 38px;  animation-delay: 0s;   animation-duration: 41s; }
.cloud2 { top: 168px; animation-delay: 6s;   animation-duration: 55s; }
.cloud3 { top: 82px;  animation-delay: 21s;  animation-duration: 37s; }
.cloud4 { top: 142px; animation-delay: 2s;   animation-duration: 50s; }
.cloud5 { top: 58px;  animation-delay: 28s;  animation-duration: 44s; }
.cloud6 { top: 118px; animation-delay: 12s;  animation-duration: 58s; }
.cloud7 { top: 95px;  animation-delay: 33s;  animation-duration: 39s; }
.cloud8 { top: 152px; animation-delay: 15s;  animation-duration: 47s; }

@keyframes cloudMove {
  0% { left: -25vw; }
  100% { left: 120vw; }
}

.city-skyline {
  width: 100vw;
  margin: 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.city-skyline svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 80px;
}

/* ---- Site header: logo + countdown + claim (one compact bar) ---- */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  width: 100%;
  padding: 0.6rem 0.75rem 0.75rem;
  margin-bottom: 0.25rem;
}

.site-header-logo {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0;
  text-transform: uppercase;
  background: linear-gradient(90deg, #007cf0 0%, #00dfd8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.site-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 1rem;
}

.site-header-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  background: rgba(255,255,255,0.9);
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(0,124,240,0.12);
  border: 1px solid rgba(0,124,240,0.12);
}

.site-header-countdown-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 600;
}

.site-header-countdown-value {
  font-size: 1rem;
  font-weight: 800;
  color: #007cf0;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

.site-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.site-header-slots {
  font-size: 0.9rem;
  color: #007cf0;
  font-weight: 600;
}


/* Desktop: one row, logo left, rest center */
@media (min-width: 768px) {
  .site-header {
    justify-content: flex-start;
    padding: 0.5rem 1rem 0.6rem;
  }
  .site-header-logo {
    font-size: 2rem;
    margin-right: 0.5rem;
  }
  .site-header-right {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  .site-header-slots {
    white-space: nowrap;
    font-size: 0.95rem;
  }
  .site-header-actions {
    flex-wrap: nowrap;
  }
}

/* Mobile: smaller logo, tighter stack */
@media (max-width: 600px) {
  .site-header {
    padding: 0.5rem 0.5rem 0.6rem;
    gap: 0.5rem 0.6rem;
  }
  .site-header-logo {
    font-size: 1.5rem;
  }
  .site-header-countdown {
    padding: 0.28rem 0.5rem;
  }
  .site-header-countdown-value {
    font-size: 0.9rem;
  }
  .site-header-slots {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header-claim-info {
    font-size: 0.8rem;
  }
  .btn-claim {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 16px;
  }
}

.btn-claim {
  background: #f8fbff;
  color: #007cf0;
  font-weight: 700;
  border: 2px solid #00dfd8;
  border-radius: 22px;
  padding: 8px 22px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-claim:hover {
  background: #e0f7fa;
  color: #007cf0;
  border-color: #007cf0;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.policy-link {
  color: #007cf0;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 15px;
  background: rgba(255,255,255,0.9);
}

.policy-link-short { display: none; }

@media (max-width: 480px) {
  .policy-links { gap: 0.4rem 0.75rem; }
  .policy-link { font-size: 0.8rem; padding: 4px 10px; }
  .policy-link-long { display: none; }
  .policy-link-short { display: inline; }
}

.policy-link:hover {
  color: #00dfd8;
  background: #fff;
}

.policy-footer {
  color: #007cf0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0,124,240,0.2);
}

.policy-footer a { color: #007cf0; text-decoration: none; }

.policy-footer a:hover { color: #00dfd8; }

.purchase-section .form-label { font-weight: 600; color: #007cf0; }
.purchase-section .btn-skyscraper {
  background: linear-gradient(90deg, #007cf0 0%, #00dfd8 100%);
  color: #fff;
  font-weight: 700;
  padding: 12px 32px;
  border: none;
  border-radius: 18px;
}

.purchase-section .btn-skyscraper:hover {
  background: linear-gradient(90deg, #00dfd8 0%, #007cf0 100%);
  color: #fff;
}

.policy-content h1 { color: #007cf0; margin-bottom: 1rem; }
.policy-content h3 { color: #2c3e50; margin-top: 1.5em; margin-bottom: 0.5em; font-size: 1.2rem; }
.policy-content p, .policy-content ul { color: #4a4a4a; line-height: 1.6; margin-bottom: 1rem; }
.policy-content ul { padding-left: 1.5rem; }

@media (max-width: 600px) {
  .skyscraper, .floor { max-width: 98vw; }
  .adskyscraper-title { font-size: 1.6rem; }
  .floor.top-floor::before { right: 5px; font-size: 0.75em; }
}

.max-w-500 { max-width: 500px; }

/* ---- Success page ---- */
.page-success {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 50%, #fff 100%);
}
.site-header--minimal {
  justify-content: center;
  padding: 1rem 0.75rem;
}
.site-header--minimal .site-header-right { display: none; }
.success-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  padding: 2rem 1rem;
}
.success-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,124,240,0.15), 0 0 0 1px rgba(0,124,240,0.08);
  padding: 2.5rem 2rem;
  max-width: 420px;
  text-align: center;
}
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #007cf0 0%, #00dfd8 100%);
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 72px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,124,240,0.35);
}
.success-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #007cf0;
  margin-bottom: 0.75rem;
}
.success-text {
  color: #4a4a4a;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.btn-success-cta {
  display: inline-block;
  background: linear-gradient(90deg, #007cf0 0%, #00dfd8 100%);
  color: #fff !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 18px;
  text-decoration: none;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-success-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,124,240,0.35);
}

/* Cancel page (same layout as success, no confetti/sound) */
.success-icon--cancel {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  box-shadow: 0 8px 24px rgba(192,57,43,0.35);
}
.cancel-title { color: #c0392b; }
.cancel-card .btn-cancel-retry {
  display: inline-block;
  margin-top: 0.75rem;
  color: #007cf0;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0.5rem 0;
}
.cancel-card .btn-cancel-retry:hover { color: #00dfd8; }

/* ---- Place-ad page ---- */
.page-place-ad {
  min-height: 100vh;
  background: linear-gradient(180deg, #e8f4fd 0%, #f0f8ff 30%, #fff 100%);
}
.page-place-ad .site-header--minimal {
  justify-content: space-between;
  padding-left: 1rem;
  padding-right: 1rem;
}
.page-place-ad .site-header--minimal .back-link {
  color: #007cf0;
  font-weight: 600;
  text-decoration: none;
}
.page-place-ad .site-header--minimal .back-link:hover { color: #00dfd8; }
.place-ad-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,124,240,0.12), 0 0 0 1px rgba(0,124,240,0.06);
  padding: 2rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}
.place-ad-card .form-control:focus {
  border-color: #007cf0;
  box-shadow: 0 0 0 3px rgba(0,124,240,0.2);
}

/* ---- Cancel alert (index) ---- */
.alert-cancel {
  background: linear-gradient(90deg, rgba(0,124,240,0.08) 0%, rgba(0,223,216,0.08) 100%);
  border: 1px solid rgba(0,124,240,0.25);
  border-radius: 16px;
  color: #007cf0;
  font-weight: 600;
  padding: 1rem 1.25rem;
  margin: 0 0.5rem 0.25rem;
  text-align: center;
}
