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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f8f9fa;
  color: #1a1a2e;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── account dropdown ─── */
.pl-account-wrap { position: relative; }
.pl-account-wrap > summary { list-style: none; }
.pl-account-wrap > summary::-webkit-details-marker { display: none; }
.pl-account-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; color: #51607A;
  background: none; border: none; cursor: pointer;
  padding: 8px 12px; border-radius: 8px;
  font-family: inherit; transition: color .15s, background .15s;
}
.pl-account-btn:hover, .pl-account-wrap[open] .pl-account-btn { color: #0C1A33; background: rgba(12,26,51,0.05); }
.pl-account-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid #E4EAF3;
  border-radius: 12px; padding: 8px; z-index: 100;
  box-shadow: 0 8px 24px rgba(12,26,51,0.12); min-width: 210px;
  display: flex; flex-direction: column; gap: 2px;
}
.pl-account-email {
  display: block; padding: 8px 10px 10px;
  font-size: 13px; color: #8392AD; font-weight: 600;
  border-bottom: 1px solid #EEF2F9; margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-account-menu form { display: contents; }
.pl-account-menu-link {
  display: block; width: 100%; padding: 8px 10px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  color: #374151; text-decoration: none; transition: background .15s;
  background: none; border: none; text-align: left;
  cursor: pointer; font-family: inherit;
}
.pl-account-menu-link:hover { background: #F1F5F9; }
.pl-account-menu-link.pl-context-active { background: #EFF6FF; color: #1F5FE0; }
.pl-context-switch {
  display: flex; flex-direction: column; gap: 2px;
  padding: 2px 10px 6px; border-bottom: 1px solid #EEF2F9; margin-bottom: 4px;
}
.pl-context-label {
  font-size: 11px; font-weight: 700; color: #8392AD;
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px;
}
.pl-signout-btn {
  width: 100%; text-align: left; padding: 8px 10px;
  border-radius: 8px; font-size: 14px; font-weight: 600;
  color: #374151; background: none; border: none;
  cursor: pointer; font-family: inherit; transition: background .15s, color .15s;
}
.pl-signout-btn:hover { background: #FEF2F2; color: #dc2626; }

.navbar {
  background: #6366f1;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.navbar-links a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.navbar-links a:hover { color: white; }

.navbar-email {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}

.navbar-signout {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.navbar-signout:hover { background: rgba(255,255,255,0.25) !important; }

.container {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.flash-notice { background: #dcfce7; color: #166534; }
.flash-alert  { background: #fee2e2; color: #991b1b; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.page-header h1 { font-size: 1.5rem; font-weight: 700; }
.destination-url { font-size: 0.85rem; color: #6b7280; word-break: break-all; }

.btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: #f3f4f6; }
.btn-primary { background: #6366f1; color: white; border-color: #6366f1; }
.btn-primary:hover { background: #4f46e5; }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-danger { background: white; color: #dc2626; border-color: #fca5a5; }
.btn-danger:hover { background: #fee2e2; }

.links-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.links-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.links-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}
.links-table tr:last-child td { border-bottom: none; }
.links-table tr:hover td { background: #fafafa; }

.slug-link { color: #6366f1; font-weight: 600; text-decoration: none; }
.slug-link:hover { text-decoration: underline; }
.destination { color: #6b7280; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.click-count { font-weight: 600; }
.actions { display: flex; gap: 0.5rem; }

.empty-state { color: #6b7280; }

.form-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  max-width: 560px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.settings-col { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.settings-grid .form-card { max-width: none; }
@media (max-width: 860px) {
  .settings-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.4rem; }
.field select,
.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  outline: none;
}
.field select:focus,
.field input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.field small { display: block; margin-top: 0.3rem; color: #9ca3af; font-size: 0.8rem; }

.field-inline { display: flex; align-items: center; gap: 0.5rem; }
.field-inline input { width: auto; }

.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }

.devise-links { margin-top: 1rem; font-size: 0.85rem; color: #6b7280; }
.devise-links a { color: #6366f1; }

.oauth-buttons { display: flex; flex-direction: row; gap: 0.5rem; margin-bottom: 1.25rem; }
.oauth-buttons form { flex: 1; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: 0.4rem; font-weight: 600; width: 100%; font-size: 0.875rem; }
.btn-google { background: white; color: #3c4043; border-color: #dadce0; }
.btn-google:hover { background: #f8f9fa; border-color: #bdc1c6; }
.btn-facebook { background: #1877f2; color: white; border-color: #1877f2; }
.btn-facebook:hover { background: #166fe5; border-color: #166fe5; }
.btn-twitter { background: #000; color: white; border-color: #000; }
.btn-twitter:hover { background: #1a1a1a; border-color: #1a1a1a; }
.btn-microsoft { background: white; color: #3c4043; border-color: #dadce0; }
.btn-microsoft:hover { background: #f8f9fa; border-color: #bdc1c6; }
.btn-apple { background: #000; color: white; border-color: #000; }
.btn-apple:hover { background: #1a1a1a; border-color: #1a1a1a; }
.oauth-divider { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; color: #9ca3af; font-size: 0.85rem; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }

.error-messages {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stat-number { font-size: 2rem; font-weight: 700; color: #6366f1; }
.stat-label  { font-size: 0.8rem; color: #6b7280; margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; }

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 1rem;
}

.chart-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chart-card h2 { font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.no-data { color: #9ca3af; font-size: 0.875rem; }

.qr-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.qr-image {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem;
  background: white;
}

.qr-meta { display: flex; flex-direction: column; gap: 0.35rem; }
.qr-url  { font-size: 0.9rem; font-weight: 600; color: #1a1a2e; word-break: break-all; }
.qr-hint { font-size: 0.8rem; color: #9ca3af; margin-bottom: 0.4rem; }

.stat-number-sm { font-size: 1.25rem; }

.charts-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.chart-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.chart-card-header h2 { margin-bottom: 0; }
.chart-subtitle { font-size: 0.75rem; color: #9ca3af; font-weight: 500; }

.device-bar { margin-top: 0.75rem; }
.device-bar-track {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
}
.device-bar-segment { transition: width 0.4s; }
.device-bar-mobile  { background: #1F5FE0; }
.device-bar-desktop { background: #7AA4F2; }
.device-bar-tablet  { background: #C3D5F7; }
.device-bar-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: #374151;
  flex-wrap: wrap;
}
.device-legend-item { display: flex; align-items: center; gap: 0.4rem; }
.device-legend-swatch { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.hourly-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100px;
}
.hourly-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.hourly-bar { width: 100%; border-radius: 2px 2px 0 0; min-height: 2px; }
.hourly-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 600;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: #374151;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.activity-item:last-child { border-bottom: none; }
.device-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.device-badge-mobile  { background: #ede9fe; color: #5b21b6; }
.device-badge-desktop { background: #e0e7ff; color: #3730a3; }
.device-badge-tablet  { background: #dbeafe; color: #1e40af; }
.activity-location { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.activity-referrer { color: #6b7280; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.activity-time { color: #9ca3af; font-size: 0.75rem; white-space: nowrap; flex-shrink: 0; }

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.status-active    { background: #dcfce7; color: #166534; }
.status-pending   { background: #fef9c3; color: #854d0e; }
.status-sold      { background: #e0e7ff; color: #3730a3; }
.status-withdrawn { background: #f3f4f6; color: #6b7280; }

/* ─── Analytics window (matches demo) ─── */
@keyframes aw-pulse {
  0%   { transform: scale(0.9); opacity: 0.7; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { opacity: 0; }
}

.aw {
  background: #fff;
  border: 1px solid #E4EAF3;
  border-radius: 20px;
  box-shadow: 0 30px 60px -30px rgba(12,26,51,0.22);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.aw-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #EEF2F9;
  background: #FBFCFE;
}
.aw-chrome-url {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #51607A;
  background: #fff;
  border: 1px solid #E4EAF3;
  padding: 6px 16px;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-weight: 500;
  overflow: hidden;
  max-width: 360px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.aw-chrome-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid #1F5FE0;
  border-radius: 7px 7px 7px 2px;
  flex-shrink: 0;
  display: inline-block;
}
.aw-dash { display: grid; grid-template-columns: 1.55fr 1fr; }
.aw-left { padding: 26px 28px; border-right: 1px solid #EEF2F9; }
.aw-right { padding: 26px 24px; background: #FBFCFE; }

.aw-total-label { font-size: 14px; color: #8392AD; font-weight: 600; margin-bottom: 6px; }
.aw-total-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: #0C1A33;
  font-family: ui-monospace, monospace;
}

.aw-substats { display: flex; gap: 0; margin-top: 14px; }
.aw-substat { padding: 0 18px; border-left: 1px solid #EEF2F9; }
.aw-substat:first-child { padding-left: 0; border-left: none; }
.aw-substat-num {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0C1A33;
  font-family: ui-monospace, monospace;
  white-space: nowrap;
}
.aw-substat-lbl { font-size: 12px; color: #8392AD; font-weight: 600; }

.aw-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.aw-section-title { font-size: 14px; font-weight: 700; color: #0C1A33; }
.aw-section-sub   { font-size: 12px; color: #8392AD; font-weight: 600; }

.aw-hourly-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 132px;
}
.aw-hourly-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.aw-hourly-bar { width: 100%; border-radius: 3px 3px 0 0; min-height: 3px; }

.aw-live-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.aw-live-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #16A34A;
}
.aw-live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
  flex-shrink: 0;
}
.aw-live-dot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: #16A34A;
  animation: aw-pulse 2s infinite;
}

.aw-activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
}
.aw-activity-item {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #EEF2F9;
  border-radius: 10px;
}
.aw-activity-row1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0C1A33;
  margin-bottom: 3px;
}
.aw-activity-row2 { font-size: 12px; color: #8392AD; font-weight: 500; }

@media (max-width: 720px) {
  .aw-dash { grid-template-columns: 1fr; }
  .aw-left { border-right: none; border-bottom: 1px solid #EEF2F9; }
}

/* ─── analytics widget: chrome + section spacing ─── */
.aw-chrome-url b { color: #0C1A33; }
.aw-chrome-spacer { width: 40px; }
.aw-substat-num--sm { font-size: 15px; }
.aw-hourly-section { margin-top: 28px; }
.aw-device-section { margin-top: 24px; }
.aw-device-title { margin-bottom: 12px; }

/* ─── page furniture ─── */
.page-header-actions { display: flex; align-items: center; gap: 10px; }
.section-heading {
  font-size: 0.9rem; font-weight: 600; color: #374151;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem;
}
.bots-note { margin-bottom: 12px; font-size: 13px; color: #8392AD; }
.charts-grid--spaced { margin-bottom: 1.5rem; }
.chart-card--wide { grid-column: 1 / -1; }
.form-card--spaced { margin-bottom: 1.5rem; }
.btn-locked { opacity: 0.55; }
.btn-disabled { opacity: 0.55; cursor: not-allowed; }
.limit-note { font-size: 13px; font-weight: 600; color: #8392AD; }
.field-static { font-size: 15px; font-weight: 600; color: #0C1A33; margin: 4px 0 0; }
.text-muted { color: #8392AD; }
.text-warn { color: #B45309; }
.upgrade-link { font-weight: 700; color: #1F5FE0; }

/* ─── settings cards (account, team) ─── */
.card-title { font-size: 0.875rem; font-weight: 700; color: #0C1A33; margin-bottom: 0.25rem; }
.card-subtitle { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.25rem; }
.callout { border-radius: 10px; padding: 14px 16px; font-size: 14px; }
.callout--success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; }
.callout--neutral { background: #F8FAFF; border: 1px solid #E4EAF3; color: #51607A; }
.callout--warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.callout--mb { margin-bottom: 16px; }
.callout--mb-lg { margin-bottom: 1.25rem; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-label-sm { display: block; font-size: 13px; color: #51607A; margin-bottom: 4px; }
.field-inline--pref { margin-bottom: 16px; }
.field-inline--pref input { margin-right: 8px; }
.member-count { font-size: 13px; font-weight: 600; color: #8392AD; margin-bottom: 1rem; }
.member-count--limit { color: #B45309; }

/* ─── 2FA setup ─── */
.form-intro { font-size: 0.9375rem; color: #51607A; margin-bottom: 1rem; }
.qr-block { margin-bottom: 1.25rem; }
.code-box {
  display: block; background: #F8FAFF; border: 1px solid #E4EAF3;
  border-radius: 8px; padding: 10px 14px; font-size: 14px; letter-spacing: 0.05em;
}
.code-box--center { text-align: center; }
.backup-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.5rem; }

/* ─── flash rows (team invites) ─── */
.flash--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.flash-actions { display: flex; gap: 8px; }
.inline-form { display: inline; }

/* ─── account menu: tier badge ─── */
.pl-account-tier-row {
  padding: 4px 10px 8px; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid #EEF2F9; margin-bottom: 4px;
}
.pl-tier-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #51607A; background: #F8F9FB; padding: 3px 8px; border-radius: 999px;
}
.pl-tier-badge--solo { color: #1F5FE0; background: #EFF6FF; }
.pl-tier-badge--team { color: #0C1A33; background: #F1F5F9; }
.pl-trial-left { font-size: 12px; font-weight: 600; color: #8392AD; }
.pl-trial-left--urgent { color: #B45309; }

/* ─── upgrade prompt (locked analytics) ─── */
.upgrade-prompt {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 260px; text-align: center; gap: 10px;
  background: #FBFCFE; border: 1px dashed #C3D5F7;
}
.upgrade-prompt-icon { font-size: 28px; line-height: 1; }
.upgrade-prompt-title { font-weight: 800; color: #0C1A33; font-size: 15px; }
.upgrade-prompt-desc { color: #8392AD; font-size: 13.5px; max-width: 240px; line-height: 1.5; font-weight: 500; }
.upgrade-prompt-btn { margin-top: 6px; }

/* ─── status banners (plan page) ─── */
.pl-banner { border-radius: 12px; padding: 14px 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.pl-banner--danger { background: #FEF2F2; border: 1px solid #FECACA; }
.pl-banner--success { background: #F0FDF4; border: 1px solid #BBF7D0; }
.pl-banner--warning { background: #FFFBEB; border: 1px solid #FDE68A; }
.pl-banner--info { background: #F8FAFF; border: 1px solid #E4EAF3; justify-content: space-between; flex-wrap: wrap; }
.pl-banner-emoji { font-size: 18px; }
.pl-banner-title { font-weight: 700; }
.pl-banner-text { font-size: 14px; margin-top: 2px; }
.pl-banner--danger .pl-banner-title { color: #991B1B; }
.pl-banner--danger .pl-banner-text { color: #B91C1C; }
.pl-banner--success .pl-banner-title { color: #166534; }
.pl-banner--success .pl-banner-text { color: #15803D; }
.pl-banner--warning .pl-banner-title { color: #92400E; }
.pl-banner--warning .pl-banner-text { color: #B45309; }
.pl-banner--info .pl-banner-title { color: #0C1A33; }
.pl-banner--info .pl-banner-text { color: #51607A; }
.pl-banner-alert { font-size: 13px; color: #B91C1C; font-weight: 600; margin-top: 4px; }
.pl-banner-link { font-size: 14px; font-weight: 700; color: #1F5FE0; text-decoration: none; }

/* ─── plan page: billing interval + currency controls ─── */
.pl-billing-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.pl-toggle--compact { gap: 0; padding: 4px; border-radius: 10px; }
.pl-toggle--compact .pl-toggle-btn { font-size: 13px; padding: 7px 16px; border-radius: 7px; }
.pl-toggle--compact .pl-toggle-btn--badge { gap: 7px; }
.pl-currency-field { display: flex; align-items: center; gap: 8px; }
.pl-currency-label { font-size: 14px; font-weight: 700; color: #51607A; }
.pl-currency-select {
  font-size: 14px; font-weight: 600; border: 1px solid #DCE4F1; border-radius: 8px;
  padding: 6px 10px; background: #fff; color: #0C1A33; cursor: pointer;
}

/* ─── plan page: tier cards (denser variant of marketing .pl-tier) ─── */
.pl-tiers--start { align-items: start; }
.pl-plan {
  background: #fff; border: 1px solid #E4EAF3; border-radius: 20px;
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
}
.pl-plan--current { border: 2px solid #1F5FE0; }
.pl-plan--glow { box-shadow: 0 20px 40px -20px rgba(31,95,224,0.35); }
.pl-plan--dark { background: #0C1A33; border-color: #0C1A33; }
.pl-plan--dark.pl-plan--current { border: 2px solid #5B8DEF; }
.pl-plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #1F5FE0; color: #fff; font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.pl-plan--dark .pl-plan-flag { background: #5B8DEF; }
.pl-plan-name { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.pl-plan-name--accent { color: #1F5FE0; }
.pl-plan--dark .pl-plan-name { color: #fff; }
.pl-plan-tagline { font-size: 13px; color: #8392AD; font-weight: 600; margin-top: 6px; margin-bottom: 16px; }
.pl-plan--dark .pl-plan-tagline { color: #9FB0CC; }
.pl-plan-price {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  font-family: 'JetBrains Mono', monospace; margin-bottom: 4px;
}
.pl-plan--dark .pl-plan-price { color: #fff; }
.pl-plan-per { font-size: 15px; color: #8392AD; font-weight: 600; }
.pl-plan--dark .pl-plan-per { color: #9FB0CC; }
.pl-plan-note { font-size: 13px; color: #8392AD; font-weight: 600; margin-bottom: 16px; min-height: 18px; }
.pl-plan--dark .pl-plan-note { color: #9FB0CC; }
.pl-plan-note-hidden { visibility: hidden; }
.pl-plan-features { margin-bottom: 20px; flex: 1; }
.pl-feature--light { color: #E4EAF3; }
.pl-plan-cta { text-align: center; font-size: 14px; font-weight: 700; padding: 11px; border-radius: 10px; }
.pl-plan-cta--current { color: #1F5FE0; background: #EFF6FF; }
.pl-plan-cta--current-dark { color: #fff; background: rgba(255,255,255,0.12); }
.pl-plan-cta--muted { color: #AEB8CC; background: #F8F9FB; }
.pl-plan-cta--link { display: block; color: #1F5FE0; border: 1px solid #DCE4F1; text-decoration: none; }
.pl-plan-cta--link-inverse { display: block; color: #0C1A33; background: #fff; text-decoration: none; }
.pl-plan-cta--primary {
  color: #fff; background: #1F5FE0; border: none; cursor: pointer;
  width: 100%; font-family: inherit; box-shadow: 0 6px 16px rgba(31,95,224,0.28);
}
.pl-plan-cta--inverse { color: #0C1A33; background: #fff; border: none; cursor: pointer; width: 100%; font-family: inherit; }

/* ─── plan page: help box ─── */
.pl-help-box {
  margin-top: 32px; background: #F8FAFF; border: 1px solid #E4EAF3; border-radius: 16px;
  padding: 24px 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.pl-help-title { font-weight: 700; font-size: 15px; color: #0C1A33; }
.pl-help-text { font-size: 14px; color: #51607A; margin-top: 4px; }
.pl-help-btn {
  font-size: 14px; font-weight: 700; color: #1F5FE0; background: none; border: none;
  cursor: pointer; padding: 0; font-family: inherit; white-space: nowrap;
}

/* ─── support dialog ─── */
.pl-dialog {
  border: none; border-radius: 20px; padding: 32px; width: 100%; max-width: 480px;
  box-shadow: 0 24px 64px -12px rgba(12,26,51,0.22); background: #fff;
  position: fixed; inset: 0; margin: auto; height: fit-content;
}
.pl-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pl-dialog-title { margin: 0; font-size: 18px; font-weight: 800; color: #0C1A33; letter-spacing: -0.02em; }
.pl-dialog-close {
  background: none; border: none; cursor: pointer; color: #8392AD;
  font-size: 22px; line-height: 1; padding: 0 2px;
}
.support-sent { text-align: center; padding: 16px 0 8px; }
.support-sent-icon {
  width: 48px; height: 48px; background: #DCFCE7; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.support-sent-title { font-size: 17px; font-weight: 800; color: #0C1A33; margin: 0 0 8px; }
.support-sent-text { font-size: 14px; color: #51607A; margin: 0 0 24px; line-height: 1.6; }
.support-error { margin: 0 0 14px; font-size: 14px; color: #B91C1C; font-weight: 600; }
.support-textarea { resize: vertical; min-height: 180px; width: 100%; box-sizing: border-box; }
.checkbox-spaced { margin-right: 8px; }
