@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
   Design tokens (single source of truth for every app page).
   Page-local :root blocks should only declare page-specific variables.
   ===================================================================== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #059669;
  --red: #dc2626;
  --yellow: #f59e0b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
  --soft: #eef2ff;
  --text: #111827;
  --page-bg: #f9fafb;
  --nav-bg: #0f172a;
  --table-head: #1e3a5f;
  --radius-card: 12px;
  --radius-ctl: 8px;
  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --wrap-max: 1400px;
  --wrap-wide: 1600px;
}

/* General */
body {
  font-family: var(--font-sans);
  margin: 20px;
  background: var(--page-bg);
  color: #333;
}

/* App pages (everything except the public pages and the landing page) */
body.app {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--page-bg);
  color: var(--text);
}

h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Buttons */
button {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-ctl);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.btn-secondary:hover {
  background: #d1d5db;
}

/* Filters */
.filters {
  display: flex;
  gap: 10px;
  margin: 15px 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.filters input,
.filters select {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Table - only apply to tables NOT inside .results-table-wrap, .table-wrap, or .results-admin-table */
table:not(.results-table):not(.table):not(.results-admin-table) {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
}

table:not(.results-table):not(.table):not(.results-admin-table) th,
table:not(.results-table):not(.table):not(.results-admin-table) td {
  padding: 10px;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

table:not(.results-table):not(.table):not(.results-admin-table) th {
  background: #f3f4f6;
  font-weight: bold;
}

table:not(.results-table):not(.table):not(.results-admin-table) tr:nth-child(even) {
  background: #fafafa;
}

table:not(.results-table):not(.table):not(.results-admin-table) tr:hover {
  background: #f1f5f9;
}

td.text-right {
  text-align: right;
}

td.positive {
  color: green;
  font-weight: bold;
}

td.negative {
  color: red;
  font-weight: bold;
}

/* Pagination */
.pagination {
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Column widths - only apply to tables NOT inside .results-table-wrap, .table-wrap, or .results-admin-table */
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(1),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(1) { width: 5%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(2),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(2) { width: 12%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(3),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(3) { width: 30%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(4),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(4) { width: 12%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(5),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(5) { width: 10%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(6),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(6) { width: 10%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(7),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(7) { width: 10%; }
table:not(.results-table):not(.table):not(.results-admin-table) th:nth-child(8),
table:not(.results-table):not(.table):not(.results-admin-table) td:nth-child(8) { width: 11%; }


:root {
    --sa-bg: #04091a;
    --sa-surface: #0b1020;
    --sa-surface-soft: #101628;
    --sa-accent: #3b82f6;
    --sa-accent-soft: rgba(59, 130, 246, 0.15);
    --sa-accent-2: #22c55e;
    --sa-border: rgba(148, 163, 184, 0.3);
    --sa-text: #e5e7eb;
    --sa-text-soft: #9ca3af;
    --sa-danger: #f97373;
    --sa-radius-lg: 18px;
    --sa-radius-xl: 26px;
    --sa-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.55);
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    color: #1e293b;
}

/* HEADER */
.sa-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
}

.sa-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.sa-logo {
    color: #f1f5f9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sa-logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.sa-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.sa-logo-title {
    font-weight: 700;
    font-size: 16px;
}

.sa-logo-subtitle {
    font-size: 11px;
    color: var(--sa-text-soft);
}

.sa-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.sa-nav-link {
    color: var(--sa-text-soft);
    font-size: 14px;
    text-decoration: none;
    padding: 4px 0;
    position: relative;
}

.sa-nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #22c55e);
    transition: width 0.2s ease-out;
}

.sa-nav-link:hover {
    color: var(--sa-text);
}

.sa-nav-link:hover::after {
    width: 100%;
}

/* BUTTONS */
.sa-btn {
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.12s ease-out;
}

.sa-btn-primary {
    background: linear-gradient(120deg, #3b82f6, #22c55e);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.sa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.55);
}

.sa-btn-ghost {
    background: rgba(15, 23, 42, 0.95);
    color: var(--sa-text);
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.sa-btn-ghost:hover {
    background: rgba(30, 64, 175, 0.75);
}

.sa-google-icon {
    width: 18px;
    height: 18px;
}

/* Stay logged in checkbox */
.sa-stay-logged-in {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--sa-text-secondary, #94a3b8);
    font-size: 0.875rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sa-stay-logged-in:hover {
    color: var(--sa-text, #f1f5f9);
}

.sa-stay-logged-in input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* MAIN LAYOUT */
.sa-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* HERO */
.sa-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 56px;
}

.sa-hero-title {
    font-size: clamp(34px, 5vw, 42px);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.sa-hero-gradient {
    background: linear-gradient(120deg, #3b82f6, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sa-hero-subtitle {
    margin: 0 0 20px;
    color: var(--sa-text-soft);
    font-size: 15px;
    max-width: 480px;
}

.sa-hero-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--sa-text-soft);
}

.sa-hero-actions {
    margin-bottom: 22px;
}

.sa-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.sa-stat-card {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.9);
    font-size: 12px;
}

.sa-stat-label {
    color: var(--sa-text-soft);
    margin-right: 6px;
}

.sa-stat-value {
    font-weight: 600;
}

/* HERO VISUAL */
.sa-hero-visual {
    position: relative;
    min-height: 260px;
}

.sa-glass-card {
    border-radius: var(--sa-radius-xl);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.35), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 16px 16px 18px;
    box-shadow: var(--sa-shadow-soft);
    backdrop-filter: blur(18px);
}

.sa-glass-main {
    position: relative;
    z-index: 2;
}

.sa-glass-side {
    position: absolute;
    right: -10px;
    bottom: -26px;
    width: 70%;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

.sa-glass-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 10px;
}

.sa-pill {
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.sa-pill-green {
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.sa-glass-body {
    font-size: 12px;
}

/* Fake chart */
.sa-chart-placeholder {
    height: 140px;
    border-radius: 16px;
    background: radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.25), rgba(15, 23, 42, 1));
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.sa-chart-line {
    position: absolute;
    height: 2px;
    border-radius: 999px;
}

.sa-chart-line-1 {
    width: 80%;
    left: 6%;
    top: 40%;
    background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0));
}

.sa-chart-line-2 {
    width: 60%;
    left: 12%;
    top: 60%;
    background: linear-gradient(90deg, #3b82f6, rgba(59, 130, 246, 0));
}

.sa-chart-line-3 {
    width: 40%;
    left: 20%;
    top: 30%;
    background: linear-gradient(90deg, #fbbf24, rgba(251, 191, 36, 0));
}

.sa-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sa-mini-card {
    padding: 8px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.sa-mini-label {
    font-size: 11px;
    color: var(--sa-text-soft);
}

.sa-mini-value {
    display: block;
    font-weight: 600;
    margin-top: 2px;
    font-size: 13px;
}

.sa-mini-up {
    color: #4ade80;
}

.sa-mini-down {
    color: #fca5a5;
}

/* Alerts */
.sa-alert-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.sa-alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.3);
}

.sa-alert-item:last-child {
    border-bottom: none;
}

.sa-alert-ticker {
    font-weight: 600;
}

.sa-alert-text {
    color: var(--sa-text-soft);
}

.sa-alert-up .sa-alert-ticker {
    color: #4ade80;
}

.sa-alert-down .sa-alert-ticker {
    color: #fca5a5;
}

/* SECTIONS */
.sa-section {
    margin: 60px 0 40px;
}

.sa-section-muted {
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.98));
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.sa-section-title {
    font-size: 22px;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.sa-section-subtitle {
    color: var(--sa-text-soft);
    font-size: 14px;
    max-width: 620px;
}

/* FEATURES */
.sa-feature-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.sa-feature-card {
    background: rgba(15, 23, 42, 0.96);
    border-radius: var(--sa-radius-lg);
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 16px 16px 18px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
}

.sa-feature-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.sa-feature-title {
    margin: 0 0 6px;
    font-size: 15px;
}

.sa-feature-text {
    margin: 0;
    font-size: 13px;
    color: var(--sa-text-soft);
}

/* STEPS */
.sa-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.sa-step {
    display: flex;
    gap: 10px;
}

.sa-step-number {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--sa-accent-soft);
    border: 1px solid rgba(59, 130, 246, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.sa-step-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.sa-step-body p {
    margin: 0;
    font-size: 13px;
    color: var(--sa-text-soft);
}

/* FOOTER SECTION */
.sa-footer-section {
    margin-top: 50px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 28px;
}

.sa-footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
}

.sa-footer-meta {
    max-width: 320px;
    text-align: right;
}

.sa-footer-tagline {
    font-size: 13px;
    color: var(--sa-text-soft);
}

.sa-footer-small {
    margin-top: 6px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.8);
}

/* RESPONSIVE */
@media (max-width: 880px) {
    .sa-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-hero-visual {
        order: -1;
    }

    .sa-header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .sa-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .sa-main {
        padding-inline: 16px;
    }

    .sa-glass-side {
        position: relative;
        margin-top: 16px;
        right: 0;
        bottom: 0;
        width: 100%;
    }

    .sa-footer-meta {
        text-align: left;
    }
}


/* === Classic dashboard section inside new UI === */



/* Buttons reused from old CSS but tuned to theme */
button {
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    border-radius: var(--radius-ctl);
    padding: 6px 14px;
    transition: background 0.15s ease-out;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
    padding: 6px 14px;
    transition: background 0.15s ease-out;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Dashboard layout */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 4px 8px;
}

.dashboard-header h3 {
    margin: 0;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 4px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.filters input,
.filters select {
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #1e293b;
    font-size: 13px;
}

/* Search Autocomplete for Dashboard */
.filters .search-autocomplete-container {
    position: relative;
    display: inline-block;
}

.filters .search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 280px;
    max-height: 300px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.filters .search-dropdown.show {
    display: block;
}

.filters .search-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s;
}

.filters .search-dropdown-item:last-child {
    border-bottom: none;
}

.filters .search-dropdown-item:hover,
.filters .search-dropdown-item.selected {
    background: #e0e7ff;
}

.filters .search-dropdown-item .ticker {
    font-weight: 600;
    color: #3b82f6;
    font-size: 13px;
}

.filters .search-dropdown-item .name {
    color: #6b7280;
    font-size: 12px;
    margin-left: 8px;
}

.filters .search-dropdown-empty,
.filters .search-dropdown-loading {
    padding: 12px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
}

/* Table */
.dashboard-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 4px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.dashboard-content th,
.dashboard-content td {
    padding: 10px;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.dashboard-content th {
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1e293b;
}

.dashboard-content tr:nth-child(even) {
    background: #f9fafb;
}

.dashboard-content tr:nth-child(odd) {
    background: #ffffff;
}

.dashboard-content tr:hover {
    background: #e0e7ff;
}

.dashboard-content td.positive {
    color: #4ade80;
    font-weight: 600;
}

.dashboard-content td.negative {
    color: #f97373;
    font-weight: 600;
}

/* Keep same column widths as before if needed */
.dashboard-content th:nth-child(1),
.dashboard-content td:nth-child(1) { width: 6%; text-align: center; }
.dashboard-content th:nth-child(2),
.dashboard-content td:nth-child(2) { width: 12%; text-align: left; }
.dashboard-content th:nth-child(3),
.dashboard-content td:nth-child(3) { width: 30%; text-align: left; }
.dashboard-content th:nth-child(4),
.dashboard-content td:nth-child(4) { width: 10%; text-align: right; }
.dashboard-content th:nth-child(5),
.dashboard-content td:nth-child(5) { width: 10%; text-align: right; }
.dashboard-content th:nth-child(6),
.dashboard-content td:nth-child(6) { width: 10%; text-align: right; }
.dashboard-content th:nth-child(7),
.dashboard-content td:nth-child(7) { width: 10%; text-align: right; }
.dashboard-content th:nth-child(8),
.dashboard-content td:nth-child(8) { width: 10%; text-align: right; }
.dashboard-content th:nth-child(9),
.dashboard-content td:nth-child(9) { width: 12%; text-align: right; }

/* Pagination */
.pagination {
    margin: 15px 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

/* === Override dashboard layout to match other pages === */

.sa-section.sa-dashboard-wrapper {
    /* behave like a normal full-width page section */
    margin-top: 24px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Header in line with other pages */

/* Make dashboard content use same horizontal margins as old page */
#dashboard-section {
    margin: 0 20px 32px;
}

/* -------------------------------------------------------------
   LIGHT HEADER (for dashboard, marketbreadth, portfolio pages)
   ------------------------------------------------------------- */

.light-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 20px;
}

.light-header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.light-header .brand {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.light-nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
}

.light-nav a:hover,
.light-nav a.active {
    background: #e5e7eb;
    color: #111827;
}

#logout-btn-top {
    padding: 6px 12px;
    border-radius: 6px;
    background: #e5e7eb;
    color: #111827;
    border: none;
    cursor: pointer;
}

#logout-btn-top:hover {
    background: #d1d5db;
}

/* =============================================================
   FOOTER — light grey theme matching body
   ============================================================= */

.sa-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    margin-top: 48px;
    font-size: 14px;
    color: #6b7280;
}

.sa-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 0;
}

.sa-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e2e8f0;
}

.sa-footer-brand {
    padding-right: 32px;
}

.sa-footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sa-footer-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: white;
}

.sa-footer-brand-name {
    font-weight: 700;
    font-size: 15px;
    color: #1e293b;
}

.sa-footer-brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 12px;
}

.sa-footer-brand-email {
    font-size: 13px;
    color: #6b7280;
}

.sa-footer-brand-email a {
    color: #3b82f6;
    text-decoration: none;
}

.sa-footer-brand-email a:hover {
    text-decoration: underline;
}

.sa-footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.sa-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sa-footer-column ul li {
    margin-bottom: 8px;
}

.sa-footer-column ul li a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.15s ease;
}

.sa-footer-column ul li a:hover {
    color: #1e293b;
}

.sa-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: #9ca3af;
}

.sa-footer-bottom a {
    color: #6b7280;
    text-decoration: none;
}

.sa-footer-bottom a:hover {
    color: #1e293b;
}

.sa-footer-made {
    color: #9ca3af;
}

.sa-footer-made span {
    color: #22c55e;
}

/* Footer responsive */
@media (max-width: 768px) {
    .sa-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .sa-footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .sa-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sa-footer-top {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   REDESIGNED LANDING PAGE — New Styles
   ============================================================ */

/* --- Container --- */
.sa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Gradient Text --- */
.sa-gradient-text {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Section Header --- */
.sa-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.sa-section-tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.sa-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    color: #1e293b;
    line-height: 1.2;
}

.sa-section-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Mobile Toggle --- */
.sa-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.sa-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s;
}

.sa-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.sa-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.sa-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Menu --- */
.sa-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.sa-mobile-menu.open {
    display: flex;
}

.sa-mobile-link {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    padding: 8px 24px;
    transition: color 0.2s;
}

.sa-mobile-link:hover,
.sa-mobile-cta {
    color: #3b82f6;
}

/* ============================================================
   NAVBAR — Updated
   ============================================================ */
.sa-header {
    transition: background 0.3s, box-shadow 0.3s;
}

.sa-header.scrolled {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sa-nav-cta {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sa-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sa-nav-cta::after {
    display: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.sa-hero-section {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.sa-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.sa-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 8s ease-in-out infinite;
}

.sa-hero-orb-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.sa-hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #22c55e;
    top: 50%;
    right: -50px;
    animation-delay: -3s;
}

.sa-hero-orb-3 {
    width: 250px;
    height: 250px;
    background: #8b5cf6;
    bottom: -50px;
    left: 30%;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.sa-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.sa-hero-left {
    max-width: 560px;
}

.sa-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.sa-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.sa-hero-title {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #f8fafc;
    letter-spacing: -0.03em;
}

.sa-hero-subtitle {
    font-size: 17px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* --- Hero Login Section --- */
.sa-hero-actions {
    margin-bottom: 28px;
}

.sa-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transition: all 0.2s;
}

.sa-btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

.sa-google-icon {
    width: 20px;
    height: 20px;
}

.sa-stay-logged-in {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
}

.sa-stay-logged-in input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 16px;
    height: 16px;
}

/* Auth Divider */
.sa-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: #64748b;
    font-size: 13px;
}

.sa-auth-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid #334155;
}

/* Auth Tabs */
.sa-auth-tabs {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #334155;
    margin-bottom: 12px;
}

.sa-auth-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #64748b;
    transition: all 0.2s;
}

.sa-auth-tab.active {
    background: #1e293b;
    color: #e2e8f0;
}

/* Auth Form */
.sa-auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
}

.sa-auth-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.sa-auth-input:focus {
    border-color: #3b82f6;
}

.sa-btn-email {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-btn-email:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.sa-auth-message {
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.sa-auth-error { color: #f87171; }
.sa-auth-success { color: #4ade80; }

/* Trust Section */
.sa-hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.sa-trust-avatars {
    display: flex;
}

.sa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 2px solid #0f172a;
    margin-left: -8px;
}

.sa-avatar:first-child {
    margin-left: 0;
}

.sa-avatar-more {
    background: #334155 !important;
    font-size: 14px;
}

.sa-trust-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

.sa-trust-text strong {
    color: #e2e8f0;
}

/* --- Hero Right — Preview Card --- */
.sa-hero-right {
    position: relative;
}

.sa-preview-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.sa-preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.sa-preview-dots {
    display: flex;
    gap: 6px;
}

.sa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sa-dot-red { background: #ef4444; }
.sa-dot-yellow { background: #f59e0b; }
.sa-dot-green { background: #22c55e; }

.sa-preview-title {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.sa-live-badge {
    margin-left: auto;
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.sa-preview-body {
    padding: 16px;
}

.sa-preview-chart {
    margin-bottom: 16px;
}

.sa-chart-svg {
    width: 100%;
    height: 120px;
}

.sa-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.sa-preview-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sa-stat-label-small {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sa-stat-value-small {
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 700;
}

.sa-stat-change {
    font-size: 11px;
    font-weight: 600;
}

.sa-stat-up { color: #22c55e; }
.sa-stat-down { color: #ef4444; }

/* Floating Cards */
.sa-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.sa-float-alert {
    top: -20px;
    right: -20px;
    animation-delay: -1s;
}

.sa-float-portfolio {
    bottom: 40px;
    left: -30px;
    animation-delay: -2.5s;
}

.sa-float-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(59, 130, 246, 0.15);
}

.sa-float-icon-green {
    background: rgba(34, 197, 94, 0.15);
}

.sa-float-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.sa-float-text {
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
}

.sa-float-value {
    font-size: 16px;
    font-weight: 700;
}

.sa-float-positive {
    color: #22c55e;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.sa-stats-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 32px 0;
}

.sa-stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sa-stat-item {
    text-align: center;
}

.sa-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.sa-stat-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.sa-stat-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.sa-features-section {
    padding: 80px 0;
    background: #f8fafc;
}

.sa-feature-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sa-feature-mega {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
    cursor: default;
}

.sa-feature-mega:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.sa-feature-mega-wide {
    grid-column: span 2;
}

.sa-feature-mega-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin-bottom: 16px;
}

.sa-feature-mega-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.sa-feature-mega-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 12px;
}

.sa-feature-mega-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sa-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* ============================================================
   TOOLS SECTION
   ============================================================ */
.sa-tools-section {
    padding: 80px 0;
    background: #fff;
}

.sa-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sa-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.sa-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
    background: #fff;
}

.sa-tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #fff;
}

.sa-tool-icon-blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sa-tool-icon-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sa-tool-icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.sa-tool-icon-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.sa-tool-icon-red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.sa-tool-icon-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.sa-tool-icon-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.sa-tool-icon-pink { background: linear-gradient(135deg, #ec4899, #db2777); }

.sa-tool-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.sa-tool-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.5;
}

.sa-tool-arrow {
    margin-top: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    transition: all 0.3s;
}

.sa-tool-card:hover .sa-tool-arrow {
    background: #3b82f6;
    color: #fff;
    transform: translateX(4px);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.sa-how-section {
    padding: 80px 0;
    background: #f8fafc;
}

.sa-how-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.sa-how-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s;
}

.sa-how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.sa-how-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-how-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    margin: 8px auto 16px;
}

.sa-how-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.sa-how-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.sa-how-connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #22c55e);
    opacity: 0.3;
    flex-shrink: 0;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.sa-pricing-section {
    padding: 80px 0;
    background: #fff;
}

.sa-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.sa-pricing-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.sa-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.sa-pricing-popular {
    background: #fff;
    border: 2px solid #3b82f6;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

.sa-pricing-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

.sa-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.sa-pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
}

.sa-pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.sa-pricing-price span {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.sa-pricing-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px;
}

.sa-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.sa-pricing-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
}

.sa-pricing-features li svg {
    color: #22c55e;
    flex-shrink: 0;
}

.sa-btn-outline {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: transparent;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.sa-btn-gradient {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transition: all 0.2s;
}

.sa-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.sa-cta-section {
    padding: 80px 0;
    background: #f8fafc;
}

.sa-cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.sa-cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(60px);
}

.sa-cta-content {
    position: relative;
    z-index: 1;
}

.sa-cta-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 12px;
    line-height: 1.2;
}

.sa-cta-text {
    font-size: 16px;
    color: #94a3b8;
    margin: 0 0 24px;
    line-height: 1.6;
}

.sa-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sa-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: transparent;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.sa-btn-ghost:hover {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.5);
}

.sa-cta-visual {
    position: relative;
    z-index: 1;
}

.sa-cta-chart {
    margin-bottom: 20px;
}

.sa-cta-chart-svg {
    width: 100%;
    height: 80px;
}

.sa-cta-stats {
    display: flex;
    gap: 24px;
}

.sa-cta-stat {
    display: flex;
    flex-direction: column;
}

.sa-cta-stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #22c55e;
}

.sa-cta-stat-label {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ============================================================
   FOOTER — Social
   ============================================================ */
.sa-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.sa-social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}

.sa-social-link:hover {
    background: #3b82f6;
    color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .sa-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sa-hero-right {
        max-width: 500px;
        margin: 0 auto;
    }

    .sa-feature-mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-feature-mega-wide {
        grid-column: span 2;
    }

    .sa-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sa-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-pricing-popular {
        transform: scale(1);
    }

    .sa-pricing-popular:hover {
        transform: translateY(-4px);
    }
}

@media (max-width: 768px) {
    .sa-mobile-toggle {
        display: flex;
    }

    .sa-nav {
        display: none;
    }

    .sa-hero-section {
        padding: 60px 0 40px;
    }

    .sa-hero-title {
        font-size: 32px;
    }

    .sa-stats-grid {
        gap: 24px;
    }

    .sa-stat-divider {
        display: none;
    }

    .sa-feature-mega-grid {
        grid-template-columns: 1fr;
    }

    .sa-feature-mega-wide {
        grid-column: span 1;
    }

    .sa-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sa-how-grid {
        flex-direction: column;
    }

    .sa-how-connector {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, #3b82f6, #22c55e);
    }

    .sa-pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .sa-cta-card {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .sa-float-card {
        display: none;
    }

    .sa-footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .sa-tools-grid {
        grid-template-columns: 1fr;
    }

    .sa-footer-top {
        grid-template-columns: 1fr;
    }

    .sa-cta-stats {
        flex-direction: column;
        gap: 12px;
    }
}




/* =====================================================================
   Shared app components (navbar, wrap, page header, results table)
   Used by every app page; markup for the navbar is rendered by nav.js.
   ===================================================================== */

/* Navbar */
.navbar {
    background: var(--nav-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .brand {
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
    flex: none;
}
/* One row: links, Tour button and the notification bell (a <div>) all sit inline */
.navbar .links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}
.navbar .links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 8px;
    border-radius: var(--radius-ctl);
    margin-left: 4px;
    font-size: 13px;
}
.navbar .links a.active,
.navbar .links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

/* Content container */
.wrap {
    padding: 20px;
    max-width: var(--wrap-max);
    margin: 0 auto;
}
.wrap.wrap--wide {
    max-width: var(--wrap-wide);
}

/* Footer lines up with the content container on app pages */
body.app .sa-footer-inner {
    max-width: var(--wrap-max);
    padding-left: 20px;
    padding-right: 20px;
}
body.app:has(.wrap--wide) .sa-footer-inner {
    max-width: var(--wrap-wide);
}

/* Page header: title + one-line description on the left, actions on the right */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}
.header-subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Public pages (about / terms / support / feedback): same navy bar and brand as the app navbar */
.simple-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--nav-bg);
    color: #fff;
}
.simple-header-brand {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .3px;
    color: #fff;
    text-decoration: none;
}
.simple-header-back {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: var(--radius-ctl);
}
.simple-header-back:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
}

/* Right side of the page header (buttons, badges, Logout) */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Logout button: .btn-logout (pages with their own handler) and .sa-logout (nav.js handler) */
.btn-logout,
.sa-logout {
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-ctl);
    background: var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.btn-logout:hover,
.sa-logout:hover {
    background: #d1d5db;
}

/* Results table: dark header, sortable columns (column layout stays page-specific) */
.results-table thead {
    background: var(--table-head);
    color: #ffffff;
}
.results-table thead th {
    font-weight: 600;
    font-size: 12px;
    color: #ffffff;
}
.results-table thead th:first-child {
    background: var(--table-head);
    color: #ffffff;
}
.results-table tbody tr:hover {
    background: #f0f7ff;
}
.results-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
}
.results-table thead th.sortable:hover {
    background: rgba(0, 0, 0, 0.05);
}
.results-table thead th.sortable::after {
    content: '\21C5';
    position: absolute;
    right: 6px;
    opacity: 0.4;
    font-size: 10px;
}
.results-table thead th.sortable.asc::after {
    content: '\2191';
    opacity: 1;
}
.results-table thead th.sortable.desc::after {
    content: '\2193';
    opacity: 1;
}

/* =====================================================================
   Mobile layer (shared by all app pages; see mobile-nav.js)
   Selectors use .sa-mnav (added by mobile-nav.js) + !important where needed
   because each page also has its own inline navbar styles.
   ===================================================================== */
.nav-toggle { display: none; }

@media (max-width: 768px) {
    /* Navbar: brand + ☰ on one row, links in a dropdown list */
    .navbar.sa-mnav {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 16px !important;
    }
    .navbar.sa-mnav .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 10px;
        background: transparent;
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }
    .navbar.sa-mnav .links { display: none !important; }
    .navbar.sa-mnav.sa-mnav-open .links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        flex-basis: 100%;
        width: 100%;
        gap: 2px;
        padding: 8px 0 4px;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .navbar.sa-mnav.sa-mnav-open .links > a,
    .navbar.sa-mnav.sa-mnav-open .links > button {
        display: block;
        margin: 0 !important;
        padding: 12px 10px !important;
        font-size: 15px !important;
        text-align: left;
    }

    /* Touch targets */
    button, .btn, a.btn, select { min-height: 32px; }
    input[type="checkbox"], input[type="radio"] { width: 20px !important; height: 20px !important; }

    /* Pinned stock column while a wide table scrolls sideways */
    /* Background is copied in by mobile-nav.js so pinned cells are opaque.
       Layering: pinned body cells above other body cells; pinned header cells above
       everything (pages like the dashboard already make all header cells sticky at z-index 10). */
    td.sa-pin, th.sa-pin {
        position: sticky !important;
        z-index: 5 !important;
    }
    thead th.sa-pin { z-index: 30 !important; }
    .sa-pin-unclip { overflow: visible !important; }
    .sa-pin-last { box-shadow: 2px 0 4px -2px rgba(15, 23, 42, 0.25); }
}

/* =====================================================================
   Navbar company search (rendered by nav.js)
   ===================================================================== */
.navbar .nav-search {
    position: relative;
    flex: 0 1 200px;
    min-width: 150px;
    margin: 0 4px 0 14px;
}
.navbar .nav-search .ns-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}
.navbar .nav-search .ns-input {
    width: 100%;
    padding: 8px 30px 8px 32px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-family: inherit;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.navbar .nav-search .ns-input::placeholder { color: #64748b; }
.navbar .nav-search .ns-input:focus {
    outline: none;
    background: #fff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, .35);
}
.navbar .nav-search .ns-key {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: 11px;
    font-family: var(--font-mono);
    line-height: 16px;
    pointer-events: none;
}
.navbar .nav-search .ns-input:focus ~ .ns-key { display: none; }
.navbar .links { margin-left: auto; }

.navbar .ns-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    width: 340px;
    max-width: 92vw;
    max-height: 380px;
    overflow-y: auto;
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .28);
    padding: 6px;
    z-index: 300;
}
.navbar .ns-list[hidden] { display: none; }
.navbar .ns-head {
    padding: 6px 10px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--muted);
}
.navbar .ns-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}
.navbar .ns-item.on { background: var(--soft); }
.navbar .ns-sym { font-weight: 700; color: var(--primary); white-space: nowrap; }
.navbar .ns-bse {
    padding: 0 5px;
    border-radius: 4px;
    background: var(--soft);
    color: var(--primary);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .3px;
}
.navbar .ns-name {
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.navbar .ns-empty { padding: 12px; color: var(--muted); font-size: 13px; text-align: center; }

@media (max-width: 768px) {
    /* phone: brand + menu button on the first row, the search box full width underneath, then the link list */
    .navbar.sa-mnav .nav-search { order: 3; flex: 1 1 100%; margin: 10px 0 2px; }
    .navbar.sa-mnav .links { order: 4; }
    .navbar .nav-search .ns-input { padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
    .navbar .nav-search .ns-key { display: none; }
    .navbar .ns-list { width: 100%; }
}

/* App logo: the same image everywhere (navbar, landing page, footers, simple headers) */
.navbar .brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: block; width: 28px; height: 28px; border-radius: 0; flex: none; box-shadow: none; }
.simple-header-brand .brand-mark { display: inline-block; vertical-align: -7px; margin-right: 6px; width: 26px; height: 26px; }
img.sa-logo-img { background: none !important; object-fit: contain; padding: 0 !important; border-radius: 0; box-shadow: none; }
.navbar a.brand { color: inherit; text-decoration: none; transition: opacity .15s; }
.navbar a.brand:hover { opacity: .85; }
.navbar a.brand:focus-visible { outline: 2px solid #93c5fd; outline-offset: 3px; border-radius: 6px; }
/* navbar tighten: room for the logo */
@media (min-width: 900px) {
    .navbar .links a { padding: 8px 6px; margin-left: 1px; }
    .navbar .nav-search { flex: 0 1 170px; margin-left: 10px; }
    .navbar .brand { gap: 8px; }
}

/* e-mail sign-up: check-your-inbox / forgot-password panels */
.sa-auth-panel { text-align: center; padding: 6px 2px 2px; }
.sa-auth-panel h3 { margin: 6px 0 8px; font-size: 18px; color: #f8fafc; }
.sa-auth-panel p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: #cbd5e1; }
.sa-auth-panel .sa-auth-panel-note { font-size: 12.5px; color: #94a3b8; }
.sa-auth-panel-icon { font-size: 34px; color: #93c5fd; }
.sa-auth-panel .sa-auth-input { margin-bottom: 10px; }
.sa-auth-link { display: block; margin: 12px auto 0; background: none; border: 0; padding: 4px; color: #93c5fd; font-size: 13px; cursor: pointer; text-decoration: underline; }
.sa-auth-link:hover { color: #bfdbfe; }
#email-auth-form .sa-auth-link { margin-top: 8px; }
.sa-btn-email:disabled { opacity: .6; cursor: not-allowed; }
