/* SpottingLog centralized styles (Phase B start)
   Keep Tailwind for layout; use this file for brand tokens + shared components. */

:root {
  --brand-primary: #0b7ecf;
  --brand-navy: #000032;
  --brand-success: #00b67a;
  --brand-surface: #f0f4f8;
  --brand-pale-blue: #e6f2fb;
  --brand-danger: #bc4749;
  --brand-danger-hover: #9e3e40;
  /* Subscription / upgrade CTA banners (dashboard + list pages) */
  --sl-sub-cta-bg: #fff9e6;
  --sl-sub-cta-border: #fcd34d;
  --sl-sub-cta-heading: #78350f;
  --sl-sub-cta-body: #374151;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brand-surface);
}

/* Tailwind CDN defaults — map destructive reds to brand danger */
.bg-red-600 {
  background-color: var(--brand-danger) !important;
}
.hover\:bg-red-700:hover {
  background-color: var(--brand-danger-hover) !important;
}

/* Main white cards — slightly bolder than Tailwind shadow-sm + gray-200 */
.app-card-surface {
  border: 1px solid rgba(0, 0, 50, 0.1);
  box-shadow:
    0 1px 2px rgba(0, 0, 50, 0.05),
    0 4px 14px rgba(0, 0, 50, 0.085);
}

/* Variant: soft red outline (e.g. delete confirmation) */
.app-card-surface.card-tone-danger {
  border-color: #fecaca;
  box-shadow:
    0 1px 2px rgba(188, 71, 73, 0.12),
    0 4px 14px rgba(188, 71, 73, 0.14);
}

/* Links */
a.brand-link { color: var(--brand-primary); }
a.brand-link:hover { text-decoration: underline; }

/* Buttons */
.btn-primary { background-color: var(--brand-primary); color: #ffffff; }
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary { border: 1px solid rgba(11, 126, 207, 0.35); color: var(--brand-primary); background: #ffffff; }
.btn-secondary:hover { background: rgba(11, 126, 207, 0.06); }

/* Card icon tile */
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 126, 207, 0.10);
  color: var(--brand-primary);
}
.icon-tile i { font-size: 22px; }

/* Dashboard / empty-state circular icon */
.brand-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 126, 207, 0.10);
  color: var(--brand-primary);
}

/* Dashboard — branded stats block */
.dashboard-stats-panel {
  background: linear-gradient(155deg, var(--brand-primary) 0%, #0868a6 55%, #055a8f 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 6px rgba(0, 0, 50, 0.06),
    0 12px 28px rgba(11, 126, 207, 0.28);
}
.dashboard-stats-range {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
}
.dashboard-stats-range:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.dashboard-stats-range option {
  color: var(--brand-navy);
  background: #fff;
}
.dashboard-stat-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  color: var(--brand-primary);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(0, 0, 32, 0.14);
}
@media (min-width: 640px) {
  .dashboard-stat-bubble {
    width: 4.25rem;
    height: 4.25rem;
    font-size: 1.25rem;
  }
}

/* Dashboard — suggestions block (brand success green) */
.dashboard-suggestions-panel {
  background: linear-gradient(155deg, var(--brand-success) 0%, #009a6c 52%, #007a56 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 6px rgba(0, 0, 50, 0.06),
    0 12px 28px rgba(0, 182, 122, 0.26);
}
.dashboard-suggestions-panel .dashboard-suggestions-badge {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.dashboard-suggestions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  background: #fff;
  color: var(--brand-success);
  text-decoration: none;
  transition: filter 0.15s;
}
.dashboard-suggestions-btn:hover {
  filter: brightness(0.96);
}
.dashboard-suggestions-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.65);
}

/* PWA install banner — brand primary, high contrast */
.pwa-install-banner-panel {
  background: linear-gradient(155deg, var(--brand-primary) 0%, #0868a6 55%, #055a8f 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 4px 14px rgba(0, 0, 32, 0.12),
    0 14px 40px rgba(11, 126, 207, 0.42);
}
.pwa-install-banner-title {
  color: #fff !important;
}
.pwa-install-banner-body {
  color: rgba(255, 255, 255, 0.93) !important;
}
.pwa-install-banner-body strong {
  color: #fff;
  font-weight: 600;
}
.pwa-install-banner-body .pwa-install-share-icon {
  display: inline-block;
  vertical-align: -0.2em;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.2em;
  color: #fff;
  flex-shrink: 0;
}
.pwa-install-close {
  color: rgba(255, 255, 255, 0.88);
}
.pwa-install-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.pwa-install-close:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.pwa-install-banner-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.pwa-install-banner-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
}
.pwa-install-banner-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  border: none;
  color: var(--brand-primary);
  background: #fff;
  transition: filter 0.15s;
  cursor: pointer;
}
.pwa-install-banner-btn-primary:hover {
  filter: brightness(0.96);
}
.pwa-install-banner-btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

/* Sidebar */
#sidebar-menu { background-color: var(--brand-navy); }
#sidebar-menu .nav-section-title {
  color: #8faabf;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 16px;
  margin: 16px 0 4px;
}
#sidebar-menu .nav-link {
  color: #a8c4db;
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
#sidebar-menu .nav-link i {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: 13px;
  opacity: 0.85;
}
#sidebar-menu .nav-link.active i { opacity: 1; }
#sidebar-menu .nav-link:hover { background-color: rgba(255,255,255,0.08); color: #ffffff; }
#sidebar-menu .nav-link.active { background-color: var(--brand-primary); color: #ffffff; }
#sidebar-menu .sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 16px;
}
#sidebar-menu .sidebar-footer p { color: #8faabf; font-size: 12px; }
#sidebar-menu .sidebar-footer span { color: #ffffff; font-size: 14px; font-weight: 500; }

/* Avatar */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  flex-shrink: 0;
}
.avatar:hover { background-color: var(--brand-navy); }

/* Profile dropdown */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  overflow: hidden;
  display: none;
}
.profile-dropdown.open { display: block; }
.profile-dropdown-header { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; background: #f0f4f8; }
.profile-dropdown-header .name { font-size: 14px; font-weight: 600; color: var(--brand-navy); }
.profile-dropdown-header .role-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.role-badge-admin   { background: #fef3c7; color: #92400e; }
.role-badge-editor  { background: #ede9fe; color: #5b21b6; }
.role-badge-member  { background: #e0f2fe; color: #075985; }
.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
}
.profile-dropdown a:hover { background: #f0f4f8; }
.profile-dropdown a i { color: #8faabf; flex-shrink: 0; width: 16px; text-align: center; }
.profile-dropdown .dropdown-divider { border-top: 1px solid #f3f4f6; margin: 4px 0; }
.profile-dropdown .logout-link { color: #dc2626; }
.profile-dropdown .logout-link i { color: #dc2626; }
.profile-dropdown .logout-link:hover { background: #fef2f2; }

/* Flash messages */
.flash-message {
  transition: opacity 0.5s ease, margin 0.5s ease, padding 0.5s ease, max-height 0.5s ease;
  max-height: 200px;
  overflow: hidden;
}
.flash-message.dismissed {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Brand text + focus ring (Tailwind forms) */
.text-brand-navy { color: var(--brand-navy); }
.text-brand-primary { color: var(--brand-primary); }
.text-brand-muted { color: #8faabf; }
.text-brand-body { color: #374151; }
.ring-brand { --tw-ring-color: var(--brand-primary); }
.bg-brand-primary { background-color: var(--brand-primary); }

/* Secondary emphasis (dark) — e.g. “Show” menu, Search */
.btn-navy {
  background-color: var(--brand-navy);
  color: #fff;
}
.btn-navy:hover:not(:disabled) { filter: brightness(1.06); }
.btn-navy:disabled { opacity: 0.5; cursor: not-allowed; filter: none; }

.btn-primary:disabled {
  background-color: #93b4d4 !important;
  color: #fff;
  cursor: not-allowed;
  filter: none;
}

/* Password strength meter (register + account) */
.strength-bar-wrap {
  height: 5px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.strength-hint {
  min-height: 16px;
  font-size: 11px;
  margin-top: 4px;
  color: #6b7280;
  transition: opacity 0.2s;
}

/* Tom Select — account country (matches brand focus) */
.ts-wrapper.single .ts-control {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #111827;
  background-color: #fff;
  cursor: pointer;
}
.ts-wrapper.single.focus .ts-control {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(11, 126, 207, 0.25);
  outline: none;
}
.ts-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 0.875rem;
}
.ts-dropdown .option.selected,
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background-color: rgba(11, 126, 207, 0.08);
  color: var(--brand-primary);
}
.ts-dropdown-content { max-height: 220px; }

/* Sightings list — table + pagination */
.sightings-grid th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8faabf;
  font-weight: 700;
}
.sightings-grid thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f8fafc;
}
.sightings-grid.sightings-list-table thead th,
.sightings-grid.trips-list-table thead th,
.sightings-grid.locations-list-table thead th,
.sightings-grid.flights-list-table thead th,
.sightings-grid.photos-list-table thead th,
.sightings-grid.editor-tools-list-table thead th,
.sightings-grid.suggestions-list-table thead th,
.sightings-grid.fleet-list-table thead th,
.sightings-grid.subscribers-list-table thead th,
.sightings-grid.reports-list-table thead th,
.sightings-grid.help-centre-table thead th,
.sightings-grid.admin-support-queue-table thead th {
  color: #ffffff;
  background-color: var(--brand-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.sightings-grid.sightings-list-table thead th a.brand-link,
.sightings-grid.trips-list-table thead th a.brand-link,
.sightings-grid.locations-list-table thead th a.brand-link,
.sightings-grid.flights-list-table thead th a.brand-link,
.sightings-grid.photos-list-table thead th a.brand-link,
.sightings-grid.editor-tools-list-table thead th a.brand-link,
.sightings-grid.suggestions-list-table thead th a.brand-link,
.sightings-grid.fleet-list-table thead th a.brand-link,
.sightings-grid.subscribers-list-table thead th a.brand-link,
.sightings-grid.reports-list-table thead th a.brand-link,
.sightings-grid.help-centre-table thead th a.brand-link,
.sightings-grid.admin-support-queue-table thead th a.brand-link {
  color: rgba(255, 255, 255, 0.95);
}
.sightings-grid.sightings-list-table thead th a.brand-link:hover,
.sightings-grid.trips-list-table thead th a.brand-link:hover,
.sightings-grid.locations-list-table thead th a.brand-link:hover,
.sightings-grid.flights-list-table thead th a.brand-link:hover,
.sightings-grid.photos-list-table thead th a.brand-link:hover,
.sightings-grid.editor-tools-list-table thead th a.brand-link:hover,
.sightings-grid.suggestions-list-table thead th a.brand-link:hover,
.sightings-grid.fleet-list-table thead th a.brand-link:hover,
.sightings-grid.subscribers-list-table thead th a.brand-link:hover,
.sightings-grid.reports-list-table thead th a.brand-link:hover,
.sightings-grid.help-centre-table thead th a.brand-link:hover,
.sightings-grid.admin-support-queue-table thead th a.brand-link:hover {
  color: #ffffff;
}
.sightings-grid.sightings-list-table thead th a.brand-link i,
.sightings-grid.trips-list-table thead th a.brand-link i,
.sightings-grid.locations-list-table thead th a.brand-link i,
.sightings-grid.flights-list-table thead th a.brand-link i,
.sightings-grid.photos-list-table thead th a.brand-link i,
.sightings-grid.editor-tools-list-table thead th a.brand-link i,
.sightings-grid.suggestions-list-table thead th a.brand-link i,
.sightings-grid.fleet-list-table thead th a.brand-link i,
.sightings-grid.subscribers-list-table thead th a.brand-link i,
.sightings-grid.reports-list-table thead th a.brand-link i,
.sightings-grid.help-centre-table thead th a.brand-link i,
.sightings-grid.admin-support-queue-table thead th a.brand-link i {
  color: inherit;
}
.sightings-grid tbody tr { transition: background .15s ease; }
.sightings-grid tbody tr:hover { background: #f8fafc; }
.sightings-grid.suggestions-list-table tbody tr {
  background-color: #ffffff;
}
.sightings-grid.suggestions-list-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Suggestions list — vote / comment pill colours */
.suggestions-stat-pill {
  display: inline-flex;
  min-width: 2.5rem;
  justify-content: center;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
}
/* Table votes: keep three pills on one tidy row when the table is narrow */
.suggestions-votes-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
}
.sightings-grid.suggestions-list-table td.col-votes .suggestions-stat-pill--table-votes,
.sightings-grid.suggestions-list-table td.col-comments .suggestions-stat-pill--table-votes {
  min-width: 1.625rem;
  padding: 0.125rem 0.3rem;
  font-size: 0.6875rem;
  flex-shrink: 0;
}
.suggestions-stat-pill--up {
  background-color: #00b67a;
  color: #ffffff;
}
.suggestions-stat-pill--neutral {
  background-color: #6c757d;
  color: #ffffff;
}
.suggestions-stat-pill--down {
  background-color: #bc4749;
  color: #ffffff;
}
.suggestions-stat-pill--comments {
  background-color: #0b7ecf;
  color: #ffffff;
}
.suggestions-metric-icon {
  font-size: 1rem;
  line-height: 1;
}
.suggestions-metric-icon--up { color: #00b67a; }
.suggestions-metric-icon--neutral { color: #6c757d; }
.suggestions-metric-icon--down { color: #bc4749; }
.suggestions-metric-icon--comments { color: #0b7ecf; }
.suggestions-voted-icon-yes { color: #00b67a; }
.sightings-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(11, 126, 207, 0.12);
  color: var(--brand-primary);
  font-size: 11px;
  padding: 3px 10px;
  font-weight: 600;
}
.status-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff;
}
.status-dot-ok { background: var(--brand-success); }
.status-dot-no { background: #d1d5db; }
.page-pill {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  color: var(--brand-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}
.page-pill.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

/* Subscription upgrade / renewal CTA (matches dashboard “no subscription” strip) */
.sl-subscription-cta-banner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--sl-sub-cta-border);
  background: var(--sl-sub-cta-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
@media (min-width: 640px) {
  .sl-subscription-cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}
.sl-subscription-cta-banner__text {
  flex: 1;
  min-width: 0;
}
.sl-subscription-cta-banner__title {
  margin: 0 0 0.35rem 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sl-sub-cta-heading);
}
.sl-subscription-cta-banner__body {
  margin: 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sl-sub-cta-body);
}
.sl-subscription-cta-banner__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--brand-primary);
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(11, 126, 207, 0.35);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.sl-subscription-cta-banner__action:hover {
  filter: brightness(0.95);
  color: #fff !important;
}
.sl-subscription-cta-banner__action:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Account — Subscription & pricing (same horizontal band as other account pages: main shell is max-w-7xl) */
.subscription-page {
  max-width: none;
}
.sub-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}
.sub-status-banner .sub-status-banner__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.sub-status-banner--active {
  background: linear-gradient(135deg, rgba(11, 126, 207, 0.08) 0%, rgba(11, 126, 207, 0.02) 100%);
  border-color: rgba(11, 126, 207, 0.2);
}
.sub-status-banner--active .sub-status-banner__icon {
  background: rgba(11, 126, 207, 0.14);
  color: var(--brand-primary);
}
.sub-status-banner--soon {
  background: #fffbeb;
  border-color: #fde68a;
}
.sub-status-banner--soon .sub-status-banner__icon {
  background: #fef3c7;
  color: #b45309;
}
.sub-status-banner--expired {
  background: #fef2f2;
  border-color: #fecaca;
}
.sub-status-banner--expired .sub-status-banner__icon {
  background: #fee2e2;
  color: #b91c1c;
}

.sub-offer-card {
  border-radius: 1rem;
  border: 1px solid rgba(0, 184, 122, 0.25);
  background: linear-gradient(180deg, #f0fdf9 0%, #ffffff 55%);
  box-shadow: 0 4px 20px rgba(0, 184, 122, 0.08);
}
/* Welcome offer strip — same content width as .sub-status-banner (full main content column) */
.sub-offer-card--welcome {
  border-width: 2px;
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf9 35%, #ffffff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 8px 28px rgba(5, 120, 90, 0.12),
    0 2px 8px rgba(0, 0, 50, 0.06);
}
.sub-offer-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, #059669 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
.sub-offer-card__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #047857;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(5, 150, 105, 0.35);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.sub-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 50, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 0, 50, 0.04),
    0 8px 24px rgba(0, 0, 50, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.sub-pricing-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 4px 8px rgba(0, 0, 50, 0.06),
    0 16px 40px rgba(0, 0, 50, 0.1);
}
.sub-pricing-card__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  padding-top: 1.25rem;
}
.sub-pricing-card__badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.sub-pricing-card--loyalty .sub-pricing-card__badge {
  background: rgba(0, 182, 122, 0.14);
  color: #047857;
}
.sub-pricing-card--standard .sub-pricing-card__badge {
  background: rgba(0, 0, 50, 0.06);
  color: #475569;
}
.sub-pricing-card--featured {
  border-color: rgba(11, 126, 207, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 1px 2px rgba(11, 126, 207, 0.08),
    0 12px 36px rgba(11, 126, 207, 0.14);
}
.sub-pricing-card--featured:hover {
  box-shadow:
    0 8px 20px rgba(11, 126, 207, 0.12),
    0 20px 48px rgba(11, 126, 207, 0.16);
}
.sub-pricing-card--featured .sub-pricing-card__badge {
  background: rgba(11, 126, 207, 0.12);
  color: var(--brand-primary);
}
.sub-pricing-card__price {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.sub-pricing-card__progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 50, 0.06);
  overflow: hidden;
}
.sub-pricing-card__progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #00b67a, #34d399);
  transition: width 0.4s ease;
}
.sub-pricing-card__discount-box {
  border-radius: 0.75rem;
  border: 1px dashed rgba(0, 182, 122, 0.45);
  background: rgba(0, 182, 122, 0.04);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sub-loyalty-dialog::backdrop {
  background: rgba(0, 0, 50, 0.45);
  backdrop-filter: blur(2px);
}
.sub-loyalty-dialog {
  border: none;
  border-radius: 1rem;
  padding: 0;
  max-width: 28rem;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 48px rgba(0, 0, 50, 0.18);
  overflow: hidden;
}

.sub-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-primary);
}
.sub-footer-link:hover {
  text-decoration: underline;
}

.help-centre-table tbody tr,
.admin-support-queue-table tbody tr {
  vertical-align: top;
}

/* Admin — support request ticket (conversation + reply composer) */
.sl-admin-support-hero-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(11, 126, 207, 0.18), rgba(11, 126, 207, 0.06));
  color: var(--brand-primary);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(11, 126, 207, 0.2);
}
.sl-admin-support-thread-gap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sl-admin-support-msg {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sl-admin-support-msg__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sl-admin-support-msg--member .sl-admin-support-msg__avatar {
  background: var(--brand-pale-blue);
  color: var(--brand-navy);
}
.sl-admin-support-msg--staff .sl-admin-support-msg__avatar {
  background: var(--brand-primary);
  color: #fff;
}
.sl-admin-support-msg__body {
  flex: 1;
  min-width: 0;
  border-radius: 0.75rem;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(0, 0, 50, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 50, 0.04);
}
.sl-admin-support-msg--staff .sl-admin-support-msg__body {
  border-color: rgba(11, 126, 207, 0.22);
  background: linear-gradient(180deg, #fbfdff 0%, #f8fafc 100%);
}
.sl-admin-support-msg__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}
.sl-admin-support-reply-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(11, 126, 207, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 50, 0.06);
  background: #fff;
}
.sl-admin-support-reply-card__head {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, var(--brand-pale-blue) 0%, rgba(11, 126, 207, 0.06) 100%);
  border-bottom: 1px solid rgba(11, 126, 207, 0.15);
}
.sl-admin-support-reply-card__body {
  padding: 1.25rem;
}
.sl-admin-support-sidebar-card {
  position: sticky;
  top: 1rem;
}

/* Maintenance page */
.maintenance-hero-card {
  background:
    radial-gradient(circle at top right, rgba(11, 126, 207, 0.12), rgba(11, 126, 207, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.maintenance-hero-card--strong {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, #0b7ecf 0%, #0665a8 100%);
  border-color: rgba(255, 255, 255, 0.25);
}
.maintenance-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 126, 207, 0.14);
  color: var(--brand-primary);
  font-size: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(11, 126, 207, 0.2);
}
.maintenance-hero-icon--strong {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

/* Standalone print / report HTML (no app shell — e.g. mobile PWA without browser chrome) */
@media print {
  .no-print,
  .sl-standalone-report-toolbar {
    display: none !important;
  }
}
.sl-standalone-report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
  background: var(--brand-surface);
  border: 1px solid rgba(0, 0, 50, 0.1);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 50, 0.06);
}

/*
 * iOS Safari / PWA: avoid automatic zoom when focusing inputs (triggers when computed font-size < 16px).
 * Keep 16px on common form controls at small viewports; layout utilities can still size containers.
 */
@media screen and (max-width: 1023px) {
  input[type='text'],
  input[type='email'],
  input[type='password'],
  input[type='search'],
  input[type='tel'],
  input[type='url'],
  input[type='number'],
  input[type='date'],
  input[type='time'],
  input[type='datetime-local'],
  input[type='month'],
  input[type='week'],
  textarea,
  select {
    font-size: 16px;
  }
}
