/* UTILITIES */
.hidden { display: none !important; }
* { box-sizing: border-box; }

/* BASE */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #4a3b3c;
  background-color: #fdf5f5;
  background-image: url('https://offertabs.s3.amazonaws.com/offer/7azww4/site/media/69f3e01d1f6794.16827663.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(253, 245, 245, 0.85) 0%, rgba(243, 193, 198, 0.75) 100%);
  backdrop-filter: blur(5px);
}

/* HEADER */
.header {
  padding: 30px 40px;
}
.brand-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #d96c75;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* LAYOUT */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.split-layout {
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* LEFT COLUMN TEXT */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(217, 108, 117, 0.1);
  color: #d96c75;
  border: 1px solid rgba(217, 108, 117, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #d96c75;
  margin: 20px 0;
}
@media (max-width: 768px) {
  .hero-headline { font-size: 2.5rem; }
}
.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #5a4b4c;
}

/* COUNTDOWN */
.countdown {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.6);
  padding: 20px;
  border-radius: 16px;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(217, 108, 117, 0.05);
}
.countdown-label {
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  color: #d96c75;
}
.timer-blocks {
  display: flex;
  gap: 15px;
}
.time-block {
  text-align: center;
}
.time-block span {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  background: rgba(255,255,255,0.9);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  color: #d96c75;
}
.time-block small {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #887a7b;
}

/* RULES LINK */
.rules-link {
  background: none;
  border: none;
  color: #887a7b;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 30px;
  font-size: 0.9rem;
  padding: 0;
  font-weight: 600;
}
.rules-link:hover { color: #d96c75; }

/* GLASS CARD (RIGHT COLUMN) */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(217, 108, 117, 0.15);
}
.glass-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 25px;
  color: #d96c75;
}

/* FORM */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e2d1d2;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: #d96c75;
  box-shadow: 0 0 0 4px rgba(217, 108, 117, 0.1);
}
.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e88d8b, #d96c75);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(217, 108, 117, 0.2);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(217, 108, 117, 0.3);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* STATUS & ERRORS */
.error-msg {
  background: #ffeaea;
  color: #c82333;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 0.9rem;
  border: 1px solid #f5c6cb;
}
.status-banner {
  background: rgba(255, 255, 255, 0.9);
  color: #d96c75;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid #f3c1c6;
  box-shadow: 0 10px 30px rgba(217, 108, 117, 0.1);
}

/* WHEEL GAME */
.wheel-container {
  width: 280px;
  height: 280px;
  position: relative;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 0 10px 25px rgba(217, 108, 117, 0.2);
  margin: 0 auto;
}
.wheel-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.1, 1);
  position: relative;
  overflow: hidden;
}
.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  text-align: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform-origin: center;
}
.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 30px solid #d96c75;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* RESULTS & SHARE */
.share-panel {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(217, 108, 117, 0.2);
}
.share-panel h4 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #d96c75;
  margin-bottom: 10px;
}
.share-link-box {
  display: flex;
  margin: 20px 0;
  gap: 10px;
}
.share-link-box input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2d1d2;
  border-radius: 8px;
  background: #fff;
  font-family: monospace;
  font-size: 1rem;
  color: #d96c75;
}
.share-link-box button {
  padding: 0 20px;
  background: #d96c75;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
}
.share-link-box button:hover {
  background: #c25b64;
}
.social-buttons {
  display: flex;
  gap: 10px;
}
.social-btn {
  flex: 1;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}
.social-btn:hover { opacity: 0.9; }
.social-btn.fb { background: #1877f2; }
.social-btn.tw { background: #000000; }

/* MODAL */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-content {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: #fdf5f5;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #d96c75;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.close-btn:hover {
  background: #f3c1c6;
  color: #fff;
}
.rules-text {
  white-space: pre-wrap;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a4b4c;
}