/* =================================================================
   @Manco Tattoo - Official Custom Tattoo Giveaway
   Dark Luxury Urban Gold & Studio Noir Design System
   ================================================================= */

:root {
  --bg-page: #0a0b0e;
  --bg-card: #13151c;
  --bg-card-sub: #1a1c26;
  --bg-card-hover: #222533;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Vibrant Tattoo Gold / Yellow Palette (matching poster splatter) */
  --primary-gold: #facc15;
  --primary-gold-bright: #fde047;
  --primary-gold-hover: #eab308;
  --primary-gold-dark: #ca8a04;
  --gold-glow: rgba(250, 204, 21, 0.4);
  --gold-subtle: rgba(250, 204, 21, 0.12);
  --gold-border: rgba(250, 204, 21, 0.28);

  --accent-blue: #0095f6;
  --accent-green: #22c55e;
  --accent-red: #ef4444;

  --font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-card: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(250, 204, 21, 0.08);
  --shadow-btn: 0 12px 30px rgba(250, 204, 21, 0.35);
  --border-radius-card: 28px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 0%, #1c1d29 0%, #0d0e14 50%, #07080b 100%);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Top Sticky Announcement Bar */
.top-announcement {
  background: #0f1016;
  color: #fef08a;
  font-size: 0.88rem;
  padding: 11px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid var(--gold-border);
}

.announcement-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 500;
}

.live-pulse {
  display: inline-block;
  width: 9px;
  height: 9px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.8);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.highlight-slot {
  color: var(--primary-gold-bright);
  background: rgba(250, 204, 21, 0.15);
  padding: 1px 7px;
  border-radius: 6px;
  border: 1px solid rgba(250, 204, 21, 0.3);
}

#headerTimer {
  color: #ffffff;
  font-weight: 800;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* Page Layout Wrapper */
.page-wrapper {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.main-card {
  background: var(--bg-card);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(250, 204, 21, 0.18);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ca8a04, #facc15, #fde047, #facc15, #ca8a04);
}

/* Profile Header Section */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.avatar-wrapper {
  position: relative;
  width: 104px;
  height: 104px;
  margin-bottom: 16px;
}

.avatar-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #facc15, #ca8a04, #fde047, #eab308);
  box-shadow: 0 8px 25px rgba(250, 204, 21, 0.4);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #1e202c;
  border: 2px solid #0f1017;
}

.handle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
}

.handle-name {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.verified-badge {
  flex-shrink: 0;
}

.giveaway-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.sub-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(250, 204, 21, 0.12);
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.status-tag.studio-tag {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.25);
}

.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-gold);
}

/* Main Glowing CTA Button */
.cta-wrapper {
  margin: 10px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.claim-button {
  width: 100%;
  background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #eab308 100%);
  color: #0b0c10;
  font-family: var(--font-family);
  font-size: 1.18rem;
  font-weight: 800;
  padding: 17px 24px;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  text-decoration: none;
}

.claim-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(250, 204, 21, 0.48);
  filter: brightness(1.05);
}

.claim-button:active {
  transform: translateY(0);
}

.pulse-btn {
  animation: btnGlow 2.4s infinite;
}

@keyframes btnGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(250, 204, 21, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
  }
}

.btn-icon {
  display: flex;
  align-items: center;
}

.sub-claim-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 9px;
  text-align: center;
}

/* 3-Step Process Flow */
.steps-flow-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card-sub);
  padding: 18px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 28px;
}

.step-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 4px;
}

.step-num-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-gold);
  color: #0b0c10;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.step-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(250, 204, 21, 0.12);
  color: var(--primary-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 1px solid rgba(250, 204, 21, 0.22);
}

.step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Showcase Section */
.showcase-section {
  margin-bottom: 28px;
}

.showcase-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(250, 204, 21, 0.25);
  transition: var(--transition);
}

.showcase-img-wrapper:hover {
  transform: scale(1.01);
  border-color: var(--primary-gold);
  box-shadow: 0 20px 48px rgba(250, 204, 21, 0.25);
}

.showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 11, 16, 0.88);
  backdrop-filter: blur(8px);
  color: var(--primary-gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-gold);
  box-shadow: 0 0 8px var(--primary-gold);
}

.showcase-overlay-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--primary-gold);
  color: #0a0b10;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  transition: var(--transition);
}

.showcase-img-wrapper:hover .showcase-overlay-btn {
  background: #ffffff;
  color: #000000;
}

/* Package Highlights */
.basket-highlights {
  background: var(--bg-card-sub);
  border-radius: 20px;
  padding: 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 26px;
}

.highlights-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.highlight-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Trust Badges & FAQ */
.trust-footer {
  text-align: center;
  padding-top: 10px;
}

.trust-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.disclaimer-text {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

/* ========================================================
   Interactive Delivery & Address Confirmation Modal
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #14161f;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 50px rgba(250, 204, 21, 0.15);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 22px 16px;
  background: #171924;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary-gold-bright);
  background: rgba(250, 204, 21, 0.14);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(250, 204, 21, 0.28);
}

.close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.modal-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.timer-box {
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.35);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #fef08a;
}

.timer-countdown {
  font-family: monospace;
  font-size: 0.95rem;
  color: #ffffff;
  background: #0b0c10;
  padding: 3px 8px;
  border-radius: 6px;
}

.modal-body {
  padding: 18px 22px 22px;
  overflow-y: auto;
}

.offers-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.offers-count-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offers-refresh-btn {
  background: none;
  border: none;
  color: var(--primary-gold);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.offers-refresh-btn:hover {
  text-decoration: underline;
}

.offers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.offer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1c1e2a;
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.offer-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-gold);
  background: #232635;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.offer-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.offer-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.14);
  color: var(--primary-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.offer-info {
  display: flex;
  flex-direction: column;
}

.offer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.offer-instruction {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 6px;
}

.offer-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(250, 204, 21, 0.15);
  color: var(--primary-gold-bright);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.offer-action-btn {
  background: var(--primary-gold);
  color: #0b0c10;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: var(--transition);
}

.offer-card:hover .offer-action-btn {
  background: #ffffff;
  color: #000000;
}

.offers-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.82rem;
  gap: 10px;
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(250, 204, 21, 0.2);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.auto-check-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.73rem;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 12px;
  border-radius: 12px;
}

.pulsing-radar {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-gold);
  animation: pulseDot 1.4s infinite;
  flex-shrink: 0;
}

/* iOS & TikTok In-App Popup */
.ios-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.ios-popup-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.ios-popup-content {
  position: relative;
  background: #171924;
  border-radius: 24px;
  padding: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(250, 204, 21, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.ios-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.ios-gif-container {
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.ios-instruction-gif {
  width: 100%;
  display: block;
}

.ios-popup-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.ios-popup-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Winner Notification Toast */
.winner-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #171924;
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  z-index: 500;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.winner-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-img-box {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary-gold);
}

.toast-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-text-box {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.35;
}

.toast-text-box strong {
  color: #ffffff;
}

.toast-text-box span {
  color: var(--primary-gold-bright);
}

.toast-text-box small {
  color: var(--text-dim);
  font-size: 0.68rem;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 14px 10px 50px;
  }

  .main-card {
    padding: 22px 16px;
    border-radius: 22px;
  }

  .handle-name {
    font-size: 1.45rem;
  }

  .claim-button {
    font-size: 1.05rem;
    padding: 15px 18px;
  }

  .steps-flow-container {
    padding: 14px 8px;
    gap: 4px;
  }

  .step-icon-box {
    width: 38px;
    height: 38px;
  }

  .step-title {
    font-size: 0.78rem;
  }

  .step-desc {
    font-size: 0.65rem;
  }

  .step-arrow svg {
    width: 14px;
    height: 14px;
  }

  .winner-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 12px;
  }
}
