/* ============================================================
   INVOICELY.LIVE — Complete Styles v3
============================================================ */
:root {
  --ivl-blue:    #2563eb;
  --ivl-dark:    #0f172a;
  --ivl-text:    #1e293b;
  --ivl-muted:   #64748b;
  --ivl-light:   #f8fafc;
  --ivl-border:  #e2e8f0;
  --ivl-radius:  12px;
  --ivl-shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --ivl-font:    'Inter', system-ui, -apple-system, sans-serif;
}

/* ---- RESET FOR IVL SCOPE ---- */
.ivl-home *, .ivl-auth-wrap *, .ivl-pricing-wrap *, #ivl-app * {
  box-sizing: border-box;
}
.ivl-home, .ivl-auth-wrap, .ivl-pricing-wrap, #ivl-app {
  font-family: var(--ivl-font);
  color: var(--ivl-text);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HOME PAGE
============================================================ */
.ivl-home { overflow-x: hidden; }

/* HERO */
.ivl-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 80px;
}
.ivl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
}
.ivl-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2563eb;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.ivl-hero-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ivl-dark);
  margin-bottom: 20px;
}
.ivl-hero-accent {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ivl-hero-sub {
  font-size: 17px;
  color: var(--ivl-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}
.ivl-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.ivl-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--ivl-blue);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.ivl-btn-hero:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); color: #fff; text-decoration: none; }
.ivl-btn-ghost-hero {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  border: 1.5px solid var(--ivl-border);
  color: var(--ivl-text);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s;
}
.ivl-btn-ghost-hero:hover { border-color: #94a3b8; color: var(--ivl-text); text-decoration: none; }

.ivl-hero-proof { display: flex; align-items: center; gap: 16px; }
.ivl-proof-item { font-size: 13px; color: var(--ivl-muted); }
.ivl-proof-num  { font-weight: 700; color: var(--ivl-dark); }
.ivl-proof-div  { width: 1px; height: 16px; background: var(--ivl-border); }

/* App Preview */
.ivl-hero-preview { display: flex; justify-content: center; align-items: center; }
.ivl-preview-card {
  background: #fff;
  border: 1px solid var(--ivl-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.12);
  width: 100%;
  max-width: 420px;
}
.ivl-preview-header {
  background: #f8fafc;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ivl-border);
}
.ivl-preview-body { padding: 16px; }
.ivl-preview-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.ivl-ps { background: #f8fafc; border-radius: 8px; padding: 10px 8px; text-align: center; }
.ivl-ps-val { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.ivl-ps-lbl { font-size: 10px; color: #94a3b8; font-weight: 500; }
.ivl-preview-rows { display: flex; flex-direction: column; gap: 6px; }
.ivl-preview-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px 54px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #f8fafc;
  border-radius: 7px;
}

/* FEATURES */
.ivl-features-section { background: #f8fafc; padding: 80px 0; }
.ivl-section-head { text-align: center; padding: 0 24px 48px; }
.ivl-section-head h2 {
  font-size: clamp(26px,3.5vw,38px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  color: var(--ivl-dark);
}
.ivl-section-head p { font-size: 16px; color: var(--ivl-muted); max-width: 480px; margin: 0 auto; }
.ivl-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.ivl-feat-card {
  background: #fff;
  border: 1px solid var(--ivl-border);
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.ivl-feat-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.ivl-feat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.ivl-feat-title { font-size: 15px; font-weight: 700; margin-bottom: 7px; color: var(--ivl-dark); }
.ivl-feat-desc  { font-size: 13.5px; color: var(--ivl-muted); line-height: 1.6; }

/* HOW IT WORKS */
.ivl-how-section { padding: 80px 32px; max-width: 1200px; margin: 0 auto; }
.ivl-steps { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ivl-step { flex: 1; min-width: 180px; max-width: 220px; text-align: center; padding: 16px; }
.ivl-step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ivl-blue); color: #fff;
  font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.ivl-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.ivl-step p  { font-size: 13.5px; color: var(--ivl-muted); line-height: 1.55; }
.ivl-step-arrow { font-size: 22px; color: #cbd5e1; margin-top: 20px; }

/* CTA */
.ivl-cta-section { background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%); padding: 80px 32px; }
.ivl-cta-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.ivl-cta-inner h2 { font-size: clamp(28px,3vw,40px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.ivl-cta-inner p  { font-size: 16px; color: rgba(255,255,255,.75); }

/* ============================================================
   AUTH PAGE
============================================================ */
.ivl-auth-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.ivl-auth-box {
  background: #fff;
  border: 1px solid var(--ivl-border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(37,99,235,.08);
}
.ivl-auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ivl-dark);
  margin-bottom: 28px;
}
.ivl-auth-logo strong { color: var(--ivl-blue); font-weight: 800; }

.ivl-alert { padding: 11px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }
.ivl-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.ivl-tabs { display: flex; background: #f1f5f9; border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 22px; }
.ivl-tab {
  flex: 1; padding: 9px; border: none; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; background: transparent; color: #64748b;
  transition: all .15s;
}
.ivl-tab.active { background: #fff; color: var(--ivl-dark); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ivl-pane.hidden { display: none; }

.ivl-field { margin-bottom: 14px; }
.ivl-field label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin-bottom: 6px; }
.ivl-req { color: #ef4444; }
.ivl-field input {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--ivl-border);
  border-radius: 9px; font-size: 14px;
  font-family: inherit; color: var(--ivl-text);
  transition: border-color .15s;
  outline: none;
}
.ivl-field input:focus { border-color: var(--ivl-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

.ivl-submit-btn {
  width: 100%; padding: 12px;
  background: var(--ivl-blue); color: #fff;
  border: none; border-radius: 10px;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s, transform .1s;
  margin-top: 4px;
}
.ivl-submit-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.ivl-auth-note { font-size: 12.5px; color: #94a3b8; text-align: center; margin-top: 12px; }
.ivl-auth-note a { color: var(--ivl-blue); text-decoration: none; }

/* ============================================================
   PRICING PAGE
============================================================ */
.ivl-pricing-wrap { padding: 60px 24px 80px; max-width: 1100px; margin: 0 auto; }
.ivl-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; margin-bottom: 28px; }
.ivl-plan-card {
  background: #fff;
  border: 2px solid var(--ivl-border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.ivl-plan-card:hover { box-shadow: var(--ivl-shadow); transform: translateY(-2px); }
.ivl-plan-popular  { border-color: var(--ivl-blue); }
.ivl-plan-current  { border-color: #10b981; background: #f0fdf4; }
.ivl-plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ivl-blue); color: #fff;
  padding: 3px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.ivl-plan-badge-green { background: #10b981; }
.ivl-plan-name   { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--ivl-dark); }
.ivl-plan-price  { margin-bottom: 20px; }
.ivl-price-amount { font-size: 32px; font-weight: 800; color: var(--ivl-dark); }
.ivl-price-period { font-size: 14px; color: var(--ivl-muted); }
.ivl-plan-features { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ivl-plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #475569; line-height: 1.4; }
.ivl-plan-features svg { flex-shrink: 0; margin-top: 1px; color: #10b981; }
.ivl-plan-btn {
  display: block; text-align: center; padding: 11px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; transition: all .15s;
}
.ivl-plan-btn-primary { background: var(--ivl-blue); color: #fff; border: none; }
.ivl-plan-btn-primary:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.ivl-plan-btn-outline { border: 1.5px solid var(--ivl-border); color: var(--ivl-text); background: transparent; }
.ivl-plan-btn-outline:hover { border-color: #94a3b8; text-decoration: none; color: var(--ivl-text); }
.ivl-plan-btn-current { background: #d1fae5; color: #059669; border: none; cursor: default; }
.ivl-pricing-note { text-align: center; font-size: 13px; color: #94a3b8; }

/* ============================================================
   APP LAYOUT
============================================================ */
#ivl-app {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
  position: relative;
}

/* SIDEBAR */
#ivl-sb {
  width: 240px;
  flex-shrink: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}
.sb-brand { padding: 20px 16px 8px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 8px; }
.sb-logo { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 700; text-decoration: none; color: #fff; }
.sb-logo b { color: #60a5fa; font-weight: 800; }
.sb-nav { flex: 1; padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 13.5px; font-weight: 500;
  font-family: var(--ivl-font); width: 100%;
  text-align: left; transition: all .12s; position: relative;
}
.sb-item:hover  { background: rgba(255,255,255,.07); color: #e2e8f0; }
.sb-item.active { background: rgba(37,99,235,.25); color: #93c5fd; }
.sb-item.active svg { color: #3b82f6; }
.sb-item.locked { opacity: .5; cursor: not-allowed; }
.sb-lock { margin-left: auto; opacity: .6; }
.sb-footer { padding: 12px 8px 16px; border-top: 1px solid rgba(255,255,255,.07); }
.sb-plan-badge {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  font-size: 12px; font-weight: 600; color: #cbd5e1;
  margin-bottom: 10px;
}
.sb-plan-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plan-color, #6b7280); }
.sb-upgrade-link { margin-left: auto; font-size: 11px; color: #60a5fa; text-decoration: none; }
.sb-upgrade-link:hover { color: #93c5fd; }
.sb-user-row { display: flex; align-items: center; gap: 9px; padding: 6px 4px; }
.sb-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name  { font-size: 12.5px; font-weight: 600; color: #e2e8f0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-email { font-size: 11px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-logout { background: none; border: none; cursor: pointer; color: #64748b; padding: 5px; border-radius: 6px; display: flex; }
.sb-logout:hover { color: #f87171; background: rgba(239,68,68,.1); }

/* MAIN */
#ivl-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* TOPBAR */
#ivl-topbar {
  background: #fff; border-bottom: 1px solid var(--ivl-border);
  padding: 0 24px; height: 58px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 40;
}
#ivl-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--ivl-text); padding: 4px; }
#ivl-page-title { font-size: 16px; font-weight: 700; color: var(--ivl-dark); flex: 1; margin: 0; }
#ivl-topbar-actions { display: flex; gap: 8px; align-items: center; }

/* UPGRADE BANNER */
#ivl-upgrade-banner {
  background: linear-gradient(135deg, #eff6ff, #faf5ff);
  border-bottom: 1px solid #dbeafe;
  padding: 10px 24px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; color: #1e40af;
}
.ivl-banner-cta { font-size: 13px; font-weight: 600; color: var(--ivl-blue); text-decoration: none; white-space: nowrap; }
.ivl-banner-close { margin-left: auto; background: none; border: none; cursor: pointer; color: #94a3b8; }

/* TOAST */
#ivl-toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
#ivl-toast {
  padding: 12px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.15); display: none;
  max-width: 320px;
}
#ivl-toast.success { background: #0f172a; color: #fff; }
#ivl-toast.error   { background: #dc2626; color: #fff; }

/* VIEW */
#ivl-view { flex: 1; padding: 24px; }

/* MODAL */
#ivl-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  z-index: 1000; display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#ivl-overlay.open { display: flex; }
#ivl-modal {
  background: #fff; border-radius: 16px; padding: 28px;
  width: 100%; max-width: 560px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
#ivl-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: #f1f5f9; border: none; cursor: pointer;
  border-radius: 7px; padding: 6px; color: #64748b; display: flex;
}
#ivl-modal-close:hover { background: #e2e8f0; color: var(--ivl-dark); }
.ivl-modal-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; color: var(--ivl-dark); }

/* CARDS */
.ivl-card { background: #fff; border: 1px solid var(--ivl-border); border-radius: var(--ivl-radius); overflow: hidden; margin-bottom: 16px; }
.ivl-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--ivl-border); }
.ivl-card-title  { font-size: 14.5px; font-weight: 700; color: var(--ivl-dark); }
.ivl-card-body   { padding: 20px; }

/* STATS GRID */
.ivl-stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 12px; margin-bottom: 20px; }
.ivl-stat-card { background: #fff; border: 1px solid var(--ivl-border); border-radius: var(--ivl-radius); padding: 16px 18px; border-left: 3px solid var(--stat-color, var(--ivl-blue)); }
.ivl-stat-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 6px; }
.ivl-stat-value { font-size: 24px; font-weight: 700; color: var(--ivl-dark); letter-spacing: -.5px; }

/* TABLE */
.ivl-table-wrap { overflow-x: auto; }
.ivl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ivl-table th { background: #f8fafc; padding: 10px 14px; text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; border-bottom: 1px solid var(--ivl-border); white-space: nowrap; }
.ivl-table td { padding: 11px 14px; border-bottom: 1px solid #f8fafc; }
.ivl-table tr:hover td { background: #fafbfc; }
.ivl-table tr:last-child td { border-bottom: none; }

/* BUTTONS */
.ivl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; font-family: var(--ivl-font); text-decoration: none; transition: all .12s; white-space: nowrap; }
.ivl-btn-primary { background: var(--ivl-blue); color: #fff; }
.ivl-btn-primary:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.ivl-btn-ghost { background: #f1f5f9; color: var(--ivl-text); border: 1px solid var(--ivl-border); }
.ivl-btn-ghost:hover { background: #e2e8f0; color: var(--ivl-text); text-decoration: none; }
.ivl-btn-success { background: #10b981; color: #fff; }
.ivl-btn-success:hover { background: #059669; color: #fff; text-decoration: none; }
.ivl-btn-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.ivl-btn-danger:hover { background: #dc2626; color: #fff; text-decoration: none; }
.ivl-btn-sm { padding: 5px 11px; font-size: 12px; }
.ivl-btn-icon { padding: 5px 9px; }
.ivl-actions { display: flex; gap: 5px; flex-wrap: wrap; }

/* FORM */
.ivl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ivl-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ivl-field-group { margin-bottom: 14px; }
.ivl-field-group label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin-bottom: 6px; }
.ivl-field-group input,
.ivl-field-group select,
.ivl-field-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--ivl-border);
  border-radius: 8px; font-size: 13.5px;
  font-family: inherit; color: var(--ivl-text);
  background: #fff; transition: border-color .15s;
  outline: none;
}
.ivl-field-group input:focus,
.ivl-field-group select:focus,
.ivl-field-group textarea:focus { border-color: var(--ivl-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.ivl-field-group textarea { resize: vertical; min-height: 80px; }

/* EMPTY STATE */
.ivl-empty { text-align: center; padding: 60px 24px; }
.ivl-empty-icon { font-size: 40px; opacity: .35; margin-bottom: 14px; }
.ivl-empty h3 { font-size: 16px; font-weight: 700; color: var(--ivl-dark); margin-bottom: 6px; }
.ivl-empty p  { font-size: 13.5px; color: var(--ivl-muted); margin-bottom: 18px; }

/* LINE ITEMS */
.ivl-items-wrap { border: 1px solid var(--ivl-border); border-radius: var(--ivl-radius); overflow: hidden; margin-bottom: 12px; }
.ivl-items-head { display: grid; grid-template-columns: 3fr 60px 110px 70px 90px 32px; background: #1e293b; padding: 9px 12px; gap: 6px; }
.ivl-items-head span { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #94a3b8; }
.ivl-items-head span:not(:first-child) { text-align: right; }
.ivl-li-row { display: grid; grid-template-columns: 3fr 60px 110px 70px 90px 32px; padding: 5px 12px; gap: 6px; align-items: center; border-bottom: 1px solid #f1f5f9; }
.ivl-li-row:last-child { border-bottom: none; }
.ivl-li-row input,
.ivl-li-row select { padding: 5px 7px; border: 1.5px solid transparent; border-radius: 5px; font-size: 12.5px; font-family: inherit; background: transparent; color: var(--ivl-text); width: 100%; text-align: right; }
.ivl-li-row input:first-child { text-align: left; }
.ivl-li-row input:focus,
.ivl-li-row select:focus { border-color: var(--ivl-blue); background: #fff; outline: none; }
.ivl-li-total { font-size: 12.5px; font-weight: 600; color: var(--ivl-blue); text-align: right; }
.ivl-li-del { background: none; border: none; cursor: pointer; color: #cbd5e1; font-size: 16px; display: flex; align-items: center; justify-content: center; border-radius: 5px; padding: 3px; width: 26px; transition: all .1s; }
.ivl-li-del:hover { color: #ef4444; background: #fef2f2; }
.ivl-totals-row { display: flex; justify-content: flex-end; }
.ivl-totals-box { min-width: 260px; }
.ivl-tot-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: var(--ivl-muted); }
.ivl-tot-row span:last-child { font-weight: 600; color: var(--ivl-dark); }
.ivl-tot-grand { font-size: 17px; font-weight: 700; color: var(--ivl-dark); border-top: 2px solid var(--ivl-dark); padding-top: 9px; margin-top: 4px; }
.ivl-tot-grand span:last-child { color: var(--ivl-blue); }

/* TABS */
.ivl-doc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--ivl-border); margin-bottom: 14px; }
.ivl-doc-tab { padding: 8px 16px; background: none; border: none; border-bottom: 2px solid transparent; font-size: 13px; font-weight: 600; color: var(--ivl-muted); cursor: pointer; font-family: inherit; transition: all .12s; margin-bottom: -1px; }
.ivl-doc-tab.active { color: var(--ivl-blue); border-bottom-color: var(--ivl-blue); }
.ivl-tab-pane { display: none; }
.ivl-tab-pane.active { display: block; }
.ivl-tab-pane textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--ivl-border); border-radius: 8px; font-size: 13.5px; font-family: inherit; resize: vertical; min-height: 80px; outline: none; }
.ivl-tab-pane textarea:focus { border-color: var(--ivl-blue); }

/* STATUS BADGE */
.ivl-badge { padding: 2px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }

/* MOBILE */
@media (max-width: 768px) {
  #ivl-sb { position: fixed; left: -240px; top: 0; height: 100vh; transition: left .2s; z-index: 200; }
  #ivl-sb.open { left: 0; }
  #ivl-menu-btn { display: flex !important; }
  #ivl-view { padding: 16px; }
  .ivl-hero { grid-template-columns: 1fr; padding: 48px 20px; gap: 40px; }
  .ivl-hero-preview { display: none; }
  .ivl-form-row, .ivl-form-row-3 { grid-template-columns: 1fr; }
  .ivl-items-head, .ivl-li-row { grid-template-columns: 2fr 50px 80px 40px; }
  .ivl-items-head span:nth-child(4),
  .ivl-items-head span:nth-child(5),
  .ivl-li-row *:nth-child(4),
  .ivl-li-row *:nth-child(5) { display: none; }
  .ivl-auth-box { padding: 28px 20px; }
}

/* ============================================================
   PUBLIC PAGES — Navbar, Footer, Home, Auth, Pricing
   Full standalone styles — independent of any WordPress theme
============================================================ */
.ivl-public-body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--ivl-font);
  background: #fff;
  color: var(--ivl-text);
  -webkit-font-smoothing: antialiased;
}
/* Hide Hello Elementor header/footer on our pages */
.ivl-public-body .site-header,
.ivl-public-body .site-footer,
.ivl-public-body #masthead,
.ivl-public-body #colophon,
.ivl-public-body .elementor-location-header,
.ivl-public-body .elementor-location-footer,
.ivl-public-body header.site-header,
.ivl-public-body footer.site-footer {
  display: none !important;
}
.ivl-public-body .site-main,
.ivl-public-body main,
.ivl-public-body #content,
.ivl-public-body .content-area,
.ivl-public-body #primary,
.ivl-public-body .site,
.ivl-public-body #page {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
/* ---- NAVBAR ---- */
.ivl-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
}
.ivl-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}
.ivl-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
}
.ivl-nav-logo strong { color: #2563eb; font-weight: 800; }
.ivl-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.ivl-nav-links a {
  font-size: 14px;
  color: #475569;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background .15s, color .15s;
  font-weight: 500;
}
.ivl-nav-links a:hover { background: #f1f5f9; color: #0f172a; }
.ivl-nav-btn-outline {
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
  background: transparent !important;
}
.ivl-nav-btn-outline:hover { border-color: #94a3b8 !important; background: transparent !important; }
.ivl-nav-btn-fill {
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 9px !important;
}
.ivl-nav-btn-fill:hover { background: #1d4ed8 !important; color: #fff !important; }
.ivl-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}
.ivl-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all .2s;
}

/* ---- HERO ---- */
.ivl-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 28px 80px;
}
.ivl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 24px;
}
.ivl-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2563eb;
  animation: ivlpulse 2s infinite;
}
@keyframes ivlpulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.ivl-hero-h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #0f172a;
  margin: 0 0 20px;
}
.ivl-hero-grad {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ivl-hero-p {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 32px;
  max-width: 480px;
}
.ivl-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.ivl-btn-hero-fill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: #2563eb; color: #fff;
  border-radius: 12px; font-size: 15.5px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  transition: all .2s;
}
.ivl-btn-hero-fill:hover { background: #1d4ed8; transform: translateY(-1px); color: #fff; text-decoration: none; }
.ivl-btn-hero-out {
  display: inline-flex; align-items: center;
  padding: 14px 24px; border: 1.5px solid #e2e8f0;
  color: #0f172a; border-radius: 12px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
  transition: border-color .15s;
}
.ivl-btn-hero-out:hover { border-color: #94a3b8; color: #0f172a; text-decoration: none; }
.ivl-hero-proof { display: flex; align-items: center; gap: 14px; }
.ivl-proof-i { font-size: 13px; color: #64748b; }
.ivl-proof-i strong { color: #0f172a; font-weight: 700; }
.ivl-proof-sep { width: 1px; height: 14px; background: #e2e8f0; }

/* ---- APP MOCK ---- */
.ivl-hero-right { display: flex; justify-content: center; }
.ivl-mock-browser {
  width: 100%; max-width: 440px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15,23,42,.12);
}
.ivl-mock-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ivl-mock-dots { display: flex; gap: 5px; }
.ivl-mock-dots span { width: 11px; height: 11px; border-radius: 50%; }
.ivl-mock-dots span:nth-child(1) { background: #ef4444; }
.ivl-mock-dots span:nth-child(2) { background: #f59e0b; }
.ivl-mock-dots span:nth-child(3) { background: #10b981; }
.ivl-mock-url { font-size: 11.5px; color: #94a3b8; font-weight: 500; flex: 1; text-align: center; }
.ivl-mock-body { padding: 20px; }
.ivl-mock-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 18px; }
.ivl-ms { background: #f8fafc; border-radius: 9px; padding: 11px 8px; text-align: center; }
.ivl-ms-v { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.ivl-ms-l { font-size: 10px; color: #94a3b8; font-weight: 500; }
.ivl-mock-rows { display: flex; flex-direction: column; gap: 7px; }
.ivl-mr { display: grid; grid-template-columns: 65px 1fr 60px 58px; align-items: center; gap: 8px; background: #f8fafc; padding: 9px 12px; border-radius: 8px; }
.ivl-mr-num { font-size: 11px; font-weight: 700; color: #0f172a; }
.ivl-mr-co  { font-size: 11px; color: #64748b; }
.ivl-mr-amt { font-size: 11px; font-weight: 700; text-align: right; }
.ivl-mr-s   { font-size: 9.5px; font-weight: 700; text-align: center; padding: 3px 7px; border-radius: 20px; text-transform: uppercase; }
.ivl-s-paid { background: #d1fae5; color: #059669; }
.ivl-s-sent { background: #dbeafe; color: #1d4ed8; }
.ivl-s-over { background: #fee2e2; color: #dc2626; }

/* ---- FEATURES ---- */
.ivl-feat-sect { background: #f8fafc; padding: 80px 0; }
.ivl-sect-head { text-align: center; padding: 0 24px 48px; }
.ivl-sect-head h2 { font-size: clamp(26px,3.5vw,40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 10px; color: #0f172a; }
.ivl-sect-head p  { font-size: 16px; color: #64748b; max-width: 480px; margin: 0 auto; }
.ivl-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.ivl-feat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  transition: box-shadow .2s, transform .2s;
}
.ivl-feat-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.ivl-feat-ico { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.ivl-feat-name { font-size: 15px; font-weight: 700; margin-bottom: 7px; color: #0f172a; }
.ivl-feat-desc { font-size: 13.5px; color: #64748b; line-height: 1.6; }

/* ---- STEPS ---- */
.ivl-steps-sect { padding: 80px 28px; max-width: 1180px; margin: 0 auto; }
.ivl-steps-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ivl-step { flex: 1; min-width: 175px; max-width: 210px; text-align: center; padding: 12px; }
.ivl-step-n { width: 40px; height: 40px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.ivl-step h3 { font-size: 15px; font-weight: 700; margin: 0 0 7px; }
.ivl-step p  { font-size: 13.5px; color: #64748b; line-height: 1.55; margin: 0; }
.ivl-step-arr { font-size: 24px; color: #cbd5e1; margin-top: 18px; align-self: flex-start; padding-top: 12px; }

/* ---- CTA ---- */
.ivl-cta-sect {
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  padding: 80px 28px;
  text-align: center;
}
.ivl-cta-sect h2 { font-size: clamp(28px,3.5vw,42px); font-weight: 800; color: #fff; margin: 0 0 12px; }
.ivl-cta-sect p  { font-size: 16px; color: rgba(255,255,255,.75); margin: 0 0 32px; }
.ivl-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- FOOTER ---- */
.ivl-footer { background: #0f172a; color: #94a3b8; margin-top: 0; }
.ivl-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
}
.ivl-footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; margin: 0; }
.ivl-footer-cols { display: flex; gap: 48px; }
.ivl-footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.ivl-footer-cols strong { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 4px; display: block; }
.ivl-footer-cols a { font-size: 13.5px; color: #94a3b8; text-decoration: none; }
.ivl-footer-cols a:hover { color: #fff; }
.ivl-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 28px; text-align: center; font-size: 13px; max-width: 100%; }

/* ---- AUTH PAGE ---- */
.ivl-auth-body { background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%) !important; min-height: 100vh; }
.ivl-auth-wrap { display: flex; align-items: center; justify-content: center; padding: 40px 16px 60px; min-height: calc(100vh - 64px); }
.ivl-auth-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 40px 36px; width: 100%; max-width: 420px; box-shadow: 0 8px 40px rgba(37,99,235,.08); }
.ivl-auth-title { font-size: 22px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.ivl-auth-sub   { font-size: 14px; color: #64748b; margin: 0 0 24px; }
.ivl-alert { padding: 11px 14px; border-radius: 9px; font-size: 13.5px; margin-bottom: 16px; }
.ivl-alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.ivl-tabs { display: flex; background: #f1f5f9; border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 22px; }
.ivl-tab { flex: 1; padding: 9px; border: none; border-radius: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; background: transparent; color: #64748b; transition: all .15s; }
.ivl-tab.active { background: #fff; color: #0f172a; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.ivl-pane.hidden { display: none; }
.ivl-field { margin-bottom: 14px; }
.ivl-field label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: #475569; margin-bottom: 6px; }
.ivl-req { color: #ef4444; }
.ivl-field input { width: 100%; padding: 10px 13px; border: 1.5px solid #e2e8f0; border-radius: 9px; font-size: 14px; font-family: inherit; color: #1e293b; transition: border-color .15s; outline: none; box-sizing: border-box; }
.ivl-field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.ivl-submit-btn { width: 100%; padding: 12px; background: #2563eb; color: #fff; border: none; border-radius: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s, transform .1s; margin-top: 4px; }
.ivl-submit-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.ivl-auth-note { font-size: 12.5px; color: #94a3b8; text-align: center; margin: 12px 0 0; }
.ivl-auth-note a { color: #2563eb; text-decoration: none; }

/* ---- PRICING PAGE ---- */
.ivl-pricing-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }
.ivl-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; margin-bottom: 24px; }
.ivl-plan-card { background: #fff; border: 2px solid #e2e8f0; border-radius: 16px; padding: 28px 22px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s,transform .2s; }
.ivl-plan-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.1); transform: translateY(-2px); }
.ivl-plan-pop  { border-color: #2563eb; }
.ivl-plan-cur  { border-color: #10b981; background: #f0fdf4; }
.ivl-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #2563eb; color: #fff; padding: 3px 16px; border-radius: 100px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ivl-plan-badge-g { background: #10b981; }
.ivl-plan-name { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: #0f172a; }
.ivl-plan-price { margin-bottom: 20px; }
.ivl-plan-amt { font-size: 32px; font-weight: 800; color: #0f172a; }
.ivl-plan-per { font-size: 14px; color: #64748b; }
.ivl-plan-feats { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.ivl-plan-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; color: #475569; line-height: 1.4; }
.ivl-plan-btn { display: block; text-align: center; padding: 11px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: all .15s; }
.ivl-plan-btn-pri { background: #2563eb; color: #fff; border: none; }
.ivl-plan-btn-pri:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
.ivl-plan-btn-out { border: 1.5px solid #e2e8f0; color: #1e293b; background: transparent; }
.ivl-plan-btn-out:hover { border-color: #94a3b8; text-decoration: none; color: #1e293b; }
.ivl-plan-btn-cur { background: #d1fae5; color: #059669; border: none; cursor: default; }
.ivl-pricing-note { text-align: center; font-size: 13px; color: #94a3b8; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
  .ivl-nav-toggle { display: flex; }
  .ivl-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e2e8f0; padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .ivl-nav-links.open { display: flex; }
  .ivl-nav-links a { width: 100%; }
  .ivl-hero { grid-template-columns: 1fr; padding: 48px 20px; gap: 40px; }
  .ivl-hero-right { display: none; }
  .ivl-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .ivl-footer-cols { flex-direction: column; gap: 24px; }
  .ivl-steps-row { flex-direction: column; align-items: center; }
  .ivl-step-arr { transform: rotate(90deg); margin: 0; }
  .ivl-auth-box { padding: 28px 20px; }
}

/* ============================================================
   AUTH PAGES — Login / Register / Lost Password
============================================================ */
.ivl-auth-bg { background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%) !important; min-height: 100vh; }

/* Two-column layout */
.ivl-auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}
.ivl-auth-layout-reg { grid-template-columns: 1fr 1.1fr; }

/* Left panel */
.ivl-auth-left {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #312e81 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}
.ivl-auth-left-inner { max-width: 420px; color: #fff; }
.ivl-auth-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #a5f3fc;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.2);
}
.ivl-auth-left-inner h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.03em;
}
.ivl-auth-left-inner p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin: 0 0 32px;
}
.ivl-auth-bullets { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ivl-ab { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.5; }
.ivl-ab-ico { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.ivl-auth-plan-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #6ee7b7;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(16,185,129,.25);
  padding: 9px 14px;
  border-radius: 9px;
}
.ivl-auth-testimonial {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 18px 20px;
}
.ivl-auth-testimonial p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.6; margin: 0 0 10px; font-style: italic; }
.ivl-auth-testi-author { font-size: 12.5px; color: rgba(255,255,255,.5); font-weight: 600; }

/* Right panel */
.ivl-auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  overflow-y: auto;
}
.ivl-auth-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 36px 36px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(15,23,42,.07);
}
.ivl-auth-card-header { margin-bottom: 24px; }
.ivl-auth-card-header h1 { font-size: 21px; font-weight: 800; color: #0f172a; margin: 0 0 7px; }
.ivl-auth-card-header p { font-size: 13.5px; color: #64748b; margin: 0; }
.ivl-auth-card-header a { color: #2563eb; text-decoration: none; font-weight: 600; }
.ivl-auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: #94a3b8;
}
.ivl-auth-card-footer a { color: #64748b; text-decoration: none; }
.ivl-auth-card-footer a:hover { color: #2563eb; }
.ivl-auth-card-footer span { color: #cbd5e1; }
.ivl-auth-terms {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.6;
}
.ivl-auth-terms a { color: #64748b; text-decoration: underline; }

/* Centered layout for lost password */
.ivl-auth-center {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.ivl-auth-card-narrow { max-width: 420px; }
.ivl-lp-icon { font-size: 40px; margin-bottom: 14px; }

/* Mobile */
@media (max-width: 768px) {
  .ivl-auth-layout { grid-template-columns: 1fr; }
  .ivl-auth-left { display: none; }
  .ivl-auth-right { padding: 24px 16px; align-items: flex-start; padding-top: 40px; }
  .ivl-auth-card { padding: 28px 20px; }
}


/* Onboarding & large modals */
#ivl-modal-content.ivl-modal-large{max-width:560px}
#ivl-overlay.ivl-modal-noclose .ivl-modal-close{display:none}
.ivl-input{padding:11px 13px;border:1.5px solid #e2e8f0;border-radius:9px;font-size:14px;font-family:inherit;color:#1e293b;background:#fff;outline:none;transition:border-color .15s}
.ivl-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}

/* Empty states */
.ivl-empty{text-align:center;padding:60px 20px;color:#64748b}
.ivl-empty-illust{font-size:64px;margin-bottom:14px;opacity:.6}
.ivl-empty-title{font-size:17px;font-weight:700;color:#0f172a;margin:0 0 6px}
.ivl-empty-sub{font-size:14px;color:#94a3b8;margin:0 0 22px;max-width:360px;margin-left:auto;margin-right:auto;line-height:1.6}

/* Cmd+K Command Palette */
#ivl-cmdk{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:10001;display:none;align-items:flex-start;justify-content:center;padding-top:14vh;backdrop-filter:blur(4px)}
#ivl-cmdk.open{display:flex}
#ivl-cmdk-box{width:560px;max-width:92vw;background:#fff;border-radius:14px;box-shadow:0 24px 64px rgba(0,0,0,.35);overflow:hidden;border:1px solid #e2e8f0}
#ivl-cmdk-input{width:100%;padding:18px 20px;border:none;font-size:16px;outline:none;border-bottom:1px solid #f1f5f9;font-family:inherit;color:#0f172a}
#ivl-cmdk-list{max-height:60vh;overflow-y:auto;padding:6px 0}
.ivl-cmdk-item{padding:10px 18px;font-size:14px;cursor:pointer;display:flex;align-items:center;gap:12px;color:#1e293b;transition:background .1s}
.ivl-cmdk-item:hover,.ivl-cmdk-item.active{background:#f1f5f9}
.ivl-cmdk-icon{width:30px;height:30px;border-radius:7px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
.ivl-cmdk-meta{margin-left:auto;font-size:11.5px;color:#94a3b8;font-weight:500}
.ivl-cmdk-section{padding:10px 18px 4px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}
.ivl-cmdk-empty{padding:30px;text-align:center;font-size:14px;color:#94a3b8}
.ivl-cmdk-hint{padding:10px 18px;background:#f8fafc;border-top:1px solid #f1f5f9;display:flex;gap:14px;font-size:11.5px;color:#94a3b8}
.ivl-cmdk-hint kbd{background:#fff;border:1px solid #e2e8f0;border-radius:4px;padding:1px 5px;font-family:'SF Mono',Menlo,monospace;font-size:10.5px;color:#475569}
