/* ============================================================
   MAIOR PACK DIGITAL — CSS Principal
   ============================================================ */

/* ---------- RESET & VARIABLES ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:     #7c3aed;
  --primary-d:   #5b21b6;
  --primary-l:   #a78bfa;
  --accent:      #f59e0b;
  --accent-d:    #d97706;
  --green:       #10b981;
  --red:         #ef4444;
  --dark:        #0f0d1a;
  --dark2:       #1a1730;
  --dark3:       #231f3a;
  --card-bg:     #1e1b36;
  --text:        #e2e0f0;
  --text-muted:  #9896b0;
  --border:      rgba(255,255,255,.08);
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(124,58,237,.25);
  --shadow-lg:   0 12px 48px rgba(124,58,237,.35);
  --transition:  .25s ease;
  --font:        'Inter', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: var(--primary-l); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(15,13,26,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.4rem; font-weight: 700; color: var(--text) !important;
}
.nav-logo i { color: var(--accent); }
.nav-logo strong { color: var(--primary-l); }
.nav-links {
  display: flex; align-items: center; gap: 6px; list-style: none; flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted); font-size: .875rem; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(124,58,237,.2); }
.btn-wpp { background: #25d366 !important; color: #fff !important; border-radius: 8px !important; }
.btn-wpp:hover { background: #1ebe57 !important; }
.btn-cta {
  background: var(--primary) !important; color: #fff !important;
  border-radius: 8px !important; padding: 8px 16px !important;
}
.btn-cta:hover { background: var(--primary-d) !important; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-weight: 600;
  font-size: .9rem; border: none; cursor: pointer; transition: var(--transition);
  font-family: var(--font); text-decoration: none !important;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); box-shadow: var(--shadow); color: #fff; }
.btn-accent { background: var(--accent); color: #1a1207; }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-2px); color: #1a1207; }
.btn-outline { background: transparent; color: var(--primary-l); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- HERO ---------- */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(135deg, #0f0d1a 0%, #1a1040 50%, #0f0d1a 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 600px at 60% 40%, rgba(124,58,237,.18) 0%, transparent 70%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.2); border: 1px solid rgba(124,58,237,.4);
  color: var(--primary-l); border-radius: 50px; padding: 6px 16px; font-size: .82rem; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 40px;
}
.stat { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; top: -1px; left: 20px; right: 20px; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.price-tag {
  text-align: center; margin-bottom: 24px;
}
.price-original { font-size: .9rem; color: var(--text-muted); text-decoration: line-through; }
.price-main { font-size: 3.2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.price-sub { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.feature-list li i { color: var(--green); width: 16px; flex-shrink: 0; }

/* ---------- SECTIONS ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--dark2); }
.section-title {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px;
}
.section-title span { color: var(--primary-l); }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 48px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- CATEGORIAS GRID ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px;
}
.cat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px; text-align: center; cursor: pointer; transition: var(--transition);
  text-decoration: none !important; color: var(--text) !important;
}
.cat-card:hover {
  border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow);
  background: rgba(124,58,237,.15);
}
.cat-card i { font-size: 2rem; color: var(--primary-l); margin-bottom: 12px; }
.cat-card span { font-size: .82rem; font-weight: 600; display: block; }

/* ---------- PRODUTOS GRID ---------- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px;
}
.product-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
}
.product-card:hover {
  border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.product-thumb {
  width: 100%; height: 160px; object-fit: cover; background: var(--dark3);
}
.product-thumb-placeholder {
  width: 100%; height: 160px; background: linear-gradient(135deg, var(--dark3), #2a2550);
  display: flex; align-items: center; justify-content: center;
}
.product-thumb-placeholder i { font-size: 3rem; color: rgba(167,139,250,.3); }
.product-body { padding: 16px; }
.product-cat {
  display: inline-block; font-size: .72rem; font-weight: 600;
  background: rgba(124,58,237,.2); color: var(--primary-l); border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: .04em;
}
.product-title { font-size: .95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.product-desc { font-size: .8rem; color: var(--text-muted); margin-bottom: 14px; 
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.badge-free { font-size: .72rem; color: var(--green); font-weight: 600; }

/* ---------- PAGAMENTO ---------- */
.pay-section { padding: 80px 0; background: var(--dark2); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pay-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px;
}
.pay-card h3 { font-size: 1.3rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.pay-card h3 i { color: var(--primary-l); }
#qrcode-container {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
#qrcode-container canvas, #qrcode-container img { border-radius: 8px; border: 6px solid #fff; }
.pix-key-box {
  background: var(--dark3); border-radius: 8px; padding: 12px 16px;
  font-size: .8rem; color: var(--text-muted); word-break: break-all; width: 100%;
}
.pix-copy-btn { display: flex; align-items: center; gap: 8px; }

/* ---------- FORMS ---------- */
.form-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px; max-width: 480px; margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  background: var(--dark3); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); font-family: var(--font); font-size: .9rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.form-divider { text-align: center; color: var(--text-muted); font-size: .82rem; margin: 16px 0; position: relative; }
.form-divider::before, .form-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* ---------- ALERTS ---------- */
.alert {
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: .88rem;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-danger  { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-info    { background: rgba(124,58,237,.15); border: 1px solid rgba(124,58,237,.3); color: var(--primary-l); }
.alert-warning { background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.3); color: #fde68a; }

/* ---------- DASHBOARD ---------- */
.dash-wrapper { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 68px); }
.sidebar {
  background: var(--dark2); border-right: 1px solid var(--border); padding: 28px 0;
  position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto;
}
.sidebar-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); padding: 0 20px 8px; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: 10px; padding: 11px 20px;
  color: var(--text-muted); font-size: .88rem; font-weight: 500; transition: var(--transition);
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  color: var(--text); background: rgba(124,58,237,.15); border-right: 3px solid var(--primary);
}
.sidebar-nav li a i { width: 18px; }
.dash-content { padding: 32px; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 1.7rem; font-weight: 800; }
.dash-header p { color: var(--text-muted); font-size: .9rem; }

/* ---------- STAT CARDS ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); }
.stat-card-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 14px; }
.icon-purple { background: rgba(124,58,237,.2); color: var(--primary-l); }
.icon-green  { background: rgba(16,185,129,.2);  color: var(--green); }
.icon-amber  { background: rgba(245,158,11,.2);  color: var(--accent); }
.icon-red    { background: rgba(239,68,68,.2);   color: var(--red); }
.stat-card-val { font-size: 1.6rem; font-weight: 800; }
.stat-card-label { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ---------- TABLES ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--dark3); padding: 12px 16px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); text-align: left; white-space: nowrap; }
td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: .875rem; }
tr:hover td { background: rgba(255,255,255,.02); }
.badge { display: inline-block; border-radius: 50px; padding: 3px 10px; font-size: .72rem; font-weight: 700; }
.badge-green  { background: rgba(16,185,129,.15); color: var(--green); }
.badge-amber  { background: rgba(245,158,11,.15); color: var(--accent); }
.badge-red    { background: rgba(239,68,68,.15);  color: var(--red); }
.badge-purple { background: rgba(124,58,237,.15); color: var(--primary-l); }

/* ---------- CHART ---------- */
.chart-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px;
}
.chart-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }

/* ---------- REFERRAL BOX ---------- */
.ref-box {
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(245,158,11,.1));
  border: 1px solid rgba(124,58,237,.3); border-radius: var(--radius-lg); padding: 28px;
}
.ref-link-row { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.ref-link-row input {
  flex: 1; background: var(--dark3); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 10px 14px; font-size: .85rem;
}

/* ---------- DOWNLOADS LIST ---------- */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; display: flex; align-items: center; gap: 16px; transition: var(--transition);
}
.dl-item:hover { border-color: var(--primary); }
.dl-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(124,58,237,.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.3rem; color: var(--primary-l); }
.dl-info { flex: 1; min-width: 0; }
.dl-info h4 { font-size: .92rem; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-info span { font-size: .78rem; color: var(--text-muted); }

/* ---------- PAGINA CONTENT ---------- */
.page-content { max-width: 820px; margin: 0 auto; }
.page-content h2 { font-size: 1.6rem; margin: 28px 0 12px; color: var(--primary-l); }
.page-content h3 { font-size: 1.2rem; margin: 22px 0 10px; color: var(--accent); }
.page-content p  { color: var(--text-muted); margin-bottom: 14px; }
.page-content ul { padding-left: 20px; color: var(--text-muted); margin-bottom: 14px; }
.page-content ul li { margin-bottom: 6px; }
.page-content a  { color: var(--primary-l); }

/* ---------- FOOTER ---------- */
.footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: .875rem; margin-top: 12px; line-height: 1.7; }
.wpp-float { display: inline-flex; align-items: center; gap: 8px; color: #25d366 !important; font-weight: 600; margin-top: 14px; font-size: .88rem; }
.footer-col h4 { font-size: .88rem; font-weight: 700; margin-bottom: 14px; color: var(--text); text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .875rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-l); }
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pay-badges span { background: var(--dark3); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.pay-badges .fa-whatsapp { color: #25d366; }
.pay-badges .fa-paypal  { color: #009cde; }
.pay-badges .fa-lock    { color: var(--green); }
.footer-price { font-size: .85rem; color: var(--text-muted); }
.footer-price strong { color: var(--accent); font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { text-align: center; font-size: .8rem; color: var(--text-muted); margin-bottom: 6px; }
.footer-tags a { color: var(--text-muted); font-size: .75rem; }
.footer-tags a:hover { color: var(--primary-l); }

/* ---------- WhatsApp FAB ---------- */
.wpp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition);
}
.wpp-fab:hover { background: #1ebe57; transform: scale(1.1); color: #fff !important; }

/* ---------- ADMIN SIDEBAR ---------- */
.admin-sidebar .sidebar-nav li a.active { border-right: 3px solid var(--accent); background: rgba(245,158,11,.1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .pay-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle   { display: flex; }
  .nav-links    { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--dark); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .dash-wrapper { grid-template-columns: 1fr; }
  .sidebar      { display: none; position: fixed; z-index: 900; width: 250px; height: 100vh; top: 0; left: -250px; transition: var(--transition); }
  .sidebar.open { display: block; left: 0; }
  .footer-grid  { grid-template-columns: 1fr; gap: 28px; }
  .stats-row    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-btns    { flex-direction: column; }
  .hero-stats   { gap: 16px; }
  .stats-row    { grid-template-columns: 1fr; }
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.loader { text-align: center; color: var(--text-muted); padding: 40px; }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeInUp .5s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
