/* =========================================
   1. VARIÁVEIS E RESET GERAL
   ========================================= */
:root {
  --text: #fff;
  --muted: rgba(255,255,255,.72);
  --lineStrong: rgba(255,255,255,.45);
}

* { 
  box-sizing: border-box; 
}

html, body { 
  height: 100%; 
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% 0%, #101010, #050505 60%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. ESTRUTURA PRINCIPAL E CARD
   ========================================= */
.wrap {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}

.card {
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, #070707, #000);
  border-radius: 22px;
  padding: 18px 16px 24px;
  box-shadow: 0 16px 50px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.06);
}

/* =========================================
   3. CABEÇALHO (ÍCONES DO TOPO)
   ========================================= */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.topRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iconBtn, .shareBtn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.72); /* Fundo clarinho como no print */
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s;
}

.iconBtn:disabled {
  cursor: default;
  color: #000;
  font-size: 20px;
  font-weight: bold;
}

.shareBtn:active {
  transform: scale(0.95);
}

/* =========================================
   4. MARCA (LOGO, TÍTULO E ABAS)
   ========================================= */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}

.headline {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 24px 0;
  text-align: center;
  letter-spacing: -0.5px;
}

.tabs {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 4px;
  width: auto;
  min-width: 220px;
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 24px;
  border-radius: 26px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.tab.isActive {
  background: #000; /* Aba ativa fica mais escura */
}

/* =========================================
   5. PAINÉIS E BOTÕES DE LINK
   ========================================= */
.panel {
  display: none; /* Esconde todos os painéis por padrão */
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.panel.isActive {
  display: flex; /* Mostra apenas o ativo */
}

.linkBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 4px; /* Bordas levemente arredondadas */
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: transform 0.1s, background 0.2s;
}

.linkBtn:hover {
  background: rgba(255,255,255,0.05);
  transform: scale(1.02);
}

.linkTitle {
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.5px;
}

.dots {
  position: absolute;
  right: 16px;
  font-size: 18px;
  color: var(--muted);
}

.panel-shop {
  text-align: center;
  padding: 40px 20px;
}

.panel-shop h2 {
  color: var(--text);
  font-weight: 300;
  opacity: 0.8;
  margin: 0;
}

/* =========================================
   6. MODAL DE COMPARTILHAMENTO
   ========================================= */
.share-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-end; /* Mobile: sobe de baixo */
  justify-content: center;
  z-index: 1000;
}

@media (min-width: 768px) {
  .share-modal-overlay {
    align-items: center; /* Desktop: centralizado */
    padding: 20px;
  }
}

.share-modal-content {
  background: #fff;
  color: #000;
  width: 100%;
  max-width: 450px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .share-modal-content {
    border-radius: 24px;
  }
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.share-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  flex-grow: 1;
  text-align: center;
}

.close-modal-btn {
  background: #f3f3f1;
  border: none;
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.2s;
}

.close-modal-btn:hover {
  background: #e5e5e5;
}

.share-blue-card {
  background-color: #0030c2;
  color: #fff;
  margin: 0 16px;
  padding: 24px 20px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
}

.share-blue-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.share-blue-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.share-icons-row {
  display: flex;
  gap: 12px;
  padding: 24px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.share-icons-row::-webkit-scrollbar {
  display: none;
}

.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  width: 68px;
}

.share-icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s;
}

.share-icon-btn:active {
  transform: scale(0.95);
}

.share-icon-btn svg, 
.share-icon-btn img {
  width: 26px;
  height: 26px;
}

.share-item span {
  font-size: 11px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

/* Cores dos Ícones do Modal */
.share-icon-btn.copy { background-color: #f3f3f1; color: #000; }
.share-icon-btn.whatsapp { background-color: #25d366; color: #fff; }
.share-icon-btn.facebook { background-color: #1877f2; color: #fff; }
.share-icon-btn.x-twitter { background-color: #000; color: #fff; }
.share-icon-btn.linkedin { background-color: #0a66c2; color: #fff; }
.share-icon-btn.email { background-color: #f3f3f1; color: #000; }
.share-icon-btn.messenger { background: linear-gradient(45deg, #00c6ff, #0078ff); color: #fff; }

.share-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 0;
}

.share-footer {
  padding: 24px;
  text-align: center;
}

.share-footer-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 800;
}

.share-footer-text {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
