/* ════════════════════════════════════════════════
   CROWN COINS CASINO — style.css
   Enlarged Item Images (Desktop & Mobile)
════════════════════════════════════════════════ */

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

:root {
  --bg-dark:       #0d0617;
  --bg-card:       #160b29;
  --card-border:   #3b1b6d;
  --purple-bright: #9333ea;
  --purple-glow:   rgba(147, 51, 234, 0.4);
  --gold:          #f5c518;
  --green:         #22c55e;
  --green-btn:     linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  --purple-btn:    linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
  --modal-bg:      #26133d;
  --modal-border:  #58279c;
  --white:         #ffffff;
  --text-muted:    rgba(255,255,255,0.7);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; width: 100%; }

.text-gold { color: var(--gold); }
.text-center { text-align: center; }

.gradient-text {
  background: linear-gradient(135deg, #ffd700 0%, #f5c518 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════ NAVBAR ════════════ */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(13, 6, 23, 0.95);
  border-bottom: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
}
.nav-logo { display: flex; align-items: center; }
.navbar-logo-img { height: 46px; width: auto; object-fit: contain; }

.live-status {
  font-size: 13px; color: var(--green); font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  padding: 6px 14px; border-radius: 50px;
}
.pulse-dot {
  width: 8px; height: 8px; background: var(--green); border-radius: 50%;
  box-shadow: 0 0 10px var(--green); animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot { 0%,100%{opacity: 1;} 50%{opacity: 0.4;} }

/* ════════════ MAIN & HERO ════════════ */
.main-content {
  flex: 1; padding: 36px 0 60px; position: relative;
}
.bg-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(147, 51, 234, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(245, 197, 24, 0.15) 0%, transparent 50%);
}

.floating-coins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-coin {
  position: absolute; font-size: 24px; opacity: 0.15; animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) rotate(0deg); }
  100% { transform: translateY(-50px) rotate(720deg); }
}

.hero-banner { text-align: center; margin-bottom: 32px; }
.hero-badge {
  display: inline-block; background: rgba(245,197,24,0.15); border: 1px solid var(--gold);
  color: var(--gold); padding: 5px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 12px;
}
.hero-heading { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.15; margin-bottom: 10px; }
.hero-subheading { color: var(--text-muted); font-size: 15px; max-width: 580px; margin: 0 auto; }

/* ════════════ ITEMS GRID (3 COLS DESKTOP / 2 COLS MOBILE) ════════════ */
.items-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.item-card {
  background: var(--bg-card);
  border: 2px solid var(--card-border);
  border-radius: 22px; padding: 20px 14px 16px;
  text-align: center; position: relative; cursor: pointer;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.item-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(0,0,0,0.6), 0 0 30px rgba(245,197,24,0.3);
}

.item-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: 0 0 8px 8px; font-size: 10px; font-weight: 900;
  letter-spacing: 0.8px; white-space: nowrap;
}
.item-badge.popular { background: var(--gold); color: #160b29; }
.item-badge.hot { background: var(--purple-bright); color: #fff; }
.item-badge.best-val { background: var(--green); color: #fff; }
.item-badge.vip-tag { background: linear-gradient(135deg, #f5c518, #f97316); color: #160b29; }
.item-badge.mega-tag { background: linear-gradient(135deg, #3b82f6, #9333ea); color: #fff; }
.item-badge.ultra-tag { background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; }

/* ENLARGED ITEM IMAGE SIZE */
.item-img-wrapper {
  margin: 6px 0 10px; display: flex; align-items: center; justify-content: center; min-height: 185px;
}
.item-img {
  width: 100%; max-width: 205px; height: auto; max-height: 205px; object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.65));
  transition: transform .3s ease;
}
.item-card:hover .item-img { transform: scale(1.08) rotate(2deg); }

.item-title { font-size: 17px; font-weight: 900; margin-bottom: 6px; color: #fff; line-height: 1.2; }

.item-sc-bonus {
  font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.sc-pill {
  width: 20px; height: 20px; background: var(--green); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 900; color: #fff;
}

.claim-btn {
  width: 100%; background: var(--green-btn); color: #fff; border: none;
  border-radius: 12px; padding: 13px; font-size: 15px; font-weight: 900;
  cursor: pointer; font-family: inherit; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(34,197,94,0.4); text-transform: uppercase; letter-spacing: 0.5px;
}
.item-card:hover .claim-btn { transform: scale(1.02); box-shadow: 0 6px 20px rgba(34,197,94,0.6); }

/* ════════════ POP-UP OVERLAY MODAL ════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10, 5, 20, 0.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; animation: fadeInOverlay .3s ease; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.modal-card-box {
  background: var(--modal-bg);
  border: 3px solid var(--modal-border);
  border-radius: 24px;
  max-width: 500px; width: 100%;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9), 0 0 60px rgba(147, 51, 234, 0.3);
  animation: popInModal .35s cubic-bezier(.175,.885,.32,1.275);
}
@keyframes popInModal {
  from { transform: scale(0.85) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close-x {
  position: absolute; top: 14px; right: 14px; z-index: 15;
  background: rgba(0,0,0,0.3); border: 2px solid rgba(255,255,255,0.2);
  color: var(--white); width: 30px; height: 30px; border-radius: 50%;
  font-size: 15px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.modal-close-x:hover { background: #ef4444; border-color: #ef4444; }

/* MODAL STEPS */
.modal-step { display: none; }
.modal-step.active { display: block; }

/* MODAL TOP BANNER */
.modal-top-banner {
  background: linear-gradient(180deg, rgba(147, 51, 234, 0.4) 0%, rgba(38, 19, 61, 0.9) 100%);
  border-bottom: 2px solid var(--modal-border);
  padding: 20px 20px 16px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.modal-banner-icon { width: 44px; height: 44px; object-fit: contain; }
.modal-banner-title { font-size: 20px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.lock-emoji { font-size: 26px; }

.modal-content-inner { padding: 20px 24px 24px; }

/* SELECTED ITEM PREVIEW BOX INSIDE MODAL */
.selected-item-preview {
  background: rgba(0,0,0,0.4); border: 2px solid var(--modal-border);
  border-radius: 16px; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.preview-item-img { width: 95px; height: 95px; object-fit: contain; }
.preview-info { text-align: left; }
.preview-title { font-size: 17px; font-weight: 900; color: #fff; margin-bottom: 4px; }
.preview-free-tag {
  display: inline-block; background: var(--purple-btn); color: #fff;
  font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.5px;
}

.modal-instruction {
  font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 18px; text-align: center;
}

/* INPUT FIELD */
.input-field-wrap {
  position: relative; margin-bottom: 14px;
}
.input-field-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 17px; opacity: 0.7;
}
.modal-text-input {
  width: 100%; background: rgba(0,0,0,0.5); border: 2px solid var(--modal-border);
  border-radius: 12px; padding: 14px 14px 14px 44px; color: #fff;
  font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s;
}
.modal-text-input::placeholder { color: rgba(255,255,255,0.35); }
.modal-text-input:focus { border-color: var(--gold); box-shadow: 0 0 14px rgba(245,197,24,0.3); }

/* PLATFORM CHIPS (iOS & ANDROID ONLY) */
.platform-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: 10px;
}
.platform-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.platform-chips { display: flex; gap: 8px; }
.chip-btn {
  background: transparent; border: 1px solid var(--modal-border); color: var(--text-muted);
  border-radius: 8px; padding: 6px 16px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all .2s;
}
.chip-btn.active {
  background: var(--purple-bright); border-color: var(--purple-bright); color: #fff;
}

/* CTA BUTTON */
.modal-claim-cta {
  width: 100%; background: var(--purple-btn); color: #fff; border: none;
  border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 900;
  cursor: pointer; font-family: inherit; text-transform: uppercase; letter-spacing: 1px;
  box-shadow: 0 6px 20px var(--purple-glow); transition: transform .2s, box-shadow .2s;
}
.modal-claim-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--purple-glow); }

.modal-secure-note {
  text-align: center; margin-top: 12px; font-size: 11px; color: var(--text-muted); font-weight: 600;
}
.green-dot { color: var(--green); }

/* GENERATOR ANIMATION */
.gen-progress-ring {
  position: relative; width: 70px; height: 70px; margin: 10px auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.gen-spinner {
  position: absolute; inset: 0; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold); border-radius: 50%; animation: spin 0.9s linear infinite;
}
.gen-percentage { font-size: 16px; font-weight: 900; color: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.gen-status-heading { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.gen-status-sub { color: var(--text-muted); font-size: 12px; margin-bottom: 16px; }

.progress-track {
  width: 100%; height: 10px; background: rgba(0,0,0,0.5);
  border-radius: 50px; overflow: hidden; border: 1px solid var(--modal-border); margin-bottom: 14px;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--purple-bright), var(--gold), var(--green));
  border-radius: 50px; transition: width .3s ease;
}

.terminal-logs-box {
  background: #10061e; border: 1px solid var(--modal-border);
  border-radius: 10px; padding: 12px; font-family: monospace; font-size: 12px;
  height: 100px; overflow-y: auto; text-align: left;
}
.log-item { margin-bottom: 4px; color: var(--text-muted); }
.log-item.success { color: var(--green); }
.log-item.gold { color: var(--gold); }

/* LOCKER INSIDE MODAL */
.locker-heading { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.locker-sub { color: var(--text-muted); font-size: 13px; line-height: 1.4; margin-bottom: 16px; }

.locker-offers-container { margin-bottom: 16px; }
.offers-loading {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 20px; color: var(--text-muted); font-size: 13px;
}
.spinner {
  width: 22px; height: 22px; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite;
}

/* OFFERS LIST (EXACTLY 3) */
.offers-list { display: flex; flex-direction: column; gap: 10px; }
.offer-card-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(0,0,0,0.3); border: 2px solid var(--modal-border);
  border-radius: 12px; padding: 12px 14px; text-decoration: none; color: #fff;
  transition: all .2s;
}
.offer-card-item:hover {
  border-color: var(--gold); background: rgba(0,0,0,0.5); transform: translateX(3px);
}
.offer-icon-box {
  width: 36px; height: 36px; background: rgba(147,51,234,0.3);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.offer-details { flex: 1; text-align: left; }
.offer-title-text { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.offer-sub-text { font-size: 11px; color: var(--text-muted); }

.offer-claim-btn {
  background: var(--green-btn); color: #fff; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12px; font-weight: 800; cursor: pointer;
  font-family: inherit; white-space: nowrap; transition: transform .2s;
}
.offer-card-item:hover .offer-claim-btn { transform: scale(1.04); }

.modal-locker-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--modal-border);
  padding-top: 12px; margin-top: 12px;
}
.reload-btn { color: var(--gold); cursor: pointer; font-weight: 700; }
.reload-btn:hover { text-decoration: underline; }

/* ════════════ FOOTER ════════════ */
.footer {
  padding: 24px 16px; background: var(--bg-dark); border-top: 1px solid var(--card-border);
  text-align: center; color: var(--text-muted); font-size: 12px;
}

/* ════════════ RESPONSIVE (MOBILE: 2 CARDS PER ROW WITH ENLARGED IMAGES) ════════════ */
@media (max-width: 768px) {
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .navbar { padding: 12px 16px; }
  .navbar-logo-img { height: 38px; }
  .live-status { font-size: 11px; padding: 4px 10px; }
  .item-img-wrapper { min-height: 150px; }
  .item-img { max-width: 155px; max-height: 155px; }
}

@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .items-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .item-card { padding: 16px 8px 14px; border-radius: 18px; }
  .item-img-wrapper { min-height: 135px; margin: 4px 0 8px; }
  .item-img { max-width: 145px; max-height: 145px; }
  .item-title { font-size: 14px; }
  .item-sc-bonus { font-size: 12px; margin-bottom: 10px; }
  .claim-btn { padding: 11px; font-size: 13px; border-radius: 10px; }
  .item-badge { font-size: 9px; padding: 3px 10px; }
  .modal-card-box { border-radius: 20px; }
  .modal-content-inner { padding: 16px; }
}
