/* Dashbyte & QR Planet Modern Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #0B6E4F;
  --primary-hover: #08533c;
  --primary-light: #F4FBF7;
  --dark-btn: #0A1F14;
  --dark-btn-hover: #143523;
  --emerald: #0B6E4F;
  --emerald-light: #F4FBF7;
  --mint: #10b981;
  --purple: #8b5cf6;
  --purple-light: #f5f3ff;
  --amber: #f59e0b;
  --amber-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-card: #eef2f6;
  --border-light: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-sub: #94a3b8;
  
  --radius-card: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
  
  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-hover);
  text-decoration: none;
}

/* ==================== BUTTONS ==================== */
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.15s ease;
}
button:hover, .button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
button:active, .button:active {
  transform: translateY(0);
}
.button.secondary, button.secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.button.secondary:hover, button.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-card);
}
.button.danger, button.danger {
  background: var(--danger-light);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.button.danger:hover, button.danger:hover {
  background: #fee2e2;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}
.button.full, button.full {
  width: 100%;
}
.link-button {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0;
  font-weight: 500;
  cursor: pointer;
}
.link-button:hover {
  color: var(--danger);
}

/* Dashbyte Pill Button */
.btn-pill-dark {
  background: var(--dark-btn) !important;
  color: #ffffff !important;
  border-radius: var(--radius-pill) !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15) !important;
}
.btn-pill-dark:hover {
  background: var(--dark-btn-hover) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25) !important;
}

/* ==================== DASHBOARD LAYOUT ==================== */
.dash-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg-page);
}

/* SIDEBAR */
.dash-sidebar {
  width: 250px;
  background: #ffffff;
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 99;
  transition: width 0.2s ease, transform 0.2s ease;
}

.dash-brand {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f8fafc;
}
.dash-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.5px;
}
.dash-brand-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}
.dash-brand-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.dash-sidebar-toggle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}
.dash-sidebar-toggle:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.dash-nav {
  padding: 16px 14px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  color: var(--text-sub);
  padding: 16px 12px 6px;
  margin: 0;
}
.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.dash-nav-item:hover {
  background: #f8fafc;
  color: var(--text-main);
  text-decoration: none;
}
.dash-nav-item.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}
.dash-nav-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-nav-chevron {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 11px;
  display: flex;
  align-items: center;
}
.dash-nav-item.active .dash-nav-chevron {
  color: #ffffff;
  opacity: 0.8;
}

/* MAIN AREA */
.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* TOPBAR */
.dash-topbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}
.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  width: 280px;
  transition: border-color 0.15s ease;
}
.dash-search-box:focus-within {
  border-color: #cbd5e1;
  background: #ffffff;
}
.dash-search-box svg {
  color: #94a3b8;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.dash-search-box input {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  font-size: 13px;
  color: var(--text-main);
  outline: none !important;
  width: 100%;
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.dash-action-icon:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}
.dash-dot-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 9999px;
}

.dash-user-dropdown {
  position: relative;
}
.dash-user-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 12px;
  cursor: pointer;
  background: transparent;
  border: none;
}
.dash-user-trigger:hover {
  background: #f8fafc;
}
.dash-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-user-meta {
  text-align: left;
  line-height: 1.2;
}
.dash-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}
.dash-user-role {
  font-size: 11px;
  color: var(--text-muted);
}
.dash-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 8px;
  width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.dash-dropdown-menu.show {
  display: flex;
}
.dash-dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-dropdown-item:hover {
  background: #f8fafc;
}

/* CONTENT CANVAS */
.dash-content {
  padding: 32px;
  flex: 1;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ==================== DASHBYTE KPI CARDS ==================== */
.dash-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.dash-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 145px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.dash-kpi-header {
  position: relative;
  z-index: 2;
}
.dash-kpi-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.dash-kpi-sub {
  font-size: 11.5px;
  color: var(--text-sub);
  margin: 2px 0 0;
}
.dash-kpi-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--card-accent, #10b981);
  letter-spacing: -1px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}
.dash-kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  margin-top: 4px;
}
.dash-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.dash-kpi-svg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 70%;
  pointer-events: none;
  z-index: 1;
}

/* Color variations for KPI cards */
.dash-kpi-green { --card-accent: #10b981; }
.dash-kpi-blue  { --card-accent: #3b82f6; }
.dash-kpi-purple{ --card-accent: #8b5cf6; }
.dash-kpi-amber { --card-accent: #f59e0b; }

/* ==================== ANALYTICS OVERVIEW CARD ==================== */
.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.dash-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dash-card-heading {
  margin: 0;
}
.dash-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}
.dash-card-subtitle {
  font-size: 12px;
  color: var(--text-sub);
  margin: 3px 0 0;
}
.dash-select-pill {
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow-sm);
}

.dash-analytics-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: center;
}

/* Circular Donut Gauges */
.dash-donuts-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.dash-donut-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dash-donut-box-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}
.dash-donut-svg-wrap {
  position: relative;
  width: 76px;
  height: 76px;
}
.dash-donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dash-donut-val-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
}

/* Multi-Segment Monthly Bar Chart */
.dash-barchart-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-barchart-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding: 10px 0 0;
  position: relative;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.dash-col-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.dash-bar-stacked {
  width: 16px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  background: #f8fafc;
  height: var(--col-h, 60%);
  transition: height 0.3s ease;
}
.dash-seg-blue {
  background: #3b82f6;
  width: 100%;
  height: var(--seg-blue, 35%);
}
.dash-seg-green {
  background: #10b981;
  width: 100%;
  height: var(--seg-green, 35%);
}
.dash-seg-amber {
  background: #f59e0b;
  width: 100%;
  height: var(--seg-amber, 30%);
}
.dash-col-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sub);
}

/* ==================== BOTTOM DUAL CARDS ==================== */
.dash-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.dash-metric-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 16px;
}
.dash-metric-big {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
}
.dash-pill-green {
  background: #ecfdf5;
  color: #10b981;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

/* Weekly Mini Bars */
.dash-weekly-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #f8fafc;
}
.dash-weekly-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}
.dash-wbar {
  width: 14px;
  border-radius: 6px;
  background: #fde68a;
  height: var(--wbar-h, 50%);
}
.dash-wbar.active {
  background: #f59e0b;
}
.dash-wbar-blue {
  width: 14px;
  border-radius: 6px;
  background: #93c5fd;
  height: var(--wbar-h, 50%);
}
.dash-wbar-blue.active {
  background: #2563eb;
}
.dash-wday {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
}

/* Stat Underline Bars */
.dash-sub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dash-sub-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-sub-stat-label {
  font-size: 11.5px;
  color: var(--text-sub);
  font-weight: 500;
}
.dash-sub-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}
.dash-stat-bar {
  height: 3px;
  border-radius: 2px;
  margin-top: 4px;
  width: 100%;
}
.dash-bar-green-line { background: #10b981; }
.dash-bar-purple-line{ background: #8b5cf6; }
.dash-bar-amber-line { background: #f59e0b; }

/* ==================== QR COLLECTION & TABLES ==================== */
.dash-collection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
}
.dash-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 18px;
}
.dash-tab-btn {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dash-tab-btn:hover {
  background: #f8fafc;
  color: var(--text-main);
  border-color: #cbd5e1;
}
.dash-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.dash-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-scroll {
  overflow-x: auto;
}
table.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  white-space: nowrap;
}
table.dash-table th {
  padding: 14px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-sub);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-card);
  text-align: left;
}
table.dash-table th:first-child { border-top-left-radius: 10px; }
table.dash-table th:last-child { border-top-right-radius: 10px; }
table.dash-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}
table.dash-table tr:hover td {
  background: #fafbfc;
}

.qr-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.qr-thumb-wrap svg {
  width: 32px;
  height: 32px;
}
.qr-info-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}
.qr-meta-title {
  font-weight: 700;
  color: var(--text-main);
  display: block;
}
.qr-meta-cat {
  font-size: 11.5px;
  color: var(--text-muted);
}
.qr-meta-slug {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--primary);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 3px;
}
.qr-meta-slug:hover {
  background: #dbeafe;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.type-url       { background: #eff6ff; color: #1d4ed8; }
.type-shortlink { background: #eff6ff; color: #2563eb; }
.type-verify    { background: #E8F8F0; color: #0B6E4F; border: 1px solid #b8ebd0; }
.type-pass      { background: #FFFBEB; color: #b45309; border: 1px solid #fde68a; }
.type-coupon    { background: #ecfdf5; color: #059669; }
.type-menu      { background: #fff7ed; color: #ea580c; }
.type-vcard     { background: #fdf4ff; color: #a21caf; }
.type-landing   { background: #ecfdf5; color: #047857; }
.type-maps      { background: #fff7ed; color: #c2410c; }
.type-wifi      { background: #f0fdf4; color: #15803d; }
.type-pdf       { background: #fef2f2; color: #b91c1c; }
.type-app       { background: #f3e8ff; color: #7e22ce; }
.type-lang      { background: #e0e7ff; color: #3730a3; }
.type-gs1       { background: #f1f5f9; color: #0f172a; }
.type-whatsapp  { background: #f0fdfa; color: #0f766e; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.status-active   { background: #ecfdf5; color: #10b981; }
.status-disabled { background: #f1f5f9; color: #64748b; }
.status-expired  { background: #fef2f2; color: #ef4444; }

.scans-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: 8px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-action-icon:hover {
  background: #f1f5f9;
  color: var(--primary);
  border-color: #cbd5e1;
}

/* ==================== FORM & EDITOR STYLING ==================== */
.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.form-group:last-child {
  margin-bottom: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 6px 0;
}
input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-main);
  padding: 10px 14px;
  width: 100%;
  font-family: var(--font-main);
  font-size: 13.5px;
  outline: none;
  transition: all 0.15s ease;
}
input:not([type=checkbox]):not([type=radio]):not([type=color]):focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
input[type=checkbox] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 13px;
  color: #334155;
  margin: 10px 0;
  cursor: pointer;
  user-select: none;
}
.hint {
  font-size: 12px;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.45;
}

/* Page Heading */
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-heading h1 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.page-heading .eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}
.page-heading .back-link,
.page-heading a[href="admin.php"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.page-heading .back-link:hover,
.page-heading a[href="admin.php"]:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Grids & Cards */
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-two .form-group, .grid-three .form-group {
  margin-bottom: 0;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.card h2, .card-header-title {
  margin: 0 0 20px 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.card-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

/* Color Picker UI */
.color-picker-control {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 4px 8px;
  transition: all 0.15s ease;
}
.color-picker-control:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.color-swatch-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.color-native-input {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
}
.color-hex-input {
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  width: 100% !important;
  text-transform: uppercase;
  background: transparent !important;
  outline: none !important;
}
.color-presets-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.color-preset-btn {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  outline: 1.5px solid rgba(0, 0, 0, 0.22) !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}
.color-preset-btn:hover {
  transform: scale(1.22) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28) !important;
}

/* Dedicated High-Contrast Palette Colors */
.preset-emerald { background: #0B6E4F !important; background-color: #0B6E4F !important; }
.preset-blue    { background: #2563EB !important; background-color: #2563EB !important; }
.preset-purple  { background: #7C3AED !important; background-color: #7C3AED !important; }
.preset-slate   { background: #0F172A !important; background-color: #0F172A !important; }
.preset-amber   { background: #EA580C !important; background-color: #EA580C !important; }
.preset-bronze  { background: #702700 !important; background-color: #702700 !important; }
.preset-red     { background: #DC2626 !important; background-color: #DC2626 !important; }
.preset-teal    { background: #0D9488 !important; background-color: #0D9488 !important; }

/* Gradient control conditional styling */
#group-qr_color2.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.8);
}

/* Custom Styled Selects */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px !important;
  cursor: pointer;
}

/* Logo Upload Modern Dropzone */
.logo-upload-wrap {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
}
.logo-upload-wrap:hover {
  border-color: var(--primary);
  background: #f0f7ff;
}
.logo-upload-wrap input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.logo-upload-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.logo-upload-text {
  flex-grow: 1;
}
.logo-upload-text strong {
  display: block;
  font-size: 13px;
  color: #1e293b;
}
.logo-upload-text span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.logo-current-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  margin-top: 10px;
  font-size: 12.5px;
}
.logo-current-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  padding: 2px;
}

/* Live Preview Panel */
.preview-panel {
  position: sticky;
  top: 86px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.preview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.preview-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #059669;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 9999px;
}
.preview-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.preview-mode-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* QR Canvas Smooth Live Preview Crossfade & Laser Scan Animation */
.qr-canvas {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 270px;
  max-height: 320px;
  padding: 16px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.015);
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}
.qr-canvas-content {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}
.qr-canvas > *,
.qr-canvas-content > * {
  grid-area: 1 / 1;
}
.qr-canvas img,
.qr-canvas svg,
.qr-canvas canvas,
.qr-canvas .qr-preview-img {
  max-width: 100% !important;
  max-height: 250px !important;
  width: auto !important;
  height: auto !important;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.08));
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.qr-canvas .qr-preview-img.qr-fade-in {
  opacity: 0;
  transform: scale(0.96);
}
.qr-canvas .qr-preview-img.qr-fade-out {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

/* Laser Scanner Beam */
.qr-scanner-beam {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0) 0%, rgba(16, 185, 129, 0.9) 25%, #34d399 50%, rgba(16, 185, 129, 0.9) 75%, rgba(16, 185, 129, 0) 100%);
  box-shadow: 0 0 14px 3px rgba(16, 185, 129, 0.75), 0 0 28px 6px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transform: translateY(-50%);
}
.qr-scanner-beam::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0));
  pointer-events: none;
}

/* Viewfinder Target Reticles */
.qr-scan-reticle {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #10b981;
  border-style: solid;
  border-width: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.55));
}
.qr-scan-reticle.tl {
  top: 14px;
  left: 14px;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 6px;
  transform: translate(-4px, -4px);
}
.qr-scan-reticle.tr {
  top: 14px;
  right: 14px;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 6px;
  transform: translate(4px, -4px);
}
.qr-scan-reticle.bl {
  bottom: 14px;
  left: 14px;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 6px;
  transform: translate(-4px, 4px);
}
.qr-scan-reticle.br {
  bottom: 14px;
  right: 14px;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 6px;
  transform: translate(4px, 4px);
}

/* Active Scanning State */
.qr-canvas.is-scanning .qr-scan-reticle {
  opacity: 0.95;
  transform: translate(0, 0);
}
.qr-canvas.is-scanning .qr-scanner-beam {
  animation: qrScannerSweep 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes qrScannerSweep {
  0% {
    top: 6%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: 94%;
    opacity: 0;
  }
}

.preview-scan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0B6E4F;
  background: #F4FBF7;
  border: 1px dashed #b8ebd0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 12px;
}
.preview-scan-btn:hover {
  background: #E8F8F0;
  border-color: #0B6E4F;
  transform: translateY(-1px);
}
.preview-status-pill.is-scanning {
  color: #059669;
  animation: scanPillPulse 0.4s ease infinite alternate;
}
@keyframes scanPillPulse {
  from { opacity: 0.6; }
  to { opacity: 1; }
}

.preview-target-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 0;
  font-size: 12px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
  word-break: break-all;
}
.preview-target-box svg {
  flex-shrink: 0;
  color: #94a3b8;
}
.preview-status-pill {
  font-size: 11.5px;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0;
  padding: 2px 0;
  font-weight: 600;
}
.preview-save-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all 0.15s ease;
}
.preview-save-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.45);
}
.preview-sub-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}
.preview-sub-actions a {
  flex: 1;
  text-align: center;
}
.preview-meta-hint {
  font-size: 11.5px;
  color: #94a3b8;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

/* TOAST NOTIFICATION */
.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==================== NOTICES & ALERTS ==================== */
.notice {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notice.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.notice.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ==================== AUTH / SIGN-IN ==================== */
.auth.card, .auth {
  max-width: 440px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: var(--shadow-card);
}
.auth h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text-main);
}
.auth p.muted, .auth p {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 20px;
}
.auth .eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.auth button.full {
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  font-size: 14px;
}
.auth a {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

/* ==================== PUBLIC LAYOUT & TOPBAR ==================== */
.public-topbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
}
.public-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.public-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.public-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  min-height: calc(100vh - 150px);
}
.public-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  padding: 28px 28px;
}
.public-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==================== LANDING PAGE HERO ==================== */
.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 40px 0 70px;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 22px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.landing-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: #0f172a;
}
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.landing-lead {
  font-size: 17px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 32px;
  max-width: 560px;
}
.landing-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.landing-tags {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}
.landing-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Hero Visual Card */
.landing-hero-visual {
  display: flex;
  justify-content: center;
}
.hero-preview-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 30px;
  box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
}
.hero-qr-badge {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.hero-qr-badge svg {
  width: 100%;
  height: 100%;
}
.hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.hero-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}
.mini-stat-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}
.mini-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}
.mini-stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==================== LANDING SECTIONS & FEATURES (QR PLANET CUES) ==================== */
.landing-section {
  padding: 60px 0;
}
.landing-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.landing-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #3b82f6;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.landing-section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 12px;
}
.landing-section-sub {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}
.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-box {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 30px 26px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}
.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon-circle svg {
  width: 26px;
  height: 26px;
}
.icon-blue   { background: #eff6ff; color: #2563eb; }
.icon-green  { background: #ecfdf5; color: #059669; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-amber  { background: #fffbeb; color: #d97706; }
.icon-red    { background: #fef2f2; color: #dc2626; }
.icon-teal   { background: #f0fdfa; color: #0d9488; }

.feature-box h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}
.feature-box p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Platform Advantages Cards */
.adv-card {
  padding: 16px 10px;
}
.adv-number {
  font-size: 28px;
  font-weight: 900;
  color: #3b82f6;
  opacity: 0.9;
  margin-bottom: 12px;
  font-feature-settings: "tnum";
}
.adv-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.adv-card p {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Call to Action Banner */
.landing-cta-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 40px 0 20px;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3);
}
.landing-cta-banner h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.landing-cta-banner p {
  font-size: 16px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* ==================== ANALYTICS DECK (LIGHT DASHBYTE THEME) ==================== */
.dash-analytics-deck {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tech-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.tech-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tech-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-main);
}

.tech-trend-badge {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-feature-settings: "tnum";
}
.tech-trend-badge.trend-up {
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.tech-trend-badge.trend-down {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.tech-hero-metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
}

.tech-hero-number {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1;
  font-feature-settings: "tnum";
}

.tech-hero-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 30-Day Vertical Bars */
.tech-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 165px;
  gap: 4px;
  padding-top: 16px;
  margin-top: auto;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.tech-bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
  cursor: pointer;
}

.tech-bar {
  width: 100%;
  background: #10b981;
  border-radius: 4px 4px 1px 1px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 4px;
}

.tech-bar-col:hover .tech-bar {
  background: #059669;
  transform: scaleY(1.05);
  transform-origin: bottom;
}

.tech-bar.bar-peak {
  background: #059669;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
}

/* Tooltip on bar hover */
.tech-bar-col[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 150;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tech-bar-col:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-2px);
}

/* Card 2: Top Locations */
.tech-location-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 8px;
}

.tech-location-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.tech-loc-name {
  color: var(--text-main);
  font-weight: 600;
}

.tech-loc-pct {
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-feature-settings: "tnum";
}

/* Card 3: Devices & Conv. Rate */
.tech-device-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 8px;
  margin-bottom: 20px;
}

.tech-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

.tech-device-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 600;
}

.tech-device-icon {
  width: 18px;
  height: 18px;
  color: #64748b;
  flex-shrink: 0;
}

.tech-dev-pct {
  color: #059669;
  font-weight: 700;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-feature-settings: "tnum";
}

.tech-conv-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.tech-conv-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-family: var(--font-main);
  margin-bottom: 4px;
}

.tech-conv-number {
  font-size: 32px;
  font-weight: 800;
  color: #10b981;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: "tnum";
}

/* Summary Pill Row */
.dash-summary-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-card);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.summary-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ==================== WIDGET EDIT CONTROLS & MODAL ==================== */
.deck-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.deck-filters-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.deck-filters-left label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
}

.tech-card-edit-btn {
  background: none;
  border: 1px solid transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.tech-card-edit-btn:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: var(--primary);
}

/* Goal Progress Bar in Card 1 */
.tech-goal-bar-wrap {
  margin-top: 4px;
  margin-bottom: 12px;
}
.tech-goal-bar-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.tech-goal-bar-fill {
  height: 100%;
  background: #10b981;
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.tech-goal-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Bar color classes */
.bar-color-green { background: #10b981; }
.bar-color-green.bar-peak { background: #059669; box-shadow: 0 0 12px rgba(16, 185, 129, 0.45); }
.bar-color-blue { background: #3b82f6; }
.bar-color-blue.bar-peak { background: #1d4ed8; box-shadow: 0 0 12px rgba(59, 130, 246, 0.45); }
.bar-color-purple { background: #8b5cf6; }
.bar-color-purple.bar-peak { background: #6d28d9; box-shadow: 0 0 12px rgba(139, 92, 246, 0.45); }
.bar-color-amber { background: #f59e0b; }
.bar-color-amber.bar-peak { background: #b45309; box-shadow: 0 0 12px rgba(245, 158, 11, 0.45); }

/* Empty states */
.empty-chart-note, .empty-list-note {
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 36px 12px;
  width: 100%;
  line-height: 1.5;
}

/* Modal styles */
.dash-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.dash-modal-backdrop.open {
  display: flex;
}
.dash-modal-box {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border-card);
  animation: modalScale 0.2s ease-out;
}
@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.dash-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}
.dash-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}
.dash-modal-close:hover {
  background: #f1f5f9;
  color: var(--text-main);
}
.dash-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dash-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-card);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 20px 20px;
}
.widget-edit-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.widget-edit-section-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
}
.widget-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.widget-form-field {
  display: flex;
  flex-direction: column;
}
.widget-form-field label {
  margin: 0 0 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
}

/* RESPONSIVENESS */
@media (max-width: 1100px) {
  .dash-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-analytics-split { grid-template-columns: 1fr; }
  .dash-bottom-grid { grid-template-columns: 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .dash-analytics-deck { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .landing-hero { grid-template-columns: 1fr; gap: 40px; padding: 20px 0 40px; }
  .landing-hero-visual { max-width: 440px; margin: 0 auto; width: 100%; }
  .landing-title { font-size: 36px; }
  .landing-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dash-sidebar {
    position: fixed;
    transform: translateX(-100%);
  }
  .dash-sidebar.open {
    transform: translateX(0);
  }
  .dash-topbar { padding: 0 16px; }
  .dash-content { padding: 18px 14px; }
  .dash-kpi-grid { grid-template-columns: 1fr; }
  .dash-search-box { width: 180px; }
  .public-container { padding: 24px 16px 60px; }
  .public-topbar-inner { padding: 0 16px; }
}
@media (max-width: 640px) {
  .landing-title { font-size: 28px; }
  .landing-grid-3 { grid-template-columns: 1fr; }
  .hero-stats-mini { grid-template-columns: 1fr; gap: 14px; }
  .landing-cta-banner { padding: 36px 20px; }
  .landing-cta-banner h2 { font-size: 24px; }
}

/* ==================== KURO SOLUTIONS LAUNCHPAD ==================== */
.kuro-solutions-launchpad, .qrtrac-solutions-launchpad {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.launchpad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.launchpad-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 800;
  color: #0A1F14;
  letter-spacing: -0.02em;
}
.launchpad-subtitle {
  margin: 0;
  font-size: 12.5px;
  color: #64748b;
}
.launchpad-pill-unlocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: #E8F8F0;
  color: #0B6E4F;
  border: 1px solid #B8EBD0;
  font-size: 12px;
  font-weight: 700;
}
.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) {
  .launchpad-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .launchpad-grid { grid-template-columns: 1fr; }
}
.launchpad-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  background: #fcfdfd;
  text-decoration: none;
  transition: all 0.18s ease;
}
.launchpad-card:hover {
  transform: translateY(-2px);
  border-color: #b8ebd0;
  background: #ffffff;
  box-shadow: 0 8px 20px -3px rgba(11, 110, 79, 0.12);
}
.launchpad-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.launchpad-info h4 {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 700;
  color: #0A1F14;
}
.launchpad-info p {
  margin: 0;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

/* ==================== VISUAL PATTERN & FRAME SELECTORS ==================== */
.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.pattern-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  min-height: 80px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.pattern-tile svg {
  color: #475569;
  transition: transform 0.18s ease, color 0.18s ease;
}
.pattern-tile span {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pattern-tile:hover {
  border-color: #0B6E4F;
  background: #f4fbf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 110, 79, 0.08);
}
.pattern-tile:hover svg {
  color: #0B6E4F;
}
.pattern-tile.active {
  border-color: #0B6E4F;
  background: #E8F8F0;
  color: #0B6E4F;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.18);
}
.pattern-tile.active svg {
  color: #0B6E4F;
  transform: scale(1.08);
}

/* Corner Square & Dot Selectors */
.corner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.corner-square-tile,
.corner-dot-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  min-height: 72px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.corner-square-tile svg,
.corner-dot-tile svg {
  color: #475569;
  transition: transform 0.18s ease, color 0.18s ease;
}
.corner-square-tile span,
.corner-dot-tile span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.corner-square-tile:hover,
.corner-dot-tile:hover {
  border-color: #0B6E4F;
  background: #f4fbf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 110, 79, 0.08);
}
.corner-square-tile:hover svg,
.corner-dot-tile:hover svg {
  color: #0B6E4F;
}
.corner-square-tile.active,
.corner-dot-tile.active {
  border-color: #0B6E4F;
  background: #E8F8F0;
  color: #0B6E4F;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.18);
}
.corner-square-tile.active svg,
.corner-dot-tile.active svg {
  color: #0B6E4F;
  transform: scale(1.08);
}

/* Frame Selector Grid */
.frame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.frame-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px;
  min-height: 86px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}
.frame-tile svg {
  color: #64748b;
  transition: transform 0.18s ease, color 0.18s ease;
}
.frame-tile span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.frame-tile:hover {
  border-color: #0B6E4F;
  background: #f4fbf7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 110, 79, 0.08);
}
.frame-tile:hover svg {
  color: #0B6E4F;
}
.frame-tile.active {
  border-color: #0B6E4F;
  background: #E8F8F0;
  color: #0B6E4F;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.18);
}
.frame-tile.active svg {
  color: #0B6E4F;
  transform: scale(1.08);
}

/* Curated Center Icon Library */
.icon-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.icon-library-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  min-height: 70px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.16s ease;
  outline: none;
  user-select: none;
}
.icon-library-btn svg {
  flex-shrink: 0;
  transition: transform 0.16s ease;
}
.icon-library-btn span {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.icon-library-btn:hover {
  border-color: #0B6E4F;
  background: #f4fbf7;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(11, 110, 79, 0.1);
}
.icon-library-btn:hover svg {
  transform: scale(1.15);
}
.icon-library-btn.active {
  border-color: #0B6E4F;
  background: #E8F8F0;
  box-shadow: 0 0 0 2.5px rgba(11, 110, 79, 0.2);
}
.icon-library-btn.active span {
  color: #0B6E4F;
  font-weight: 700;
}
.icon-library-btn.active svg {
  transform: scale(1.15);
}

/* ==================== DOWNLOAD & VIEW PAGE LAYOUT ==================== */
.download-layout {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 32px;
}
@media (max-width: 900px) {
  .download-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
}
.download-layout #download-qr.qr-canvas {
  min-height: 420px;
  max-height: 520px;
  padding: 28px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}
.download-layout #download-qr.qr-canvas img,
.download-layout #download-qr.qr-canvas svg,
.download-layout #download-qr.qr-canvas canvas {
  max-height: 420px !important;
}
.download-layout h2 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
  border-bottom: none;
  padding-bottom: 0;
}
.download-layout .payload {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 6px 0 16px;
}
.download-layout .toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
}
.download-layout .toolbar button,
.download-layout .toolbar a {
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==================== CUSTOM BRAND LOGO STYLES ==================== */
.dash-brand-icon.has-custom-logo {
  background: #f8fafc !important;
  border: 1px solid var(--border-light);
  padding: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.dash-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 9px;
}

/* ==================== SETTINGS & INTEGRATIONS LAYOUT ==================== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.settings-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Brand Logo Preview in Settings */
.brand-logo-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 14px;
}
.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 4px;
}

/* Active Keys & Member Row Styling */
.member, .key-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
  transition: all 0.15s ease;
}
.member:last-child, .key-item:last-child {
  margin-bottom: 0;
}
.member:hover, .key-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
.member-info, .key-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.member-name, .key-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-meta, .key-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.member-actions, .key-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Badges for Scopes & Permissions */
.badge-scope-read {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.badge-scope-write {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* API Quickstart Card Styling */
.api-endpoint-box {
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
  position: relative;
  overflow-x: auto;
}
.api-endpoint-box .method {
  color: #38bdf8;
  font-weight: 700;
}
.api-endpoint-box .url {
  color: #4ade80;
}
.api-endpoint-box .header {
  color: #facc15;
}

/* ==================== ADVANCED ANALYTICS & CHARTS ==================== */
.analytics-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}
.analytics-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.analytics-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.analytics-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.analytics-subtitle {
  font-size: 13px;
  color: var(--text-sub);
  margin: 0;
}
.analytics-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dash-pill-group {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  gap: 3px;
  border: 1px solid #e2e8f0;
}
.dash-pill-btn {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.dash-pill-btn:hover:not(.active) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.5);
}
.dash-pill-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.analytics-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Charts & Bar Elements */
.analytics-chart-container {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.bar-row:hover {
  background: #f8fafc;
}
.bar-row span {
  width: 120px;
  min-width: 120px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-track {
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-row strong {
  min-width: 60px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* Daily Column Chart Styling */
.daily-chart-svg {
  width: 100%;
  height: 210px;
  overflow: visible;
  display: block;
}
.daily-bar {
  transition: fill 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}
.daily-bar:hover {
  opacity: 0.82;
  filter: drop-shadow(0 4px 6px rgba(11, 110, 79, 0.25));
}
.daily-chart-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #475569;
}
.daily-chart-readout strong {
  color: #0f172a;
}
.daily-chart-readout .readout-val {
  font-weight: 700;
  color: var(--primary);
}

/* Devices & Platforms Modern Styling */
.device-chart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.device-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}
.device-bar-row:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}
.device-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 150px;
  min-width: 150px;
}
.device-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.device-icon-badge.ios { background: #eff6ff; color: #2563eb; }
.device-icon-badge.android { background: #ecfdf5; color: #059669; }
.device-icon-badge.windows { background: #f0f9ff; color: #0284c7; }
.device-icon-badge.macos { background: #faf5ff; color: #7c3aed; }
.device-icon-badge.other { background: #f1f5f9; color: #64748b; }

.device-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}
.device-pct {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-left: auto;
}
.device-track {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.device-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.device-count {
  min-width: 85px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

/* Badges for Status, Network and Geo */
.badge-status-resolved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.badge-status-private {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}
.badge-status-unresolved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.device-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}
.device-badge-pill.ios { background: #eff6ff; color: #2563eb; }
.device-badge-pill.android { background: #ecfdf5; color: #059669; }
.device-badge-pill.windows { background: #f0f9ff; color: #0284c7; }
.device-badge-pill.macos { background: #faf5ff; color: #7c3aed; }
.device-badge-pill.other { background: #f1f5f9; color: #64748b; }

.table-bar-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.mini-bar-track {
  width: 70px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}
.mini-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--primary);
}
.count-pill {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  min-width: 65px;
  text-align: right;
}

.analytics-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 13.5px;
  gap: 12px;
  text-align: center;
}

/* ==================== EYE-SOOTHING MOBILE LANDING & LINK-IN-BIO THEMES ==================== */

/* 1. Obsidian Dark */
body.landing-theme-mode.theme-dark,
.landing-page-wrap.theme-dark,
.landing-preview.theme-dark,
.landing-preview-phone.theme-dark {
  --lp-body-bg: radial-gradient(ellipse at 50% -10%, #172133 0%, #0c111a 60%, #070a10 100%);
  --lp-topbar-bg: rgba(12, 17, 26, 0.85);
  --lp-topbar-border: rgba(255, 255, 255, 0.08);
  --lp-topbar-text: #f8fafc;
  --lp-card-bg: rgba(20, 27, 40, 0.82);
  --lp-card-border: rgba(255, 255, 255, 0.1);
  --lp-card-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --lp-avatar-bg: rgba(30, 41, 59, 0.7);
  --lp-avatar-border: rgba(255, 255, 255, 0.14);
  --lp-avatar-color: #38bdf8;
  --lp-avatar-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
  --lp-title: #f8fafc;
  --lp-bio: #94a3b8;
  --lp-link-bg: rgba(255, 255, 255, 0.05);
  --lp-link-border: rgba(255, 255, 255, 0.1);
  --lp-link-text: #f1f5f9;
  --lp-link-sub: #94a3b8;
  --lp-link-arrow: #38bdf8;
  --lp-link-arrow-bg: rgba(56, 189, 248, 0.12);
  --lp-link-hover-bg: rgba(255, 255, 255, 0.1);
  --lp-link-hover-border: rgba(56, 189, 248, 0.45);
  --lp-link-hover-text: #ffffff;
  --lp-link-hover-arrow: #ffffff;
  --lp-link-hover-shadow: 0 14px 30px -8px rgba(0, 0, 0, 0.5), 0 0 18px rgba(56, 189, 248, 0.2);
  --lp-footer-bg: #080b12;
  --lp-footer-border: rgba(255, 255, 255, 0.06);
  --lp-footer-text: #64748b;
}

/* 2. Forest Emerald (Kuro Luxe) */
body.landing-theme-mode.theme-emerald,
.landing-page-wrap.theme-emerald,
.landing-preview.theme-emerald,
.landing-preview-phone.theme-emerald {
  --lp-body-bg: radial-gradient(ellipse at 50% -10%, #0d3829 0%, #061c14 60%, #03100b 100%);
  --lp-topbar-bg: rgba(6, 28, 20, 0.85);
  --lp-topbar-border: rgba(52, 211, 153, 0.15);
  --lp-topbar-text: #ecfdf5;
  --lp-card-bg: rgba(10, 36, 26, 0.85);
  --lp-card-border: rgba(52, 211, 153, 0.22);
  --lp-card-shadow: 0 24px 60px -15px rgba(2, 14, 9, 0.75), 0 0 0 1px rgba(52, 211, 153, 0.08), inset 0 1px 0 rgba(167, 243, 208, 0.12);
  --lp-avatar-bg: rgba(16, 185, 129, 0.15);
  --lp-avatar-border: rgba(52, 211, 153, 0.3);
  --lp-avatar-color: #34d399;
  --lp-avatar-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 22px rgba(16, 185, 129, 0.2);
  --lp-title: #ecfdf5;
  --lp-bio: #a7f3d0;
  --lp-link-bg: rgba(16, 185, 129, 0.08);
  --lp-link-border: rgba(52, 211, 153, 0.2);
  --lp-link-text: #f0fdf4;
  --lp-link-sub: #6ee7b7;
  --lp-link-arrow: #34d399;
  --lp-link-arrow-bg: rgba(52, 211, 153, 0.15);
  --lp-link-hover-bg: rgba(16, 185, 129, 0.2);
  --lp-link-hover-border: rgba(52, 211, 153, 0.5);
  --lp-link-hover-text: #ffffff;
  --lp-link-hover-arrow: #ffffff;
  --lp-link-hover-shadow: 0 14px 30px -8px rgba(2, 14, 9, 0.6), 0 0 20px rgba(52, 211, 153, 0.25);
  --lp-footer-bg: #030f0a;
  --lp-footer-border: rgba(52, 211, 153, 0.1);
  --lp-footer-text: #52796F;
}

/* 3. Clean Light (Minimalist Studio) */
body.landing-theme-mode.theme-light,
.landing-page-wrap.theme-light,
.landing-preview.theme-light,
.landing-preview-phone.theme-light {
  --lp-body-bg: radial-gradient(ellipse at 50% -10%, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%);
  --lp-topbar-bg: rgba(255, 255, 255, 0.92);
  --lp-topbar-border: #e2e8f0;
  --lp-topbar-text: #0f172a;
  --lp-card-bg: #ffffff;
  --lp-card-border: #e2e8f0;
  --lp-card-shadow: 0 24px 50px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
  --lp-avatar-bg: #f8fafc;
  --lp-avatar-border: #e2e8f0;
  --lp-avatar-color: #0f172a;
  --lp-avatar-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --lp-title: #0f172a;
  --lp-bio: #475569;
  --lp-link-bg: #f8fafc;
  --lp-link-border: #e2e8f0;
  --lp-link-text: #0f172a;
  --lp-link-sub: #64748b;
  --lp-link-arrow: #0f172a;
  --lp-link-arrow-bg: #e2e8f0;
  --lp-link-hover-bg: #0f172a;
  --lp-link-hover-border: #0f172a;
  --lp-link-hover-text: #ffffff;
  --lp-link-hover-arrow: #ffffff;
  --lp-link-hover-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.18);
  --lp-footer-bg: #ffffff;
  --lp-footer-border: #e2e8f0;
  --lp-footer-text: #64748b;
}

/* 4. Warm Sand (Dune Linen & Terracotta) */
body.landing-theme-mode.theme-warm,
.landing-page-wrap.theme-warm,
.landing-preview.theme-warm,
.landing-preview-phone.theme-warm {
  --lp-body-bg: radial-gradient(ellipse at 50% -10%, #fdfbf7 0%, #f4ede2 60%, #e9dece 100%);
  --lp-topbar-bg: rgba(253, 251, 247, 0.92);
  --lp-topbar-border: #e7ded2;
  --lp-topbar-text: #292524;
  --lp-card-bg: rgba(255, 253, 250, 0.96);
  --lp-card-border: #e7ded2;
  --lp-card-shadow: 0 24px 50px -15px rgba(100, 70, 30, 0.09), 0 1px 3px rgba(100, 70, 30, 0.04);
  --lp-avatar-bg: #f5ede2;
  --lp-avatar-border: #e0d3c1;
  --lp-avatar-color: #9a3412;
  --lp-avatar-shadow: 0 8px 20px -4px rgba(100, 70, 30, 0.08);
  --lp-title: #292524;
  --lp-bio: #78716c;
  --lp-link-bg: #fcf9f5;
  --lp-link-border: #e5dacb;
  --lp-link-text: #44403c;
  --lp-link-sub: #85796e;
  --lp-link-arrow: #b45309;
  --lp-link-arrow-bg: #f3e8d8;
  --lp-link-hover-bg: #78350f;
  --lp-link-hover-border: #78350f;
  --lp-link-hover-text: #ffffff;
  --lp-link-hover-arrow: #ffffff;
  --lp-link-hover-shadow: 0 14px 28px -6px rgba(120, 53, 15, 0.22);
  --lp-footer-bg: #f4eee5;
  --lp-footer-border: #e2d5c3;
  --lp-footer-text: #8c7e6f;
}

/* 5. Ocean Breeze (Midnight Sapphire & Cyan) */
body.landing-theme-mode.theme-ocean,
.landing-page-wrap.theme-ocean,
.landing-preview.theme-ocean,
.landing-preview-phone.theme-ocean {
  --lp-body-bg: radial-gradient(ellipse at 50% -10%, #102644 0%, #071424 60%, #030a12 100%);
  --lp-topbar-bg: rgba(7, 20, 36, 0.85);
  --lp-topbar-border: rgba(56, 189, 248, 0.15);
  --lp-topbar-text: #f0f9ff;
  --lp-card-bg: rgba(13, 31, 56, 0.85);
  --lp-card-border: rgba(56, 189, 248, 0.2);
  --lp-card-shadow: 0 24px 60px -15px rgba(2, 10, 18, 0.75), 0 0 0 1px rgba(56, 189, 248, 0.08), inset 0 1px 0 rgba(186, 230, 253, 0.12);
  --lp-avatar-bg: rgba(56, 189, 248, 0.15);
  --lp-avatar-border: rgba(56, 189, 248, 0.3);
  --lp-avatar-color: #38bdf8;
  --lp-avatar-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 22px rgba(56, 189, 248, 0.2);
  --lp-title: #f0f9ff;
  --lp-bio: #7dd3fc;
  --lp-link-bg: rgba(56, 189, 248, 0.08);
  --lp-link-border: rgba(56, 189, 248, 0.2);
  --lp-link-text: #f0f9ff;
  --lp-link-sub: #7dd3fc;
  --lp-link-arrow: #38bdf8;
  --lp-link-arrow-bg: rgba(56, 189, 248, 0.15);
  --lp-link-hover-bg: rgba(56, 189, 248, 0.2);
  --lp-link-hover-border: rgba(56, 189, 248, 0.5);
  --lp-link-hover-text: #ffffff;
  --lp-link-hover-arrow: #ffffff;
  --lp-link-hover-shadow: 0 14px 30px -8px rgba(2, 10, 18, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
  --lp-footer-bg: #040b14;
  --lp-footer-border: rgba(56, 189, 248, 0.1);
  --lp-footer-text: #64748b;
}

/* 6. Sunset Rose (Twilight Velvet & Rose) */
body.landing-theme-mode.theme-sunset,
.landing-page-wrap.theme-sunset,
.landing-preview.theme-sunset,
.landing-preview-phone.theme-sunset {
  --lp-body-bg: radial-gradient(ellipse at 50% -10%, #301333 0%, #17081a 60%, #0d040f 100%);
  --lp-topbar-bg: rgba(23, 8, 26, 0.85);
  --lp-topbar-border: rgba(244, 63, 94, 0.15);
  --lp-topbar-text: #fff1f2;
  --lp-card-bg: rgba(35, 14, 40, 0.85);
  --lp-card-border: rgba(244, 63, 94, 0.2);
  --lp-card-shadow: 0 24px 60px -15px rgba(13, 4, 15, 0.75), 0 0 0 1px rgba(244, 63, 94, 0.08), inset 0 1px 0 rgba(254, 205, 211, 0.12);
  --lp-avatar-bg: rgba(244, 63, 94, 0.15);
  --lp-avatar-border: rgba(244, 63, 94, 0.3);
  --lp-avatar-color: #fb7185;
  --lp-avatar-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.5), 0 0 22px rgba(244, 63, 94, 0.2);
  --lp-title: #fff1f2;
  --lp-bio: #fda4af;
  --lp-link-bg: rgba(244, 63, 94, 0.08);
  --lp-link-border: rgba(244, 63, 94, 0.2);
  --lp-link-text: #fff1f2;
  --lp-link-sub: #fda4af;
  --lp-link-arrow: #fb7185;
  --lp-link-arrow-bg: rgba(244, 63, 94, 0.15);
  --lp-link-hover-bg: rgba(244, 63, 94, 0.2);
  --lp-link-hover-border: rgba(244, 63, 94, 0.5);
  --lp-link-hover-text: #ffffff;
  --lp-link-hover-arrow: #ffffff;
  --lp-link-hover-shadow: 0 14px 30px -8px rgba(13, 4, 15, 0.6), 0 0 20px rgba(244, 63, 94, 0.25);
  --lp-footer-bg: #0a030b;
  --lp-footer-border: rgba(244, 63, 94, 0.1);
  --lp-footer-text: #836e85;
}

/* ==================== GLOBAL LANDING THEME STYLES ==================== */
body.landing-theme-mode {
  background: var(--lp-body-bg) !important;
  color: var(--lp-title);
  min-height: 100vh;
  transition: background 0.3s ease;
}

body.landing-theme-mode .public-topbar {
  background: var(--lp-topbar-bg) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--lp-topbar-border) !important;
  transition: all 0.3s ease;
}

body.landing-theme-mode .public-topbar a span {
  color: var(--lp-topbar-text) !important;
}

body.landing-theme-mode .public-footer {
  background: var(--lp-footer-bg) !important;
  border-top: 1px solid var(--lp-footer-border) !important;
  transition: all 0.3s ease;
}

body.landing-theme-mode .public-footer-inner {
  background: transparent !important;
  border-top: none !important;
  color: var(--lp-footer-text) !important;
}

/* Card & Elements */
.landing-page-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.landing-card {
  width: 100%;
  max-width: 440px;
  background: var(--lp-card-bg);
  border: 1px solid var(--lp-card-border);
  box-shadow: var(--lp-card-shadow);
  border-radius: 28px;
  padding: 38px 24px 34px;
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.landing-avatar-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: var(--lp-avatar-bg);
  border: 1px solid var(--lp-avatar-border);
  box-shadow: var(--lp-avatar-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-avatar-wrap:hover {
  transform: scale(1.05);
}

.landing-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-avatar-wrap.default-avatar svg {
  color: var(--lp-avatar-color);
}

.landing-title {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--lp-title);
  margin: 0 0 8px;
  line-height: 1.25;
}

.landing-bio {
  font-size: 13.5px;
  color: var(--lp-bio);
  margin: 0 auto 28px;
  line-height: 1.55;
  max-width: 360px;
}

.landing-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.landing-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--lp-link-bg);
  border: 1px solid var(--lp-link-border);
  border-radius: 18px;
  padding: 15px 18px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-sizing: border-box;
}

.landing-link-card:hover {
  background: var(--lp-link-hover-bg);
  border-color: var(--lp-link-hover-border);
  transform: translateY(-2px);
  box-shadow: var(--lp-link-hover-shadow);
}

.landing-link-card:active {
  transform: translateY(0);
}

.landing-link-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.landing-link-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--lp-link-text);
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
  word-break: break-word;
}

.landing-link-card:hover .landing-link-label {
  color: var(--lp-link-hover-text);
}

.landing-link-sub {
  font-size: 12px;
  color: var(--lp-link-sub);
  margin-top: 3px;
  line-height: 1.4;
  opacity: 0.9;
  word-break: break-word;
}

.landing-link-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--lp-link-arrow-bg);
  color: var(--lp-link-arrow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.landing-link-card:hover .landing-link-arrow {
  transform: translateX(4px);
  color: var(--lp-link-hover-arrow);
}

.landing-link-card.is-static {
  cursor: default;
}

.landing-link-card.is-static:hover {
  transform: none;
  box-shadow: none;
}

/* ==================== EDITOR LIVE PHONE PREVIEW ==================== */
.landing-preview-phone {
  max-width: 380px;
  margin: 16px auto 0;
  border-radius: 36px;
  padding: 24px 16px;
  background: var(--lp-body-bg);
  border: 5px solid #1e293b;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
}

.landing-preview-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-preview-phone .landing-card {
  max-width: 100%;
  padding: 24px 14px 20px;
  border-radius: 20px;
}

.landing-preview-phone .landing-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 14px;
  padding: 8px;
}

.landing-preview-phone .landing-title {
  font-size: 19px;
}

.landing-preview-phone .landing-bio {
  font-size: 12.5px;
  margin-bottom: 20px;
}

.landing-preview-phone .landing-link-card {
  padding: 12px 14px;
  border-radius: 14px;
}

.landing-preview-phone .landing-link-label {
  font-size: 13.5px;
}

/* Topbar button adaptions for dark & rich themes */
body.landing-theme-mode.theme-dark .public-topbar-actions .btn-pill-dark,
body.landing-theme-mode.theme-emerald .public-topbar-actions .btn-pill-dark,
body.landing-theme-mode.theme-ocean .public-topbar-actions .btn-pill-dark,
body.landing-theme-mode.theme-sunset .public-topbar-actions .btn-pill-dark {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
body.landing-theme-mode.theme-dark .public-topbar-actions .btn-pill-dark:hover,
body.landing-theme-mode.theme-emerald .public-topbar-actions .btn-pill-dark:hover,
body.landing-theme-mode.theme-ocean .public-topbar-actions .btn-pill-dark:hover,
body.landing-theme-mode.theme-sunset .public-topbar-actions .btn-pill-dark:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

body.landing-theme-mode .public-footer-inner span,
body.landing-theme-mode .public-footer-inner a {
  color: var(--lp-footer-text) !important;
}

/* Shimmer & Ambient Glow */
.landing-avatar-wrap {
  position: relative;
}
.landing-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.35;
  filter: blur(10px);
  z-index: -1;
  transition: opacity 0.3s ease;
}
.landing-avatar-wrap:hover::before {
  opacity: 0.75;
}

.landing-link-card {
  position: relative;
  overflow: hidden;
}
.landing-link-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s ease;
}
.landing-link-card:hover::after {
  left: 100%;
}

@media (max-width: 640px) {
  body.landing-theme-mode .public-container {
    padding: 12px 10px 48px !important;
  }
  .landing-card {
    padding: 30px 16px 26px;
    border-radius: 22px;
  }
  .landing-avatar-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 16px;
    padding: 10px;
  }
  .landing-title {
    font-size: 20px;
  }
  .landing-bio {
    font-size: 13px;
    margin-bottom: 22px;
  }
  .landing-link-card {
    padding: 13px 15px;
    border-radius: 15px;
  }
  .landing-link-label {
    font-size: 14px;
  }
}




