/* ==============================
   RESET & BASE
================================ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
}

/* Garante que imagens e iframes nunca estourem a largura da tela */
img, iframe, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Previne zoom indesejado em inputs no iOS */
input, select, textarea { font-size: 16px; }
[x-cloak] { display: none !important; }

body {
  display: flex;
  min-height: 100dvh; /* Usa dynamic viewport height para mobile */
  color: #ffffff;
  transition: background 0.3s ease;
  overflow-x: hidden; /* Evita scroll horizontal acidental */
}

a {
  text-decoration: none;
}

/* ==============================
   THEMES (DATA-THEME)
================================ */

[data-theme="base"] {
  background-color: #111827; /* Gray 900 */
  background-image: none;
  --primary: #e2e8f0; /* Slate 200 */
  --card-bg: #1f2937; /* Gray 800 */
  --border: #374151; /* Gray 700 */
}

[data-theme="creator"] {
  background-color: #020617;
  background-image: radial-gradient(#1e293b 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  --primary: #facc15;
  --card-bg: #0f172a;
  --border: #1e293b;
}

[data-theme="creator"] .card {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="business"] {
  background-color: #0f172a;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  --primary: #3b82f6;
  --card-bg: #020617;
  --border: #1e293b;
}

[data-theme="health"] {
  background-color: #020617;
  background-image: radial-gradient(at 0% 0%, rgba(34, 197, 94, 0.15) 0px, transparent 50%),
  radial-gradient(at 100% 100%, rgba(6, 78, 59, 0.5) 0px, transparent 50%);
  --primary: #22c55e;
  --card-bg: #022c22;
  --border: #14532d;
}

[data-theme="gold"] {
  background-color: #0c0a09;
  background-image: radial-gradient(circle at top, rgba(212, 175, 55, 0.15), transparent 60%),
  radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px;
  --primary: #d4af37;
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(212, 175, 55, 0.35);
}

[data-theme="cyber"] {
  background-color: #030014;
  background-image: 
      linear-gradient(0deg, transparent 24%, rgba(0, 243, 255, .1) 25%, rgba(0, 243, 255, .1) 26%, transparent 27%, transparent 74%, rgba(0, 243, 255, .1) 75%, rgba(0, 243, 255, .1) 76%, transparent 77%, transparent), 
      linear-gradient(90deg, transparent 24%, rgba(0, 243, 255, .1) 25%, rgba(0, 243, 255, .1) 26%, transparent 27%, transparent 74%, rgba(0, 243, 255, .1) 75%, rgba(0, 243, 255, .1) 76%, transparent 77%, transparent);
  background-size: 50px 50px;
  --primary: #00f3ff;
  --card-bg: rgba(3, 0, 20, 0.85);
  --border: rgba(0, 243, 255, 0.5);
}

[data-theme="cyber"] .avatar {
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
  border: 2px solid var(--primary);
}

[data-theme="cyber"] .lux-btn {
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

[data-theme="cyber"] .lux-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 30px var(--primary);
  transform: scale(1.02);
}

[data-theme="cyber"] h1 {
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px var(--primary);
}

[data-theme="corporate_hr"] {
  background-color: #172554; /* Blue 950 */
  background-image: 
      linear-gradient(rgba(96, 165, 250, 0.05) 1px, transparent 1px), 
      linear-gradient(90deg, rgba(96, 165, 250, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  --primary: #60a5fa; /* Blue 400 */
  --card-bg: #1e3a8a; /* Blue 900 */
  --border: #2563eb; /* Blue 600 */
}

/* 5. TEMA WELLNESS (Saúde & Bem-estar - Soft Light) */
[data-theme="wellness"] {
  background-color: #f0fdf4; /* Emerald 50 */
  color: #064e3b; /* Emerald 950 */
  --primary: #10b981; /* Emerald 500 */
  --card-bg: #ffffff;
  --border: #d1fae5;
}
[data-theme="wellness"] .social-icon { color: #064e3b; }
[data-theme="wellness"] .card, [data-theme="wellness"] .pro-btn { color: #064e3b; border-color: #10b981; }
[data-theme="wellness"] .about-section { background: rgba(16, 185, 129, 0.05); border-color: #d1fae5; }
[data-theme="wellness"] .footer { border-top-color: #d1fae5; color: #065f46; }

/* 6. TEMA ESTHETIC (Clínicas & Beleza - Rose Soft) */
[data-theme="esthetic"] {
  background-color: #fff1f2; /* Rose 50 */
  color: #881337; /* Rose 950 */
  --primary: #e11d48; /* Rose 600 */
  --card-bg: #ffffff;
  --border: #fecdd3;
}
[data-theme="esthetic"] .social-icon { color: #881337; }
[data-theme="esthetic"] .card, [data-theme="esthetic"] .pro-btn { color: #881337; border-color: #e11d48; }
[data-theme="esthetic"] .lux-btn { background: linear-gradient(135deg, #e11d48, #fb7185); color: #fff; }
[data-theme="esthetic"] .about-section { background: rgba(225, 29, 72, 0.05); border-color: #fecdd3; }
[data-theme="esthetic"] .footer { border-top-color: #fecdd3; color: #9f1239; }

/* 7. TEMA ROSEGOLD (Luxo Feminino - Dark Metallic) */
[data-theme="rosegold"] {
  background-color: #1a1212;
  background-image: radial-gradient(circle at top, rgba(183, 110, 121, 0.15), transparent 60%),
  radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px;
  --primary: #b76e79; /* Rose Gold */
  --card-bg: rgba(255, 255, 255, 0.05);
  --border: rgba(183, 110, 121, 0.35);
}
[data-theme="rosegold"] .avatar { border-color: var(--primary); box-shadow: 0 0 20px rgba(183, 110, 121, 0.2); }
[data-theme="rosegold"] .lux-btn { background: linear-gradient(135deg, #b76e79, #8e525a); color: #fff; }
[data-theme="rosegold"] h1 { text-shadow: 0 2px 4px rgba(0,0,0,0.3); }

/* ==============================
   EDITOR (LEFT SIDEBAR)
================================ */

.editor {
  width: 400px;
  max-width: 100%; /* Garante que não estoure em telas < 400px */
  padding: 20px 15px; /* Padding lateral levemente reduzido para mobile */
  background: #020617;
  border-right: 1px solid #1e293b;
  overflow-y: auto;
}

/* ==============================
   EDITOR ACCORDION
================================ */
.accordion-item {
  border-bottom: 1px solid #1e293b;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 12px;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.accordion-header i {
  transition: transform 0.2s ease-in-out;
  font-size: 12px;
  opacity: 0.7;
}

.accordion-content {
  padding: 0 16px 20px 16px;
  /* Um fundo sutil para diferenciar o conteúdo */
  background: rgba(0,0,0,0.1); 
  border-top: 1px solid #1e293b;
}

.help-icon {
  color: #64748b;
  font-size: 13px;
  transition: color 0.2s;
  text-decoration: none;
}

.help-icon:hover {
  color: var(--primary);
}


/* ==============================
   BUTTONS
================================ */
.btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin: 0;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: #020617; /* Cor escura para bom contraste com primárias claras */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin: 0;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-action:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-danger {
    background: #450a0a;
    border: 1px solid #7f1d1d;
    color: #fca5a5;
}

/* Botão Resetar Cor (Editor) */
.editor button.btn-reset-color {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid #334155 !important;
    color: #94a3b8 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s;
    margin-top: 0 !important;
}
.editor button.btn-reset-color:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    border-color: #7f1d1d !important;
}

.editor h2 {
  margin-top: 0;
  font-size: 20px;
  margin-bottom: 16px;
}

.editor h3 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.editor label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.editor input,
.editor select,
.editor textarea {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  border-radius: 8px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.editor input:focus,
.editor select:focus,
.editor textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Input Color Customization */
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: none; border-radius: 4px; }
input[type="color"]::-moz-color-swatch { border: none; border-radius: 4px; }

/* --- Editor Cards (Manage & Subscription) --- */
.editor-card {
  background: #1e293b;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid #334155;
}

.editor-card-title {
  display: block;
  margin-bottom: 12px;
  color: #94a3b8;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Link & Social Items (Grid Layout) --- */
.link-editor {
  display: grid;
  grid-template-columns: 24px 60px 1fr 24px 36px; /* Grip | Icon | Title | Move | Delete */
  gap: 10px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

/* Estilo quando está arrastando */
.link-editor.dragging {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed var(--primary);
}

.drag-handle {
  color: #64748b;
  cursor: grab;
  display: flex;
  justify-content: center;
}

/* Botões de Mover (Acessibilidade Mobile) */
.move-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.move-btn {
  background: rgba(255,255,255,0.05);
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  height: 14px;
  border-radius: 2px;
  font-size: 10px;
}
.move-btn:hover { background: var(--primary); color: #000; }

/* --- Plan & Subscription Card --- */
.plan-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.plan-badge.free {
  background: #475569;
  color: #e2e8f0;
}
.plan-badge.pro {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #000;
}
.warning-box {
  margin-bottom: 12px;
  font-size: 11px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-upgrade-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  margin: 0;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #020617;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-upgrade-pro:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}



.link-editor input[type="url"] {
  grid-column: 1 / -1; /* URL takes full width on new line */
  margin-top: 0;
}

.editor button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
}

.editor button:hover {
  background: rgba(255,255,255,0.05);
}

.upgrade {
  margin-top: 12px;
  font-size: 12px;
  color: #facc15;
}

/* ==============================
   PREVIEW CONTAINER
================================ */

.container {
  flex: 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: 20px 15px; /* Reduzido para ganhar espaço em telas pequenas */
  text-align: center;
  box-sizing: border-box;
}

/* ==============================
   AVATAR + HEADER
================================ */

.avatar {
  display: block;
  margin: 0 auto 16px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

h1 {
  margin: 8px 0 4px;
  font-size: 32px;
  font-family: 'Dancing Script', cursive;
}

p {
  margin: 0 0 24px;
  font-size: 14px;
  opacity: 0.8;
}

/* ==============================
   TEMPLATE BASE (CARDS)
================================ */

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  padding: 16px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* ==============================
   TEMPLATE PROFESSIONAL
================================ */

.pro-btn {
  display: block;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease;
}

.pro-btn:hover {
  background: rgba(255,255,255,0.05);
}

/* ==============================
   TEMPLATE LUXURY (PREMIUM)
================================ */

.lux-btn {
  display: block;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #b8962e);
  color: #020617;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lux-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* =========================================
   NOVOS TEMAS (LAYOUTS)
   ========================================= */

/* 1. TEMA MODERN (Moderno & Minimalista - Dark Edition) */
/* Fundo quase preto, alto contraste, limpo */
body[data-theme="modern"] {
    background-color: #09090b; /* Zinc 950 */
    color: #f4f4f5; /* Zinc 100 */
    font-family: 'Inter', sans-serif;
}
[data-theme="modern"] .profile-card {
    background: #18181b; /* Zinc 900 */
    box-shadow: 0 0 0 1px #27272a; /* Borda sutil via shadow */
    border-radius: 32px;
    border: none;
}
[data-theme="modern"] .profile-avatar {
    border: 4px solid #18181b;
    box-shadow: 0 0 0 2px #3f3f46;
}
/* Ajuste do botão Soft para o tema Modern Dark */
[data-theme="modern"] .btn-style-soft {
    background: #27272a;
    color: #fff;
    border: 1px solid #3f3f46;
}
[data-theme="modern"] .btn-style-soft:hover {
    background: #3f3f46;
    transform: translateY(-2px);
}

/* 2. TEMA SOPHISTICATED (Sofisticado & Luxo - Ultra Dark) */
/* Fundo profundo, detalhes dourados, fontes serifadas */
body[data-theme="sophisticated"] {
    background-color: #020617; /* Slate 950 */
    background-image: linear-gradient(to bottom, #020617, #0f172a);
    color: #f8fafc;
    font-family: 'Playfair Display', serif; /* Requer importação da fonte */
}
[data-theme="sophisticated"] .profile-card {
    background: rgba(15, 23, 42, 0.6); /* Semi-transparente */
    backdrop-filter: blur(8px);
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
[data-theme="sophisticated"] h1, [data-theme="sophisticated"] h2 {
    color: #e2e8f0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
[data-theme="sophisticated"] .text-accent {
    color: #fbbf24; /* Amber 400 (Dourado) */
}

/* 3. TEMA ELEGANT (Elegante & Dark Chic) */
/* Tons de vinho/roxo profundo, suave, premium */
body[data-theme="elegant"] {
    background-color: #2a0a18; /* Dark Burgundy */
    background-image: radial-gradient(circle at 50% 0%, #500724 0%, #1a050a 80%);
    color: #fce7f3; /* Pink 100 */
}
[data-theme="elegant"] .profile-card {
    background: rgba(40, 10, 20, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 114, 182, 0.1); /* Borda rosa sutil */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* 4. TEMA GLASS (Futurista & Deep Space) */
/* Efeito de vidro fosco sobre fundo espacial escuro */
body[data-theme="glass"] {
    background-color: #000;
    background-image: 
        radial-gradient(at 10% 10%, #312e81 0%, transparent 40%),
        radial-gradient(at 90% 90%, #be185d 0%, transparent 40%);
    color: #ffffff;
    min-height: 100vh;
}
[data-theme="glass"] .profile-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
}

/* =========================================
   NOVOS ESTILOS DE BOTÕES
   ========================================= */

/* 1. Botão SOFT (Fofo/Arredondado) */
.btn-style-soft {
    background: #27272a; /* Dark gray */
    color: #fff;
    border-radius: 20px; /* Pill shape */
    border: 1px solid #3f3f46;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-style-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    background: #3f3f46;
}

/* 2. Botão SHARP (Profissional/Quadrado) */
.btn-style-sharp {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 0px; /* Canto reto */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-style-sharp:hover {
    background: rgba(255, 255, 255, 0.1);
    letter-spacing: 2px; /* Efeito de expansão */
}

/* 3. Botão OUTLINE (Elegante) */
.btn-style-outline {
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 12px;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s;
}
.btn-style-outline:hover {
    background: currentColor;
    color: #fff !important; /* Força texto branco no hover */
    opacity: 1;
}

/* 4. Botão GLASS (Vidro) */
.btn-style-glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 16px;
    backdrop-filter: blur(4px);
    transition: background 0.3s;
}
.btn-style-glass:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ==============================
   MOBILE FAB (Floating Action Button)
================================ */
.mobile-fab {
  display: none; /* Hidden on desktop */
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #020617;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  z-index: 1000;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: transform 0.2s;
}
.mobile-fab:active { transform: scale(0.95); }

/* ==============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
  body {
    flex-direction: column;
  }

  .mobile-fab { display: flex !important; }

  .editor {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 80px; /* Space for FAB */
    max-width: 100vw;
    box-sizing: border-box;
  }

  .container { 
    max-width: 100%; 
    padding-bottom: 80px;
    width: 100vw;
  }
  
  /* Classes utilitárias para alternar visibilidade no mobile */
  .mobile-hidden { display: none !important; }
}

/* ==============================
   SOCIAL ICONS
================================ */

.social-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 24px;
  flex-wrap: wrap;
}

.social-icon {
  color: #fff;
  font-size: 24px;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}

.social-icon:hover {
  opacity: 1;
  transform: scale(1.1);
  color: var(--primary);
}

.btn-icon {
  margin-right: 10px;
}

/* ==============================
   SCROLLBAR (POLISH)
================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #020617; 
}
::-webkit-scrollbar-thumb {
  background: #1e293b; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary); 
}

/* ==============================
   ABOUT SECTION
================================ */

.about-section {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: left;
}

.about-section h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--primary);
  text-align: center;
}

.about-section p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 0;
  white-space: pre-line;
}

/* ==============================
   FOOTER
================================ */

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer i { margin-right: 4px; }

/* ==============================
   MODALS & LEGAL
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #1e293b;
  width: 100%;
  width: 90%; /* Responsivo no mobile */
  max-width: 500px;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #1e293b;
  border: 1px solid var(--primary);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 1500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; text-align: center; }
  .cookie-banner button { width: 100%; }
}

/* ==============================
   MÓDULOS (MINI-SITE)
================================ */
.module-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}
.module-section h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}
.module-content { font-size: 15px; line-height: 1.6; opacity: 0.9; }

/* Módulo CTA */
.module-cta { text-align: center; background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(var(--primary-rgb), 0.1) 100%); border-color: var(--primary); }
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.cta-button:hover { transform: scale(1.05); }

/* Módulo Serviços */
.services-grid { 
    display: grid; 
    gap: 15px; 
    /* Cria colunas automaticamente se houver espaço (> 200px), senão empilha */
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr)); 
}
.service-card { 
    background: rgba(0,0,0,0.2); 
    padding: 15px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.05); 
    height: 100%; /* Garante altura igual em grid */
}
.service-card h4 { margin: 0 0 5px 0; font-size: 16px; color: #fff; }
.service-card p { font-size: 13px; margin: 0 0 10px 0; opacity: 0.7; }
.service-price { display: inline-block; background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; color: var(--primary); }

/* Módulo Vídeo */
.video-container { position: relative; padding-bottom: 56.25%; /* 16:9 */ height: 0; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Módulo Depoimentos */
.testimonials-grid { 
    display: grid; 
    gap: 15px;
    grid-template-columns: 1fr; /* Depoimentos geralmente ficam melhor empilhados em mobile */
}
.testimonial-card { 
    background: rgba(255,255,255,0.03); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid rgba(255,255,255,0.05); 
    position: relative;
    font-style: italic;
}
.testimonial-card .quote-icon { position: absolute; top: 10px; left: 15px; font-size: 20px; color: var(--primary); opacity: 0.3; }
.testimonial-card p { margin: 10px 0 10px 0; font-size: 14px; opacity: 0.9; padding-left: 10px; }
.testimonial-card .client-name { display: block; text-align: right; font-size: 12px; font-weight: bold; color: var(--primary); font-style: normal; }

/* Módulo Imóveis */
.property-card {
    background: rgba(255,255,255,0.05); 
    border-radius: 8px; 
    overflow: hidden; 
    display: block; 
    border: 1px solid rgba(255,255,255,0.1);
    text-decoration: none; 
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    border-color: var(--primary) !important;
}