* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans Arabic", "Tajawal", "Cairo", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, .08), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(7, 151, 165, .11), transparent 32%),
    linear-gradient(180deg, #fff 0%, var(--bg) 52%, #fff 100%);
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { border: 0; }
.page-shell { min-height: 100vh; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.public-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(226,232,240,.78);
  backdrop-filter: blur(16px);
}
.nav-inner, .topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 24px rgba(7,151,165,.2);
}
.nav-links { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-weight: 600; }
.nav-link, .side-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  cursor: pointer;
  transition: .18s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary-dark); background: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-menu { display: none; }
.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 10px 24px rgba(7, 151, 165, 0.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(7, 151, 165, 0.28); }
.btn-secondary { color: var(--text); background: white; border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--primary-dark); background: var(--primary-light); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.icon-btn { width: 42px; min-width: 42px; height: 42px; padding: 0; border-radius: 14px; }
.hero { padding: 70px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 44px; }
.eyebrow { color: var(--primary-dark); font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .page-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.16; margin-bottom: 18px; letter-spacing: 0; }
.page-hero h1 { font-size: clamp(32px, 4vw, 52px); }
.lead { color: var(--text-muted); font-size: 18px; line-height: 1.9; max-width: 660px; }
.hero-actions, .section-actions, .toolbar, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.center-actions { justify-content: center; }
.split-between { justify-content: space-between; }
.section-tight { padding-top: 0; }
.mb-toolbar { margin-bottom: 16px; }
.full-span { grid-column: 1 / -1; }
.setting-toggle { justify-content: space-between; margin: 10px 0; }
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.trust-item, .mini-stat {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.trust-item strong, .mini-stat strong { display: block; font-size: 22px; color: var(--primary-dark); }
.trust-item span, .mini-stat span, .muted { color: var(--text-muted); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.preview-card { padding: 18px; overflow: hidden; position: relative; }
.preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dots { display: flex; gap: 6px; direction: ltr; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.dot:nth-child(1) { background: var(--danger); }
.dot:nth-child(2) { background: var(--warning); }
.dot:nth-child(3) { background: var(--success); }
.dashboard-preview { display: grid; grid-template-columns: 108px 1fr; gap: 14px; min-height: 390px; }
.preview-side { background: #f3fbfc; border-radius: 18px; padding: 12px; display: grid; gap: 10px; align-content: start; }
.fake-line { height: 12px; border-radius: 999px; background: #dbeff2; }
.fake-line.active { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.preview-main { display: grid; gap: 14px; }
.preview-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.preview-stat { min-height: 72px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.table-skeleton { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: #fff; }
.sk-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 10px; align-items: center; min-height: 46px; padding: 0 12px; border-bottom: 1px solid #eef2f7; }
.sk-row:last-child { border-bottom: 0; }
.section { padding: 54px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 3vw, 42px); line-height: 1.3; margin-bottom: 8px; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.feature-card, .pricing-card, .support-card, .settings-card { padding: 22px; }
.icon-bubble {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--primary-dark);
  background: var(--primary-light);
  margin-bottom: 14px;
  font-weight: 800;
}
.icon-bubble.purple { color: var(--purple); background: #f1eaff; }
.icon-bubble.green { color: var(--success); background: #eaf8ef; }
.icon-bubble.orange { color: var(--warning); background: #fff5df; }
.steps { counter-reset: step; }
.step-card { padding: 22px; position: relative; overflow: hidden; }
.step-card:before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
}
.cta-band {
  color: white;
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  border-radius: 28px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: 0 22px 45px rgba(37,99,235,.2);
}
.cta-band p { color: rgba(255,255,255,.82); }
.page-hero { padding: 62px 0 30px; text-align: center; }
.page-hero .lead { margin: 0 auto 22px; }
.pricing-toggle { display: inline-flex; padding: 5px; border: 1px solid var(--border); background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); }
.toggle-pill { padding: 10px 18px; border-radius: 12px; background: transparent; cursor: pointer; color: var(--text-muted); font-weight: 800; }
.toggle-pill.active { background: var(--primary-light); color: var(--primary-dark); }
.pricing-card { position: relative; display: grid; gap: 16px; }
.pricing-card.featured { border-color: rgba(7,151,165,.45); box-shadow: 0 22px 44px rgba(7,151,165,.13); transform: translateY(-8px); }
.badge, .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.badge { color: var(--primary-dark); background: var(--primary-light); }
.price { font-size: 38px; font-weight: 800; color: var(--text); }
.price small { font-size: 15px; color: var(--text-muted); font-weight: 600; }
.check-list { display: grid; gap: 10px; color: var(--text-muted); padding: 0; margin: 0; list-style: none; }
.check-list li:before { content: "✓"; color: var(--success); font-weight: 800; margin-left: 8px; }
.compare { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { min-height: 56px; padding: 15px 14px; border-bottom: 1px solid #edf2f7; text-align: right; vertical-align: middle; }
th { color: var(--text-muted); font-size: 13px; background: #f8fbfc; }
tbody tr:hover { background: #fbfeff; }
.status.success { color: #087c35; background: #e8f8ee; }
.status.warning { color: #a16207; background: #fff6df; }
.status.danger { color: #b91c1c; background: #feeceb; }
.status.info { color: #075985; background: #e7f4ff; }
.status.neutral { color: #475569; background: #f1f5f9; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 800; font-size: 14px; color: var(--text); }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 0 14px;
  outline: none;
}
.textarea { min-height: 92px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(7,151,165,.1); }
.search-wrap { position: relative; }
.search-wrap .input { padding-right: 42px; }
.search-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.support-search { max-width: 720px; margin: 0 auto; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.chip { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: white; color: var(--text-muted); cursor: pointer; }
.chip:hover, .chip.active { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-light); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; }
.auth-shell { width: min(1040px, 100%); display: grid; grid-template-columns: .85fr 1fr; gap: 22px; align-items: stretch; }
.auth-panel { padding: 30px; }
.auth-visual { padding: 28px; background: linear-gradient(135deg, #ecfeff, #eff6ff); display: grid; align-content: center; }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  background: rgba(255,255,255,.9);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.side-links { display: grid; gap: 6px; }
.side-link { justify-content: flex-start; color: var(--text-muted); font-weight: 800; }
.side-link:hover, .side-link.active { color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 12px 26px rgba(7,151,165,.18); }
.ai-side { margin-top: auto; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #eefcff, #f5f3ff); border: 1px solid var(--border); }
.dashboard-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 12; padding: 0 24px; background: rgba(248,252,253,.86); border-bottom: 1px solid var(--border); backdrop-filter: blur(16px); }
.topbar-tools { display: flex; align-items: center; gap: 10px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--purple)); display: grid; place-items: center; color: #fff; font-weight: 800; }
.content { padding: 28px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.stat-card { padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card strong { display: block; font-size: 25px; margin-top: 6px; }
.split { display: grid; grid-template-columns: 1.35fr .75fr; gap: 18px; align-items: start; }
.chart-card, .table-card, .board-card { padding: 20px; overflow: hidden; }
.bars { height: 220px; display: flex; align-items: end; gap: 12px; padding: 18px 8px 0; border-bottom: 1px solid var(--border); }
.bar { flex: 1; border-radius: 12px 12px 0 0; background: linear-gradient(180deg, var(--secondary), var(--primary)); min-height: 28px; position: relative; }
.bar span { position: absolute; bottom: calc(100% + 8px); right: 50%; transform: translateX(50%); color: var(--text-muted); font-size: 12px; }
.activity-list { display: grid; gap: 12px; }
.activity-item { display: flex; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid #edf2f7; }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.renewal-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.board-column { background: #f8fbfc; border: 1px solid var(--border); border-radius: 20px; padding: 14px; min-height: 300px; }
.renewal-card { padding: 14px; border-radius: 16px; background: white; border: 1px solid var(--border); display: grid; gap: 10px; margin-top: 12px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; border: 1px solid var(--border); background: #fff; }
.tabs-row { margin-bottom: 16px; }
.tab { min-height: 38px; padding: 0 14px; border-radius: 12px; background: transparent; cursor: pointer; color: var(--text-muted); font-weight: 800; }
.tab.active { color: var(--primary-dark); background: var(--primary-light); }
.modal-overlay, .drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,23,42,.32);
  animation: fadeIn .15s ease;
}
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 24px 64px rgba(15,23,42,.22); animation: rise .18s ease; }
.modal-head, .modal-body, .modal-foot { padding: 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.modal-foot { display: flex; justify-content: flex-start; gap: 10px; border-top: 1px solid var(--border); }
.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer { width: min(460px, 92vw); height: 100vh; overflow: auto; background: #fff; box-shadow: -20px 0 50px rgba(15,23,42,.2); animation: slideIn .18s ease; }
.toast-stack { position: fixed; left: 20px; bottom: 20px; z-index: 80; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 380px; padding: 14px 16px; border-radius: 16px; color: white; background: var(--text); box-shadow: 0 18px 36px rgba(15,23,42,.2); animation: rise .2s ease; }
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); }
.toast.danger { background: var(--danger); }
.menu-pop {
  position: fixed;
  z-index: 60;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.menu-pop button { width: 100%; justify-content: flex-start; }
.empty { padding: 34px; text-align: center; color: var(--text-muted); }
.mobile-side-toggle { display: none; }
.linked-subtitle { margin: -12px 0 22px; color: var(--text-muted); }
.whatsapp-health-grid { margin-bottom: 18px; }
.linked-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: stretch; }
.linked-main-card { padding: 24px; display: grid; grid-template-columns: 300px 1fr; gap: 24px; min-height: 390px; overflow: hidden; }
.device-art { position: relative; display: grid; place-items: center; min-height: 330px; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.18), transparent 64%); border-radius: 18px; }
.phone-frame { width: 150px; height: 250px; border: 8px solid #234a78; border-radius: 32px; background: linear-gradient(180deg, #f8fdff, #dff7fb); box-shadow: 0 22px 48px rgba(37,99,235,.16); display: grid; place-items: center; }
.phone-frame:before { content: ""; position: absolute; top: 44px; width: 62px; height: 12px; border-radius: 99px; background: #0f2748; }
.wa-logo { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #22c55e, #16a34a); font-size: 34px; box-shadow: 0 16px 28px rgba(34,197,94,.25); }
.qr-float { position: absolute; right: 24px; bottom: 42px; width: 116px; height: 116px; padding: 14px; border-radius: 24px; background: rgba(255,255,255,.94); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.qr-mini, .qr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; width: 100%; aspect-ratio: 1; }
.qr-real { width: min(100%, 230px); aspect-ratio: 1; object-fit: contain; display: block; margin: 0 auto; border-radius: 6px; background: #fff; }
.qr-float .qr-real { width: 100%; }
.qr-mini span, .qr-grid span { border-radius: 3px; background: #dce7f3; }
.qr-mini span.active, .qr-grid span.active { background: #0e9aa7; }
.qr-mini span.ghost, .qr-grid span.ghost { background: #edf3f8; }
.link-panel { display: grid; align-content: center; gap: 18px; }
.compact-head { margin: 0; }
.link-box-grid { display: grid; grid-template-columns: minmax(180px, 240px) 34px 1fr; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: rgba(248,251,252,.76); }
.qr-box { min-height: 210px; display: grid; gap: 10px; place-items: center; padding: 18px; border: 1px dashed #b7c9dc; border-radius: 18px; cursor: pointer; text-align: center; }
.qr-box.active { border-color: #0e9aa7; background: rgba(14,154,167,.07); }
.qr-box .qr-grid { width: min(150px, 100%); }
.or-divider { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); font-weight: 800; }
.pair-code { display: grid; gap: 10px; }
.pair-code strong { padding: 14px; border: 1px solid var(--border); border-radius: 14px; text-align: center; background: white; letter-spacing: 1px; }
.link-tabs { width: fit-content; max-width: 100%; }
.pairing-layout { grid-template-columns: 1fr 1fr; }
.pairing-form, .pairing-result { display: grid; gap: 12px; align-content: start; }
.system-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.system-row:last-child { border-bottom: 0; }
.safety-list { display: grid; gap: 8px; }
.safety-list span { padding: 10px 12px; border-radius: 12px; background: var(--primary-light); color: var(--primary-dark); font-weight: 800; }
.link-steps-card { padding: 22px; display: grid; gap: 14px; }
.step-row { position: relative; display: grid; gap: 4px; padding: 0 52px 18px 0; border-right: 2px dashed rgba(14,154,167,.35); }
.step-row:last-of-type { border-right: 0; padding-bottom: 0; }
.step-row span { position: absolute; right: -18px; top: 0; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; display: grid; place-items: center; font-weight: 800; }
.secure-note { padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #e8fbf8, #eef7ff); color: var(--primary-dark); font-weight: 800; }
.linked-bottom-grid { display: grid; grid-template-columns: .72fr .95fr 1.2fr; gap: 18px; margin-top: 18px; align-items: stretch; }
.linked-bottom-grid .table-card:last-child { grid-column: span 2; }
.usage-card { padding: 22px; display: grid; gap: 12px; }
.usage-count { font-size: 28px; color: var(--text); }
.usage-bar { height: 10px; border-radius: 999px; background: #e8eef5; overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, #0e9aa7); }
.danger-text { color: var(--danger); font-weight: 800; }
.success-text { color: var(--success); font-weight: 800; }
.empty-device { min-height: 190px; display: grid; place-items: center; text-align: center; }
.empty-icon { width: 74px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: #eef7ff; color: var(--primary-dark); font-size: 28px; }
.modal-qr { border: 0; cursor: default; }

/* Visual pass aligned with the approved Renvix screens. */
.public-nav { box-shadow: 0 1px 0 rgba(15, 23, 42, .04); }
.public-nav .brand { font-size: 28px; color: #06163a; }
.public-nav .brand-mark,
.sidebar .brand-mark,
.auth-hero-logo .brand-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #00c2d7 0%, #057d91 52%, #1f6eea 100%);
}
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 38px 0 26px;
}
.hero h1 { max-width: 650px; color: #07173c; }
.hero h1,
.page-hero h1 { font-weight: 800; }
.hero .lead { font-size: 20px; color: #415575; }
.hero .preview-card {
  transform: perspective(1200px) rotateY(-4deg);
  border-color: rgba(7,151,165,.18);
  box-shadow: 0 24px 70px rgba(7, 151, 165, .16);
}
.feature-card,
.support-card,
.pricing-card,
.settings-card,
.table-card,
.stat-card,
.chart-card,
.board-card,
.ai-side,
.renewal-card {
  border-radius: 8px;
}
.card { border-color: rgba(199, 213, 229, .78); }
.stat-card {
  min-height: 118px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-card strong { font-size: 24px; margin: 7px 0; display: block; color: var(--text); }
.content { padding: 30px 34px; }
.dashboard-shell { grid-template-columns: 292px minmax(0, 1fr); background: var(--bg); }
.sidebar { padding: 24px 20px; gap: 28px; }
.sidebar .brand { font-size: 25px; color: #06356d; }
.side-links { gap: 14px; }
.side-link {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 18px;
  justify-content: space-between;
  font-size: 18px;
  text-align: start;
  background: transparent;
  border: 1px solid transparent;
}
.side-link span { font-size: 24px; }
.topbar {
  min-height: 86px;
  padding: 0 30px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.topbar .search-wrap { width: min(480px, 36vw); }
.topbar .input { min-height: 50px; border-radius: 8px; }
.badge { border-radius: 8px; }
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 24px;
}
.page-title h1 { font-size: 34px; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .65fr); gap: 18px; }
.table-card,
.chart-card { padding: 22px; }

.auth-page {
  position: relative;
  overflow: hidden;
  place-items: stretch;
  padding: 34px 52px;
  color: #eef7ff;
  background:
    radial-gradient(circle at 76% 42%, rgba(0, 198, 213, .22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(33, 106, 232, .18), transparent 30%),
    linear-gradient(135deg, #06101f 0%, #07192b 50%, #041020 100%);
}
.auth-page:before {
  content: "";
  position: absolute;
  inset: 0 50% 0 auto;
  border-inline-start: 1px solid rgba(148, 163, 184, .24);
  pointer-events: none;
}
.auth-brand,
.auth-top-actions { position: absolute; top: 32px; z-index: 2; }
.auth-brand { left: 54px; right: auto; }
.auth-brand .brand { color: #fff; font-size: 30px; }
.auth-top-actions { right: 54px; left: auto; display: flex; align-items: center; gap: 10px; }
.auth-shell {
  width: min(1600px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  grid-template-columns: minmax(440px, .82fr) minmax(560px, 1fr);
  gap: 70px;
  align-items: center;
  direction: ltr;
}
.auth-panel {
  direction: rtl;
  width: min(560px, 100%);
  justify-self: center;
  padding: 42px 46px;
  color: #f8fbff;
  background: rgba(9, 23, 40, .74);
  border: 1px solid rgba(148, 163, 184, .28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
}
.auth-panel .eyebrow { color: #48dbe7; }
.auth-panel h1 { font-size: 42px; text-align: center; margin: 6px 0 8px; }
.auth-panel .lead { color: #a7b6ca; text-align: center; margin: 0 auto 24px; font-size: 18px; }
.auth-form { gap: 18px; }
.auth-panel .field span { color: #d8e3f2; }
.auth-panel .input {
  min-height: 58px;
  background: rgba(5, 14, 27, .62);
  border-color: rgba(148, 163, 184, .30);
  color: #fff;
}
.auth-panel .input::placeholder { color: #8392a8; }
.remember { color: #d9e5f3; }
.auth-submit { min-height: 58px; font-size: 18px; }
.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #8ea0b8;
}
.auth-divider:before,
.auth-divider:after { content: ""; height: 1px; background: rgba(148, 163, 184, .22); }
.google-btn {
  min-height: 54px;
  color: #eff6ff;
  background: rgba(7, 17, 31, .58);
  border-color: rgba(148, 163, 184, .28);
}
.google-mark { color: #fff; background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.auth-switch { text-align: center; color: #aab8cc; margin: 0; }
.link-button { color: #22d3ee; background: transparent; cursor: pointer; font-weight: 800; }
.auth-visual {
  direction: ltr;
  color: #eff6ff;
  display: grid;
  gap: 24px;
  align-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.auth-hero-logo { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 42px; font-weight: 800; }
.auth-hero-logo .brand-mark { width: 70px; height: 70px; font-size: 42px; }
.auth-hero-logo b { color: #23d3e6; }
.auth-visual > p { text-align: center; color: #c0ccdc; font-size: 23px; line-height: 1.45; }
.auth-dashboard-art {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(34, 211, 238, .46);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 34, 58, .86), rgba(6, 18, 33, .72));
  box-shadow: 0 30px 90px rgba(0, 198, 213, .22);
  transform: perspective(1100px) rotateX(7deg) rotateY(-8deg);
}
.art-top,
.art-table div,
.auth-feature-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.art-top span { width: 180px; height: 32px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, .2); }
.art-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.art-stats span,
.art-table div {
  padding: 16px;
  border-radius: 8px;
  background: rgba(15, 35, 60, .86);
  border: 1px solid rgba(148, 163, 184, .16);
}
.art-stats small { display: block; color: #8ba1ba; }
.art-table { display: grid; gap: 8px; }
.art-table b { color: #36e7aa; }
.auth-feature-row {
  width: min(760px, 100%);
  margin: 0 auto;
  color: #d8e6f6;
  direction: ltr;
}
.auth-security-note {
  width: min(660px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(34, 211, 238, .22);
  border-radius: 12px;
  background: rgba(15, 33, 55, .76);
  color: #dcecff;
}

.linked-subtitle {
  margin-top: -14px;
  margin-bottom: 22px;
  font-size: 18px;
  text-align: right;
}
.linked-layout { grid-template-columns: minmax(0, 1fr) 340px; direction: ltr; }
.linked-main-card {
  direction: ltr;
  grid-template-columns: 290px minmax(0, 1fr);
  padding: 34px;
  min-height: 470px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, .07);
}
.device-art { min-height: 390px; background: linear-gradient(135deg, rgba(231,250,252,.62), rgba(255,255,255,.18)); }
.device-art:before {
  content: "";
  position: absolute;
  width: 260px;
  height: 170px;
  border: 3px dashed rgba(14, 165, 233, .23);
  border-radius: 50%;
  transform: rotate(18deg);
}
.phone-frame { position: relative; z-index: 1; width: 158px; height: 278px; }
.wa-check {
  position: absolute;
  z-index: 3;
  right: 70px;
  bottom: 94px;
  width: 96px;
  height: 96px;
  display: none;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: 16px solid rgba(255,255,255,.92);
  font-size: 45px;
  box-shadow: 0 20px 38px rgba(22, 163, 74, .24);
}
.wa-check.show { display: grid; }
.qr-float { z-index: 2; width: 132px; height: 132px; border-radius: 18px; }
.lock-line { margin: 8px 0 0; }
.link-panel { direction: rtl; }
.link-box-grid {
  direction: ltr;
  grid-template-columns: 1fr;
  background: rgba(255,255,255,.62);
}
.qr-box,
.pair-code,
.pairing-form,
.pairing-result { direction: rtl; }
.qr-box { min-height: 190px; }
.qr-box .qr-grid { width: 138px; }
.pair-code strong { min-height: 56px; display: grid; place-items: center; font-size: 19px; }
.link-steps-card { direction: rtl; padding: 28px; align-content: center; }
.success-device-state { text-align: center; display: grid; gap: 12px; }
.success-device-state > span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  font-size: 40px;
}
.linked-bottom-grid {
  grid-template-columns: .82fr .86fr 1.25fr .72fr;
}
.linked-bottom-grid .table-card:last-child { grid-column: auto; }
.usage-card,
.security-card,
.activity-card,
.linked-table-card { min-height: 235px; }
.mini-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-light);
}
.usage-bar { margin: 4px 0; }
.safe-mode-card .safety-list { grid-template-columns: repeat(5, 1fr); }

:root[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0c1828;
  --surface-soft: #111f31;
  --text: #eaf2fb;
  --text-muted: #9eb0c7;
  --border: #22354c;
  --primary-light: rgba(14,154,167,.16);
  --shadow-sm: 0 10px 22px rgba(0,0,0,.24);
  --shadow-md: 0 18px 42px rgba(0,0,0,.32);
}
:root[data-theme="dark"] body { background: radial-gradient(circle at 25% 10%, rgba(14,154,167,.18), transparent 34%), var(--bg); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .public-nav,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .drawer,
:root[data-theme="dark"] .menu-pop { background: rgba(12,24,40,.94); }
:root[data-theme="dark"] .topbar { background: rgba(7,17,31,.86); }
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .tabs,
:root[data-theme="dark"] .pricing-toggle,
:root[data-theme="dark"] .pair-code strong,
:root[data-theme="dark"] .safety-list span,
:root[data-theme="dark"] .renewal-card { background: #0b1728; color: var(--text); border-color: var(--border); }
:root[data-theme="dark"] th,
:root[data-theme="dark"] tbody tr:hover,
:root[data-theme="dark"] .board-column,
:root[data-theme="dark"] .link-box-grid { background: #0f1d30; }
:root[data-theme="dark"] td,
:root[data-theme="dark"] th,
:root[data-theme="dark"] .activity-item,
:root[data-theme="dark"] .sk-row { border-color: var(--border); }
:root[data-theme="dark"] .auth-visual,
:root[data-theme="dark"] .ai-side,
:root[data-theme="dark"] .secure-note { background: linear-gradient(135deg, #0d2834, #111c35); }
:root[data-theme="dark"] .phone-frame { background: linear-gradient(180deg, #10243b, #0c1828); }
:root[data-theme="dark"] .qr-float { background: rgba(12,24,40,.94); }
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .public-nav .brand,
:root[data-theme="dark"] .sidebar .brand { color: var(--text); }
:root[data-theme="dark"] .hero .lead { color: var(--text-muted); }
:root[data-theme="dark"] .side-link {
  color: #b8c7da;
  background: transparent;
  border-color: transparent;
}
:root[data-theme="dark"] .side-link:hover,
:root[data-theme="dark"] .side-link.active {
  color: #fff;
  background: linear-gradient(135deg, #087f91, #1684ea);
  border-color: rgba(34, 211, 238, .35);
}
:root[data-theme="dark"] .linked-main-card,
:root[data-theme="dark"] .link-steps-card,
:root[data-theme="dark"] .usage-card,
:root[data-theme="dark"] .security-card,
:root[data-theme="dark"] .activity-card,
:root[data-theme="dark"] .linked-table-card,
:root[data-theme="dark"] .safe-mode-card { background: rgba(12,24,40,.94); }
:root[data-theme="dark"] .device-art { background: linear-gradient(135deg, rgba(12, 42, 55, .82), rgba(11, 23, 40, .38)); }
:root[data-theme="dark"] .link-box-grid { background: rgba(9, 20, 35, .78); }
:root[data-theme="dark"] .auth-panel .btn-secondary { background: rgba(7,17,31,.58); color: #eff6ff; }
:root:not([data-theme="dark"]) .auth-page {
  color: #0f274c;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 52%, #ecfeff 100%);
}
:root:not([data-theme="dark"]) .auth-page:before { border-color: #dbe6f1; }
:root:not([data-theme="dark"]) .auth-brand .brand { color: #06356d; }
:root:not([data-theme="dark"]) .auth-panel {
  color: #0f274c;
  background: rgba(255,255,255,.94);
  border-color: #dbe6f1;
  box-shadow: 0 28px 80px rgba(15, 75, 105, .12);
}
:root:not([data-theme="dark"]) .auth-panel .lead,
:root:not([data-theme="dark"]) .auth-switch,
:root:not([data-theme="dark"]) .remember { color: #64748b; }
:root:not([data-theme="dark"]) .auth-panel .field span { color: #203a61; }
:root:not([data-theme="dark"]) .auth-panel .input {
  color: #0f274c;
  background: #fff;
  border-color: #cfddeb;
}
:root:not([data-theme="dark"]) .auth-panel .input::placeholder { color: #94a3b8; }
:root:not([data-theme="dark"]) .auth-visual { color: #0f274c; }
:root:not([data-theme="dark"]) .auth-visual > p { color: #52677f; }
:root:not([data-theme="dark"]) .auth-feature-row { color: #284664; }
:root:not([data-theme="dark"]) .auth-security-note { color: #27445f; background: #f0fdfa; border-color: #b6ece8; }
.single-auth { grid-template-columns: minmax(360px, 600px); justify-content: center; }
.single-auth .auth-panel { direction: inherit; }
.auth-success { display: grid; justify-items: center; gap: 18px; text-align: center; }
.success-mark { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 36px; font-weight: 800; }
.code-input { direction: ltr; text-align: center; letter-spacing: 8px; font-size: 26px; }
.profile-trigger { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.topbar { position: relative; }
.profile-menu {
  position: absolute;
  inset-block-start: calc(100% - 6px);
  inset-inline-end: 18px;
  z-index: 1200;
  min-width: 190px;
  padding: 8px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.profile-menu button { padding: 10px 12px; text-align: start; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.profile-menu button:hover { background: var(--surface-soft); }
.health-and-safety { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.health-metrics { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 10px; margin: 18px 0; }
.health-metrics span { padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.health-metrics small, .health-metrics strong { display: block; }
.health-metrics strong { margin-top: 6px; font-size: 21px; }
.health-score { min-width: 84px; min-height: 84px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #0e9aa7; font-size: 21px; font-weight: 800; }
.risk-ring { width: 150px; height: 150px; margin: 20px auto; display: grid; place-content: center; border-radius: 50%; border: 18px solid #14b8a6; border-inline-end-color: #dbeafe; text-align: center; }
.risk-ring strong { font-size: 38px; }
.warmup-track { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.warmup-track span { position: relative; padding: 18px 10px; text-align: center; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.warmup-track span:not(:last-child):after { content: ""; position: absolute; inset-inline-end: -13px; top: 50%; width: 13px; height: 2px; background: var(--primary); }
.warmup-track strong, .warmup-track small { display: block; }
.warmup-track strong { margin-top: 6px; color: var(--primary); font-size: 24px; }
.full-two { grid-column: span 2; }
.spreadsheet-input { min-height: 210px; direction: ltr; text-align: start; font-family: ui-monospace, monospace; }
.import-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.quality-result { padding: 14px; border: 1px solid currentColor; border-radius: 8px; }
.quality-result.success { color: #15803d; background: #f0fdf4; }
.quality-result.warning { color: #b45309; background: #fffbeb; }
.quality-result.danger { color: #b91c1c; background: #fef2f2; }
.modal-overlay, .drawer-overlay { z-index: 9000; }
.modal, .drawer { z-index: 9010; }
.toast-stack { z-index: 10000; }
[dir="ltr"] .auth-panel { direction: ltr; }
[dir="ltr"] .link-panel,
[dir="ltr"] .qr-box,
[dir="ltr"] .pair-code,
[dir="ltr"] .pairing-form,
[dir="ltr"] .pairing-result,
[dir="ltr"] .link-steps-card { direction: ltr; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { transform: translateX(-24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 980px) {
  .hero-grid, .auth-shell, .split { grid-template-columns: 1fr; }
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; right: 0; transform: translateX(110%); z-index: 45; width: 280px; transition: transform .2s ease; box-shadow: -20px 0 50px rgba(15,23,42,.16); }
  .sidebar.open { transform: translateX(0); }
  .mobile-side-toggle { display: inline-flex; }
  .renewal-board { grid-template-columns: repeat(2, 1fr); }
  .linked-layout, .linked-main-card, .linked-bottom-grid { grid-template-columns: 1fr; }
  .linked-bottom-grid .table-card:last-child { grid-column: auto; }
  .auth-page { padding-top: 104px; }
  .auth-page:before { display: none; }
  .auth-shell { gap: 34px; min-height: auto; }
  .auth-panel { justify-self: stretch; width: 100%; }
  .auth-dashboard-art { transform: none; }
  .auth-feature-row { display: grid; grid-template-columns: 1fr; }
  .safe-mode-card .safety-list { grid-template-columns: repeat(2, 1fr); }
  .health-and-safety { grid-template-columns: 1fr; }
  .health-metrics { grid-template-columns: repeat(2, 1fr); }
  .warmup-track { grid-template-columns: repeat(2, 1fr); }
  .warmup-track span:after { display: none; }
  [dir="ltr"] .sidebar { right: auto; left: 0; transform: translateX(-110%); box-shadow: 20px 0 50px rgba(15,23,42,.16); }
  [dir="ltr"] .sidebar.open { transform: translateX(0); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-links, .nav-actions { display: none; }
  .mobile-menu { display: inline-flex; }
  .public-nav.open .nav-links, .public-nav.open .nav-actions {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
  }
  .public-nav.open .nav-inner { display: grid; grid-template-columns: 1fr auto; padding: 12px 0; }
  .trust-row, .grid-3, .grid-4, .grid-5, .preview-stats, .renewal-board, .form-grid { grid-template-columns: 1fr; }
  .dashboard-preview { grid-template-columns: 1fr; }
  .preview-side { grid-template-columns: repeat(4, 1fr); }
  .section-head, .cta-band, .page-title, .topbar { align-items: stretch; flex-direction: column; }
  .content { padding: 18px; }
  .topbar { padding: 14px 18px; }
  .toolbar { width: 100%; }
  .toolbar .input, .toolbar .select, .toolbar .btn { width: 100%; }
  th, td { min-width: 140px; }
  .auth-page { padding: 16px; }
  .auth-brand, .auth-top-actions { position: static; }
  .auth-brand { margin-bottom: 12px; }
  .auth-top-actions { margin-bottom: 16px; justify-content: flex-start; }
  .auth-panel { padding: 26px 20px; }
  .auth-panel h1 { font-size: 32px; }
  .auth-hero-logo { font-size: 30px; }
  .auth-hero-logo .brand-mark { width: 52px; height: 52px; font-size: 30px; }
  .art-stats { grid-template-columns: repeat(2, 1fr); }
  .safe-mode-card .safety-list { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
  .linked-main-card { padding: 18px; }
  .link-box-grid { grid-template-columns: 1fr; }
  .pairing-layout { grid-template-columns: 1fr; }
  .or-divider { margin: 0 auto; }
  .device-art { min-height: 260px; }
}

.qr-empty, .qr-unavailable { display: grid; place-content: center; min-height: 150px; padding: 16px; text-align: center; color: var(--muted); border: 1px dashed var(--border); background: var(--surface-soft); }
.qr-unavailable { min-height: 72px; font-weight: 800; }
.readiness-result { display: flex; align-items: center; justify-content: space-between; padding: 18px; margin-bottom: 18px; border: 1px solid var(--border); background: var(--surface); }
.readiness-result strong { font-size: 1.35rem; }
.readiness-result.ready { border-color: #22c55e; }
.readiness-result.not-ready { border-color: #ef4444; }
.readiness-card { min-height: 150px; }
.issue-list { display: grid; gap: 12px; }
.issue-row h3 { margin: 8px 0; font-size: 1rem; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 420px; }
.subscription-actions .btn { min-height: 34px; padding: 6px 10px; font-size: .78rem; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; gap: 4px; padding: 0 24px 20px 0; border-right: 2px solid var(--border); }
.timeline-item::before { content: ""; position: absolute; right: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.loading-state { min-height: 180px; display: grid; place-content: center; color: var(--muted); }

/* RenewPilot dashboard system - shared across all authenticated pages. */
.brand { padding: 0; background: transparent; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, #13b7c8 0%, #0c83b6 55%, #2455e8 100%);
  box-shadow: 0 7px 16px rgba(20, 117, 195, .2);
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
}
.brand-wordmark { color: #0a2b67; font-size: 19px; line-height: 1; white-space: nowrap; }
.brand-wordmark b { color: #0a9eb3; }
.line-icon { width: 22px; height: 22px; flex: 0 0 22px; }

.dashboard-shell {
  min-height: 100vh;
  grid-template-columns: 238px minmax(0, 1fr);
  color: #12264a;
  background: #f8fafc;
}
.dashboard-main { min-width: 0; background: #f8fafc; }
.sidebar {
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  z-index: 20;
  padding: 22px 16px 18px;
  gap: 20px;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-inline-start: 1px solid #e5eaf0;
  box-shadow: none;
}
.sidebar-brand { min-height: 48px; display: flex; align-items: center; padding: 0 8px; }
.sidebar .brand { width: 100%; justify-content: flex-start; font-size: inherit; }
.sidebar .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
.sidebar .brand-wordmark { font-size: 17px; }
.side-links { gap: 7px; }
.side-link {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  padding: 0 14px;
  gap: 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #566b8d;
  background: transparent;
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
}
.side-link span { font-size: inherit; line-height: 1.25; }
.side-link:hover { color: #1764d8; background: #f5f8ff; }
.side-link.active {
  color: #125fd5;
  background: linear-gradient(100deg, #eff9ff, #f2f2ff);
  border-color: #e7ebff;
  box-shadow: none;
}
.sidebar-foot {
  margin-top: auto;
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #e8ecf4;
  border-radius: 8px;
  color: #183463;
  background: linear-gradient(135deg, #f4f9ff, #f8f6ff);
}
.sidebar-foot-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #16a9bc, #3560e7); font-size: 12px; font-weight: 800; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot small { margin-top: 4px; color: #71809a; font-size: 11px; line-height: 1.45; }

.topbar {
  min-height: 82px;
  padding: 0 28px;
  position: sticky;
  inset-block-start: 0;
  z-index: 15;
  flex-direction: row;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e5eaf0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .025);
  backdrop-filter: blur(14px);
}
.topbar-tools { min-width: 0; gap: 10px; }
.topbar .dashboard-search { width: min(560px, 43vw); }
.topbar .input { min-height: 48px; border-radius: 8px; border-color: #dfe5ee; background: #fff; }
.topbar .search-icon { color: #7890b3; }
.topbar .icon-btn { width: 42px; min-width: 42px; height: 42px; color: #47658f; }
.topbar .icon-btn .line-icon { width: 20px; height: 20px; }
.plan-badge { min-height: 32px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px; color: #0a8195; background: #eaf9fb; font-size: 12px; font-weight: 800; white-space: nowrap; }
.profile-trigger { max-width: 220px; text-align: start; }
.profile-trigger > span:last-child { min-width: 0; }
.profile-trigger strong, .profile-trigger small { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger strong { color: #142d57; font-size: 13px; }
.profile-trigger small { margin-top: 2px; color: #8090a8; font-size: 10px; }
.avatar { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; }
.profile-menu { inset-block-start: calc(100% - 10px); border-radius: 8px; }

.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 26px 28px 44px; }
.dashboard-main .page-title { margin-bottom: 20px; align-items: flex-end; }
.dashboard-main .page-title h1 { margin: 0 0 5px; color: #0d2349; font-size: 26px; line-height: 1.35; }
.dashboard-main .page-title p { margin: 0; font-size: 13px; }
.dashboard-main .toolbar { justify-content: flex-end; }
.dashboard-main .section { padding: 20px 0 0; }
.dashboard-main .section-head { margin-bottom: 16px; align-items: center; }
.dashboard-main .section-head h2 { margin-bottom: 3px; color: #12264a; font-size: 18px; line-height: 1.45; }
.dashboard-main .section-head p { margin: 0; font-size: 12px; }
.dashboard-main .card {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(31, 52, 85, .04);
}
.dashboard-main .card:hover { transform: none; box-shadow: 0 7px 20px rgba(31, 52, 85, .065); }
.dashboard-main .btn { min-height: 40px; padding: 0 14px; border-radius: 8px; font-size: 13px; }
.dashboard-main .btn-primary { background: linear-gradient(110deg, #13a9b9, #2463ed); box-shadow: 0 7px 17px rgba(37, 99, 235, .16); }
.dashboard-main .btn-secondary { border-color: #dbe3ee; color: #25446f; }
.dashboard-main .input, .dashboard-main .select, .dashboard-main .textarea { border-radius: 8px; border-color: #dce3ec; }
.dashboard-main .status { border-radius: 999px; }

.dashboard-stat-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.dashboard-main .stat-card { min-height: 112px; padding: 18px; }
.stat-card > div { min-width: 0; }
.dashboard-main .stat-card .muted { display: block; color: #61738f; font-size: 12px; }
.dashboard-main .stat-card strong { margin: 7px 0 4px; color: #10264d; font-size: 23px; line-height: 1.2; }
.dashboard-main .stat-card small { color: #8290a5; font-size: 11px; }
.stat-card-icon { width: 45px; height: 45px; flex: 0 0 45px; display: grid; place-items: center; border-radius: 50%; color: #1677e8; background: #eaf4ff; }
.stat-card.success .stat-card-icon { color: #11a873; background: #e6f8f1; }
.stat-card.warning .stat-card-icon { color: #e48a18; background: #fff4e3; }
.stat-card.danger .stat-card-icon { color: #df4c55; background: #ffeaec; }
.stat-card.purple .stat-card-icon { color: #7551e8; background: #f0ebff; }
.stat-card.neutral .stat-card-icon { color: #6c7e98; background: #eef2f7; }
.stat-card-icon .line-icon { width: 23px; height: 23px; }

.welcome-panel { min-height: 132px; margin-bottom: 16px; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid #dce9f6; border-radius: 8px; background: linear-gradient(110deg, #f2fbff, #f7f8ff); }
.welcome-panel h2 { margin: 5px 0; color: #10264d; font-size: 21px; }
.welcome-panel p { margin: 0; color: #637692; }
.welcome-kicker { color: #0d91a5; font-size: 12px; font-weight: 800; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.quick-actions { padding-bottom: 0 !important; }
.quick-action-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.quick-action { min-height: 82px; padding: 13px; display: flex; align-items: center; gap: 11px; text-align: start; border: 1px solid #e2e8f0; border-radius: 8px; color: #263f68; background: #fff; cursor: pointer; font-weight: 700; }
.quick-action:hover { color: #1764d8; border-color: #bcd4fa; background: #f8fbff; }
.quick-action:disabled { cursor: not-allowed; opacity: .55; }
.quick-action .line-icon { color: #1c78e8; }
.dashboard-two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 16px; align-items: stretch; }
.table-card, .chart-card { padding: 18px; }
.table-card h2, .table-card h3, .chart-card h2 { color: #12264a; }
.text-button { color: #1764d8; background: transparent; cursor: pointer; font-weight: 700; }
.compare { margin: 0 -18px -18px; }
.compare table { min-width: 780px; }
.dashboard-main th, .dashboard-main td { padding: 12px 13px; border-color: #edf1f5; }
.dashboard-main th { color: #60718d; background: #fafbfd; font-size: 11px; }
.dashboard-main td { color: #2a3d5c; font-size: 12px; }
.dashboard-main td strong, .dashboard-main td small { display: block; }
.dashboard-main td small { margin-top: 3px; color: #8b98ab; }
.subscription-actions { min-width: 310px; gap: 5px; }
.subscription-actions .btn { min-height: 32px; padding: 0 9px; font-size: 11px; }
.icon-only { width: 33px; min-width: 33px; padding: 0 !important; }
.icon-only .line-icon { width: 16px; height: 16px; }
.mb-toolbar { margin: 16px 0; padding: 11px; border: 1px solid #e6ebf2; border-radius: 8px; background: #fff; }
.mb-toolbar .search-wrap { width: min(430px, 100%); }
.mb-toolbar .select { width: 170px; }

.empty-state { min-height: 190px; padding: 28px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; color: #73829a; }
.empty-state-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #2875de; background: #edf5ff; }
.empty-state-icon .line-icon { width: 24px; height: 24px; }
.empty-state strong { color: #1c355f; font-size: 16px; }
.empty-state p { max-width: 440px; margin: 0; font-size: 12px; line-height: 1.8; }
.activity-list, .notification-list { gap: 0; }
.activity-item { min-height: 58px; padding: 11px 0; align-items: center; }
.activity-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #1f83e6; box-shadow: 0 0 0 4px #e9f4ff; }
.activity-item strong { color: #294268; font-size: 12px; }
.activity-item p { margin: 3px 0 0; font-size: 10px; }
.performance-chart { height: 245px; padding: 18px 8px 4px; display: flex; align-items: flex-end; gap: 13px; border-bottom: 1px solid #e5eaf0; }
.performance-column { height: 100%; flex: 1; min-width: 32px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.performance-column span { width: min(42px, 80%); min-height: 8px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #1a93bf, #2c62e8); }
.performance-column small { color: #7a899f; font-size: 10px; direction: ltr; }

.settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.settings-panel { min-height: 230px; padding: 20px; }
.settings-panel-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.settings-panel-head > .line-icon { color: #2273df; }
.settings-panel h2 { margin: 0; font-size: 17px; }
.settings-panel p { margin: 3px 0 0; font-size: 11px; }
.setting-row { min-height: 48px; padding: 9px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #edf1f5; }
.setting-row:last-child { border-bottom: 0; }
.segmented { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid #e1e7ef; border-radius: 8px; background: #f8fafc; }
.segmented button { min-width: 52px; min-height: 32px; border-radius: 6px; color: #65758e; background: transparent; cursor: pointer; font-weight: 700; }
.segmented button.active { color: #fff; background: #216bea; }
.setting-toggle input { width: 40px; height: 22px; accent-color: #159eb0; }
.session-card { align-content: start; }

.linked-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 15px; }
.linked-main-card { grid-template-columns: 250px minmax(0, 1fr); min-height: 430px; padding: 22px; gap: 22px; }
.device-art { min-height: 340px; border-radius: 8px; }
.link-steps-card { padding: 20px; border-radius: 8px; }
.link-box-grid { border-radius: 8px; background: #fbfcfe; }
.qr-box, .pair-code strong, .secure-note { border-radius: 8px; }
.linked-bottom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.linked-bottom-grid .activity-card { grid-column: 1 / -1; }
.usage-card, .security-card, .activity-card, .linked-table-card { min-height: 210px; }
.health-and-safety { gap: 15px; }
.risk-summary { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 18px 0; }
.risk-summary strong { color: #163d76; font-size: 42px; }
.risk-summary span { color: #8290a5; }

.art-skeleton small, .art-skeleton strong, .art-skeleton span, .art-skeleton-row span, .art-skeleton-row b { display: block; min-height: 10px; border-radius: 99px; background: rgba(148, 163, 184, .18); }
.art-skeleton strong, .art-skeleton-row span { width: 72%; margin-top: 10px; }
.art-skeleton-row b { width: 54px; }

:root[data-theme="dark"] .dashboard-shell,
:root[data-theme="dark"] .dashboard-main { color: #dce9f7; background: #07111f; }
:root[data-theme="dark"] .dashboard-main .card,
:root[data-theme="dark"] .welcome-panel,
:root[data-theme="dark"] .quick-action,
:root[data-theme="dark"] .mb-toolbar,
:root[data-theme="dark"] .sidebar { background: #0c1828; border-color: #22354c; }
:root[data-theme="dark"] .dashboard-main .page-title h1,
:root[data-theme="dark"] .dashboard-main .section-head h2,
:root[data-theme="dark"] .dashboard-main .stat-card strong,
:root[data-theme="dark"] .welcome-panel h2,
:root[data-theme="dark"] .table-card h2,
:root[data-theme="dark"] .table-card h3,
:root[data-theme="dark"] .settings-panel h2 { color: #eaf2fb; }
:root[data-theme="dark"] .side-link.active { color: #77d7ea; background: #112a3f; border-color: #1a435b; }
:root[data-theme="dark"] .sidebar-foot { color: #eaf2fb; background: #101f32; border-color: #22354c; }
:root[data-theme="dark"] .brand-wordmark { color: #eaf2fb; }
:root[data-theme="dark"] .topbar { background: rgba(7, 17, 31, .96); border-color: #22354c; }
:root[data-theme="dark"] .quick-action { color: #bfd0e3; }
:root[data-theme="dark"] .empty-state strong { color: #dbe8f6; }
:root[data-theme="dark"] .dashboard-main th { background: #0f1d30; }

@media (max-width: 1240px) {
  .quick-action-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .linked-main-card { grid-template-columns: 210px minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 250px;
    padding: 20px 14px;
    transform: translateX(110%);
    transition: transform .2s ease;
    box-shadow: -20px 0 50px rgba(15,23,42,.16);
  }
  .sidebar.open { transform: translateX(0); }
  [dir="ltr"] .sidebar {
    transform: translateX(-110%);
    box-shadow: 20px 0 50px rgba(15,23,42,.16);
  }
  [dir="ltr"] .sidebar.open { transform: translateX(0); }
  .topbar { min-height: 72px; padding: 10px 18px; }
  .topbar .dashboard-search { width: min(420px, 44vw); }
  .content { padding: 22px 18px 36px; }
  .dashboard-two-column, .linked-layout, .linked-main-card, .health-and-safety { grid-template-columns: 1fr; }
  .linked-main-card { direction: rtl; }
  .device-art { min-height: 280px; }
  .settings-layout { grid-template-columns: 1fr; }
  .linked-bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .topbar .dashboard-search { width: 100%; }
  .topbar > .topbar-tools:first-child { width: 100%; }
  .topbar > .topbar-tools:last-child { width: 100%; justify-content: space-between; }
  .profile-trigger > span:last-child, .plan-badge { display: none; }
  .dashboard-main .page-title { align-items: stretch; flex-direction: column; }
  .dashboard-main .toolbar { width: 100%; justify-content: stretch; }
  .dashboard-main .toolbar .btn, .dashboard-main .toolbar .select { flex: 1; }
  .dashboard-stat-grid, .quick-action-grid, .linked-bottom-grid { grid-template-columns: 1fr; }
  .welcome-panel { align-items: stretch; flex-direction: column; }
  .welcome-actions .btn { flex: 1; }
  .mb-toolbar { display: grid; }
  .mb-toolbar .search-wrap, .mb-toolbar .select, .mb-toolbar .btn { width: 100%; }
  .linked-bottom-grid .activity-card { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
}

/* RenewPilot public experience and focused dashboard workspaces */
.public-site,
.auth-light-page {
  min-height: 100vh;
  color: #10244a;
  background: #fbfdff;
}
.public-site .container,
.public-footer .container { width: min(1500px, calc(100% - 72px)); }
.public-site .public-nav {
  min-height: 78px;
  background: rgba(255, 255, 255, .96);
  border-color: #e8edf4;
  box-shadow: 0 2px 12px rgba(34, 64, 108, .03);
}
.public-site .nav-inner { min-height: 78px; }
.public-site .brand { color: #102b62; font-size: 19px; }
.public-site .brand-mark,
.auth-light-page .brand-mark {
  border-radius: 8px;
  background: linear-gradient(145deg, #09bac9, #1769ed 62%, #5847e8);
  box-shadow: 0 8px 20px rgba(22, 105, 237, .2);
}
.public-site .nav-links { gap: 24px; color: #20375e; }
.public-site .nav-link { min-height: 78px; padding: 0 8px; border-radius: 0; }
.public-site .nav-link:hover,
.public-site .nav-link.active {
  color: #1469ed;
  background: transparent;
  box-shadow: inset 0 -2px #1469ed;
}
.public-site .nav-actions .btn { min-height: 42px; border-radius: 7px; }
.public-site .mobile-menu { display: none; }
.public-site .btn-primary,
.auth-light-page .btn-primary {
  background: linear-gradient(100deg, #09b9c8, #1769ed 70%, #2c42f1);
  box-shadow: 0 9px 22px rgba(23, 105, 237, .18);
}
.public-site .btn,
.auth-light-page .btn { border-radius: 7px; }
.marketing-hero { padding: 42px 0 28px; overflow: hidden; }
.marketing-hero-grid {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: 54px;
}
.marketing-copy { text-align: right; }
.marketing-copy .eyebrow {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid #dceaff;
  border-radius: 999px;
  color: #1769ed;
  background: #f6faff;
  font-size: 13px;
}
.marketing-copy h1 {
  max-width: 740px;
  margin: 20px 0 18px;
  color: #0c2148;
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.35;
  font-weight: 800;
}
.marketing-copy h1 span {
  color: #1670ea;
  background: linear-gradient(90deg, #0eb5bd, #1a64ef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marketing-copy .lead { max-width: 760px; font-size: 17px; line-height: 2; }
.marketing-copy .hero-actions { margin-top: 25px; }
.marketing-copy .hero-actions .btn { min-width: 220px; min-height: 50px; }
.hero-product-preview { min-width: 0; transform: perspective(1200px) rotateY(1deg); }
.hero-product-preview .preview-card {
  padding: 14px;
  border-radius: 8px;
  border-color: #dfe7f1;
  box-shadow: 0 18px 38px rgba(40, 73, 118, .12);
}
.hero-product-preview .dashboard-preview { min-height: 320px; grid-template-columns: 95px 1fr; }
.hero-product-preview .preview-side,
.hero-product-preview .preview-stat,
.hero-product-preview .table-skeleton { border-radius: 7px; }
.marketing-strip { padding: 0 0 28px; }
.marketing-strip .grid { gap: 14px; }
.marketing-mini {
  min-height: 96px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  box-shadow: 0 7px 20px rgba(32, 65, 105, .05);
}
.marketing-mini > .line-icon,
.benefit-item > .line-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  flex: 0 0 42px;
  color: #1769ed;
  border-radius: 8px;
  background: #edf5ff;
}
.marketing-mini h3 { margin: 0 0 6px; color: #17305a; font-size: 15px; }
.marketing-mini p { margin: 0; color: #73829a; font-size: 12px; line-height: 1.7; }
.marketing-metrics { padding: 0 0 28px; }
.marketing-metrics .container {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(32, 65, 105, .04);
}
.marketing-metrics .container > div {
  display: grid;
  grid-template-columns: 36px auto;
  grid-template-rows: auto auto;
  align-content: center;
  justify-content: center;
  column-gap: 10px;
  border-left: 1px solid #edf1f6;
}
.marketing-metrics .container > div:last-child { border-left: 0; }
.marketing-metrics .line-icon { grid-row: 1 / 3; align-self: center; color: #159eae; }
.marketing-metrics strong { color: #0b9a9f; font-size: 21px; }
.marketing-metrics span { color: #76869f; font-size: 12px; }
.marketing-benefits { padding: 0 0 34px; text-align: center; }
.marketing-benefits h2 { margin-bottom: 22px; color: #132d56; font-size: 22px; }
.benefit-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.benefit-item { min-height: 104px; padding: 10px 22px; display: flex; align-items: center; gap: 12px; border-left: 1px solid #e8edf3; text-align: right; }
.benefit-item:last-child { border-left: 0; }
.benefit-item strong { display: block; color: #17315a; font-size: 14px; }
.benefit-item p { margin: 5px 0 0; color: #78879c; font-size: 11px; line-height: 1.7; }

.public-heading { padding: 40px 0 28px; text-align: center; }
.public-heading h1 { margin-bottom: 9px; color: #0c2148; font-size: clamp(36px, 4vw, 56px); }
.public-heading p { margin: 0 auto; color: #6f7f98; font-size: 17px; }
.features-showcase { padding-bottom: 32px; }
.feature-showcase-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: stretch; }
.feature-preview-card { padding: 18px; border-radius: 8px; }
.feature-preview-card .dashboard-preview { min-height: 325px; }
.public-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.public-feature-card { min-height: 205px; padding: 26px; text-align: center; }
.public-feature-card .line-icon { width: 46px; height: 46px; padding: 11px; color: #1769ed; border-radius: 12px; background: #edf5ff; }
.public-feature-card h2 { margin: 19px 0 10px; font-size: 18px; }
.public-feature-card p { color: #708099; font-size: 13px; line-height: 1.9; }
.feature-lower-grid { margin-top: 15px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.feature-wide { min-height: 118px; padding: 22px; display: flex; align-items: center; gap: 20px; }
.feature-wide .line-icon { width: 52px; height: 52px; padding: 12px; color: #12a4ad; background: #eafafb; border-radius: 50%; }
.feature-wide p { margin: 4px 0 0; color: #718098; }
.public-cta { margin: 0 auto 30px; padding: 28px 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.public-cta h2 { margin-bottom: 6px; }
.public-cta p { margin: 0; color: #718098; }

.pricing-heading { padding-bottom: 12px; }
.pricing-heading .pricing-toggle { margin-top: 18px; border-radius: 8px; }
.pricing-heading .toggle-pill { min-width: 155px; border-radius: 6px; }
.pricing-public-grid { padding: 18px 0; }
.pricing-public-grid .pricing-card { min-height: 370px; border-radius: 8px; }
.pricing-public-grid .pricing-card.featured { transform: translateY(-6px); border-color: #2779ee; }
.pricing-public-grid .price { color: #1769ed; }
.pricing-public-grid .btn { margin-top: auto; }
.pricing-extras { padding: 8px 0 34px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.pricing-extra-card { padding: 22px; }
.credit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.credit-option { padding: 16px; text-align: center; border: 1px solid #e5eaf1; border-radius: 8px; }
.credit-option strong { display: block; color: #1769ed; font-size: 20px; }
.credit-option span { color: #75849a; font-size: 11px; }
.faq-compact details { padding: 13px 0; border-bottom: 1px solid #edf1f5; }
.faq-compact summary { cursor: pointer; font-weight: 700; }
.faq-compact p { color: #75849b; font-size: 12px; line-height: 1.8; }

.blog-layout { padding: 18px 0 38px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.blog-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.blog-tools .search-wrap { width: min(470px, 100%); }
.featured-article { min-height: 245px; padding: 18px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 25px; align-items: center; }
.article-art { min-height: 205px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #e8f2ff, #f3f7ff); }
.article-art .line-icon { width: 92px; height: 92px; color: #2779ee; }
.featured-article h2 { margin: 12px 0; font-size: 25px; line-height: 1.55; }
.featured-article p { color: #708099; line-height: 1.9; }
.blog-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.blog-card { overflow: hidden; }
.blog-card .article-art { min-height: 132px; border-radius: 0; }
.blog-card-content { padding: 17px; }
.blog-card h3 { min-height: 48px; font-size: 16px; line-height: 1.6; }
.blog-card p { min-height: 58px; color: #75849a; font-size: 12px; line-height: 1.8; }
.blog-sidebar { display: grid; gap: 15px; }
.blog-sidebar .card { padding: 19px; }
.recent-list { display: grid; gap: 13px; }
.recent-list button { padding: 10px 0; color: #263e64; background: transparent; border-bottom: 1px solid #edf1f5; text-align: right; cursor: pointer; }
.newsletter-card form { display: grid; gap: 10px; }
.article-page { padding: 42px 0; }
.article-shell { max-width: 900px; }
.article-shell h1 { color: #102a54; font-size: clamp(30px, 4vw, 48px); line-height: 1.45; }
.article-shell .article-art { margin: 25px 0; }
.article-content { color: #455b7b; font-size: 16px; line-height: 2.15; }

.support-hero { padding-bottom: 20px; }
.support-intro-grid { display: grid; grid-template-columns: 1fr repeat(4, .72fr); gap: 15px; align-items: stretch; }
.support-intro { padding: 24px; }
.support-intro h1 { font-size: 43px; }
.support-intro p { color: #718199; line-height: 1.9; }
.support-channel { padding: 21px; text-align: center; }
.support-channel .line-icon { width: 43px; height: 43px; padding: 10px; color: #1769ed; border-radius: 8px; background: #edf5ff; }
.support-channel h3 { margin: 14px 0 8px; }
.support-channel p { min-height: 45px; color: #75849a; font-size: 12px; line-height: 1.8; }
.support-body { padding: 18px 0 32px; display: grid; grid-template-columns: .85fr 1.15fr .85fr; gap: 18px; align-items: stretch; }
.support-body > .card { padding: 22px; }
.support-category-list { display: grid; gap: 8px; }
.support-category-list button { min-height: 54px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: #2c456d; border: 1px solid #e9edf3; border-radius: 7px; background: #fff; cursor: pointer; }
.support-faq details { padding: 14px; border: 1px solid #e8edf3; border-radius: 7px; margin-bottom: 8px; }
.support-faq summary { cursor: pointer; font-weight: 700; }
.support-faq p { margin: 10px 0 0; color: #74849b; line-height: 1.8; }
.support-form { display: grid; gap: 12px; }
.support-trust { margin-bottom: 30px; padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.support-trust > div { display: flex; align-items: center; justify-content: center; gap: 9px; color: #59708f; }
.support-trust .line-icon { color: #1769ed; }

.policy-shell { width: min(950px, calc(100% - 40px)); padding: 42px 0; }
.policy-card { padding: 34px; }
.policy-card h1 { color: #102a54; font-size: 38px; }
.policy-card h2 { margin-top: 27px; color: #17345f; }
.policy-card p,
.policy-card li { color: #566d8d; line-height: 2; }

.public-footer {
  margin-top: auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  border-top: 1px solid #e8edf3;
  background: #fff;
}
.public-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-links,
.social-links,
.footer-social { display: flex; align-items: center; gap: 18px; color: #667892; font-size: 12px; }
.footer-links button { color: inherit; background: transparent; cursor: pointer; }
.social-links span,
.footer-social a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e3e9f1; border-radius: 50%; color: #263d62; background: #f8fafc; font-weight: 800; }
.footer-copy { color: #7c899c; font-size: 11px; }

.auth-light-page { display: flex; flex-direction: column; }
.auth-light-header { min-height: 88px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e8edf3; background: #fff; }
.auth-light-header .brand { font-size: 20px; color: #102b62; }
.link-button { padding: 8px; color: #1769ed; background: transparent; cursor: pointer; font-weight: 700; }
.auth-light-shell,
.reset-light-shell {
  width: min(1180px, calc(100% - 40px));
  flex: 1;
  margin: 42px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}
.auth-light-panel,
.auth-light-visual,
.reset-light-panel,
.reset-light-visual { padding: 42px; border-radius: 8px; }
.auth-light-panel { display: grid; align-content: center; }
.auth-light-panel h1,
.reset-light-panel h1 { margin-bottom: 8px; color: #0e2955; font-size: 34px; }
.auth-light-panel > p,
.reset-light-panel > p { color: #708099; }
.auth-light-panel form { margin-top: 25px; display: grid; gap: 16px; }
.auth-light-panel .input { min-height: 52px; border-radius: 7px; }
.auth-light-panel .btn { min-height: 54px; }
.auth-light-visual,
.reset-light-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: linear-gradient(145deg, #f9fcff, #eef6ff);
}
.auth-brand-visual { margin-bottom: 24px; }
.auth-brand-visual .brand-mark { width: 110px; height: 110px; margin: 0 auto 20px; font-size: 42px; }
.auth-brand-visual h2 { color: #102a54; font-size: 33px; }
.auth-brand-visual h2 span { color: #1671eb; }
.auth-benefits { width: min(100%, 460px); display: grid; gap: 18px; text-align: right; }
.auth-benefit { display: flex; gap: 13px; align-items: center; }
.auth-benefit .line-icon { width: 40px; height: 40px; padding: 9px; flex: 0 0 40px; color: #1769ed; border-radius: 8px; background: #eaf3ff; }
.auth-benefit strong { display: block; color: #19355f; }
.auth-benefit span { color: #718199; font-size: 12px; }
.auth-inline-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.policy-check { display: flex; align-items: center; gap: 8px; color: #586d8c; font-size: 13px; }
.reset-light-shell { max-width: 1180px; }
.reset-light-panel { display: grid; align-content: center; }
.reset-lock { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 20px; color: #1769ed; border: 1px solid #d8e6fb; border-radius: 50%; font-size: 27px; }
.reset-light-panel form { margin: 22px 0; display: grid; gap: 14px; }
.reset-light-panel .input,
.reset-light-panel .btn { min-height: 52px; border-radius: 7px; }
.mail-visual { width: 230px; height: 180px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 50% 50% 45% 45%; background: linear-gradient(145deg, #dcecff, #f3f8ff); }
.mail-visual .brand-mark { width: 82px; height: 82px; font-size: 30px; }

.dashboard-main .devices-workspace,
.dashboard-main .template-workspace,
.dashboard-main .billing-workspace { margin-top: 16px; }
.devices-workspace { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(360px, .72fr); gap: 18px; align-items: start; }
.devices-table-card,
.device-link-card { padding: 20px; }
.devices-table-card .compare { margin-top: 12px; }
.devices-table-card table { min-width: 720px; }
.device-link-card { position: sticky; top: 92px; display: grid; gap: 14px; }
.device-link-card .section-head { margin-bottom: 2px; }
.field-label { color: #253f67; font-size: 12px; font-weight: 800; }
.device-method-tabs { width: 100%; padding: 4px; }
.device-method-tabs button { flex: 1; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.device-method-tabs .line-icon { width: 17px; height: 17px; }
.device-link-panel { display: grid; gap: 12px; }
.device-link-panel .input { min-height: 48px; border-radius: 7px; }
.pairing-success {
  min-height: 160px;
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid #c9eed8;
  border-radius: 8px;
  background: #f2fcf6;
}
.pairing-success > span { color: #178a49; font-size: 12px; font-weight: 800; }
.pairing-code-line { display: flex; align-items: center; justify-content: center; gap: 12px; direction: ltr; }
.pairing-code-line strong { color: #12264a; font-size: 30px; letter-spacing: 8px; }
.pairing-code-line .btn { min-height: 36px; }
.pairing-success p { margin: 0; color: #4e8463; font-size: 12px; }
.device-qr-panel { min-height: 280px; padding: 18px; display: grid; place-items: center; align-content: center; gap: 12px; border: 1px dashed #cbd8e8; border-radius: 8px; background: #fbfdff; }
.device-qr-panel .qr-real { max-width: 220px; }
.device-card-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.device-card-actions .btn { flex: 1; }

.template-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(350px, .7fr); gap: 18px; align-items: start; }
.template-editor-card { padding: 20px; }
.template-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.editor-toolbar { min-height: 46px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border: 1px solid #e3e9f1; border-bottom: 0; border-radius: 8px 8px 0 0; background: #fbfcfe; direction: ltr; }
.editor-toolbar button { width: 34px; height: 34px; color: #26456f; border-radius: 6px; background: transparent; cursor: pointer; }
.editor-toolbar button:hover { background: #edf4ff; }
.editor-toolbar span { margin-left: auto; color: #708099; }
.template-editor { min-height: 290px; border-radius: 0 0 8px 8px; line-height: 2; }
.variables-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.variables-row > span { color: #1769ed; font-size: 12px; font-weight: 800; }
.variables-row .chip { color: #1769ed; border-radius: 6px; background: #f1f6ff; direction: ltr; }
.template-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.template-settings .setting-row { padding: 0 12px; border: 1px solid #e5eaf1; border-radius: 7px; }
.template-actions { display: flex; gap: 12px; }
.template-actions .btn { flex: 1; }
.template-side { display: grid; gap: 15px; }
.template-side > .card { padding: 18px; }
.whatsapp-preview { min-height: 330px; padding: 42px 30px 20px; display: grid; align-content: center; justify-items: center; gap: 10px; border-radius: 8px; background: #f8f4ee; }
.preview-day { padding: 5px 10px; color: #1769ed; border-radius: 6px; background: #eaf3ff; font-size: 11px; }
.message-bubble { width: min(100%, 380px); padding: 17px; color: #254160; border: 1px solid #c9eacb; border-radius: 8px; background: #e8f8e9; line-height: 1.9; }
.message-bubble small { display: block; margin-top: 8px; color: #2b9a55; direction: ltr; text-align: left; }
.template-empty { text-align: center; color: #6f7f97; }
.template-empty p { margin: 8px 0 0; font-size: 12px; }
.preview-note { margin: 10px 0 0; padding: 10px; color: #1769ed; border: 1px solid #dce8fc; border-radius: 7px; background: #f5f8ff; text-align: center; font-size: 11px; }

.billing-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.plan-catalog { padding: 20px; }
.dashboard-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dashboard-plan { min-height: 280px; padding: 18px; display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.dashboard-plan.current { border-color: #25b971; box-shadow: inset 0 3px #25b971; }
.dashboard-plan h3 { margin: 15px 0 4px; color: #1b345e; }
.dashboard-plan .plan-price { margin: 10px 0; color: #1769ed; font-size: 24px; font-weight: 800; }
.dashboard-plan .plan-price small { color: #708099; font-size: 12px; }
.dashboard-plan .btn { margin-top: auto; }
.billing-side { display: grid; gap: 15px; }
.billing-side > .card { padding: 20px; }
.wallet-card { display: grid; gap: 13px; }
.invoice-summary > div { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #edf1f5; }
.invoice-summary span { color: #78869b; font-size: 12px; }
.invoice-summary strong { color: #263f66; }

@media (max-width: 1180px) {
  .public-site .container,
  .public-footer .container { width: min(100% - 40px, 1500px); }
  .marketing-hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .marketing-copy h1 { font-size: 40px; }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-item:nth-child(3) { border-left: 0; }
  .support-intro-grid { grid-template-columns: repeat(4, 1fr); }
  .support-intro { grid-column: 1 / -1; }
  .support-body { grid-template-columns: 1fr 1fr; }
  .support-body > :last-child { grid-column: 1 / -1; }
  .devices-workspace,
  .template-workspace,
  .billing-workspace { grid-template-columns: 1fr; }
  .device-link-card { position: static; }
  .dashboard-plan-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .public-site .nav-links { display: none; }
  .public-site .mobile-menu { display: inline-grid; }
  .marketing-hero-grid,
  .feature-showcase-grid,
  .auth-light-shell,
  .reset-light-shell { grid-template-columns: 1fr; }
  .marketing-copy { text-align: center; }
  .marketing-copy h1,
  .marketing-copy .lead { margin-right: auto; margin-left: auto; }
  .marketing-copy .hero-actions { justify-content: center; }
  .hero-product-preview { transform: none; }
  .marketing-strip .grid,
  .marketing-metrics .container,
  .public-feature-grid,
  .support-intro-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-item:nth-child(3) { border-left: 1px solid #e8edf3; }
  .benefit-item:nth-child(2n) { border-left: 0; }
  .pricing-extras,
  .blog-layout,
  .support-body { grid-template-columns: 1fr; }
  .support-body > :last-child { grid-column: auto; }
  .blog-sidebar { grid-template-columns: 1fr 1fr; }
  .dashboard-plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .public-site .container,
  .public-footer .container { width: min(100% - 28px, 1500px); }
  .public-site .nav-inner { min-height: 68px; }
  .public-site .brand { font-size: 15px; }
  .public-site .nav-actions .btn:first-of-type { display: none; }
  .marketing-hero { padding-top: 28px; }
  .marketing-hero-grid { min-height: auto; }
  .marketing-copy h1 { font-size: 31px; }
  .marketing-copy h1 br { display: none; }
  .marketing-copy .lead { font-size: 14px; }
  .marketing-copy .hero-actions .btn { min-width: 0; flex: 1; }
  .hero-product-preview .dashboard-preview { min-height: 250px; grid-template-columns: 68px 1fr; }
  .hero-product-preview .preview-stats { grid-template-columns: repeat(2, 1fr); }
  .marketing-strip .grid,
  .marketing-metrics .container,
  .public-feature-grid,
  .feature-lower-grid,
  .support-intro-grid,
  .support-trust,
  .credit-grid { grid-template-columns: 1fr; }
  .marketing-metrics .container > div { min-height: 72px; border-left: 0; border-bottom: 1px solid #edf1f6; }
  .marketing-metrics .container > div:last-child { border-bottom: 0; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-item,
  .benefit-item:nth-child(3) { border-left: 0; border-bottom: 1px solid #e8edf3; }
  .public-heading h1 { font-size: 35px; }
  .public-cta { align-items: stretch; flex-direction: column; text-align: center; }
  .public-cta .hero-actions .btn { flex: 1; }
  .featured-article { grid-template-columns: 1fr; }
  .blog-grid,
  .blog-sidebar { grid-template-columns: 1fr; }
  .public-footer .container { padding: 18px 0; align-items: center; flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .auth-light-header { min-height: 72px; }
  .auth-light-shell,
  .reset-light-shell { width: min(100% - 24px, 1180px); margin: 24px auto; }
  .auth-light-panel,
  .auth-light-visual,
  .reset-light-panel,
  .reset-light-visual { padding: 24px; }
  .auth-light-panel h1,
  .reset-light-panel h1 { font-size: 28px; }
  .auth-light-visual { order: 2; }
  .template-meta-grid,
  .template-settings { grid-template-columns: 1fr; }
  .template-actions,
  .device-card-actions { flex-direction: column; }
  .pairing-code-line { flex-wrap: wrap; }
  .pairing-code-line strong { font-size: 24px; letter-spacing: 5px; }
}

/* Pixel-matched public experience based on the approved RenewPilot references. */
.brand {
  min-width: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  box-shadow: none !important;
  gap: 11px;
}
.brand-mark-image { width: 54px; height: 54px; display: block; object-fit: contain; flex: 0 0 auto; }
.brand-wordmark { color: #09285d; font-size: 25px; line-height: 1; font-weight: 800; letter-spacing: 0; white-space: nowrap; }
.brand-logo-stacked { width: min(290px, 82%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.brand-logo-stacked .brand-mark-image { width: 172px; height: 172px; }
.brand-logo-stacked .brand-wordmark { font-size: 44px; }
.sidebar .brand-mark-image { width: 42px; height: 42px; }
.sidebar .brand-wordmark { font-size: 22px; }
.public-site,
.auth-light-page { color: #10244a; background: #fff; }
.public-site .container,
.public-footer .container { width: min(1512px, calc(100% - 96px)); }
.public-site .public-nav {
  min-height: 79px;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e7edf5;
  background: rgba(255, 255, 255, .985);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.public-site .nav-inner { min-height: 79px; display: grid; grid-template-columns: 260px 1fr 470px; gap: 24px; }
.public-site .nav-links { justify-content: center; gap: 36px; }
.public-site .nav-link { min-height: 79px; padding: 0 5px; color: #172b4d; font-size: 14px; font-weight: 750; }
.public-site .nav-actions { direction: ltr; justify-content: flex-start; gap: 12px; }
.public-site .nav-actions .btn { min-height: 43px; padding: 0 22px; direction: rtl; }
.public-site .nav-actions .line-icon { width: 17px; height: 17px; }
.public-site .public-theme { width: 42px; padding: 0; color: #315074; font-size: 22px; }
.locale-link { min-width: 38px; min-height: 42px; color: #314968; border-radius: 7px; background: transparent; cursor: pointer; font-weight: 800; }
.locale-link.active { color: #1769ed; background: #f0f5ff; }
.locale-divider { color: #d7deea; }

.marketing-hero { padding: 30px 0 28px; }
.marketing-hero-grid { min-height: 358px; grid-template-columns: minmax(520px, .95fr) minmax(620px, 1.18fr); gap: 66px; }
.marketing-copy .eyebrow { min-height: 34px; padding: 0 17px; font-size: 12px; }
.marketing-copy h1 { margin: 18px 0 13px; max-width: 690px; font-size: 43px; line-height: 1.43; letter-spacing: 0; }
.marketing-copy .lead { max-width: 700px; color: #687995; font-size: 15px; line-height: 2; }
.marketing-copy .hero-actions { margin-top: 23px; gap: 24px; }
.marketing-copy .hero-actions .btn { min-width: 225px; min-height: 53px; font-size: 15px; }
.hero-product-preview { transform: none; }
.dashboard-reference { width: 100%; overflow: hidden; border: 1px solid #dfe7f1; border-radius: 14px; background: #fff; box-shadow: 0 15px 35px rgba(38, 73, 116, .12); }
.dashboard-reference img { width: 100%; height: auto; display: block; }
.hero-product-preview .dashboard-reference { transform: translateY(2px); }
.marketing-strip { padding-bottom: 24px; }
.marketing-strip .grid { gap: 15px; }
.marketing-mini { min-height: 95px; border-radius: 9px; box-shadow: 0 7px 18px rgba(25, 55, 96, .055); }
.marketing-mini h3 { font-size: 14px; }
.marketing-metrics { padding-bottom: 16px; }
.marketing-metrics .container { min-height: 83px; border-radius: 9px; }
.public-benefits { padding: 2px 0 25px; }
.public-benefits .section-head { margin-bottom: 10px; }
.public-benefits .section-head h2 { font-size: 21px; }
.public-benefits .section-head p { display: none; }
.public-benefits .grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.public-benefits article { min-height: 105px; padding: 12px 22px; display: grid; grid-template-columns: 48px 1fr; align-content: center; column-gap: 12px; border-left: 1px solid #e8edf3; text-align: right; }
.public-benefits article:last-child { border-left: 0; }
.public-benefits .line-icon { width: 46px; height: 46px; padding: 10px; grid-row: 1 / 3; color: #1769ed; border-radius: 50%; background: #edf5ff; }
.public-benefits h3 { margin: 0; font-size: 14px; }
.public-benefits p { margin: 5px 0 0; color: #77869b; font-size: 11px; line-height: 1.7; }

.public-heading { padding: 36px 0 22px; }
.public-heading h1 { margin: 0 0 7px; font-size: 46px; line-height: 1.25; }
.public-heading p { font-size: 15px; }
.features-section { padding-top: 18px; }
.feature-showcase-grid { grid-template-columns: 1.05fr 1.12fr; gap: 35px; }
.feature-visual-column { min-width: 0; }
.feature-preview-card { padding: 0; overflow: hidden; border-radius: 12px; }
.feature-lower-grid { margin-top: 15px; }
.feature-wide { min-height: 118px; }
.public-feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.public-feature-card { min-height: 205px; padding: 24px 20px; border-radius: 10px; }
.public-feature-card h2 { font-size: 18px; }
.public-cta { min-height: 115px; margin-bottom: 26px; padding: 22px 35px; border-radius: 10px; }
.public-cta .cta-logo img { width: 175px; display: block; }

.pricing-heading { padding-top: 27px; }
.pricing-heading h1 { font-size: 43px; }
.pricing-heading .pricing-toggle { width: fit-content; margin: 15px auto 0; }
.pricing-section { padding: 7px 0 8px; }
.pricing-public-grid { max-width: 1050px; }
.pricing-public-grid > .grid { gap: 28px; }
.pricing-public-grid .pricing-card { min-height: 310px; padding: 24px 30px; border-radius: 10px; }
.pricing-public-grid .pricing-card.featured { transform: translateY(-4px); }
.pricing-public-grid .price { margin: 12px 0; font-size: 28px; }
.pricing-public-grid .check-list { gap: 8px; font-size: 12px; }
.pricing-assurance { min-height: 52px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border: 1px solid #e5eaf1; border-radius: 9px; color: #516986; background: #fff; text-align: center; font-size: 12px; }
.pricing-extras { max-width: 1050px; grid-template-columns: .75fr 1.45fr; padding-bottom: 15px; }
.credit-grid { grid-template-columns: repeat(4, 1fr); }
.credit-option .btn { width: 100%; min-height: 34px; margin-top: 8px; padding: 0 8px; }
.trust-band { max-width: 1170px; min-height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; border: 1px solid #e5eaf1; border-radius: 9px; background: #fff; text-align: center; color: #526986; font-size: 12px; }

.blog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.blog-toolbar .search-wrap { width: 450px; }
.blog-section { padding-top: 10px; }
.blog-layout { direction: ltr; grid-template-columns: minmax(0, 1fr) 360px; }
.blog-layout > * { direction: rtl; }
.featured-post { min-height: 240px; padding: 18px; display: grid; grid-template-columns: .95fr 1.15fr; gap: 28px; align-items: center; }
.featured-post .blog-art { min-height: 205px; }
.featured-post h2 { margin: 11px 0; font-size: 25px; line-height: 1.55; }
.featured-post p { color: #708099; line-height: 1.9; }
.blog-art { min-height: 130px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #e9f3ff, #f1f6ff); }
.blog-art .icon-bubble { width: 86px; height: 86px; font-size: 36px; }
.blog-card { padding: 14px; }
.blog-card h3 { margin: 12px 0 8px; }
.blog-card .badge { margin-top: 10px; }
.blog-aside { display: grid; gap: 16px; }
.blog-aside > .card { padding: 20px; }
.blog-aside article:first-child > button { width: 100%; padding: 10px 0; display: grid; grid-template-columns: 42px 1fr; gap: 9px; border-bottom: 1px solid #edf1f5; background: transparent; text-align: right; cursor: pointer; }
.blog-aside button .icon-bubble { width: 38px; height: 38px; grid-row: 1 / 3; }
.blog-aside button small { color: #8a97a9; }
.newsletter form { display: grid; gap: 10px; }

.support-heading { padding: 38px 0 20px; text-align: right; }
.support-heading .container { padding-right: 55%; }
.support-cards { gap: 20px; }
.support-cards > .card { min-height: 200px; padding: 23px; text-align: center; }
.support-cards .line-icon { width: 48px; height: 48px; padding: 12px; color: #1769ed; border-radius: 10px; background: #edf5ff; }
.support-cards h2 { margin: 14px 0 7px; font-size: 17px; }
.support-cards p { min-height: 48px; color: #718199; font-size: 12px; line-height: 1.8; }
.support-layout { display: grid; grid-template-columns: .85fr 1.15fr .85fr; gap: 22px; }
.support-layout > .card { padding: 22px; }
.help-center > button { width: 100%; min-height: 57px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid #e7edf4; border-radius: 7px; background: #fff; cursor: pointer; text-align: right; }
.help-center > button + button { margin-top: 8px; }
.help-center .line-icon { width: 35px; height: 35px; padding: 8px; color: #1769ed; border-radius: 7px; background: #edf5ff; }
.help-center button span { flex: 1; }
.help-center button strong,.help-center button small { display: block; }
.help-center button small { margin-top: 3px; color: #8290a3; font-size: 10px; }
.faq-panel details { padding: 13px; margin-top: 8px; border: 1px solid #e7edf4; border-radius: 7px; }
.faq-panel summary { cursor: pointer; }
.faq-panel p { color: #718199; line-height: 1.8; }
.support-form-card form { margin-top: 16px; gap: 10px; }

.public-footer { min-height: 82px; margin-top: auto; }
.public-footer-inner { min-height: 82px; direction: rtl; }
.footer-brand-mini { display: flex; align-items: center; gap: 12px; color: #7c899c; font-size: 10px; }
.footer-brand-mini .brand-mark-image { width: 32px; height: 32px; }
.footer-brand-mini .brand-wordmark { font-size: 16px; }
.footer-brand-mini .brand { pointer-events: none; }
.footer-links { gap: 25px; }
.footer-links button { font-size: 11px; }
.footer-social { direction: ltr; gap: 8px; }
.footer-social a { width: 36px; height: 36px; }

.auth-light-header { min-height: 89px; padding: 0 5.2vw; direction: rtl; }
.auth-light-header .brand-mark-image { width: 54px; height: 54px; }
.auth-light-header .brand-wordmark { font-size: 25px; }
.auth-light-shell,
.reset-light-shell { width: min(1180px, calc(100% - 50px)); min-height: 650px; margin: 45px auto 36px; gap: 36px; direction: rtl; }
.auth-light-shell > *,
.reset-light-shell > * { direction: rtl; }
.auth-light-panel,
.reset-light-panel { padding: 48px; border-radius: 14px; box-shadow: 0 14px 35px rgba(34, 65, 108, .08); }
.auth-light-panel h1,
.reset-light-panel h1 { font-size: 35px; }
.auth-light-panel form { gap: 14px; }
.auth-light-panel .input,
.reset-light-panel .input { min-height: 54px; }
.auth-light-visual,
.reset-light-visual { padding: 34px; border: 0; border-radius: 14px; box-shadow: none; background: radial-gradient(circle at 40% 35%, #fff 0, #f7fbff 55%, #edf5ff 100%); }
.auth-logo-large { width: 100%; display: grid; place-items: center; }
.auth-light-visual h2 { margin: 18px 0 7px; color: #112b58; font-size: 25px; }
.auth-light-visual > p { max-width: 520px; color: #6f7f98; font-size: 15px; line-height: 1.9; }
.auth-benefits { width: min(100%, 460px); margin-top: 25px; padding: 18px; border: 1px solid #e4ebf4; border-radius: 12px; background: rgba(255,255,255,.8); }
.auth-benefits > div { display: flex; align-items: center; gap: 12px; text-align: right; }
.auth-benefits > div + div { margin-top: 12px; }
.auth-benefits .line-icon { width: 38px; height: 38px; padding: 9px; color: #1769ed; border-radius: 8px; background: #edf5ff; }
.auth-light-shell.login .auth-benefits { display: none; }
.auth-light-shell.login .auth-light-visual h2 { font-size: 28px; }
.auth-light-shell.login .brand-logo-stacked { width: 330px; }
.reset-light-shell { gap: 0; overflow: hidden; border: 1px solid #dfe7f1; border-radius: 14px; box-shadow: 0 14px 34px rgba(34, 65, 108, .08); }
.reset-light-panel,
.reset-light-visual { border-radius: 0; box-shadow: none; }
.mail-visual { width: 300px; height: 225px; border-radius: 45%; }
.mail-visual img { width: 210px; height: auto; }

@media (max-width: 1220px) {
  .public-site .nav-inner { grid-template-columns: 210px 1fr 420px; gap: 12px; }
  .brand-mark-image { width: 46px; height: 46px; }
  .brand-wordmark { font-size: 22px; }
  .public-site .nav-links { gap: 19px; }
  .marketing-hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .marketing-copy h1 { font-size: 38px; }
  .feature-showcase-grid { grid-template-columns: 1fr; }
  .feature-visual-column { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
  .feature-lower-grid { margin: 0; grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .public-site .nav-inner { grid-template-columns: 1fr auto; }
  .public-site .nav-links,
  .public-site .nav-actions { display: none; }
  .public-site .mobile-menu { display: inline-grid; }
  .public-site .public-nav.open .nav-inner { grid-template-columns: 1fr auto; }
  .public-site .public-nav.open .nav-links,
  .public-site .public-nav.open .nav-actions { grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; justify-content: center; }
  .marketing-hero-grid { grid-template-columns: 1fr; }
  .marketing-copy { text-align: center; }
  .marketing-copy .hero-actions { justify-content: center; }
  .hero-product-preview { order: 2; }
  .marketing-strip .grid,
  .marketing-metrics .container,
  .public-benefits .grid,
  .public-feature-grid,
  .pricing-assurance,
  .trust-band { grid-template-columns: repeat(2, 1fr); }
  .blog-layout,
  .support-layout,
  .auth-light-shell,
  .reset-light-shell { grid-template-columns: 1fr; }
  .blog-aside { grid-template-columns: 1fr 1fr; }
  .support-heading { text-align: center; }
  .support-heading .container { padding-right: 0; }
}

@media (max-width: 640px) {
  .public-site .container,
  .public-footer .container { width: min(100% - 28px, 1512px); }
  .brand-mark-image { width: 42px; height: 42px; }
  .brand-wordmark { font-size: 20px; }
  .marketing-copy h1 { font-size: 31px; }
  .marketing-copy .hero-actions { flex-direction: column; }
  .marketing-copy .hero-actions .btn { width: 100%; }
  .marketing-strip .grid,
  .marketing-metrics .container,
  .public-benefits .grid,
  .public-feature-grid,
  .feature-visual-column,
  .feature-lower-grid,
  .pricing-assurance,
  .pricing-extras,
  .credit-grid,
  .trust-band,
  .support-cards { grid-template-columns: 1fr; }
  .public-benefits article { border-left: 0; border-bottom: 1px solid #e8edf3; }
  .blog-toolbar { align-items: stretch; flex-direction: column; }
  .blog-toolbar .search-wrap { width: 100%; }
  .featured-post { grid-template-columns: 1fr; }
  .blog-grid,
  .blog-aside { grid-template-columns: 1fr; }
  .public-footer-inner { padding: 18px 0; flex-direction: column; }
  .footer-brand-mini { flex-direction: column; }
  .auth-light-header .brand-mark-image { width: 42px; height: 42px; }
  .auth-light-header .brand-wordmark { font-size: 20px; }
  .auth-light-shell,
  .reset-light-shell { width: min(100% - 24px, 1180px); margin: 24px auto; }
  .auth-light-panel,
  .auth-light-visual,
  .reset-light-panel,
  .reset-light-visual { padding: 25px; }
  .auth-light-visual { order: 2; }
}

/* Public navigation uses a clean underline state, matching the approved references. */
.public-site .nav-link,
.public-site .nav-link:hover,
.public-site .nav-link.active {
  position: relative;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.public-site .nav-link::after {
  content: "";
  width: 0;
  height: 2px;
  position: absolute;
  right: 50%;
  bottom: 0;
  border-radius: 2px;
  background: #1769ed;
  transform: translateX(50%);
  transition: width .18s ease;
}
.public-site .nav-link:hover,
.public-site .nav-link.active { color: #1769ed !important; }
.public-site .nav-link:hover::after { width: 55%; }
.public-site .nav-link.active::after { width: 100%; }

.support-hero { padding: 34px 0 20px; }
.support-intro-row {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.8fr);
  gap: 22px;
  align-items: stretch;
}
.support-intro-copy {
  padding: 30px 8px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.support-intro-copy .eyebrow { width: fit-content; }
.support-intro-copy h1 { margin: 13px 0 8px; color: #0c2148; font-size: 44px; }
.support-intro-copy p { max-width: 420px; margin: 0; color: #6f7f98; line-height: 1.95; }
.support-intro-row .support-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.support-intro-row .support-cards > .card {
  min-height: 202px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.support-intro-row .support-cards .line-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: #1769ed;
  border-radius: 10px;
  background: #edf5ff;
}
.support-intro-row .support-cards h2 { margin: 14px 0 7px; font-size: 16px; }
.support-intro-row .support-cards p { min-height: 46px; margin: 0 0 13px; color: #718199; font-size: 12px; line-height: 1.8; }
.support-intro-row .support-cards .btn { width: 100%; min-height: 37px; margin-top: auto; }
.support-page .support-body { padding-top: 4px; }
.support-page .support-layout { grid-template-columns: .88fr 1.18fr .9fr; }
.support-page .support-layout > .card { border-radius: 10px; }

.policy-hero {
  padding: 52px 0 42px;
  text-align: center;
  background: linear-gradient(180deg, #f7fbff, #fff);
}
.policy-hero h1 { margin: 15px 0 10px; color: #0c2148; font-size: clamp(36px, 4vw, 52px); }
.policy-hero p { max-width: 760px; margin: 0 auto; color: #657793; font-size: 16px; line-height: 2; }
.policy-hero small { display: block; margin-top: 14px; color: #8a98aa; }
.policy-section { padding: 34px 0 58px; }
.policy-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 40px; align-items: start; }
.policy-summary {
  padding: 22px;
  position: sticky;
  top: 103px;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 69, 113, .05);
}
.policy-summary h2 { margin: 0 0 13px; color: #17345f; font-size: 17px; }
.policy-summary a { min-height: 43px; display: flex; align-items: center; gap: 10px; color: #526986; border-bottom: 1px solid #edf1f5; font-size: 12px; }
.policy-summary a span { color: #1769ed; font-weight: 800; }
.policy-summary .btn { width: 100%; margin-top: 18px; }
.policy-content { border-top: 1px solid #e5eaf1; }
.policy-content > section { padding: 29px 2px; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 17px; border-bottom: 1px solid #e5eaf1; scroll-margin-top: 110px; }
.policy-content > section > span { width: 42px; height: 42px; display: grid; place-items: center; color: #1769ed; border-radius: 9px; background: #edf5ff; font-weight: 850; }
.policy-content h2 { margin: 4px 0 9px; color: #17345f; font-size: 21px; }
.policy-content p { margin: 0; color: #566d8d; line-height: 2.05; }
.policy-contact { margin-top: 27px; padding: 24px; display: flex; align-items: center; gap: 18px; border: 1px solid #dfe8f4; border-radius: 10px; background: #f7fbff; }
.policy-contact strong { color: #17345f; }
.policy-contact p { flex: 1; font-size: 13px; }

.about-hero { padding: 48px 0; background: linear-gradient(180deg, #f7fbff, #fff); }
.about-hero-grid { min-height: 425px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 58px; align-items: center; }
.about-hero h1 { margin: 16px 0 14px; color: #0c2148; font-size: clamp(38px, 4.3vw, 58px); line-height: 1.4; }
.about-hero p { color: #657793; font-size: 16px; line-height: 2; }
.about-brand-visual { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 18px; border: 1px solid #dfe8f4; border-radius: 14px; background: radial-gradient(circle at center, #fff, #f2f8ff); }
.about-brand-visual .brand-logo-stacked { width: min(390px, 82%); }
.about-brand-visual strong { color: #27496f; font-size: 16px; }
.about-story .section-head { max-width: 760px; }
.about-value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid #e4eaf2; border-radius: 10px; overflow: hidden; background: #e4eaf2; }
.about-value-grid article { min-height: 225px; padding: 30px 24px; background: #fff; }
.about-value-grid .line-icon { width: 46px; height: 46px; padding: 10px; color: #1769ed; border-radius: 10px; background: #edf5ff; }
.about-value-grid h3 { margin: 18px 0 9px; color: #17345f; }
.about-value-grid p { color: #6a7c96; font-size: 13px; line-height: 1.9; }
.about-principles { background: #f8fbff; }
.about-principles-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-principles h2 { margin: 14px 0 10px; color: #17345f; font-size: 32px; }
.about-principles p { color: #667993; line-height: 2; }
.about-points { display: grid; gap: 12px; }
.about-points > div { min-height: 78px; padding: 15px 18px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #dfe7f0; }
.about-points b { color: #1769ed; font-size: 22px; }
.about-points strong,
.about-points small { display: block; }
.about-points strong { color: #18365e; }
.about-points small { margin-top: 4px; color: #74849b; }

@media (max-width: 1100px) {
  .support-intro-row { grid-template-columns: 1fr; }
  .support-intro-copy { padding: 14px 0; text-align: center; align-items: center; }
  .support-intro-copy p { max-width: 700px; }
  .policy-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 26px; }
  .about-value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 940px) {
  .support-intro-row .support-cards { grid-template-columns: repeat(2, 1fr); }
  .policy-layout,
  .about-hero-grid,
  .about-principles-grid { grid-template-columns: 1fr; }
  .policy-summary { position: static; }
  .about-brand-visual { min-height: 300px; }
}

@media (max-width: 640px) {
  .support-intro-row .support-cards,
  .about-value-grid { grid-template-columns: 1fr; }
  .support-intro-copy h1 { font-size: 36px; }
  .policy-contact { align-items: stretch; flex-direction: column; }
  .policy-contact .btn { width: 100%; }
  .policy-content > section { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .policy-content > section > span { width: 36px; height: 36px; }
  .about-hero { padding-top: 30px; }
  .about-hero-grid { gap: 28px; }
  .about-hero .hero-actions { flex-direction: column; }
  .about-hero .hero-actions .btn { width: 100%; }
}

/* Final public-page corrections: support geometry, editorial media, and themes. */
html,
body { max-width: 100%; overflow-x: clip; }

.support-page .support-body {
  width: 100%;
  padding: 4px 0 32px;
  display: block !important;
}
.support-page .support-layout {
  width: min(1512px, calc(100% - 96px));
  margin-inline: auto;
  display: grid !important;
  grid-template-columns: .92fr 1.16fr .92fr;
  gap: 22px;
  align-items: stretch;
}
.support-page .support-layout > .card,
.support-intro-row > *,
.support-intro-row .support-cards > * { min-width: 0; }
.support-page .support-layout > .card { padding: 22px; }
.support-form-card .textarea { min-height: 92px; }

.blog-art {
  overflow: hidden;
  border: 1px solid #e5edf7;
}
.blog-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.featured-post .blog-art { height: 205px; }
.blog-card .blog-art { height: 130px; }
.blog-aside article:first-child > button img {
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  border-radius: 8px;
  object-fit: cover;
}
html[dir="rtl"] .blog-layout > * { direction: rtl; }
html[dir="ltr"] .blog-layout > * { direction: ltr; }
html[dir="ltr"] .blog-aside article:first-child > button { text-align: left; }
html[dir="ltr"] .public-footer-inner,
html[dir="ltr"] .auth-light-header,
html[dir="ltr"] .auth-light-shell,
html[dir="ltr"] .reset-light-shell,
html[dir="ltr"] .auth-light-shell > *,
html[dir="ltr"] .reset-light-shell > * { direction: ltr; }
html[dir="ltr"] .auth-benefits > div { text-align: left; }

.article-page { padding-bottom: 52px; }
.article-hero {
  padding: 52px 0 44px;
  text-align: center;
  background: linear-gradient(180deg, #f6faff, #fff);
}
.article-hero .container { max-width: 950px; }
.article-hero h1 { margin: 16px auto 12px; color: #0c2148; font-size: clamp(34px, 4.3vw, 54px); line-height: 1.45; }
.article-hero p { max-width: 760px; margin: 0 auto 12px; color: #687b98; font-size: 16px; line-height: 1.95; }
.article-hero small { color: #8795a9; }
.article-body { max-width: 1050px; margin: 34px auto 0; }
.article-cover { width: 100%; height: 390px; display: block; border: 1px solid #dfe8f4; border-radius: 12px; object-fit: cover; }
.article-content { max-width: 850px; margin: 38px auto; color: #455b7b; font-size: 16px; line-height: 2.1; }
.article-lead { padding: 22px 24px; border-inline-start: 4px solid #1769ed; border-radius: 8px; background: #f4f8ff; color: #294b75; }
.article-content > section { padding: 27px 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px; border-bottom: 1px solid #e4eaf2; }
.article-content > section > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 9px; background: #edf5ff; color: #1769ed; font-weight: 850; }
.article-content h2 { margin: 3px 0 9px; color: #17345f; font-size: 23px; }
.article-content p { margin: 0; }
.article-takeaways { margin-top: 28px; padding: 24px; border: 1px solid #cfe1f7; border-radius: 10px; background: #f7fbff; }
.article-takeaways h2 { margin-top: 0; }
.article-takeaways ul { margin: 0; padding-inline-start: 22px; }
.article-takeaways li + li { margin-top: 8px; }
.article-body > .public-cta { margin-top: 32px; }

/* Dark mode is declared last so later light-page rules cannot override it. */
:root[data-theme="dark"] body,
:root[data-theme="dark"] .public-site,
:root[data-theme="dark"] .public-site main,
:root[data-theme="dark"] .auth-light-page {
  color: #eaf2fb;
  background: #07111f;
}
:root[data-theme="dark"] .public-site .public-nav,
:root[data-theme="dark"] .public-footer,
:root[data-theme="dark"] .auth-light-header {
  color: #eaf2fb;
  border-color: #22354c;
  background: rgba(7, 17, 31, .96);
}
:root[data-theme="dark"] .public-site .nav-link,
:root[data-theme="dark"] .public-site .nav-actions,
:root[data-theme="dark"] .public-footer button,
:root[data-theme="dark"] .public-footer a,
:root[data-theme="dark"] .auth-light-header .link-button { color: #c6d4e6; }
:root[data-theme="dark"] .public-site .card,
:root[data-theme="dark"] .policy-summary,
:root[data-theme="dark"] .support-page .help-center > button,
:root[data-theme="dark"] .faq-panel details,
:root[data-theme="dark"] .pricing-assurance,
:root[data-theme="dark"] .trust-band,
:root[data-theme="dark"] .marketing-metrics .container,
:root[data-theme="dark"] .dashboard-reference,
:root[data-theme="dark"] .auth-light-panel,
:root[data-theme="dark"] .reset-light-panel,
:root[data-theme="dark"] .auth-benefits {
  color: #eaf2fb;
  border-color: #22354c;
  background: #0c1828;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}
:root[data-theme="dark"] .marketing-hero,
:root[data-theme="dark"] .public-heading,
:root[data-theme="dark"] .policy-hero,
:root[data-theme="dark"] .about-hero,
:root[data-theme="dark"] .article-hero,
:root[data-theme="dark"] .about-principles {
  background: linear-gradient(180deg, #0b1728, #07111f);
}
:root[data-theme="dark"] .about-brand-visual,
:root[data-theme="dark"] .auth-light-visual,
:root[data-theme="dark"] .reset-light-visual {
  color: #eaf2fb;
  border-color: #22354c;
  background: radial-gradient(circle at 45% 35%, #14263b, #0a1524 68%);
}
:root[data-theme="dark"] .public-site h1,
:root[data-theme="dark"] .public-site h2,
:root[data-theme="dark"] .public-site h3,
:root[data-theme="dark"] .public-site strong,
:root[data-theme="dark"] .auth-light-page h1,
:root[data-theme="dark"] .auth-light-page h2,
:root[data-theme="dark"] .auth-light-page h3,
:root[data-theme="dark"] .about-brand-visual strong,
:root[data-theme="dark"] .policy-summary h2,
:root[data-theme="dark"] .policy-content h2,
:root[data-theme="dark"] .policy-contact strong,
:root[data-theme="dark"] .article-content h2,
:root[data-theme="dark"] .support-intro-copy h1 { color: #f2f7fd; }
:root[data-theme="dark"] .public-site p,
:root[data-theme="dark"] .public-site small,
:root[data-theme="dark"] .public-site .muted,
:root[data-theme="dark"] .support-intro-copy p,
:root[data-theme="dark"] .support-cards p,
:root[data-theme="dark"] .policy-hero p,
:root[data-theme="dark"] .policy-content p,
:root[data-theme="dark"] .about-page p,
:root[data-theme="dark"] .about-points small,
:root[data-theme="dark"] .article-hero p,
:root[data-theme="dark"] .article-content,
:root[data-theme="dark"] .auth-light-page p { color: #9eb0c7; }
:root[data-theme="dark"] .public-site .input,
:root[data-theme="dark"] .public-site .select,
:root[data-theme="dark"] .public-site .textarea,
:root[data-theme="dark"] .public-site .chip,
:root[data-theme="dark"] .auth-light-page .input {
  color: #eaf2fb;
  border-color: #2a3d55;
  background: #0b1728;
}
:root[data-theme="dark"] .public-site .input::placeholder,
:root[data-theme="dark"] .public-site .textarea::placeholder,
:root[data-theme="dark"] .auth-light-page .input::placeholder { color: #72859d; }
:root[data-theme="dark"] .public-site .btn-secondary,
:root[data-theme="dark"] .public-site .btn-ghost,
:root[data-theme="dark"] .auth-light-page .btn-secondary,
:root[data-theme="dark"] .locale-link {
  color: #d7e3f1;
  border-color: #2a3d55;
  background: #0e1c2e;
}
:root[data-theme="dark"] .public-site .btn-primary,
:root[data-theme="dark"] .auth-light-page .btn-primary { color: #fff; }
:root[data-theme="dark"] .marketing-mini,
:root[data-theme="dark"] .public-benefits article,
:root[data-theme="dark"] .about-value-grid article { background: #0c1828; border-color: #22354c; }
:root[data-theme="dark"] .about-value-grid { border-color: #22354c; background: #22354c; }

/* Account storage, Salla sync, and dashboard finishing corrections. */
.sidebar-foot { display: none !important; }
.avatar-image { object-fit: cover; background: #fff; }
.order-number-copy {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #123263;
  border: 1px solid #dbe6f3;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}
.order-number-copy:hover { color: #0d64e8; border-color: #84b4f7; background: #f4f8ff; }
.order-number-copy svg { width: 16px; height: 16px; }
.order-links-table-card { width: 100%; max-width: 100%; overflow: visible; }
.order-links-table-card .compare {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  overflow-x: auto;
  scrollbar-gutter: stable;
}
.order-links-table-card--links table { min-width: 1320px; }
.order-links-table-card--templates table { min-width: 980px; }
.order-links-table-card th:first-child,
.order-links-table-card td:first-child { position: sticky; inset-inline-start: 0; z-index: 2; background: inherit; }
.order-links-table-card th:last-child,
.order-links-table-card td:last-child { position: sticky; inset-inline-end: 0; z-index: 2; background: inherit; box-shadow: -8px 0 15px rgba(30, 60, 100, .05); }
.account-photo-panel { grid-column: span 1; }
.avatar-editor { margin-bottom: 18px; display: flex; align-items: center; gap: 16px; }
.avatar-editor > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.avatar-editor small { width: 100%; color: #71809a; }
.settings-avatar-image,
.settings-avatar-fallback { width: 78px; height: 78px; flex: 0 0 78px; border-radius: 50%; }
.settings-avatar-image { display: block; object-fit: cover; border: 3px solid #e8f2ff; }
.settings-avatar-fallback { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #13aec0, #285ce9); font-size: 28px; font-weight: 800; }
.storage-summary { margin-top: 8px; display: flex; align-items: baseline; justify-content: space-between; }
.storage-summary strong { color: #0e2b57; font-size: 24px; }
.storage-summary span { color: #71809a; }
.storage-progress { height: 10px; margin: 12px 0 8px; overflow: hidden; border-radius: 999px; background: #edf2f8; }
.storage-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #12b5b4, #2762ed); }
.storage-breakdown { margin: 15px 0; display: grid; gap: 8px; }
.storage-breakdown > div { padding: 9px 0; display: flex; justify-content: space-between; border-bottom: 1px solid #edf1f6; }
.salla-integration-card { display: grid; gap: 20px; padding: 22px; overflow: hidden; }
.salla-card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.salla-brand { display: flex; align-items: center; gap: 15px; }
.salla-brand h2 { margin: 0 0 5px; }
.salla-brand p { margin: 0; color: #71809a; line-height: 1.8; }
.salla-logo-shell { width: 92px; height: 62px; flex: 0 0 92px; display: grid; place-items: center; padding: 9px; border: 1px solid #dce7ea; border-radius: 10px; background: #fff; box-shadow: 0 7px 18px rgba(0, 73, 86, .08); }
.salla-logo { width: 100%; height: 100%; display: block; object-fit: contain; }
.salla-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.salla-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.salla-setting-panel { min-height: 116px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #e2e9f1; border-radius: 10px; background: #fbfdff; }
.salla-setting-panel h3,
.salla-rules-panel h3 { margin: 0 0 5px; color: #102b55; font-size: 16px; }
.salla-setting-panel p,
.salla-rules-panel p { margin: 0; color: #71809a; font-size: 13px; line-height: 1.7; }
.compact-field { min-width: 180px; }
.compact-field > span { font-size: 12px; }
.salla-toggle { min-width: 132px; }
.salla-rules-panel { grid-column: 1 / -1; padding: 17px; border: 1px solid #dbe6f0; border-radius: 10px; background: #fff; }
.salla-rules-head,
.salla-rules-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.salla-rule-list { margin-top: 15px; display: grid; gap: 9px; }
.salla-rule-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(150px, 210px) 42px; align-items: end; gap: 10px; }
.salla-rule-row label { display: grid; gap: 6px; color: #536985; font-size: 12px; font-weight: 700; }
.salla-rule-row .input { min-height: 42px; }
.salla-rule-row .icon-only { width: 42px; height: 42px; min-height: 42px; font-size: 22px; }
.salla-rules-empty { min-height: 84px; display: grid; place-items: center; align-content: center; gap: 5px; color: #71809a; border: 1px dashed #cfdceb; border-radius: 9px; background: #f9fbfd; text-align: center; }
.salla-rules-empty strong { color: #294568; }
.salla-rules-actions { margin-top: 13px; padding-top: 13px; color: #71809a; border-top: 1px solid #edf1f6; font-size: 12px; }
.salla-meta { grid-column: 1 / -1; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px 26px; color: #71809a; border-top: 1px solid #edf1f6; font-size: 13px; }
.salla-app-card { margin-top: 18px; padding: 24px; display: grid; gap: 18px; }
.salla-app-description { margin: 0; color: #637692; line-height: 1.9; }
.salla-connected-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.salla-connected-meta > div { padding: 14px 16px; display: grid; gap: 5px; border: 1px solid #e2e9f1; border-radius: 10px; background: #f9fbfd; }
.salla-connected-meta span { color: #71809a; font-size: 12px; }
.salla-connected-meta strong { color: #102b55; }
.salla-settings-workspace { margin-top: 18px; padding: 22px; }
.apps-settings-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.salla-settings-form { display: grid; gap: 16px; }
.salla-color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; }
.salla-color-row > strong { margin-inline-end: 8px; color: #294568; }
.color-choice { width: 38px; height: 38px; position: relative; display: grid; place-items: center; border: 1px solid #dce5ef; border-radius: 8px; background: #fff; cursor: pointer; }
.color-choice input { position: absolute; opacity: 0; pointer-events: none; }
.color-choice span { width: 24px; height: 24px; border-radius: 6px; background: var(--choice); }
.color-choice:has(input:checked) { border: 2px solid var(--choice); box-shadow: 0 0 0 3px color-mix(in srgb, var(--choice) 14%, transparent); }
.apps-toggle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.apps-toggle-list .salla-setting-panel { min-height: 98px; }
.apps-toggle-list input[type="checkbox"] { width: 42px; height: 23px; accent-color: #0fb7aa; }
.salla-duration-line { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.salla-live-preview { min-height: 420px; position: sticky; top: 96px; padding: 24px; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 14px; color: #102b55; border: 1px solid color-mix(in srgb, var(--salla-preview) 34%, #dce5ef); border-radius: 14px; background: linear-gradient(155deg, color-mix(in srgb, var(--salla-preview) 10%, #fff), #fff 58%); text-align: center; }
.salla-live-preview::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: var(--salla-preview); }
.salla-live-preview .preview-label { position: absolute; inset: 18px 18px auto auto; color: #71809a; font-size: 11px; }
.salla-live-preview > img { width: 78px; height: 78px; object-fit: contain; }
.salla-live-preview h3 { margin: 2px 0 0; font-size: 21px; }
.salla-live-preview > p { margin: 0; color: #71809a; font-size: 12px; line-height: 1.8; }
.preview-order { width: 100%; padding: 18px; display: grid; gap: 8px; border: 1px solid #e1e8f1; border-radius: 10px; background: #fff; }
.preview-order strong { color: var(--salla-preview); font-size: 25px; }
.preview-order small { color: #71809a; }
.inline-notice.warning { margin: 0; padding: 12px 14px; color: #9a6300; border: 1px solid #f4d28a; border-radius: 9px; background: #fff9e9; }
:root[data-theme="dark"] .brand-wordmark { color: #f4f9ff; }
:root[data-theme="dark"] .brand-mark-image { filter: none; }
:root[data-theme="dark"] .order-number-copy { color: #dce9f7; border-color: #2a3d55; background: #0f1d30; }
:root[data-theme="dark"] .storage-summary strong { color: #eff7ff; }
:root[data-theme="dark"] .storage-progress { background: #17283d; }
:root[data-theme="dark"] .storage-breakdown > div,
:root[data-theme="dark"] .salla-meta,
:root[data-theme="dark"] .salla-rules-actions { border-color: #22354c; }
:root[data-theme="dark"] .salla-setting-panel,
:root[data-theme="dark"] .salla-rules-panel,
:root[data-theme="dark"] .salla-rules-empty { border-color: #29415d; background: #101f32; }
:root[data-theme="dark"] .salla-setting-panel h3,
:root[data-theme="dark"] .salla-rules-panel h3,
:root[data-theme="dark"] .salla-rules-empty strong { color: #eff7ff; }
:root[data-theme="dark"] .salla-brand p,
:root[data-theme="dark"] .salla-meta,
:root[data-theme="dark"] .avatar-editor small { color: #9eb0c7; }
:root[data-theme="dark"] .salla-app-card,
:root[data-theme="dark"] .salla-settings-workspace,
:root[data-theme="dark"] .salla-live-preview,
:root[data-theme="dark"] .preview-order,
:root[data-theme="dark"] .salla-connected-meta > div,
:root[data-theme="dark"] .color-choice { color: #dce9f7; border-color: #29415d; background: #0f1d30; }
:root[data-theme="dark"] .salla-live-preview { background: linear-gradient(155deg, color-mix(in srgb, var(--salla-preview) 13%, #0f1d30), #0f1d30 58%); }
:root[data-theme="dark"] .salla-live-preview h3,
:root[data-theme="dark"] .salla-connected-meta strong,
:root[data-theme="dark"] .salla-color-row > strong { color: #eff7ff; }
:root[data-theme="dark"] .inline-notice.warning { color: #ffd985; border-color: #6f5520; background: #2a210e; }

@media (max-width: 1100px) {
  .apps-settings-layout { grid-template-columns: 1fr; }
  .salla-live-preview { position: static; min-height: 330px; }
}
@media (max-width: 760px) {
  .salla-card-head,
  .salla-brand { align-items: flex-start; }
  .salla-card-head { flex-direction: column; }
  .salla-connected-meta,
  .apps-toggle-list,
  .salla-duration-line { grid-template-columns: 1fr; }
  .salla-header-actions .btn { width: 100%; }
  .salla-rule-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .salla-card-head { align-items: flex-start; flex-direction: column; }
  .salla-header-actions { width: 100%; justify-content: flex-start; }
  .salla-settings-grid { grid-template-columns: 1fr; }
  .salla-rules-panel { grid-column: auto; }
  .salla-rule-row { grid-template-columns: minmax(0, 1fr) minmax(120px, 170px) 42px; }
}
@media (max-width: 620px) {
  .salla-integration-card { padding: 16px; }
  .salla-brand { align-items: flex-start; flex-direction: column; }
  .salla-setting-panel,
  .salla-rules-head,
  .salla-rules-actions { align-items: stretch; flex-direction: column; }
  .salla-rule-row { grid-template-columns: minmax(0, 1fr) 42px; }
  .salla-rule-row label:first-child { grid-column: 1 / -1; }
  .salla-rules-actions .btn { width: 100%; }
}
:root[data-theme="dark"] .blog-art,
:root[data-theme="dark"] .article-takeaways,
:root[data-theme="dark"] .article-lead,
:root[data-theme="dark"] .policy-contact { border-color: #29415d; background: #101f32; color: #c8d8ea; }
:root[data-theme="dark"] .policy-content,
:root[data-theme="dark"] .policy-content > section,
:root[data-theme="dark"] .about-points > div,
:root[data-theme="dark"] .blog-aside article:first-child > button { border-color: #22354c; }
:root[data-theme="dark"] .line-icon,
:root[data-theme="dark"] .support-intro-row .support-cards .line-icon,
:root[data-theme="dark"] .help-center .line-icon,
:root[data-theme="dark"] .about-value-grid .line-icon,
:root[data-theme="dark"] .auth-benefits .line-icon,
:root[data-theme="dark"] .article-content > section > span { color: #55c9ee; background: rgba(23, 105, 237, .14); }

@media (max-width: 1100px) {
  .support-page .support-layout { width: min(100% - 48px, 1512px); grid-template-columns: 1fr 1fr; }
  .support-page .support-form-card { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .support-page .support-layout { width: min(100% - 28px, 1512px); grid-template-columns: 1fr; }
  .support-page .support-form-card { grid-column: auto; }
  .article-cover { height: 230px; }
  .article-content { margin-top: 24px; }
  .article-content > section { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .article-content > section > span { width: 36px; height: 36px; }
}

/* Order information studio and secure public order page. */
.btn-success { color: #fff; border-color: #10a85f; background: linear-gradient(110deg, #18b66b, #08a44f); box-shadow: 0 7px 17px rgba(16, 185, 99, .18); }
.order-link-workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr); gap: 18px; align-items: start; }
.order-link-builder,
.order-link-preview-panel { min-width: 0; padding: 20px; position: relative; }
.order-preview-carousel { display: grid; gap: 14px; }
.order-preview-toolbar { min-height: 48px; padding: 5px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; border: 1px solid #dce5f0; border-radius: 10px; background: #f6f9fc; }
.order-preview-arrow { width: 36px; height: 36px; display: grid; place-items: center; color: #1769ed; border: 1px solid #d4e2f5; border-radius: 8px; background: #fff; cursor: pointer; font-size: 25px; line-height: 1; }
.order-preview-arrow:disabled { color: #aab8ca; background: #f4f7fa; cursor: not-allowed; opacity: .65; }
.order-preview-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.order-preview-tabs button { min-height: 36px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #607590; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.order-preview-tabs button b { width: 20px; height: 20px; display: grid; place-items: center; color: #1769ed; border: 1px solid #cfe0fb; border-radius: 50%; background: #fff; font-size: 10px; }
.order-preview-tabs button.active { color: #fff; background: linear-gradient(115deg, #08a9b7, #2468e9); box-shadow: 0 5px 13px rgba(36, 104, 233, .15); }
.order-preview-tabs button.active b { color: #1769ed; border-color: #fff; }
.order-preview-viewport { min-height: 520px; position: relative; overflow: hidden; }
.order-preview-slide { width: 100%; position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: translateX(22px); pointer-events: none; transition: opacity .24s ease, transform .24s ease, visibility .24s; }
.order-preview-slide.active { position: relative; visibility: visible; opacity: 1; transform: translateX(0); pointer-events: auto; }
.order-lookup-preview { min-height: 520px; position: relative; padding: 26px; display: grid; align-content: start; overflow: hidden; color: #17345e; border: 1px solid color-mix(in srgb, var(--order-theme) 38%, #dbe5f1); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(31, 64, 110, .08); }
.order-lookup-accent { height: 130px; position: absolute; inset: 0 0 auto; opacity: .12; background: var(--order-theme); clip-path: polygon(0 0, 100% 0, 100% 58%, 73% 40%, 49% 72%, 25% 45%, 0 66%); }
.order-lookup-brand { min-height: 104px; position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.order-lookup-brand h2 { margin: 0; color: #102b55; font-size: 22px; }
.order-lookup-brand p { margin: 5px 0 0; color: #72819a; font-size: 11px; }
.order-lookup-content { width: min(390px, 100%); margin: 30px auto 0; display: grid; justify-items: stretch; gap: 13px; text-align: center; }
.order-lookup-icon { width: 58px; height: 58px; margin: 0 auto; display: grid; place-items: center; color: var(--order-theme); border-radius: 50%; background: color-mix(in srgb, var(--order-theme) 10%, #fff); }
.order-lookup-icon .line-icon { width: 27px; height: 27px; }
.order-lookup-content h3 { margin: 0; color: #102b55; font-size: 19px; }
.order-lookup-content > p { margin: -5px 0 5px; color: #70819a; font-size: 12px; line-height: 1.8; }
.order-lookup-content label { display: grid; gap: 7px; text-align: start; color: #365173; font-size: 11px; font-weight: 700; }
.order-lookup-input { min-height: 48px; display: flex; align-items: center; gap: 8px; border: 1px solid #dce5ef; border-radius: 8px; background: #fbfdff; }
.order-lookup-input input { min-width: 0; flex: 1; padding: 0 13px; color: #6f829c; border: 0; outline: 0; background: transparent; direction: ltr; font: inherit; }
.order-lookup-input .line-icon { width: 18px; margin-inline-end: 12px; color: var(--order-theme); }
.order-lookup-content .btn { min-height: 48px; }
.order-themed-action,
.order-lookup-content .order-themed-action {
  color: #fff;
  border-color: var(--order-theme);
  background: var(--order-theme);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--order-theme) 24%, transparent);
}
.order-themed-action:hover,
.order-lookup-content .order-themed-action:hover { filter: brightness(.94); }
.order-lookup-content > small { display: flex; align-items: center; justify-content: center; gap: 6px; color: #7a8ba2; font-size: 10px; }
.order-lookup-content > small .line-icon { width: 15px; height: 15px; color: var(--order-theme); }
.order-lookup-preview > .order-card-footer { margin-top: 34px; }
.order-lookup-preview.order-style-modern .order-lookup-accent { height: 145px; opacity: .9; clip-path: none; background: linear-gradient(125deg, var(--order-theme), color-mix(in srgb, var(--order-theme) 50%, #2563eb)); }
.order-lookup-preview.order-style-modern .order-lookup-brand h2,
.order-lookup-preview.order-style-modern .order-lookup-brand p { color: #fff; }
.order-lookup-preview.order-style-professional { border-radius: 5px; border-width: 2px; }
.order-lookup-preview.order-style-minimal { border: 0; box-shadow: 0 1px 0 #dce5ef; }
.order-lookup-preview.order-style-minimal .order-lookup-accent,
.order-lookup-preview.order-style-minimal .order-bag { display: none; }
.order-lookup-preview.order-style-premium { color: #e7edf8; border-color: #334155; background: #0f172a; }
.order-lookup-preview.order-style-premium .order-lookup-brand h2,
.order-lookup-preview.order-style-premium .order-lookup-content h3 { color: #fff; }
.order-lookup-preview.order-style-premium .order-lookup-brand p,
.order-lookup-preview.order-style-premium .order-lookup-content > p,
.order-lookup-preview.order-style-premium .order-lookup-content label { color: #aebbd0; }
.order-lookup-preview.order-style-premium .order-lookup-input { border-color: #334155; background: #162238; }
.order-lookup-preview.order-style-colorful { background: color-mix(in srgb, var(--order-theme) 8%, #fff); }
.order-link-form { display: grid; gap: 18px; }
.order-source-picker { padding: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border: 1px solid #dce5f0; border-radius: 10px; background: #f6f9fc; }
.order-source-picker button { min-height: 42px; color: #58708f; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-weight: 700; }
.order-source-picker button.active { color: #fff; background: linear-gradient(115deg, #08a9b7, #2468e9); box-shadow: 0 6px 14px rgba(36, 104, 233, .17); }
.order-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.order-inline-notice { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #526b8d; border: 1px solid #d9e6fb; border-radius: 9px; background: #f5f9ff; }
.manual-order-panel { padding: 16px; display: grid; gap: 14px; border: 1px solid #dfe8f4; border-radius: 12px; background: #fbfdff; }
.manual-order-result { min-height: 42px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #617693; border: 1px dashed #ccd9e9; border-radius: 8px; background: #fff; }
.manual-order-result strong { color: #0e9f55; }
.manual-start-date-field .field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field-edit-button { padding: 3px 10px; color: #1769e8; border: 1px solid #cfe0fb; border-radius: 6px; background: #f5f9ff; font: inherit; font-size: 12px; cursor: pointer; }
.manual-start-date-field .input.is-locked { color: #526987; background: #f4f7fb; cursor: not-allowed; }
.slug-input { display: flex; align-items: center; direction: ltr; border: 1px solid #dce3ec; border-radius: 8px; overflow: hidden; background: #fbfdff; }
.slug-input > span { padding: 0 12px; color: #1769ed; font-weight: 800; }
.slug-input .input { border: 0; border-inline-start: 1px solid #e5eaf0; border-radius: 0; direction: ltr; }
.builder-step { padding-top: 16px; border-top: 1px solid #edf1f5; }
.builder-step > h3 { margin: 0 0 13px; display: flex; align-items: center; gap: 8px; color: #18345f; font-size: 15px; }
.builder-step > h3 b,
.builder-step .section-head h3 b { width: 24px; height: 24px; display: inline-grid; place-items: center; color: #fff; border-radius: 50%; background: #2468e9; font-size: 11px; }
.order-style-picker { display: grid; grid-template-columns: repeat(6, minmax(82px, 1fr)); gap: 9px; }
.order-style-picker > button { min-height: 108px; padding: 10px; display: grid; place-items: center; gap: 8px; color: #29446c; border: 1px solid #e0e7f0; border-radius: 9px; background: #fff; cursor: pointer; }
.order-style-picker > button.active { color: #1769ed; border-color: #1769ed; box-shadow: 0 0 0 2px rgba(23, 105, 237, .09); }
.style-mini { width: 58px; height: 54px; padding: 9px; display: grid; align-content: center; gap: 5px; overflow: hidden; border: 1px solid #dfe7f1; border-radius: 6px; background: #f8fbff; }
.style-mini i { height: 5px; display: block; border-radius: 4px; background: #91baff; }
.style-mini i:nth-child(2) { width: 72%; }
.style-mini i:nth-child(3) { width: 45%; }
.style-modern { border-top: 7px solid #0fa9bd; }
.style-professional { border-inline-start: 7px solid #8b5cf6; }
.style-minimal { background: #fff; }
.style-premium { border-top: 7px solid #f59e0b; background: #fffbeb; }
.style-colorful { border-top: 7px solid #22c55e; background: #f0fdf4; }
.order-color-picker { display: flex; flex-wrap: wrap; gap: 18px; }
.order-color-picker button { min-width: 56px; display: grid; justify-items: center; gap: 6px; color: #657590; background: transparent; cursor: pointer; }
.order-color-picker button > span { width: 54px; height: 36px; display: block; border: 3px solid #fff; border-radius: 8px; background: var(--swatch); box-shadow: 0 0 0 1px #d8e1ec; }
.order-color-picker button.active > span { box-shadow: 0 0 0 3px #1769ed; }
.order-color-picker small { font-size: 10px; }
.order-note-editor { display: grid; gap: 9px; }
.order-note-editor > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.order-note-editor .textarea { min-height: 68px; }
.note-actions { display: grid; grid-template-columns: repeat(3, 32px); align-content: center; gap: 4px; }
.note-actions button { height: 32px; color: #48668e; border: 1px solid #dce5f0; border-radius: 6px; background: #fff; cursor: pointer; }
.note-actions button:last-child { color: #dc3748; }
.visible-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.visible-fields .setting-toggle { min-height: 42px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #e5eaf0; border-radius: 8px; }
.order-builder-actions { display: grid; grid-template-columns: 1.15fr 1fr 1fr .9fr .9fr; gap: 10px; }
.created-link-box { padding: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; color: #31517c; border: 1px solid #d9e6fb; border-radius: 9px; background: #f5f9ff; }
.created-link-box .input { direction: ltr; }
.color-dot { width: 16px; height: 16px; display: inline-block; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #cad5e2; vertical-align: middle; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; white-space: nowrap; }
.order-links-table-card { min-width: 0; overflow: hidden; }
.order-links-table-card .compare { width: calc(100% + 36px); max-width: calc(100% + 36px); overflow-x: auto; overscroll-behavior-inline: contain; }
.order-links-table-card table { table-layout: auto; }
.order-links-table-card--links table { min-width: 1260px; }
.order-links-table-card--templates table { min-width: 900px; }
.order-links-table-card th,
.order-links-table-card td { min-width: 110px; white-space: nowrap; }
.order-links-table-card th:first-child,
.order-links-table-card td:first-child { min-width: 140px; }
.order-links-table-card th:last-child,
.order-links-table-card td:last-child { min-width: 220px; }
.order-links-table-card .row-actions { min-width: max-content; flex-wrap: nowrap; }

.order-customer-card { position: relative; padding: 26px; overflow: hidden; color: #17345e; border: 1px solid color-mix(in srgb, var(--order-theme) 38%, #dbe5f1); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(31, 64, 110, .08); }
.order-customer-card.is-placeholder { border-style: dashed; }
.order-customer-card.is-placeholder .order-information-grid,
.order-customer-card.is-placeholder .order-number-row { opacity: .78; }
.order-card-accent { height: 96px; position: absolute; inset: 0 0 auto; opacity: .13; background: var(--order-theme); clip-path: polygon(0 0, 100% 0, 100% 55%, 78% 38%, 55% 70%, 28% 42%, 0 67%); }
.order-card-brand { min-height: 96px; position: relative; display: flex; align-items: center; justify-content: center; gap: 13px; text-align: center; }
.order-card-brand h2 { margin: 0; color: #102b55; font-size: 22px; }
.order-card-brand p { margin: 5px 0 0; color: #72819a; font-size: 12px; }
.order-bag { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 14px; background: var(--order-theme, linear-gradient(135deg, #08a9b7, #2468e9)); box-shadow: 0 8px 18px color-mix(in srgb, var(--order-theme) 25%, transparent); }
.order-number-row { min-height: 58px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #e5eaf0; border-radius: 9px; background: rgba(255,255,255,.88); }
.order-number-row > span { color: #8290a5; font-size: 11px; }
.order-number-row > strong { color: #0e2b58; font-size: 22px; direction: ltr; }
.order-number-row .status { margin-inline-start: auto; }
.order-information-grid { margin-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.order-information-grid > div { min-height: 90px; padding: 12px; display: grid; align-content: center; justify-items: center; text-align: center; border: 1px solid #e5eaf0; border-radius: 9px; background: rgba(255,255,255,.86); }
.order-information-grid .line-icon { width: 21px; height: 21px; margin-bottom: 7px; color: var(--order-theme); }
.order-information-grid span { color: #75859e; font-size: 10px; }
.order-information-grid strong { margin-top: 5px; color: #1f3a65; font-size: 13px; }
.order-information-grid .remaining-field { border-color: #bde8cb; background: #f4fff7; }
.order-information-grid .remaining-field strong { color: #13a353; font-size: 17px; }
.order-notes { margin-top: 13px; padding: 15px; border: 1px dashed color-mix(in srgb, var(--order-theme) 38%, #dbe5f1); border-radius: 9px; background: color-mix(in srgb, var(--order-theme) 4%, #fff); }
.order-notes h3 { margin: 0 0 9px; display: flex; align-items: center; gap: 7px; font-size: 13px; }
.order-notes ul { margin: 0; padding-inline-start: 20px; color: #5f7290; font-size: 11px; line-height: 1.9; }
.order-card-footer { margin: 15px 0 0; color: #7b8ba1; text-align: center; font-size: 10px; }
.order-style-modern { border-radius: 24px; }
.order-style-modern .order-card-accent { opacity: .9; clip-path: none; background: linear-gradient(125deg, var(--order-theme), color-mix(in srgb, var(--order-theme) 50%, #2563eb)); }
.order-style-modern .order-card-brand h2,
.order-style-modern .order-card-brand p { color: #fff; }
.order-style-professional { border-radius: 5px; border-width: 2px; box-shadow: none; }
.order-style-professional .order-card-brand { justify-content: flex-start; text-align: start; border-bottom: 2px solid var(--order-theme); }
.order-style-minimal { padding: 34px; border: 0; box-shadow: 0 1px 0 #dce5ef; }
.order-style-minimal .order-card-accent,
.order-style-minimal .order-bag { display: none; }
.order-style-premium { color: #e7edf8; border-color: #334155; background: #0f172a; }
.order-style-premium .order-card-brand h2,
.order-style-premium .order-number-row > strong,
.order-style-premium .order-information-grid strong,
.order-style-premium .order-notes h3 { color: #fff; }
.order-style-premium .order-card-brand p,
.order-style-premium .order-number-row > span,
.order-style-premium .order-information-grid span,
.order-style-premium .order-notes ul { color: #aebbd0; }
.order-style-premium .order-number-row,
.order-style-premium .order-information-grid > div { border-color: #334155; background: #162238; }
.order-style-premium .order-notes { border-color: #475569; background: #131f34; }
.order-style-colorful { background: color-mix(in srgb, var(--order-theme) 8%, #fff); }

.public-order-page { min-height: 100vh; color: #142b53; background: #f8fafc; }
.public-order-header { min-height: 92px; padding: 0 max(4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e5eaf0; background: #fff; }
.public-order-header > div { display: flex; align-items: center; gap: 12px; }
.public-order-header > div:first-child { flex-direction: column; align-items: flex-start; gap: 2px; }
.public-order-header .brand-mark-image { width: 50px; height: 50px; }
.public-order-header .brand-wordmark { font-size: 23px; }
.public-order-header span,
.public-order-header small { color: #8492a7; font-size: 11px; }
.public-order-header strong { color: #10264d; font-size: 19px; }
.public-order-main { width: min(1320px, calc(100% - 56px)); margin: 0 auto; padding: 24px 0 38px; }
.public-order-entry { width: min(640px, 100%); margin: 0 auto; }
.public-order-lookup-card { min-height: 610px; }
.public-order-lookup-card .order-lookup-content { margin-top: 38px; }
.public-order-search-card { padding: 25px; text-align: center; border: 1px solid #e1e8f1; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(41, 73, 116, .06); }
.public-order-search-card h1 { margin: 0 0 14px; font-size: 20px; }
.public-order-search-card form { width: min(800px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; }
.public-order-search-card .search-wrap { width: 100%; }
.public-order-search-card .input { min-height: 52px; direction: ltr; }
.public-order-search-card .btn { min-height: 52px; }
.public-order-search-card > p { margin: 12px 0 0; display: flex; justify-content: center; align-items: center; gap: 6px; color: #7e8ca1; font-size: 11px; }
.public-order-result { margin-top: 18px; padding: 13px; border: 1px solid #e4eaf2; border-radius: 18px; background: #fff; }
.public-order-result .order-customer-card { box-shadow: none; }
.public-order-style-switcher { margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.public-order-style-switcher > span { color: #637692; font-size: 12px; }
.public-order-style-switcher button { width: 72px; height: 45px; padding: 4px; border: 1px solid #dce4ef; border-radius: 7px; background: #fff; cursor: pointer; }
.public-order-style-switcher button.active { border: 2px solid var(--order-theme); }
.public-order-style-switcher .style-mini { width: 100%; height: 100%; }
.public-order-actions { margin-top: 16px; display: flex; justify-content: center; gap: 16px; }
.public-order-actions .btn { min-width: 220px; }
.public-order-welcome,
.public-order-error { min-height: 240px; margin-top: 18px; padding: 30px; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; border: 1px solid #e1e8f1; border-radius: 18px; background: #fff; }
.public-order-error .line-icon { width: 42px; height: 42px; color: #dc3d4d; }
.public-order-footer { min-height: 90px; padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; color: #708099; border-top: 1px solid #e5eaf0; background: #fff; font-size: 11px; }
.public-order-footer small { flex-basis: 100%; text-align: center; }

:root[data-theme="dark"] .order-link-builder,
:root[data-theme="dark"] .order-link-preview-panel,
:root[data-theme="dark"] .order-preview-toolbar,
:root[data-theme="dark"] .order-preview-arrow,
:root[data-theme="dark"] .order-style-picker > button,
:root[data-theme="dark"] .note-actions button,
:root[data-theme="dark"] .visible-fields .setting-toggle,
:root[data-theme="dark"] .created-link-box { color: #dce9f7; border-color: #2a3d55; background: #0c1828; }
:root[data-theme="dark"] .order-source-picker,
:root[data-theme="dark"] .manual-order-panel,
:root[data-theme="dark"] .manual-order-result,
:root[data-theme="dark"] .order-inline-notice { color: #c7d8eb; border-color: #2a3d55; background: #0c1828; }
:root[data-theme="dark"] .order-lookup-preview:not(.order-style-premium) { color: #dce9f7; border-color: #2a3d55; background: #101d2f; }
:root[data-theme="dark"] .order-lookup-preview:not(.order-style-premium) .order-lookup-brand h2,
:root[data-theme="dark"] .order-lookup-preview:not(.order-style-premium) .order-lookup-content h3 { color: #eaf2fb; }
:root[data-theme="dark"] .order-lookup-preview:not(.order-style-premium) .order-lookup-input { border-color: #2a3d55; background: #0c1828; }
:root[data-theme="dark"] .builder-step > h3,
:root[data-theme="dark"] .order-card-brand h2 { color: #eaf2fb; }
:root[data-theme="dark"] .slug-input { border-color: #2a3d55; background: #0b1728; }
:root[data-theme="dark"] .order-customer-card:not(.order-style-premium) { color: #dce9f7; border-color: #2a3d55; background: #101d2f; }
:root[data-theme="dark"] .order-customer-card:not(.order-style-premium) .order-number-row,
:root[data-theme="dark"] .order-customer-card:not(.order-style-premium) .order-information-grid > div { border-color: #2a3d55; background: #0c1828; }
:root[data-theme="dark"] .order-customer-card:not(.order-style-premium) .order-number-row > strong,
:root[data-theme="dark"] .order-customer-card:not(.order-style-premium) .order-information-grid strong,
:root[data-theme="dark"] .order-customer-card:not(.order-style-premium) .order-notes h3 { color: #eaf2fb; }

@media (max-width: 1450px) {
  .order-link-workspace { grid-template-columns: 1fr; }
  .order-link-preview-panel { position: static; }
  .order-style-picker { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .order-profile-grid,
  .order-source-picker,
  .visible-fields,
  .order-builder-actions,
  .order-information-grid { grid-template-columns: 1fr; }
  .order-style-picker { grid-template-columns: repeat(2, 1fr); }
  .created-link-box { grid-template-columns: 1fr; }
  .public-order-header { padding: 14px 20px; align-items: flex-start; flex-direction: column; }
  .public-order-main { width: min(100% - 24px, 1320px); }
  .public-order-search-card form { grid-template-columns: 1fr; }
  .public-order-style-switcher { flex-wrap: wrap; }
  .public-order-actions { flex-direction: column; }
  .public-order-actions .btn { min-width: 0; width: 100%; }
  .order-customer-card { padding: 16px; }
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap .input {
  padding-inline-end: 3.15rem;
}

.password-toggle {
  position: absolute;
  inset-inline-end: .65rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  background: #eef6ff;
  color: #1268df;
  outline: none;
}

.password-toggle .line-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.notification-trigger-wrap {
  position: relative;
}

.notification-trigger {
  position: relative;
}

.notification-badge {
  position: absolute;
  inset-inline-end: -2px;
  top: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface, #fff);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.notification-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + .6rem);
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(29, 61, 103, .16);
}

.notification-dropdown-head,
.notification-dropdown-actions {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-dropdown-head {
  border-bottom: 1px solid #eef2f7;
}

.notification-dropdown-list {
  max-height: 330px;
  overflow: auto;
}

.notification-item {
  width: 100%;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  text-align: start;
  border: 0;
  border-bottom: 1px solid #f0f3f7;
  background: #fff;
  color: #162b4d;
  cursor: pointer;
}

.notification-item:hover,
.notification-item.unread {
  background: #f5f9ff;
}

.notification-item-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #edf5ff;
  color: #1769df;
}

.notification-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.notification-item strong,
.notification-item small,
.notification-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item small,
.notification-item em {
  color: #71819a;
  font-size: 11px;
}

.notification-item em {
  font-style: normal;
  font-size: 10px;
}

.notification-empty {
  padding: 28px 18px;
  display: grid;
  gap: 6px;
  text-align: center;
  color: #71819a;
  font-size: 12px;
}

.notification-list-page {
  display: grid;
  gap: 10px;
}

.notification-row {
  padding: 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e7edf5;
  border-radius: 14px;
  background: #fff;
}

.notification-row.unread {
  border-color: #bfdbfe;
  background: #f7fbff;
}

.notification-row-content {
  min-width: 0;
}

.notification-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notification-row-content p {
  margin: 5px 0;
  color: #536782;
}

.notification-row-content small {
  color: #8290a5;
  font-size: 11px;
}

.compact-field {
  min-width: 140px;
}

.compact-field > span {
  font-size: 11px;
}

:root[data-theme="dark"] .password-toggle:hover,
:root[data-theme="dark"] .password-toggle:focus-visible {
  background: #18304c;
  color: #7dd3fc;
}

:root[data-theme="dark"] .notification-dropdown,
:root[data-theme="dark"] .notification-item,
:root[data-theme="dark"] .notification-row,
:root[data-theme="dark"] .notification-page-card {
  border-color: #253b55;
  background: #0d1a2b;
  color: #e7eef8;
}

:root[data-theme="dark"] .notification-dropdown-head,
:root[data-theme="dark"] .notification-dropdown-actions,
:root[data-theme="dark"] .notification-item {
  border-color: #253b55;
}

:root[data-theme="dark"] .notification-item:hover,
:root[data-theme="dark"] .notification-item.unread,
:root[data-theme="dark"] .notification-row.unread {
  background: #12243a;
}

:root[data-theme="dark"] .notification-row-content p,
:root[data-theme="dark"] .notification-item small,
:root[data-theme="dark"] .notification-item em,
:root[data-theme="dark"] .notification-row-content small,
:root[data-theme="dark"] .notification-empty {
  color: #9db0c7;
}

:root[data-theme="dark"] .dashboard-main .compare {
  border-color: #263c56;
  background: #0c1828;
}

:root[data-theme="dark"] .dashboard-main .compare table,
:root[data-theme="dark"] .dashboard-main .compare th,
:root[data-theme="dark"] .dashboard-main .compare td {
  color: #dce8f5;
  border-color: #263c56;
  background: transparent;
}

:root[data-theme="dark"] .dashboard-main .compare th {
  background: #112238;
  color: #bcd0e7;
}

:root[data-theme="dark"] .dashboard-main .compare td small,
:root[data-theme="dark"] .dashboard-main .compare td .muted,
:root[data-theme="dark"] .dashboard-main .field > span {
  color: #9db0c7;
}

:root[data-theme="dark"] .dashboard-main .input,
:root[data-theme="dark"] .dashboard-main .select,
:root[data-theme="dark"] .dashboard-main textarea {
  border-color: #2b435e;
  background: #0b1727;
  color: #e7eef8;
}

:root[data-theme="dark"] .dashboard-main .input::placeholder,
:root[data-theme="dark"] .dashboard-main textarea::placeholder {
  color: #7186a0;
}

:root[data-theme="dark"] .subscription-toolbar .compact-field > span {
  color: #a9bdd4;
}

@media (max-width: 760px) {
  .notification-dropdown {
    inset-inline-end: -70px;
  }

  .notification-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .notification-row > .inline-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .subscription-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
