/* ================================================================
   Vistaarly · premium.css     [2026-07 audit — LOAD LAST]
   ----------------------------------------------------------------
   Surgical polish layer that fixes conflicts + adds a Jobs-style
   minimalist refinement WITHOUT rewriting existing files. Loads
   after all other stylesheets so it wins the cascade on selectors
   we intentionally override.
   Mobile-first: base rules assume phone, upgrades at 640/1024/1280.
   ================================================================ */

/* --- 1. Universal safety net ------------------------------------ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--color-accent, #f59e0b); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--color-primary, #0b0f19); color: #fff; }

/* --- 2. Typography — cleaner hierarchy (Fraunces / IBM Plex) ---- */
body { font-family: var(--sans, 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif); line-height: 1.55; color: var(--color-text, #111827); }
h1, h2, h3, h4 { font-family: var(--display, 'Fraunces', 'IBM Plex Sans', serif); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
.v-brand-name, .admin-sidebar-brand-name { font-family: var(--display, 'Fraunces', serif); letter-spacing: -0.02em; }

/* Fluid heading scale — reads well on every device */
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(22px, 3.6vw, 34px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
p  { line-height: 1.65; }

/* --- 3. Buttons — modern, tactile ------------------------------- */
.v-btn, .btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-full, 999px);
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer; user-select: none;
  transition: transform 180ms cubic-bezier(.2,.9,.3,1),
              background-color 180ms cubic-bezier(.2,.9,.3,1),
              box-shadow 180ms cubic-bezier(.2,.9,.3,1),
              color 180ms;
  will-change: transform;
}
.v-btn:hover, .btn2:hover { transform: translateY(-1px); }
.v-btn:active { transform: translateY(0); }
.v-btn-lg { padding: 15px 28px; font-size: 15px; }
.v-btn-primary { background: var(--color-primary, #0b0f19); color: #fff; }
.v-btn-primary:hover { background: #1a2035; color: #fff; box-shadow: 0 10px 24px -8px rgba(11,15,25,0.35); }
.v-btn-accent { background: var(--color-accent, #f59e0b); color: var(--color-primary, #0b0f19); }
.v-btn-accent:hover { background: var(--color-accent-hover, #d97706); box-shadow: 0 10px 24px -8px rgba(245,158,11,0.45); }
.v-btn-outline { background: transparent; color: var(--color-primary, #0b0f19); border-color: var(--color-border, #e5e7eb); }
.v-btn-outline:hover { background: var(--color-primary, #0b0f19); color: #fff; border-color: var(--color-primary, #0b0f19); }
.v-btn-ghost { background: transparent; color: var(--color-text, #111827); }
.v-btn-ghost:hover { background: var(--color-bg-alt, #fbf6ec); }

/* --- 4. Hero — cleaner, more premium ---------------------------- */
.v-hero { padding: 48px 20px 72px; }
@media (min-width: 640px)  { .v-hero { padding: 72px 32px 96px; } }
@media (min-width: 1024px) { .v-hero { padding: 96px 40px 128px; } }
.v-hero-inner { gap: 40px; }
@media (min-width: 900px) { .v-hero-inner { gap: 72px; } }
.v-hero h1 { font-weight: 500; letter-spacing: -0.035em; margin-bottom: 20px; }
.v-hero-sub { font-size: clamp(15px, 1.5vw, 19px); color: var(--ink-700, #374151); line-height: 1.55; margin-bottom: 28px; }
.v-hero-cta { gap: 10px; margin-bottom: 28px; }
.v-hero-cta .v-btn { min-height: 48px; }
@media (max-width: 480px) {
  .v-hero-cta { flex-direction: column; align-items: stretch; }
  .v-hero-cta .v-btn { width: 100%; }
}

/* Hero mosaic on tablet — smaller, still visible */
@media (min-width: 640px) and (max-width: 899px) {
  .v-hero-mosaic { display: none; }
}

/* --- 5. Cards — unified premium card system --------------------- */
.v-feature-card, .v-price-card, .v-testimonial,
.v-featured-item, .admin-card, .checkout-line, .stat-card {
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 16px;
  transition: transform 220ms cubic-bezier(.2,.9,.3,1),
              box-shadow 220ms cubic-bezier(.2,.9,.3,1),
              border-color 220ms;
}
.v-feature-card:hover, .v-price-card:hover, .v-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(11,15,25,0.18), 0 4px 8px -4px rgba(11,15,25,0.08);
  border-color: rgba(11,15,25,0.14);
}
.v-price-card.is-highlighted { transform: none; }
.v-price-card.is-highlighted:hover { transform: translateY(-3px); }

.stat-card {
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .stat-value {
  font-family: var(--display, 'Fraunces', serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500; letter-spacing: -0.02em;
}
.stat-card .stat-label { font-size: 12px; color: var(--color-text-muted, #6b7280); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat-good { background: linear-gradient(135deg, #ecfdf5, #fff); }
.stat-warn { border-color: rgba(217,119,6,0.35); }

/* --- 6. Featured influencer strip — premium refresh ------------- */
.v-featured-strip { padding: 40px 20px 20px; }
@media (min-width: 640px)  { .v-featured-strip { padding: 64px 32px 24px; } }
@media (min-width: 1024px) { .v-featured-strip { padding: 88px 40px 32px; } }
.v-featured-heading { align-items: end; gap: 12px; }
.v-featured-heading h2 { margin: 6px 0 0; }
.v-featured-eyebrow { color: var(--color-accent-hover, #d97706); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; }
.v-featured-item { overflow: hidden; }
.v-featured-item:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(11,15,25,0.18); }
.v-featured-cover { border-radius: 14px; overflow: hidden; }

/* --- 7. Sections — bigger breathing room ------------------------ */
.v-section { padding: 72px 20px; }
@media (min-width: 640px)  { .v-section { padding: 96px 32px; } }
@media (min-width: 1024px) { .v-section { padding: 128px 40px; } }
.v-section-dark { padding: 72px 20px; }
@media (min-width: 640px)  { .v-section-dark { padding: 96px 32px; } }
@media (min-width: 1024px) { .v-section-dark { padding: 128px 40px; } }
.v-section-header { margin-bottom: 40px; }
@media (min-width: 640px) { .v-section-header { margin-bottom: 56px; } }
.v-final-cta { padding: 72px 20px; }
@media (min-width: 640px)  { .v-final-cta { padding: 96px 32px; } }
@media (min-width: 1024px) { .v-final-cta { padding: 128px 40px; } }

/* --- 8. Header (nav) — refined ---------------------------------- */
.v-header { backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); background: rgba(255,255,255,0.82); border-bottom: 1px solid rgba(11,15,25,0.06); }
.v-header-inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; gap: 20px; }
@media (min-width: 640px) { .v-header-inner { padding: 14px 24px; } }
.v-brand-logo { width: 34px; height: 34px; border-radius: 8px; }
.v-nav-primary a { font-size: 14px; color: var(--color-text, #111827); padding: 8px 10px; border-radius: 8px; transition: background 160ms, color 160ms; }
.v-nav-primary a:hover { background: rgba(11,15,25,0.04); color: var(--color-primary, #0b0f19); }
.v-nav-actions { gap: 8px; }

/* --- 9. Footer — cleaner grid ----------------------------------- */
.v-footer { background: #0b0f19; color: rgba(255,255,255,0.72); padding: 56px 20px 40px; }
@media (min-width: 640px)  { .v-footer { padding: 72px 32px 48px; } }
@media (min-width: 1024px) { .v-footer { padding: 96px 40px 56px; } }
.v-footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 640px)  { .v-footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; } }
.v-footer h4 { color: #fff; font-family: var(--sans, 'IBM Plex Sans', sans-serif); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; font-weight: 700; }
.v-footer a { display: block; padding: 5px 0; color: rgba(255,255,255,0.68); font-size: 14px; text-decoration: none; transition: color 160ms; }
.v-footer a:hover { color: var(--color-accent, #f59e0b); }
.v-footer-legal { max-width: 1240px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
.v-footer-social { display: flex; gap: 10px; margin-top: 16px; }
.v-footer-social a { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.06); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.v-footer-social a:hover { background: var(--color-accent, #f59e0b); color: var(--color-primary, #0b0f19); }

/* --- 10. Forms — consistent, accessible ------------------------- */
input, textarea, select {
  font-family: inherit; font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border, #e5e7eb);
  background: #fff;
  color: var(--color-text, #111827);
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary, #0b0f19); box-shadow: 0 0 0 3px rgba(11,15,25,0.08); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--color-text, #111827); margin-bottom: 6px; }
label > input, label > textarea, label > select { margin-top: 4px; }

/* --- 11. Admin sidebar / topbar — tighter --------------------- */
.admin-sidebar { border-right: 1px solid var(--color-border, #e5e7eb); background: #fbfaf6; }
.admin-sidebar-heading { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted, #6b7280); margin: 20px 12px 6px; font-weight: 700; }
.admin-sidebar-link { display: block; padding: 8px 14px; font-size: 14px; border-radius: 8px; margin: 1px 8px; color: var(--color-text, #111827); text-decoration: none; transition: background 140ms, color 140ms; }
.admin-sidebar-link:hover { background: rgba(11,15,25,0.05); }
.admin-sidebar-link.is-active { background: var(--color-primary, #0b0f19); color: #fff; }
.admin-topbar { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border, #e5e7eb); }

/* Admin table — quieter, more premium */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted, #6b7280); padding: 12px 16px; background: #fafaf7; border-bottom: 1px solid var(--color-border, #e5e7eb); font-weight: 700; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--color-border-soft, #f3f4f6); font-size: 14px; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fbfaf6; }
.admin-table .actions { display: flex; gap: 12px; }
.admin-table .actions a, .admin-table .actions .link-btn { font-size: 13px; color: var(--color-primary, #0b0f19); text-decoration: none; font-weight: 600; }
.admin-table .actions a:hover, .admin-table .actions .link-btn:hover { color: var(--color-accent-hover, #d97706); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.admin-table-empty { padding: 40px 16px; text-align: center; color: var(--color-text-muted, #6b7280); }

.admin-card { padding: 20px 22px; border-radius: 16px; margin-bottom: 20px; background: #fff; }
.admin-card h2 { font-size: 18px; margin: 0 0 12px; }
.admin-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-page-head h1 { margin: 0; }
.admin-page-head .sub { color: var(--color-text-muted, #6b7280); font-size: 14px; margin: 4px 0 0; max-width: 720px; }

/* Badge system */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.is-ok    { background: #ecfdf5; color: #047857; }
.badge.is-warn  { background: #fffbeb; color: #b45309; }
.badge.is-error { background: #fef2f2; color: #b91c1c; }
.badge.is-info  { background: #eff6ff; color: #1d4ed8; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.flash-success, .v-flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error,   .v-flash-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-info,    .v-flash-info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }

/* --- 12. Mobile responsiveness safety --------------------------- */
@media (max-width: 640px) {
  .admin-page-head { flex-direction: column; align-items: flex-start; }
  .admin-table { display: block; overflow-x: auto; }
  .v-hero h1 { letter-spacing: -0.03em; }
  .v-section-header { text-align: left; }
  .v-nav-primary { display: none; }
}
@media (max-width: 900px) {
  .admin-main-column { padding-left: 0; }
}

/* Fix common overflow / z-index pitfalls */
.v-header, .admin-topbar { z-index: 40; }
.v-mobile-drawer { z-index: 60; }
.v-scroll-top, .v-whatsapp-fab { z-index: 30; }

/* No layout shift on lazy images */
img[loading="lazy"] { min-height: 1px; }

/* WhatsApp / Scroll-top FABs */
.v-whatsapp-fab, .v-scroll-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 52px; height: 52px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-primary, #0b0f19); color: #fff;
  border: 0; cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(11,15,25,0.35);
  transition: transform 200ms, background 200ms;
}
.v-whatsapp-fab { background: #25D366; bottom: 82px; }
.v-whatsapp-fab:hover, .v-scroll-top:hover { transform: translateY(-2px); }

/* Print — spare stylesheets */
@media print {
  .v-header, .v-footer, .v-whatsapp-fab, .v-scroll-top, .admin-sidebar, .admin-topbar { display: none !important; }
}
