/* 
   =====================================================
   SORTEIEAQUI - HOME PREMIUM STYLES
   Design: Modern, Premium, High-CTR, SEO Optimized
   ===================================================== 
*/

:root {
  --primary-glow: rgba(227, 6, 19, 0.4);
  --secondary-glow: rgba(59, 130, 246, 0.3);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(15, 23, 42, 0.6);
  --premium-gradient: linear-gradient(135deg, #e30613 0%, #991b1b 100%);
  --text-gradient: linear-gradient(180deg, #ffffff 0%, #94a3b8 100%);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  position: relative;
  padding: 80px 16px 60px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(227, 6, 19, 0.1) 0%, transparent 70%);
  overflow: hidden;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(227, 6, 19, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-ctas .btn-primary {
  padding: 18px 36px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
  color: #fff;
  border-radius: 100px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-ctas .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.5);
}

.hero-ctas .btn-secondary {
  padding: 18px 36px;
  font-size: 20px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
  color: #fff;
  border-radius: 100px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-ctas .btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.trust-indicators {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item svg {
  color: #10b981;
}

/* =====================================================
   TOOL CONTAINER UPGRADE
   ===================================================== */
.tool-premium-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 40px;
  margin: -40px auto 60px;
  max-width: 1100px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 10;
}

@media (max-width: 900px) {
  .tool-premium-container {
    padding: 24px 16px;
    margin: -30px 10px 40px;
    border-radius: 24px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 60px 16px 40px;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    padding: 16px 24px;
    font-size: 18px;
  }
  
  .tool-premium-container {
    padding: 20px 12px;
    margin: -20px 8px 30px;
    width: calc(100% - 16px);
  }
}

/* =====================================================
   POPULAR TOOLS GRID
   ===================================================== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0 16px;
  max-width: 1200px;
  margin: 0 auto 80px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(227, 6, 19, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.tool-card:hover {
  transform: translateY(-10px);
  border-color: rgba(227, 6, 19, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
  transition: transform 0.4s;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-soft);
  color: var(--accent);
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.tool-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.tool-btn {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =====================================================
   BENEFITS SECTION
   ===================================================== */
.benefits-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 80px 16px;
  margin-bottom: 80px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  gap: 20px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.benefit-content p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* =====================================================
   SOCIAL PROOF / STATS
   ===================================================== */
.stats-section {
  padding: 60px 16px;
  text-align: center;
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item h3 {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 4px;
}

.stat-item p {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
}

/* =====================================================
   FAQ SECTION (PREMIUM ACCORDION)
   ===================================================== */
.faq-section {
  max-width: 800px;
  margin: 0 auto 100px;
  padding: 0 16px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-question {
  width: 100%;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.faq-question:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.02);
}

.faq-icon {
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 1000px;
  padding: 0 24px 24px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-answer p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* =====================================================
   ADSENSE PLACEHOLDERS
   ===================================================== */
.ad-slot {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.15);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 8px;
}

/* =====================================================
   SEO VISUAL UPGRADE
   ===================================================== */
.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.seo-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

@media (max-width: 600px) {
  .seo-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   GLOBAL BUTTONS OVERRIDE (FOR TOOL AREA)
   ===================================================== */
.controls-numbers button:not(.secondary),
#drawBtn,
#flipBtn,
#rollBtn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2) !important;
  border-radius: 100px !important;
  color: #fff !important;
  font-weight: 800 !important;
  transition: all 0.3s ease !important;
}

.controls-numbers button:not(.secondary):hover,
#drawBtn:hover,
#flipBtn:hover,
#rollBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4) !important;
}

.controls-numbers button.secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 100px !important;
  color: var(--muted) !important;
}

.controls-numbers button.secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* =====================================================
   PREMIUM MODAL STYLES
   ===================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.premium-modal {
  background: var(--card-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: 30px 24px;
  max-width: 440px;
  width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.premium-modal h2 {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-number-focus {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-number-focus .label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  font-weight: 700;
}

.modal-number-focus strong {
  font-size: clamp(54px, 15vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.modal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
}

.detail-item.full {
  grid-column: span 2;
}

.detail-item span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item strong {
  font-size: 14px;
  color: #fff;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-share,
.btn-whatsapp {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-share:hover,
.btn-whatsapp:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.premium-modal .btn-primary {
  padding: 14px !important;
  font-size: 14px !important;
  width: 100%;
}
