/* DA Auth Suite Pro v8 — Palmonas-Inspired Pink/Blush */

:root {
  --da-brand: #7B1C1C;
  --da-accent: #D4AF37;
  --da-bg: #FDFAF6;
  --da-text: #2D1810;
  --da-muted: #8A7968;
  --da-border: #E8DFD4;
  --da-success: #1B7A4E;
  --da-error: #C62828;
  --da-radius: 10px;
}

/* ═══ SPIN WHEEL POPUP ═══ */
#da-spin-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999998;
  display: none;
  align-items: center;
  justify-content: center;
}
#da-spin-modal {
  display: flex;
  overflow: hidden;
  width: 100%; max-width: 960px;
  max-height: 100vh;
  position: relative;
  animation: spinIn 0.4s cubic-bezier(0.16,1,0.3,1);
  background: linear-gradient(135deg, #FADBD8 0%, #F5C6AA 50%, #F2B8B8 100%);
}
@keyframes spinIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
#da-spin-close {
  position: absolute; top: 10px; right: 12px;
  background: rgba(0,0,0,0.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  font-size: 16px; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; line-height: 1;
}
#da-spin-close:hover { background: rgba(0,0,0,0.3); }

/* LEFT: Big Wheel */
#da-spin-wheel-side {
  width: 48%; display: flex; align-items: center; justify-content: center;
  padding: 20px 0; flex-shrink: 0; overflow: visible;
  margin-left: -40px;
}
.da-wheel-container { position: relative; }
#da-wheel-wrap { position: relative; }
#da-wheel { display: block; max-width: 100%; height: auto; }
#da-spin-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 60px; height: 60px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  color: #fff; font-weight: 800; font-size: 11px; letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}
#da-spin-btn:disabled { cursor: not-allowed; opacity: 0.4; }
#da-spin-btn:not(:disabled):hover { transform: translate(-50%,-50%) scale(1.1); background: rgba(255,255,255,0.3); }
#da-spin-btn.spinning { animation: spinPulse 0.4s infinite alternate; }
@keyframes spinPulse {
  from { transform: translate(-50%,-50%) scale(1); }
  to { transform: translate(-50%,-50%) scale(1.06); }
}
#da-wheel-pointer {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent; border-right: 11px solid transparent;
  border-top: 18px solid #1a1a1a;
  z-index: 5; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* RIGHT: Form */
#da-spin-form-side {
  width: 52%; padding: 50px 48px 36px;
  display: flex; flex-direction: column; justify-content: center; min-width: 0;
}
.da-spin-title {
  font-family: 'Georgia','Times New Roman',serif;
  font-size: 38px; font-weight: 700; font-style: italic;
  color: #1a1a1a; margin: 0 0 8px; line-height: 1.1; letter-spacing: -0.5px;
}
.da-spin-sub {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size: 15px; color: #555; margin: 0 0 28px; line-height: 1.4;
}
.da-spin-fields { display: flex; flex-direction: column; gap: 0; }
.da-spin-fields input[type="email"],
.da-spin-fields input[type="tel"] {
  width: 100%; padding: 16px 18px; border: none;
  border-bottom: 1px solid rgba(0,0,0,0.08); background: #fff;
  font-size: 15px; color: #1a1a1a; outline: none;
  transition: background 0.2s; box-sizing: border-box;
}
.da-spin-fields input[type="email"] { border-radius: 6px 6px 0 0; }
.da-spin-fields input[type="tel"] { border-radius: 0; border-bottom: none; }
.da-spin-fields input::placeholder { color: #aaa; }
.da-spin-fields input:focus { background: #FFFEF9; }

.da-spin-btn-dark {
  width: 100%; padding: 18px 24px; border: none; border-radius: 0 0 6px 6px;
  font-size: 15px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  cursor: pointer; background: #1a1a1a; color: #fff; transition: all 0.25s;
  display: block; text-align: center;
}
.da-spin-btn-dark:hover { background: #333; }
.da-spin-btn-dark:disabled { opacity: 0.4; cursor: not-allowed; }

.da-spin-btn-outline {
  display: inline-block; padding: 12px 32px;
  border: 2px solid #1a1a1a; border-radius: 4px; background: transparent;
  color: #1a1a1a; font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; transition: all 0.2s;
}
.da-spin-btn-outline:hover { background: #1a1a1a; color: #fff; }

.da-spin-msg {
  margin-top: 14px; padding: 10px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; display: none; text-align: center;
}
.da-spin-msg.success { background: rgba(27,122,78,0.1); color: #1B7A4E; }
.da-spin-msg.error { background: rgba(198,40,40,0.08); color: #C62828; }

.da-spin-legal { text-align: center; font-size: 11px; color: rgba(0,0,0,0.3); margin-top: 20px; }
.da-spin-legal a { color: rgba(0,0,0,0.4); text-decoration: underline; }

/* Prize won */
.da-spin-prize-won { text-align: center; margin-bottom: 20px; }
.da-spin-congrats { font-size: 48px; margin-bottom: 8px; }
.da-spin-otp-area { text-align: center; }
.da-spin-otp-sent { font-size: 14px; color: #555; margin-bottom: 16px; }
.da-spin-otp-boxes { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.da-sob {
  width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700;
  border: 2px solid rgba(0,0,0,0.1); border-radius: 6px; outline: none;
  background: #fff; color: #1a1a1a; transition: all 0.2s;
}
.da-sob:focus { border-color: #1a1a1a; box-shadow: 0 0 0 2px rgba(0,0,0,0.06); }
.da-spin-otp-links { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.da-spin-otp-links button { background: none; border: none; color: #1a1a1a; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }
.da-spin-timer { color: #999; font-size: 12px; }

.da-spin-result { text-align: center; }
.da-spin-coupon-box { background: #fff; border: 2px dashed rgba(0,0,0,0.15); border-radius: 10px; padding: 20px; margin: 20px 0 16px; }
.da-spin-coupon-code { font-size: 28px; font-weight: 800; letter-spacing: 5px; color: #1a1a1a; margin-bottom: 14px; font-family: 'Courier New',monospace; }
.da-spin-welcome-box { background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 12px; font-size: 13px; color: #333; margin-bottom: 16px; }
.da-spin-welcome-box strong { display: block; font-size: 17px; margin-top: 4px; letter-spacing: 2px; }
.da-spin-terms-text { font-size: 12px; color: #888; margin-bottom: 18px; }

/* Mobile */
@media (max-width: 740px) {
  #da-spin-modal { flex-direction: column; overflow-y: auto; border-radius: 0; }
  #da-spin-wheel-side { width: 100%; padding: 20px 0; margin-left: 0; }
  #da-wheel { width: 260px !important; height: 260px !important; }
  #da-spin-btn { width: 50px; height: 50px; font-size: 10px; }
  #da-spin-form-side { width: 100%; padding: 24px 28px 30px; }
  .da-spin-title { font-size: 28px; }
  .da-sob { width: 40px; height: 48px; font-size: 18px; }
  .da-spin-otp-boxes { gap: 6px; }
}
@media (max-width: 400px) {
  .da-sob { width: 36px; height: 44px; font-size: 16px; }
  #da-wheel { width: 220px !important; height: 220px !important; }
  #da-spin-btn { width: 44px; height: 44px; font-size: 9px; }
  .da-spin-title { font-size: 24px; }
}

/* ═══ AUTH PAGE ═══ */
#da-auth-page {
  max-width: 440px; margin: 0 auto 40px;
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color: var(--da-text);
}
.da-page-tabs { display: flex; border-bottom: 2px solid var(--da-border); margin-bottom: 24px; }
.da-ptab { flex: 1; padding: 14px 8px; border: none; background: none; font-size: 15px; font-weight: 600; color: var(--da-muted); cursor: pointer; position: relative; transition: color 0.2s; }
.da-ptab.active { color: var(--da-brand); }
.da-ptab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 3px; background: var(--da-brand); border-radius: 3px 3px 0 0; }
.da-page-tab-content { display: none; }
.da-page-tab-content.active { display: block; animation: fadeSlide 0.3s ease; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.da-page-sub { font-size: 14px; color: var(--da-muted); margin: 0 0 20px; }
.da-login-methods { display: flex; background: #F5F0EB; border-radius: var(--da-radius); padding: 3px; margin-bottom: 20px; gap: 3px; }
.da-lm-tab { flex: 1; padding: 10px 8px; border: none; background: transparent; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--da-muted); cursor: pointer; transition: all 0.2s; }
.da-lm-tab.active { background: #fff; color: var(--da-brand); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.da-login-method { display: none; }
.da-login-method.active { display: block; animation: fadeSlide 0.25s ease; }
.da-field-wrap { display: flex; align-items: center; border: 2px solid var(--da-border); border-radius: var(--da-radius); margin-bottom: 12px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; overflow: hidden; }
.da-field-wrap:focus-within { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(123,28,28,0.08); }
.da-field-icon { padding: 0 12px; font-size: 14px; color: var(--da-muted); flex-shrink: 0; }
.da-field-wrap input { flex: 1; border: none; background: transparent; padding: 13px 12px 13px 0; font-size: 14px; outline: none; color: var(--da-text); width: 100%; }
.da-field-wrap input::placeholder { color: #B5A99A; }
.da-eye-btn { background: none; border: none; padding: 0 12px; cursor: pointer; font-size: 16px; color: var(--da-muted); }
.da-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.da-row-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; }
.da-remember { display: flex; align-items: center; gap: 6px; color: var(--da-muted); cursor: pointer; }
.da-remember input { accent-color: var(--da-brand); width: 16px; height: 16px; }
.da-link-btn { background: none; border: none; color: var(--da-brand); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.da-link-btn:hover { text-decoration: underline; }
.da-terms-wrap { margin: 16px 0; }
.da-terms-label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--da-muted); cursor: pointer; line-height: 1.5; }
.da-terms-label input { accent-color: var(--da-brand); width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; }
.da-terms-label a { color: var(--da-brand); text-decoration: underline; }
.da-page-btn { width: 100%; padding: 14px 20px; border: none; border-radius: var(--da-radius); font-size: 15px; font-weight: 700; cursor: pointer; background: var(--da-brand); color: #fff; transition: all 0.25s; }
.da-page-btn:hover { background: #5C1414; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(123,28,28,0.25); }
.da-page-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.da-back-link { background: none; border: none; color: var(--da-brand); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 8px; }
.da-otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.da-ob { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border: 2px solid var(--da-border); border-radius: var(--da-radius); outline: none; background: #fff; color: var(--da-text); transition: all 0.2s; }
.da-ob:focus { border-color: var(--da-brand); box-shadow: 0 0 0 3px rgba(123,28,28,0.08); }
.da-otp-sent-box { text-align: center; padding: 12px; background: #F5F0EB; border-radius: var(--da-radius); margin-bottom: 16px; }
.da-otp-sent-box p { margin: 0; font-size: 14px; }
.da-otp-hint { font-size: 13px; color: var(--da-success); margin-bottom: 16px; }
.da-msg { margin-top: 12px; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; display: none; }
.da-msg.success { background: #ECFDF5; color: var(--da-success); border: 1px solid #A7F3D0; }
.da-msg.error { background: #FEF2F2; color: var(--da-error); border: 1px solid #FECACA; }
.da-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.da-stat { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; text-align: center; }
.da-stat-n { font-size: 28px; font-weight: 800; color: #333; }
.da-stat-l { font-size: 12px; color: #888; margin-top: 4px; }
