/* =============================================
   BOOKING CALENDAR PRO — STYLE
   ============================================= */

:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #3B82F6;
  --accent: #06B6D4;
  --bg: #F8FAFC;
  --bg-dark: #0F172A;
  --surface: #FFFFFF;
  --surface2: #F1F5F9;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --white: #FFFFFF;
  --success: #10B981;
  --gold: #F59E0B;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-lg: 0 16px 48px rgba(15,23,42,0.14);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RESET */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-style: normal;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  flex-shrink: 0;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }

.nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--surface2); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* LANGUAGE SWITCH */
.language-switch { position: relative; }
.lang-active {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.lang-active:hover { border-color: var(--primary); }
.lang-active img { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 1000;
}
.lang-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: background var(--transition);
  text-align: left;
}
.lang-dropdown button:hover { background: var(--surface2); }
.lang-dropdown button img { width: 20px; height: 20px; border-radius: 3px; object-fit: cover; }

/* LOGIN BTN NAV */
.btn-login-nav {
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-login-nav:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}

/* =============================================
   MODAL
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); opacity: 1; }

.modal-box {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--surface2);
  border: none;
  border-radius: 8px;
  width: 32px; height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.modal-logo img { width: 52px; height: 52px; border-radius: 12px; }

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 6px;
}
.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}
.modal-form input:focus { border-color: var(--primary); background: var(--white); }

.forgot-link {
  font-size: 0.85rem;
  color: var(--primary);
  text-align: right;
  transition: color var(--transition);
}
.forgot-link:hover { color: var(--primary-dark); }

.modal-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.no-account {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.no-account a { color: var(--primary); font-weight: 500; margin-left: 4px; }
.no-account a:hover { text-decoration: underline; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.btn-primary.full { width: 100%; }
.btn-primary.large { padding: 16px 40px; font-size: 1.05rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(37,99,235,0.04); }

/* =============================================
   FLOATING BTN
   ============================================= */
.floating-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 8px 28px rgba(37,99,235,0.35);
  transition: all var(--transition);
  z-index: 800;
  animation: float 3s ease-in-out infinite;
}
.floating-btn:hover { background: var(--primary-dark); transform: translateY(-3px); }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; right: -100px;
  animation: orbMove1 8s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; left: -100px;
  animation: orbMove2 10s ease-in-out infinite alternate;
}
@keyframes orbMove1 { from { transform: translate(0, 0); } to { transform: translate(-60px, 40px); } }
@keyframes orbMove2 { from { transform: translate(0, 0); } to { transform: translate(40px, -60px); } }

.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 28px;
  animation: fadeDown 0.6s ease-out both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  font-style: normal;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  animation: fadeDown 0.6s 0.1s ease-out both;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  animation: fadeDown 0.6s 0.2s ease-out both;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
  animation: fadeDown 0.6s 0.3s ease-out both;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 32px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s 0.4s ease-out both;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-item strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-item span { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* =============================================
   MARKETING SECTION
   ============================================= */
.marketing-section {
  padding: 100px 0;
  background: var(--surface);
}
.marketing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.marketing-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.marketing-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.marketing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.marketing-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.check {
  width: 22px; height: 22px;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* MOCKUP FRAMES */
.marketing-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.mockup-frame {
  background: var(--bg-dark);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  flex: 1;
}
.mockup-frame.small { flex: none; width: 220px; }
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #1e293b;
}
.mockup-bar.sm { padding: 8px 12px; }
.mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #334155;
}
.mockup-bar span:first-child { background: #ef4444; }
.mockup-bar span:nth-child(2) { background: #f59e0b; }
.mockup-bar span:nth-child(3) { background: #10b981; }
.mockup-screen {
  background: #1e293b;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-screen.tall { min-height: 340px; }

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
}
.screenshot-placeholder p { line-height: 1.4; }
.screenshot-placeholder small { opacity: 0.7; }
.placeholder-icon { width: 40px; height: 40px; opacity: 0.4; border-radius: 8px; }
.placeholder-icon-sm { width: 28px; height: 28px; opacity: 0.4; border-radius: 6px; }

.mockup-mobile {
  width: 120px;
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #1e293b;
}
.mockup-mobile.sm { width: 100px; padding: 8px; }
.mockup-mobile-inner {
  background: #1e293b;
  border-radius: 12px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   FEATURES
   ============================================= */
.features-section {
  padding: 100px 0;
  background: var(--bg);
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 8px auto 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p { font-size: 0.92rem; color: var(--text-muted); }

/* =============================================
   DEMO SECTION
   ============================================= */
.demo-section {
  padding: 100px 0;
  background: var(--surface);
}
.demo-screens {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.demo-screen-main .mockup-frame { width: 100%; }
.demo-screen-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.demo-screen-card { }

/* =============================================
   PLANS SECTION
   ============================================= */
.plans-section {
  padding: 100px 0;
  background: var(--bg);
}
.plan-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.plan-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
}
.plan-tab:hover { border-color: var(--primary); color: var(--primary); }
.plan-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.tab-badge {
  background: var(--success);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.tab-badge.gold { background: var(--gold); }
.plan-tab.active .tab-badge { background: rgba(255,255,255,0.25); }

.plan-card-single {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 24px 64px rgba(37,99,235,0.12);
  animation: planReveal 0.4s ease-out both;
}
@keyframes planReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.plan-price-block { text-align: center; margin-bottom: 28px; }
.plan-price-main { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.price-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  transition: all 0.3s ease;
}
.price-per { font-size: 1rem; color: var(--text-muted); }
.price-total {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: 6px;
  min-height: 20px;
  transition: all 0.3s ease;
}

.plan-divider { height: 1px; background: var(--border); margin: 24px 0; }

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.plan-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
}
.plan-features-list li > span:first-child {
  width: 22px; height: 22px;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.plan-cta { margin-bottom: 16px; }
.plan-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a8a 100%);
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
}
.cta-inner .btn-primary {
  background: var(--white);
  color: var(--primary);
}
.cta-inner .btn-primary:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer p { font-size: 0.88rem; color: var(--text-muted); }
.footer a { color: var(--primary); }
.footer a:hover { text-decoration: underline; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-anim] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
[data-anim="fade-right"] { transform: translateX(-32px); }
[data-anim="fade-left"] { transform: translateX(32px); }
[data-anim].visible {
  opacity: 1;
  transform: translate(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-screens { grid-template-columns: 1fr; }
  .demo-screen-side { flex-direction: row; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 68px; right: -100%;
    width: 260px;
    height: calc(100vh - 68px);
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 899;
  }
  .nav.open { right: 0; }
  .nav-link { padding: 12px 16px; border-radius: 8px; font-size: 1rem; }
  .hamburger { display: flex; }
  .marketing-grid { grid-template-columns: 1fr; gap: 48px; }
  .marketing-visual { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .stat-item { padding: 12px 16px; }
  .stat-divider { display: none; }
  .demo-screen-side { flex-direction: column; }
  .plan-card-single { padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 280px; }
  .plan-tab { padding: 8px 16px; font-size: 0.85rem; }
  .price-value { font-size: 2.8rem; }
  .modal-box { padding: 32px 24px; }
}

/* =============================================
   ÁREA CLIENTE — BOTÃO NAVBAR
   ============================================= */
.btn-area-cliente {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-area-cliente:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37,99,235,0.05);
}
.btn-area-cliente.logado {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(37,99,235,0.08);
  font-weight: 600;
}
.btn-area-cliente svg { flex-shrink: 0; }

/* =============================================
   MODAL ÁREA CLIENTE
   ============================================= */
.modal-cliente { max-width: 460px; padding: 32px 32px 28px; }

/* — Header área — */
.area-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.area-avatar {
  width: 48px; height: 48px;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.area-negocio { font-weight: 700; font-size: 1rem; color: var(--text); }
.area-email   { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.btn-logout {
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center;
}
.btn-logout:hover { color: #ef4444; border-color: #ef4444; background: #fef2f2; }

/* — Cards — */
.area-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}
.area-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 14px;
}
.area-card-icon { font-size: 1rem; }

/* — Grid info — */
.area-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.area-info-item { display: flex; flex-direction: column; gap: 3px; }
.area-info-label { font-size: 0.73rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.area-info-val   { font-size: 0.88rem; font-weight: 500; color: var(--text); }

/* — Barra de progresso — */
.area-expira-bar {
  height: 6px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}
.area-expira-fill {
  height: 100%;
  border-radius: 50px;
  background: var(--success);
  transition: width 0.6s ease;
}
.area-expira-fill.warn   { background: var(--gold); }
.area-expira-fill.danger { background: #ef4444; }
.area-expira-label { font-size: 0.78rem; color: var(--text-muted); }

/* — Formulário de alteração — */
.area-form { display: flex; flex-direction: column; gap: 12px; }
.area-field { display: flex; flex-direction: column; gap: 5px; }
.area-field label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.area-field input {
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.area-field input:focus { border-color: var(--primary); }

/* — Mensagens — */
.modal-error {
  font-size: 0.85rem;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 12px;
  display: none;
}
.modal-error.show { display: block; }
.modal-success {
  font-size: 0.85rem;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px 12px;
  display: none;
}
.modal-success.show { display: block; }

/* =============================================
   MODO ESCURO
   ============================================= */
[data-theme="dark"] {
  --primary:      #3B82F6;
  --primary-dark: #2563EB;
  --primary-light:#60A5FA;
  --accent:       #22D3EE;
  --bg:           #0F172A;
  --bg-dark:      #020617;
  --surface:      #1E293B;
  --surface2:     #162032;
  --border:       #334155;
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-light:   #64748B;
  --white:        #1E293B;
}

[data-theme="dark"] .header {
  background: rgba(15,23,42,0.92);
  border-bottom-color: #1e293b;
}
[data-theme="dark"] .hero { background: var(--bg); }
[data-theme="dark"] .hero-grid {
  background-image: linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
}
[data-theme="dark"] .marketing-section { background: var(--surface); }
[data-theme="dark"] .features-section  { background: var(--bg); }
[data-theme="dark"] .demo-section      { background: var(--surface); }
[data-theme="dark"] .plans-section     { background: var(--bg); }
[data-theme="dark"] .footer            { background: var(--surface); }

[data-theme="dark"] .modal-box         { background: #1E293B; }
[data-theme="dark"] .modal-form input  { background: #162032; color: #f1f5f9; border-color: #334155; }
[data-theme="dark"] .area-card         { background: #162032; border-color: #334155; }
[data-theme="dark"] .area-field input  { background: #0f172a; color: #f1f5f9; border-color: #334155; }
[data-theme="dark"] .area-user-actual  { background: #0f172a !important; color: #64748b !important; }

[data-theme="dark"] .nav-link  { color: #94a3b8; }
[data-theme="dark"] .nav-link:hover { background: #1e293b; color: #60a5fa; }
[data-theme="dark"] .lang-active { background: #1e293b; border-color: #334155; color: #f1f5f9; }
[data-theme="dark"] .lang-dropdown { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .lang-dropdown button { color: #f1f5f9; }
[data-theme="dark"] .lang-dropdown button:hover { background: #162032; }
[data-theme="dark"] .btn-area-cliente { border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .btn-area-cliente:hover { border-color: #3b82f6; color: #60a5fa; background: rgba(59,130,246,0.1); }
[data-theme="dark"] .btn-area-cliente.logado { border-color: #3b82f6; color: #60a5fa; background: rgba(59,130,246,0.15); }

[data-theme="dark"] .cta-section h2,
[data-theme="dark"] .cta-section p { color: #ffffff; }
[data-theme="dark"] .plan-tab { background: #1e293b; border-color: #334155; color: #94a3b8; }
[data-theme="dark"] .plan-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .plan-card-single { background: #1e293b; border-color: #3b82f6; }
[data-theme="dark"] .feature-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .hero-stats { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .mockup-screen { background: #0f172a; }
[data-theme="dark"] .mockup-bar   { background: #162032; }

/* Toggle dark mode */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* =============================================
   DEMO INTERATIVO
   ============================================= */
.demo-interactive { max-width: 1000px; margin: 0 auto; }

/* Tabs */
.demo-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.demo-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.demo-tab:hover { border-color: var(--primary); color: var(--primary); }
.demo-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Aviso */
.demo-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37,99,235,0.06);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-align: center;
  justify-content: center;
  flex-wrap: wrap;
}
.demo-notice strong { color: var(--primary); }

/* Browser mockup */
.demo-browser {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
}
.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
}
.demo-browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.demo-browser-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.demo-browser-dots span:nth-child(1) { background: #ef4444; }
.demo-browser-dots span:nth-child(2) { background: #f59e0b; }
.demo-browser-dots span:nth-child(3) { background: #10b981; }
.demo-browser-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-browser-open {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.demo-browser-open:hover { color: var(--primary); border-color: var(--primary); }

/* Iframe */
.demo-iframe-wrap {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--bg-dark);
}
.demo-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  pointer-events: none; /* bloqueado até ativar */
}
.demo-iframe-wrap iframe.active { pointer-events: all; }

/* Overlay de ativação */
.demo-iframe-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  z-index: 10;
}
.demo-iframe-overlay.hidden { opacity: 0; pointer-events: none; }
.demo-overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.demo-overlay-content img {
  width: 64px; height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
}
.demo-overlay-content p {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

/* Dark mode */
[data-theme="dark"] .demo-browser-bar { background: #162032; }
[data-theme="dark"] .demo-browser-url { background: #0f172a; }
[data-theme="dark"] .demo-notice { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); }

@media (max-width: 768px) {
  .demo-iframe-wrap { height: 480px; }
  .demo-browser-url { display: none; }
}
@media (max-width: 480px) {
  .demo-iframe-wrap { height: 380px; }
}

/* =============================================
   DEMO CARD (substituição do iframe)
   ============================================= */
.demo-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-card-preview {
  background: var(--bg-dark);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.demo-preview-screen {
  width: 100%;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.demo-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #162032;
}
.demo-preview-bar span {
  width: 10px; height: 10px; border-radius: 50%;
}
.demo-preview-bar span:nth-child(1) { background: #ef4444; }
.demo-preview-bar span:nth-child(2) { background: #f59e0b; }
.demo-preview-bar span:nth-child(3) { background: #10b981; }
.demo-preview-url {
  flex: 1;
  background: #0f172a;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
}

.demo-preview-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 32px;
  text-align: center;
}
.demo-preview-logo {
  width: 72px; height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
  animation: logoPulse 2s ease-in-out infinite;
}
.demo-preview-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}
.demo-preview-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  max-width: 280px;
}

/* Info lateral */
.demo-card-info {
  padding: 32px 32px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text);
}
.demo-info-icon {
  width: 24px; height: 24px;
  background: rgba(37,99,235,0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Dark mode */
[data-theme="dark"] .demo-card { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .demo-card-preview { background: #0f172a; }

@media (max-width: 768px) {
  .demo-card { grid-template-columns: 1fr; }
  .demo-card-info { padding: 0 24px 24px; }
  .demo-card-preview { min-height: 280px; padding: 24px; }
}

/* =============================================
   MODAL DEMO
   ============================================= */
.demo-modal-box {
  max-width: 460px;
  padding: 36px;
}

.demo-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.demo-modal-header img {
  width: 52px; height: 52px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.demo-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.demo-modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tabs do modal */
.demo-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.demo-modal-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.demo-modal-tab:hover { border-color: var(--primary); color: var(--primary); }
.demo-modal-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Credenciais */
.demo-cred-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.demo-cred-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-cred-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.demo-cred-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: monospace;
  letter-spacing: 0.03em;
}

.demo-open-btn {
  font-size: 1rem;
  padding: 14px;
  border-radius: 10px;
}

.demo-modal-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 16px;
}

/* Dark mode */
[data-theme="dark"] .demo-cred-box { background: #162032; }
[data-theme="dark"] .demo-modal-tab { background: #162032; }

/* QR Code demo */
.demo-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 20px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.demo-qr-wrap canvas,
.demo-qr-wrap img { border-radius: 8px; }
.demo-qr-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
[data-theme="dark"] .demo-qr-wrap { background: #fff; }
