/* ==========================================================
   PH SHOP PRÊMIOS PRO — Folha de Estilos Principal (Mobile-First)
   Identidade: PH SHOP — A sua loja de aquarismo
   ========================================================== */

:root {
  --bg-dark: #071117;
  --bg-card: #0d1b24;
  --bg-surface: #132430;
  --border-color: #1e3545;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  
  --accent-gold: #ff982e;
  --accent-gold-hover: #ffad54;
  --accent-gold-glow: rgba(255, 152, 46, 0.25);

  --accent-cyan: #38bdf8;
  --accent-green: #00d26a;
  --accent-green-glow: rgba(0, 210, 106, 0.2);
  --accent-danger: #ef4444;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Homologation Alert Banner */
.homologation-banner {
  background: linear-gradient(90deg, #78350f, #92400e);
  color: #fef3c7;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #b45309;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse 1.5s infinite;
  display: inline-block;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.banner-close {
  background: none;
  border: none;
  color: #fef3c7;
  font-size: 1rem;
  cursor: pointer;
}

/* Site Header */
.site-header {
  background: rgba(7, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255, 152, 46, 0.15), rgba(56, 189, 248, 0.15));
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
}

.brand-name .highlight {
  color: var(--accent-gold);
}

.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  display: block;
  font-weight: 700;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: var(--border-color);
  color: #fff;
}

.btn-whatsapp {
  background: rgba(0, 210, 106, 0.15);
  border-color: rgba(0, 210, 106, 0.3);
  color: var(--accent-green);
}

.btn-whatsapp:hover {
  background: var(--accent-green);
  color: #071117;
}

.btn-admin-link {
  padding: 0.5rem 0.6rem;
  color: var(--text-muted);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(255, 152, 46, 0.08), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 152, 46, 0.12);
  border: 1px solid rgba(255, 152, 46, 0.3);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.feat-icon {
  font-size: 1.1rem;
}

/* Campaigns Grid */
.main-content {
  padding: 2.5rem 1.25rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.filter-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: var(--accent-gold);
  color: #071117;
  font-weight: 700;
}

.campaigns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 640px) {
  .campaigns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .campaigns-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Campaign Card */
.camp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.camp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 152, 46, 0.4);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: #03080c;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.camp-card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
}

.card-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: #071117;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-progress-box {
  margin-top: auto;
  margin-bottom: 1rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-surface);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: 4px;
  transition: width 0.5s ease;
}

.btn-participate {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), #ea7c16);
  border: none;
  color: #071117;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px var(--accent-gold-glow);
  transition: all 0.2s ease;
}

.btn-participate:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
}

/* Instant Wins Scroller */
.instant-wins-section {
  padding-bottom: 2.5rem;
}

.section-card-glass {
  background: linear-gradient(135deg, rgba(19, 36, 48, 0.7), rgba(13, 27, 36, 0.9));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}

.instant-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.instant-icon {
  font-size: 2.2rem;
  background: rgba(255, 152, 46, 0.15);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.instant-prizes-scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.instant-prize-chip {
  min-width: 200px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.instant-cota-tag {
  background: var(--accent-cyan);
  color: #071117;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Modal Overlay & Card */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
}

/* Checkout Elements */
.package-tiers {
  margin: 1.25rem 0;
}

.tiers-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.tier-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.btn-tier {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-tier small {
  display: block;
  font-size: 0.65rem;
  color: var(--accent-gold);
  margin-top: 2px;
}

.btn-tier.selected, .btn-tier:hover {
  background: rgba(255, 152, 46, 0.2);
  border-color: var(--accent-gold);
  color: #fff;
}

.participant-form h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.75rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.coupon-input-group {
  display: flex;
  gap: 0.4rem;
}

.btn-apply-coupon {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.order-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1.25rem 0;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.total-line {
  border-top: 1px solid var(--border-color);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

.total-line strong {
  color: var(--accent-gold);
}

.btn-primary-action {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-green), #04a253);
  border: none;
  color: #071117;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 15px var(--accent-green-glow);
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Pix Screen */
.pix-timer-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.pix-qr-container {
  text-align: center;
  margin: 1rem 0;
}

.pix-qr-img {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-sm);
  border: 4px solid #fff;
  background: #fff;
}

.code-copy-wrapper {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.code-copy-wrapper input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.8rem;
}

.btn-copy {
  background: var(--accent-gold);
  border: none;
  color: #071117;
  padding: 0 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.sandbox-simulator-box {
  margin-top: 1.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px dashed var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
}

.sim-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.btn-sandbox-simulate {
  margin-top: 0.75rem;
  background: var(--accent-cyan);
  border: none;
  color: #071117;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Success Screen */
.success-box {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.lucky-numbers-card {
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.numbers-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.num-badge {
  background: var(--accent-gold);
  color: #071117;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

.btn-spin-wheel-launch {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 100%;
}

/* Lucky Wheel Modal */
.modal-card-wheel {
  max-width: 420px;
}

.wheel-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  margin: 1.5rem auto;
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--accent-gold);
  z-index: 10;
}

.btn-spin-wheel {
  background: linear-gradient(135deg, var(--accent-gold), #e17006);
  border: none;
  color: #071117;
  font-family: inherit;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-gold-glow);
}

.wheel-result-box {
  margin-top: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.audit-hash-text {
  display: block;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  word-break: break-all;
}

/* Site Footer */
.site-footer {
  background: #04090d;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1rem 0 0.5rem;
  max-width: 400px;
}

.footer-env {
  font-size: 0.75rem;
  color: #64748b;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-col a {
  color: inherit;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid #0d1b24;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.bottom-links {
  display: flex;
  gap: 1.5rem;
}

.bottom-links a {
  color: inherit;
  text-decoration: none;
}
