/* ═══════════════════════════════════════════════
   PAGEZ.ONLINE — Design System
   Clean, modern, Vercel/Stripe inspired
   ═══════════════════════════════════════════════ */

/* ── Google Fonts ────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────── */
:root {
  /* Colors */
  --bg-primary: #f8fafc;
  --bg-white: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-light: #dbeafe;
  --accent-lighter: #eff6ff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 8px 20px -6px rgba(29, 78, 216, 0.3);
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --green-border: #dcfce7;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --red-border: #fee2e2;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --amber-border: #fef3c7;
  --whatsapp: #25D366;
  --whatsapp-hover: #128C7E;

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ───────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: var(--accent-light);
}

/* ── Utilities ───────────────────────────────── */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 672px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-md {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ──────────────────────────────────── */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-brand img.logo {
  height: 34px;
  object-fit: contain;
}

.navbar-brand img.icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.navbar-link:hover {
  color: var(--accent);
}

.navbar-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

.navbar-icon {
  color: var(--text-muted);
  transition: color 0.2s;
  display: flex;
}

.navbar-icon:hover {
  color: var(--accent);
}

.whatsapp-icon {
  color: var(--whatsapp);
  transition: color 0.2s;
  display: flex;
}

.whatsapp-icon:hover {
  color: var(--whatsapp-hover);
}

/* ── Simple Header (inner pages) ─────────────── */
.simple-header {
  width: 100%;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.simple-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent);
}

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: var(--accent);
  opacity: 0.05;
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-lighter);
  border: 1px solid var(--accent-light);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.5s ease-out;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius-lg);
  font-size: 18px;
  box-shadow: var(--shadow-accent);
  animation: fadeInUp 0.5s ease-out 0.3s both;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border-light);
}

.btn-accent {
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(29, 78, 216, 0.25);
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.3);
  width: 100%;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-full {
  width: 100%;
}

.btn-login {
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  box-shadow: 0 4px 12px -4px rgba(29, 78, 216, 0.25);
}

.btn-login:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  background: var(--border-light);
  color: var(--text-primary);
}

.btn-danger-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 500;
}

.btn-danger-ghost:hover {
  background: var(--red-bg);
  color: var(--red);
}

/* ── Section: O Que Fazemos ──────────────────── */
.section-about {
  padding: 96px 0;
  background: var(--bg-white);
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.section-about h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.015em;
}

.about-card {
  background: var(--bg-primary);
  padding: 32px 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.about-card p {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  text-align: center;
}

.about-card strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Section: Pricing ────────────────────────── */
.section-pricing {
  padding: 128px 0;
  background: var(--bg-primary);
}

.section-pricing .container {
  max-width: 1400px;
}

.section-pricing .section-header {
  text-align: center;
  max-width: 672px;
  margin: 0 auto 80px;
}

.section-pricing .section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-pricing .section-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

.pricing-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
}

.pricing-grid>.pricing-card {
  flex: 1 1 0;
  min-width: 0;
}

.pricing-grid>.pricing-card.highlight {
  flex: 1 1 0;
}

@media (max-width: 1024px) {
  .pricing-grid {
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
  }

  .pricing-grid>.pricing-card,
  .pricing-grid>.pricing-card.highlight {
    flex: 0 1 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    flex-direction: column;
    align-items: stretch;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-grid>.pricing-card,
  .pricing-grid>.pricing-card.highlight {
    flex: 1 1 auto;
  }
}

/* ── Pricing Card ────────────────────────────── */
.pricing-card {
  position: relative;
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-card.highlight {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-xl);
  z-index: 10;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.pricing-badge.blink {
  animation: blinkBadge 1.5s ease-in-out infinite;
}

@keyframes blinkBadge {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1.05);
  }
}

.pricing-card .plan-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .plan-cycle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card .original-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 8px;
}

.pricing-card .promo-price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  white-space: nowrap;
}

.pricing-card .promo-suffix {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.pricing-card .plan-subtitle {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.pricing-advantages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-advantages li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

.pricing-advantages .check-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--accent-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.pricing-advantages .check-icon svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  stroke-width: 3;
}

.pricing-card .btn-plan {
  padding: 16px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 15px;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: auto;
}

.pricing-card .btn-plan.primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-accent);
}

.pricing-card .btn-plan.primary:hover {
  background: var(--accent-hover);
}

.pricing-card .btn-plan.secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.pricing-card .btn-plan.secondary:hover {
  background: var(--border-light);
}

/* ── Footer ──────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-white);
  padding: 64px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-brand img.logo {
  height: 28px;
}

.footer-brand img.icon {
  width: 28px;
  height: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ── Card (generic) ──────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card-header {
  padding: 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.card-body {
  padding: 32px;
}

/* ── Forms ───────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: none;
  min-height: 120px;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.input-prefix {
  display: flex;
  align-items: center;
}

.input-prefix .prefix {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-right: none;
  padding: 12px 12px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.input-prefix .form-input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── Alert Messages ──────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 20px;
}

.alert-error {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.alert-success {
  background: var(--green-bg);
  color: #16a34a;
  border: 1px solid var(--green-border);
}

/* ── Admin Layout ────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 256px;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }
}

.sidebar-header {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.sidebar-header img {
  width: 32px;
  height: 32px;
}

.sidebar-header span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.sidebar-nav {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 15px;
}

.sidebar-link:hover {
  background: var(--bg-primary);
}

.sidebar-link.active {
  background: var(--accent-lighter);
  color: var(--accent);
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

.admin-topbar {
  height: 80px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  flex-shrink: 0;
}

.admin-topbar h1 {
  font-size: 24px;
  font-weight: 700;
}

.admin-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

.admin-content {
  padding: 32px;
  flex: 1;
  overflow-y: auto;
}

.admin-content-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Table ───────────────────────────────────── */
.data-table-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.data-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

.data-table thead tr {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 16px 24px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 14px;
}

.data-table td {
  padding: 16px 24px;
  font-size: 14px;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--bg-primary);
}

.data-table .client-name {
  font-weight: 600;
  color: var(--text-primary);
}

.data-table .model-link {
  color: var(--accent);
  font-weight: 500;
  transition: color 0.2s;
}

.data-table .model-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.data-table .empty-row td {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

/* ── Status Badge ────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.status-badge.active {
  background: var(--green-bg);
  color: #16a34a;
}

.status-badge.pending {
  background: var(--amber-bg);
  color: #d97706;
}

.status-badge.dev {
  background: var(--accent-lighter);
  color: var(--accent);
}

/* ── Action Buttons (table) ─────────────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action:hover {
  border-color: transparent;
}

.btn-action.edit:hover {
  background: var(--accent-lighter);
  color: var(--accent);
  border-color: var(--accent-light);
}

.btn-action.delete:hover {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}

/* ── Modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 512px;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

.modal-actions .btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
}

.modal-actions .btn-cancel {
  background: var(--border-light);
  color: var(--text-secondary);
  border: none;
}

.modal-actions .btn-cancel:hover {
  background: var(--border);
}

.modal-actions .btn-save {
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 4px 12px -4px rgba(29, 78, 216, 0.25);
}

.modal-actions .btn-save:hover {
  background: var(--accent-hover);
}

/* ── Top Description ─────────────────────────── */
.section-desc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-desc p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ── Legal Pages ─────────────────────────────── */
.legal-content {
  background: var(--bg-white);
  padding: 32px 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-top: 48px;
  margin-bottom: 80px;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.legal-content .legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul {
  margin-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 4px;
}

.legal-content a {
  color: var(--accent);
  font-weight: 500;
}

.legal-content a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-content {
    padding: 24px;
  }
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ── Contact page specific ───────────────────── */
.contact-card {
  background: var(--bg-white);
  padding: 32px 48px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-top: 48px;
}

.contact-card .contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-card .contact-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.contact-card .contact-header p {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .contact-card {
    padding: 24px;
  }

  .about-card {
    padding: 24px;
  }

  .hero {
    padding: 120px 0 60px;
  }
}

/* ── Loading Spinner ─────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Hide on mobile / desktop ────────────────── */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}