/* =========================================================
   SiteAnalyzer — main stylesheet
   ========================================================= */

:root {
    --sa-bg: #0a0e1a;
    --sa-bg-alt: #0d1220;
    --sa-panel: #101827;
    --sa-panel-border: #1e2a3f;
    --sa-blue: #2f6bff;
    --sa-blue-light: #4f8bff;
    --sa-blue-gradient: linear-gradient(135deg, #2f6bff 0%, #1747c4 100%);
    --sa-text: #e6ebf5;
    --sa-text-muted: #8a94a6;
    --sa-text-dim: #5f6b80;
    --sa-green: #3ddc84;
    --sa-orange: #f5a623;
    --sa-red: #f0506e;
    --sa-radius: 14px;
    --sa-radius-sm: 8px;

    /* Light theme (page background — everything except header/footer) */
    --sa-light-bg: #ffffff;
    --sa-light-panel: #f7f8fb;
    --sa-light-border: #e7eaf1;
    --sa-light-text: #0b1220;
    --sa-light-text-muted: #5b6472;
    --sa-light-text-dim: #8891a0;

    --sa-navbar-h: 73px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--sa-light-bg);
    color: var(--sa-light-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Background glow effect */
.sa-hero {
    position: relative;
    background:
        radial-gradient(circle at 15% 15%, rgba(47, 107, 255, 0.07), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(47, 107, 255, 0.05), transparent 40%),
        var(--sa-light-bg);
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.sa-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 14, 26, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 14, 26, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
    pointer-events: none;
}

/* ---------- Navbar ---------- */
.sa-navbar {
    background-color: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sa-panel-border);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.sa-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--sa-text);
}

.sa-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--sa-blue-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-logo-accent {
    color: var(--sa-blue-light);
}

.sa-nav-link {
    color: var(--sa-text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.15s ease;
}

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

.sa-btn-login {
    color: var(--sa-text) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.sa-btn-primary {
    background: var(--sa-blue-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: var(--sa-radius-sm);
    box-shadow: 0 4px 16px rgba(47, 107, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.sa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.45);
    color: #fff;
}

/* ---------- Navbar account dropdown (логнат потребител) ---------- */
.sa-navbar-account {
    display: flex;
    justify-content: center;
}

.sa-navbar-account-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: none;
    border: none;
    color: var(--sa-text);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}

.sa-navbar-account-btn:hover,
.sa-navbar-account-btn:focus {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--sa-text);
}

.sa-navbar-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--sa-blue-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.sa-navbar-account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-navbar-account-menu {
    min-width: 190px;
    margin-top: 0.5rem;
    padding: 0.4rem;
    border: 1px solid var(--sa-light-border);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.2);
    font-size: 0.9rem;
}

.sa-navbar-account-menu .dropdown-item {
    border-radius: 7px;
    padding: 0.55rem 0.7rem;
    color: var(--sa-light-text);
}

.sa-navbar-account-menu .dropdown-item:hover,
.sa-navbar-account-menu .dropdown-item:focus {
    background-color: var(--sa-light-panel);
    color: var(--sa-light-text);
}

/* ---------- Generic internal page content (pages.php) ---------- */
.sa-page-content {
    background-color: var(--sa-light-bg);
    padding: calc(var(--sa-navbar-h) + 2.5rem) 0 4rem;
    min-height: 60vh;
}

.navbar-toggler {
    border-color: var(--sa-panel-border) !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ---------- Hero text ---------- */
.sa-headline {
    font-weight: 800;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--sa-light-text);
}

.sa-headline .sa-accent {
    color: var(--sa-blue);
}

.sa-subtext {
    color: var(--sa-light-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 520px;
}

/* ---------- URL analyze form ---------- */
.sa-url-form {
    background-color: var(--sa-light-panel);
    border: 1px solid var(--sa-light-border);
    border-radius: var(--sa-radius);
    padding: 0.5rem;
    max-width: 560px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, 0.05);
}

.sa-url-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1 1 auto;
    padding: 0.4rem 0.75rem;
    min-width: 0;
}

.sa-url-input-wrap i,
.sa-url-input-wrap svg {
    color: var(--sa-light-text-dim);
    flex-shrink: 0;
}

.sa-url-input {
    background: transparent;
    border: none;
    color: var(--sa-light-text);
    font-size: 0.98rem;
    width: 100%;
    min-width: 0;
}

.sa-url-input:focus {
    outline: none;
    box-shadow: none;
}

.sa-url-input::placeholder {
    color: var(--sa-light-text-dim);
}

.sa-analyze-btn {
    background: var(--sa-blue-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    border-radius: var(--sa-radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(47, 107, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-analyze-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.45);
    color: #fff;
}

.sa-form-note {
    color: var(--sa-light-text-dim);
    font-size: 0.88rem;
}

.sa-form-note i,
.sa-form-note svg {
    color: var(--sa-green);
}

/* ---------- Organic traffic visual (hero right side) ---------- */
.sa-traffic-visual {
    position: relative;
    max-width: 480px;
    margin: 2.75rem auto 3.25rem;
}

.sa-traffic-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 1.75rem 1.75rem 1.4rem;
    border: 1px solid var(--sa-light-border);
    box-shadow: 0 25px 60px -12px rgba(16, 24, 40, 0.22), 0 12px 28px rgba(47, 107, 255, 0.10);
}

.sa-traffic-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.sa-traffic-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-blue { background-color: var(--sa-blue); }
.dot-green { background-color: var(--sa-green); }
.dot-gray { background-color: #e2e5ec; }

.sa-traffic-title {
    color: #0a0e1a;
    font-weight: 700;
    font-size: 1.05rem;
    margin-left: 0.35rem;
}

.sa-traffic-chart-wrap {
    height: 210px;
    margin-bottom: 1.1rem;
}

.sa-traffic-stats {
    display: flex;
    border-top: 1px solid #eef0f4;
    padding-top: 1rem;
}

.sa-traffic-stat {
    flex: 1;
    text-align: center;
    border-right: 1px solid #eef0f4;
    padding: 0 0.4rem;
}

.sa-traffic-stat:last-child {
    border-right: none;
}

.sa-stat-value {
    font-weight: 800;
    font-size: 1.25rem;
    color: #0a0e1a;
    line-height: 1.2;
}

.sa-stat-label {
    font-size: 0.75rem;
    color: var(--sa-light-text-dim);
    margin-top: 0.15rem;
}

/* Floating stat badges */
.sa-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--sa-light-border);
    box-shadow: 0 20px 40px -8px rgba(16, 24, 40, 0.25), 0 6px 16px rgba(16, 24, 40, 0.08);
    padding: 0.9rem 1.15rem;
    max-width: 220px;
}

.sa-float-badge-top {
    top: -1.5rem;
    right: -0.5rem;
}

.sa-float-badge-bottom {
    bottom: -1.5rem;
    left: -0.5rem;
}

.sa-float-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background-color: rgba(47, 107, 255, 0.12);
    color: var(--sa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sa-float-icon-alt {
    background-color: rgba(61, 220, 132, 0.15);
    color: #1f9c5a;
}

.sa-float-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: #0a0e1a;
    line-height: 1.15;
}

.sa-float-label {
    font-size: 0.78rem;
    color: var(--sa-text-dim);
    white-space: nowrap;
}

/* ---------- Trusted-by strip ---------- */
.sa-trusted {
    background-color: var(--sa-light-bg);
    padding: 3rem 0;
    border-top: 1px solid var(--sa-light-border);
    border-bottom: 1px solid var(--sa-light-border);
}

.sa-trusted-label {
    text-align: center;
    color: var(--sa-light-text-dim);
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

.sa-logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2.5rem 3.5rem;
    filter: grayscale(1);
    opacity: 0.65;
}

.sa-logo-strip .sa-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--sa-light-text-muted);
    white-space: nowrap;
}

/* ---------- Footer ---------- */
.sa-footer {
    background-color: var(--sa-bg-alt);
    padding-top: 4rem;
    padding-bottom: 1.5rem;
}

.sa-footer-desc {
    color: var(--sa-text-muted);
    font-size: 0.92rem;
    max-width: 320px;
    line-height: 1.6;
}

.sa-footer-heading {
    color: var(--sa-text);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.sa-footer-link {
    color: var(--sa-text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.7rem;
    transition: color 0.15s ease;
}

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

.sa-social-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--sa-panel-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-text-muted);
    transition: all 0.15s ease;
}

.sa-social-icon:hover {
    color: #fff;
    border-color: var(--sa-blue);
    background-color: rgba(47, 107, 255, 0.15);
}

.sa-newsletter-input {
    background-color: var(--sa-panel);
    border: 1px solid var(--sa-panel-border);
    color: var(--sa-text);
    border-radius: var(--sa-radius-sm) 0 0 var(--sa-radius-sm);
    font-size: 0.9rem;
}

.sa-newsletter-input:focus {
    background-color: var(--sa-panel);
    color: var(--sa-text);
    box-shadow: none;
    border-color: var(--sa-blue);
}

.sa-newsletter-input::placeholder {
    color: var(--sa-text-dim);
}

.sa-newsletter-btn {
    background: var(--sa-blue-gradient);
    border: none;
    border-radius: 0 var(--sa-radius-sm) var(--sa-radius-sm) 0;
    color: #fff;
    padding: 0 1rem;
}

.sa-footer-bottom {
    border-top: 1px solid var(--sa-panel-border);
    margin-top: 3rem;
    padding-top: 1.5rem;
    color: var(--sa-text-dim);
    font-size: 0.85rem;
}

.sa-footer-bottom a {
    color: var(--sa-text-dim);
    margin-left: 1.5rem;
    transition: color 0.15s ease;
}

.sa-footer-bottom a:hover {
    color: var(--sa-text);
}

/* ---------- Auth pages (login / register) ---------- */
.sa-auth-page {
    position: relative;
    overflow: hidden;
    padding: calc(4.5rem + 3rem) 1.25rem 5rem;
    background:
        radial-gradient(circle at 8% 8%, rgba(47, 107, 255, 0.07), transparent 40%),
        radial-gradient(circle at 92% 92%, rgba(47, 107, 255, 0.08), transparent 45%),
        var(--sa-light-bg);
}

.sa-auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(10, 14, 26, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 14, 26, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
    pointer-events: none;
}

.sa-auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.sa-auth-wrapper-wide {
    max-width: 500px;
}

.sa-auth-card {
    background-color: #ffffff;
    border: 1px solid var(--sa-light-border);
    border-radius: 20px;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 60px -12px rgba(16, 24, 40, 0.18), 0 10px 25px rgba(16, 24, 40, 0.06);
}

.sa-auth-logo {
    margin-bottom: 2rem;
}

.sa-auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sa-light-text);
    letter-spacing: -0.01em;
    margin-bottom: 0.35rem;
}

.sa-auth-subtitle {
    color: var(--sa-light-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.85rem;
}

.sa-form-group {
    margin-bottom: 1.25rem;
}

.sa-form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--sa-light-text);
    margin-bottom: 0.45rem;
}

.sa-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.sa-label-row .sa-form-label {
    margin-bottom: 0;
}

.sa-inline-link {
    font-size: 0.85rem;
    color: var(--sa-blue);
    font-weight: 600;
}

.sa-inline-link:hover {
    text-decoration: underline;
}

.sa-input-wrap {
    position: relative;
}

.sa-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sa-light-text-dim);
    font-size: 1rem;
    pointer-events: none;
}

.sa-form-input {
    width: 100%;
    padding: 0.82rem 1rem 0.82rem 2.75rem;
    border: 1px solid var(--sa-light-border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--sa-light-text);
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-form-input-toggle {
    padding-right: 2.75rem;
}

.sa-form-input::placeholder {
    color: var(--sa-light-text-dim);
}

.sa-form-input:focus {
    outline: none;
    border-color: var(--sa-blue);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12);
}

.sa-form-input[readonly] {
    background-color: var(--sa-light-panel);
    color: var(--sa-light-text-muted);
    cursor: default;
}

.sa-form-input[readonly]:focus {
    border-color: var(--sa-light-border);
    box-shadow: none;
}

.sa-auth-alert {
    border-radius: 10px;
    font-size: 0.86rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
}

.sa-auth-alert div + div {
    margin-top: 0.25rem;
}

.sa-toggle-visibility {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    display: flex;
    color: var(--sa-light-text-dim);
    cursor: pointer;
    transition: color 0.15s ease;
}

.sa-toggle-visibility:hover {
    color: var(--sa-light-text);
}

.sa-strength-meter {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.65rem;
}

.sa-strength-bars {
    display: flex;
    gap: 5px;
    flex: 1;
}

.sa-strength-segment {
    height: 5px;
    flex: 1;
    border-radius: 3px;
    background-color: var(--sa-light-border);
    transition: background-color 0.2s ease;
}

.sa-strength-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sa-light-text-dim);
    white-space: nowrap;
    min-width: 46px;
    text-align: right;
}

.sa-field-hint {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    display: none;
}

.sa-field-hint.match {
    color: var(--sa-green);
    display: block;
}

.sa-field-hint.mismatch {
    color: var(--sa-red);
    display: block;
}

.sa-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0.2rem 0 1.5rem;
    font-size: 0.9rem;
    color: var(--sa-light-text-muted);
    line-height: 1.4;
}

.sa-checkbox-row.sa-checkbox-row-terms {
    margin-bottom: 1.75rem;
}

.sa-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--sa-blue);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.sa-checkbox-row label {
    cursor: pointer;
}

.sa-auth-submit-btn {
    width: 100%;
    background: var(--sa-blue-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 25px rgba(47, 107, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-auth-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(47, 107, 255, 0.4);
    color: #fff;
}

.sa-divider {
    position: relative;
    text-align: center;
    margin: 1.75rem 0 1.25rem;
}

.sa-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: var(--sa-light-border);
}

.sa-divider span {
    position: relative;
    background-color: #ffffff;
    padding: 0 0.85rem;
    color: var(--sa-light-text-dim);
    font-size: 0.85rem;
}

.sa-oauth-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.sa-oauth-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--sa-light-border);
    border-radius: 10px;
    color: var(--sa-light-text);
    font-size: 0.88rem;
    font-weight: 500;
    background-color: #ffffff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.sa-oauth-btn:hover {
    background-color: var(--sa-light-panel);
    border-color: #d7dbe4;
}

.sa-oauth-btn-full {
    width: 100%;
    padding: 0.85rem 1rem;
}

.sa-auth-footer-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--sa-light-text-muted);
    margin: 0;
}

.sa-auth-footer-text-spaced {
    margin-top: 0.5rem;
}

.sa-auth-footer-text a {
    color: var(--sa-blue);
    font-weight: 600;
}

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

/* ---------- Contact page (contacts.php) ---------- */
.sa-contact-section {
    position: relative;
    padding: 3rem 0 4rem;
}

.sa-contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(47, 107, 255, 0.08);
    color: var(--sa-blue);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.sa-contact-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--sa-blue);
    display: inline-block;
}

.sa-contact-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--sa-light-text);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.sa-contact-title .sa-accent {
    color: var(--sa-blue);
}

.sa-contact-subtext {
    color: var(--sa-light-text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 2.25rem;
}

.sa-contact-subtext strong {
    color: var(--sa-blue);
    font-weight: 700;
}

.sa-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    max-width: 460px;
}

.sa-contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
    border: 1px solid var(--sa-light-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    color: var(--sa-light-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sa-contact-method:hover {
    border-color: var(--sa-blue);
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
    color: var(--sa-light-text);
}

.sa-contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: rgba(47, 107, 255, 0.08);
    color: var(--sa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.sa-contact-method-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sa-contact-method-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.sa-contact-method-sub {
    font-size: 0.83rem;
    color: var(--sa-light-text-dim);
}

.sa-contact-method-arrow {
    color: var(--sa-light-text-dim);
    flex-shrink: 0;
}

/* Form card */
.sa-contact-card {
    background-color: #ffffff;
    border: 1px solid var(--sa-light-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 60px -12px rgba(16, 24, 40, 0.12);
}

.sa-contact-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--sa-light-text);
    margin-bottom: 0.35rem;
}

.sa-contact-card-subtitle {
    font-size: 0.9rem;
    color: var(--sa-light-text-muted);
    margin-bottom: 1.75rem;
}

.sa-form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.sa-select-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sa-light-text-dim);
    pointer-events: none;
    font-size: 0.85rem;
}

.sa-contact-textarea {
    padding: 0.85rem 1rem;
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

.sa-contact-char-count {
    text-align: right;
    font-size: 0.78rem;
    color: var(--sa-light-text-dim);
    margin-top: 0.35rem;
}

.sa-contact-char-count-limit {
    color: var(--sa-red);
    font-weight: 600;
}

.sa-contact-upload {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border: 1.5px dashed var(--sa-light-border);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    margin: 0.25rem 0 1.5rem;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sa-contact-upload:hover {
    border-color: var(--sa-blue);
    background-color: rgba(47, 107, 255, 0.03);
}

.sa-contact-upload i.bi-upload {
    font-size: 1.15rem;
    color: var(--sa-blue);
    flex-shrink: 0;
}

.sa-contact-upload-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sa-contact-upload-title {
    color: var(--sa-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.sa-contact-upload-sub {
    color: var(--sa-light-text-dim);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sa-contact-upload-max {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--sa-light-text-dim);
    flex-shrink: 0;
}

.sa-contact-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.sa-contact-submit-btn {
    width: 100%;
    background: var(--sa-blue-gradient);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-shadow: 0 10px 25px rgba(47, 107, 255, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-contact-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(47, 107, 255, 0.4);
    color: #fff;
}

.sa-contact-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--sa-light-text-dim);
    margin: 1rem 0 0;
}

/* Support bar */
.sa-contact-support-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: #ffffff;
    border: 1px solid var(--sa-light-border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.sa-contact-support-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: rgba(47, 107, 255, 0.08);
    color: var(--sa-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.sa-contact-support-text {
    flex: 1;
    min-width: 200px;
}

.sa-contact-support-title {
    font-weight: 700;
    color: var(--sa-light-text);
    font-size: 0.98rem;
}

.sa-contact-support-sub {
    font-size: 0.85rem;
    color: var(--sa-light-text-muted);
}

.sa-contact-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--sa-light-border);
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--sa-light-text);
    white-space: nowrap;
}

.sa-contact-support-btn:hover {
    background-color: var(--sa-light-panel);
    color: var(--sa-light-text);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sa-traffic-visual {
        margin-top: 3.5rem;
    }

    .sa-subtext {
        max-width: 100%;
    }

    .sa-footer-bottom a:first-child {
        margin-left: 0;
    }

    .sa-contact-subtext,
    .sa-contact-methods {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .sa-hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
        text-align: center;
    }

    .sa-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .sa-url-form {
        flex-direction: column;
        max-width: 100%;
    }

    .sa-url-input-wrap {
        width: 100%;
    }

    .sa-analyze-btn {
        width: 100%;
        justify-content: center;
    }

    .sa-form-note {
        justify-content: center;
    }

    .sa-traffic-visual {
        max-width: 380px;
    }

    .sa-traffic-card {
        padding: 1.4rem 1.4rem 1.1rem;
    }

    .sa-traffic-chart-wrap {
        height: 170px;
    }

    .sa-float-badge {
        padding: 0.65rem 0.85rem;
        gap: 0.55rem;
        max-width: 180px;
        border-radius: 13px;
    }

    .sa-float-badge-top {
        top: -1rem;
        right: -0.25rem;
    }

    .sa-float-badge-bottom {
        bottom: -1rem;
        left: -0.25rem;
    }

    .sa-float-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .sa-float-value {
        font-size: 0.95rem;
    }

    .sa-float-label {
        font-size: 0.72rem;
    }

    .sa-stat-value {
        font-size: 1.05rem;
    }

    .sa-logo-strip {
        gap: 1.75rem 2rem;
    }

    .sa-footer-bottom {
        text-align: center;
    }

    .sa-footer-bottom a {
        margin: 0 0.6rem;
    }

    .sa-footer-desc {
        max-width: 100%;
    }

    .sa-auth-card {
        padding: 2rem 1.5rem;
    }

    .sa-auth-title {
        font-size: 1.5rem;
    }

    .sa-oauth-row {
        flex-direction: column;
    }

    .sa-contact-card {
        padding: 1.5rem;
    }

    .sa-contact-support-bar {
        padding: 1.25rem;
        text-align: center;
        justify-content: center;
    }

    .sa-contact-support-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .sa-stat-value {
        font-size: 1rem;
    }
}
