/* iNeedLeads — Starter stylesheet
   ─────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #1e293b;
    background: #f5f5f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1301;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #e8e7ec;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.05);
    color: #25233a;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    max-width: 380px;
    text-decoration: none;
}
.site-logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

.site-logo-text {
    display: inline-flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #43204f;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

.site-logo-text[hidden] {
    display: none !important;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-nav a {
    color: #43204f;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.site-nav a:not(.btn) {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.22rem 0.5rem;
}

.site-nav a.is-active {
    border-color: #ff8a00;
    background: #fff4e8;
}

.site-nav a:hover { color: #ff8a00; }
.site-nav-user {
    color: #5f6470;
    font-size: 0.83rem;
}

.site-nav-admin-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ffb364;
    background: #fff2e2;
    color: #8f4a00;
    border-radius: 999px;
    padding: 0.12rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Nav notification badge (WhatsApp-style superscript circle) ─────────── */
.has-nav-badge {
    position: relative;
    display: inline-block;
    padding-right: 14px; /* room for the badge to hang over the right edge */
}

.nav-badge {
    position: absolute;
    top: -7px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    background: #e8390e;
    color: #fff;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
    animation: nav-badge-pop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes nav-badge-pop {
    from { transform: scale(0.4); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.site-nav-logout {
    display: inline;
}

.site-nav-upgrade {
    padding: 0.4rem 0.9rem;
    line-height: 1.2;
}

a.site-nav-upgrade {
    background: #43204f;
    color: #ff8a00;
}

a.site-nav-upgrade:hover {
    background: #34163d;
    color: #ff8a00;
}

/* ── Main ─────────────────────────────────────────────────────────────── */
.site-main {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ── Footer (sticky, version far-left) ───────────────────────────────── */
.site-footer {
    position: sticky;
    bottom: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.45rem 1.5rem;
    background: #2a2838;
    color: #c2c3cc;
    font-size: 0.78rem;
}
.footer-version {
    color: #ff8a00;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.footer-disclaimer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #aeb3bf;
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}
.footer-support {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #9ed9ff;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 600;
}

.footer-support:hover {
    text-decoration: underline;
    color: #c6eaff;
}
.footer-copy { margin-left: auto; }

/* ── WhatsApp Float ──────────────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    left: 1rem;
    bottom: 3rem;
    z-index: 1500;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.whatsapp-float-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border: 1px solid #1fae53;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.2);
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.whatsapp-float-logo {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    flex: 0 0 auto;
}

.whatsapp-float-label {
    color: #374151;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.whatsapp-float:hover .whatsapp-float-icon,
.whatsapp-float:focus-visible .whatsapp-float-icon {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(16, 24, 40, 0.24);
    filter: brightness(1.02);
}

.whatsapp-float:focus-visible {
    outline: none;
}

.whatsapp-float:focus-visible .whatsapp-float-label {
    color: #111827;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    border: none;
    line-height: 1.5;
}
.btn-primary            { background: #ff8a00; color: #fff; }
.btn-primary:hover      { background: #e67900; }
.btn-danger             { background: #b42318; color: #fff; }
.btn-danger:hover       { background: #911b12; }
.btn-upgrade            { background: #ff8a00; color: #fff; }
.btn-upgrade:hover      { background: #e67900; color: #fff; }
.btn-secondary          { background: #0d9488; color: #fff; border: 1px solid #0f766e; display: inline-flex; flex-direction: column; align-items: center; }
.btn-secondary:hover    { background: #0f766e; color: #fff; }
.btn-sub-label          { font-size: 0.65rem; font-weight: 400; opacity: 0.85; line-height: 1; margin-top: 0.15rem; }

/* ── Legal Pages ─────────────────────────────────────────────────────── */
.legal-shell {
    display: grid;
    gap: 1rem;
}

.legal-card {
    border: 1px solid #e4e4ea;
    border-radius: 14px;
    background: #ffffff;
    padding: 1.2rem;
    box-shadow: 0 10px 24px rgba(37, 35, 58, 0.05);
}

.legal-card h1 {
    margin: 0 0 0.5rem;
    color: #25233a;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    line-height: 1.15;
}

.legal-card h2 {
    margin: 0.9rem 0 0.35rem;
    color: #25233a;
    font-size: 1.14rem;
}

.legal-card h3 {
    margin: 0.75rem 0 0.25rem;
    color: #30364a;
    font-size: 1rem;
}

.legal-card p {
    margin: 0.2rem 0;
    color: #4f5668;
}

.legal-card ul {
    margin: 0.35rem 0 0.45rem 1.15rem;
    display: grid;
    gap: 0.2rem;
    color: #4f5668;
}

.legal-card hr {
    border: 0;
    border-top: 1px solid #ececf2;
    margin: 0.85rem 0;
}

.auth-legal-consent {
    margin-top: 0.65rem;
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #4f5668;
    font-size: 0.9rem;
    line-height: 1.4;
}

.auth-legal-consent input[type="checkbox"] {
    margin-top: 0.18rem;
    accent-color: #ff8a00;
}

.auth-legal-consent a {
    color: #43204f;
    font-weight: 600;
    text-decoration: none;
}

.auth-legal-consent a:hover {
    text-decoration: underline;
}

/* ── Auth Password Toggle Fallback ───────────────────────────────────── */
.auth-password-field {
    position: relative;
}

.auth-password-field input[data-password-input] {
    padding-right: 2.8rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.45rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.9rem;
    height: 1.9rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: #566079;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle-icon {
    width: 1.06rem;
    height: 1.06rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-password-toggle-icon--hide {
    display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle-icon--show {
    display: none;
}

.auth-password-toggle.is-visible .auth-password-toggle-icon--hide {
    display: block;
}

.auth-password-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ── Account Sessions ─────────────────────────────────────────────────────── */
.account-sessions-page {
    display: grid;
    gap: 0.9rem;
}

.account-sessions-header h1 {
    color: #25233a;
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    line-height: 1.2;
}

.account-sessions-header p {
    margin-top: 0.3rem;
    color: #5f6470;
    max-width: 65ch;
}

.account-sessions-actions {
    display: flex;
    justify-content: flex-end;
}

.account-sessions-list {
    display: grid;
    gap: 0.7rem;
}

.account-session-card {
    border: 1px solid #e8e7ec;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.85rem;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.account-session-card--current {
    border-color: #ffd7ab;
    box-shadow: 0 8px 18px rgba(255, 138, 0, 0.12);
}

.account-session-card-main h2 {
    margin: 0;
    color: #25233a;
    font-size: 1rem;
}

.account-session-meta {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    color: #5f6470;
    font-size: 0.85rem;
}

.account-session-state {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.session-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dad9e0;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #52576a;
    background: #f8f8fb;
}

.session-badge--active {
    border-color: #bdeecf;
    color: #11603d;
    background: #ebfff2;
}

.session-badge--warn {
    border-color: #ffd4a3;
    color: #8f4a00;
    background: #fff4e9;
}

.account-session-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.account-session-empty {
    border: 1px dashed #d7d9e2;
    border-radius: 12px;
    background: #ffffff;
    padding: 1rem;
    color: #5f6470;
}

.account-subscription-card {
    grid-template-columns: minmax(0, 1fr);
}

.account-subscription-shell {
    gap: 1rem;
}

.account-subscription-hero {
    background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 48%, #fff8ee 100%);
    border: 1px solid #dfe4f2;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 28px rgba(37, 35, 58, 0.08);
}

.account-subscription-hero h1 {
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    line-height: 1.15;
}

.account-subscription-hero p {
    color: #4f5569;
    max-width: 62ch;
}

.account-subscription-hero-actions {
    margin-top: 0.25rem;
}

.account-subscription-card {
    border: 1px solid #dee4ee;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 8px 24px rgba(19, 27, 52, 0.06);
}

.account-subscription-card--primary {
    background: linear-gradient(130deg, #fff 0%, #f8fbff 42%, #fff8ef 100%);
    border-color: #d9e2f0;
}

.account-subscription-card--usage {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.account-subscription-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.account-subscription-kpi {
    border: 1px solid #dce4f0;
    border-radius: 12px;
    background: linear-gradient(165deg, #ffffff 0%, #f7f9ff 100%);
    padding: 0.7rem 0.8rem;
}

.account-subscription-kpi h3 {
    margin: 0;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6880;
}

.account-subscription-kpi p {
    margin: 0.3rem 0 0.12rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1b2742;
    line-height: 1.1;
}

.account-subscription-kpi small {
    color: #5a6174;
    font-size: 0.76rem;
}

.account-subscription-renewal-badge {
    margin-top: 0.4rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.account-subscription-renewal-badge--ok {
    background: #e7f8ef;
    color: #14603c;
    border: 1px solid #b9e8cb;
}

.account-subscription-renewal-badge--warn {
    background: #fff3df;
    color: #854600;
    border: 1px solid #f3d39f;
}

.account-subscription-renewal-badge--danger {
    background: #ffe7e5;
    color: #8f231b;
    border: 1px solid #efbcb6;
}

.account-subscription-renewal-badge--muted {
    background: #eef2f8;
    color: #4f5871;
    border: 1px solid #d6deea;
}

.account-subscription-kpi--warn {
    border-color: #f2d39c;
    background: linear-gradient(165deg, #fffaf0 0%, #fff5de 100%);
}

.account-subscription-kpi--danger {
    border-color: #efc1bc;
    background: linear-gradient(165deg, #fff6f5 0%, #ffe5e2 100%);
}

.account-subscription-kpi--ok {
    border-color: #bde5cd;
    background: linear-gradient(165deg, #f3fff8 0%, #e8fbf1 100%);
}

.account-subscription-meta {
    margin-top: 0.6rem;
    gap: 0.55rem;
}

.account-subscription-meta span {
    display: inline-flex;
    align-items: center;
    background: #f6f8fd;
    border: 1px solid #e3e8f3;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
}

.account-subscription-card--primary .account-subscription-meta span {
    background: #ffffff;
}

    .account-usage-meter {
        margin-top: 0.7rem;
        display: grid;
        gap: 0.3rem;
        max-width: 560px;
    }

    .account-usage-meter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #4b5568;
        font-size: 0.8rem;
        font-weight: 700;
    }

    .account-usage-meter-track {
        width: 100%;
        height: 0.56rem;
        border-radius: 999px;
        background: #eceef4;
        overflow: hidden;
        border: 1px solid #dfe3ee;
    }

    .account-usage-meter-fill {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #ff8a00 0%, #ffb157 100%);
    }

    .account-usage-meter-fill--ok {
        background: linear-gradient(90deg, #2f8b63 0%, #57bc8f 100%);
    }

    .account-usage-meter-fill--warn {
        background: linear-gradient(90deg, #d49200 0%, #f4c04f 100%);
    }

    .account-usage-meter-fill--danger {
        background: linear-gradient(90deg, #b42318 0%, #e24a3b 100%);
    }

    .account-usage-state {
        margin-left: 0.4rem;
        font-size: 0.73rem;
        letter-spacing: 0.01em;
    }

    .account-usage-state--ok {
        color: #11603d;
    }

    .account-usage-state--warn {
        color: #8f4a00;
    }

    .account-usage-state--danger {
        color: #8d2b2b;
    }

@media (max-width: 720px) {
    .account-subscription-hero {
        padding: 0.9rem;
    }

    .account-subscription-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-subscription-meta span {
        width: 100%;
        border-radius: 10px;
    }
}

@media (max-width: 520px) {
    .account-subscription-kpis {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing-shell {
    display: grid;
    gap: 1.1rem;
}

.pricing-header {
    display: grid;
    gap: 0.35rem;
}

.pricing-header h1 {
    color: #25233a;
    font-size: clamp(1.75rem, 3.1vw, 2.05rem);
    line-height: 1.2;
}

.pricing-header p {
    color: #5f6470;
    max-width: 62ch;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e8e7ec;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.7rem;
}

.pricing-card--featured {
    border-color: #ffd4a3;
    box-shadow: 0 8px 18px rgba(255, 138, 0, 0.12);
}

.pricing-card--spotlight {
    position: relative;
    border-color: #ffb364;
    box-shadow: 0 12px 24px rgba(255, 138, 0, 0.18);
}

.pricing-card--spotlight .btn {
    background: #43204f;
    color: #ff8a00;
}

.pricing-card--spotlight .btn:hover {
    background: #34163d;
    color: #ff8a00;
}

.pricing-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #ffb364;
    background: #fff2e2;
    color: #9a4f00;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-note {
    margin-top: -0.2rem;
    color: #5f6470;
    font-size: 0.86rem;
    line-height: 1.35;
}

.pricing-card .btn {
    width: 100%;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pricing-card > .btn {
    max-width: 220px;
    align-self: center;
}

.pricing-card h2 {
    color: #25233a;
    font-size: 1.15rem;
    line-height: 1.25;
}

.pricing-card ul {
    list-style: none;
    display: grid;
    gap: 0.3rem;
    color: #4a4f5b;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: auto;
}

.pricing-card-actions {
    margin-top: 0.1rem;
    display: grid;
    gap: 0.5rem;
    justify-items: center;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
}

.pricing-card-action-form {
    width: 100%;
    max-width: 220px;
}

.pricing-card-actions > .btn {
    width: 100%;
    max-width: 220px;
}

.pricing-card .btn {
    margin-top: 0;
}

/* ── Payment Return Screens ──────────────────────────────────────────── */
.payment-status-shell {
    width: min(900px, 100%);
    margin-inline: auto;
    display: grid;
    gap: 1rem;
}

.payment-status-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffcf8 100%);
    border: 1px solid #f0d6b6;
    border-radius: 14px;
    padding: clamp(1rem, 2.2vw, 1.3rem);
    box-shadow: 0 14px 28px rgba(25, 22, 34, 0.08);
    display: grid;
    gap: 0.85rem;
}

.payment-status-heading {
    display: grid;
    gap: 0.35rem;
}

.payment-status-title {
    margin: 0;
    color: #21203a;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.15;
}

.payment-status-copy {
    margin: 0;
    color: #566072;
    max-width: 62ch;
}

.payment-status-panel {
    border: 1px solid #f0d6b6;
    border-radius: 12px;
    background: #ffffff;
    padding: clamp(0.9rem, 2vw, 1.1rem);
    display: grid;
    gap: 0.7rem;
}

.payment-status-panel h2 {
    margin: 0;
    color: #25233a;
    font-size: 1.2rem;
    line-height: 1.2;
}

.payment-status-reference {
    margin: 0;
    color: #384458;
}

.payment-status-reference strong {
    color: #111827;
    letter-spacing: 0.01em;
}

.payment-status-line {
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.payment-status-actions {
    margin-top: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.payment-status-actions .btn {
    min-width: 180px;
    min-height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-status-actions .btn-upgrade {
    background: #f4f6fb;
    color: #303a4d;
    border: 1px solid #d7dfea;
}

.payment-status-actions .btn-upgrade:hover {
    background: #e8edf6;
    color: #273042;
}

.payment-status-shell--success .payment-status-card {
    border-color: #ffd7a8;
}

.payment-status-shell--cancelled .payment-status-card {
    border-color: #f2cfa7;
}

.payment-status-shell--redirect .payment-status-card {
    border-color: #ffc78d;
}

.payment-status-shell--redirect .payment-status-panel {
    background: linear-gradient(180deg, #fffdfa 0%, #fff6ea 100%);
}

.payment-status-copy--inline {
    font-size: 0.95rem;
}

@media (max-width: 640px) {
    .payment-status-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .payment-status-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* ── Alerts ───────────────────────────────────────────────────────────── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-info  { background: #fff5e8; color: #894b0d; border: 1px solid #ffc88a; }

.due-lead-reminder {
    position: fixed;
    right: 1rem;
    bottom: 4.4rem;
    z-index: 1650;
    width: min(360px, calc(100vw - 2rem));
    border: 1px solid #ffd1a0;
    border-radius: 12px;
    background: #fffaf3;
    box-shadow: 0 16px 28px rgba(24, 28, 40, 0.2);
    padding: 0.78rem 0.85rem;
    animation: due-lead-reminder-in 220ms ease-out;
}

.due-lead-reminder[hidden] {
    display: none;
}

.due-lead-reminder-title {
    margin: 0;
    color: #6f3a00;
    font-size: 0.93rem;
    line-height: 1.25;
}

.due-lead-reminder-copy {
    margin: 0.35rem 0 0;
    color: #4b5568;
    font-size: 0.84rem;
    line-height: 1.4;
}

.due-lead-reminder-actions {
    margin-top: 0.7rem;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn.due-lead-reminder-open {
    min-height: 2rem;
    padding: 0.36rem 0.72rem;
}

.btn.due-lead-reminder-dismiss {
    min-height: 2rem;
    padding: 0.36rem 0.72rem;
    background: #eef2f8;
    color: #344156;
}

.btn.due-lead-reminder-dismiss:hover {
    background: #dfe6f1;
}

@keyframes due-lead-reminder-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 5rem 1rem;
}
.hero h1        { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; }
.hero-subtext   { color: #64748b; margin-bottom: 1.75rem; }

/* ── Home Landing ─────────────────────────────────────────────────────── */
.home-landing {
    display: grid;
    gap: 1.2rem;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 1rem;
    border: 1px solid #e8e7ec;
    border-radius: 16px;
    padding: 1.1rem;
    background: radial-gradient(circle at top right, #fff3e3 0%, #ffffff 45%, #f9fafc 100%);
}

.home-hero-copy {
    display: grid;
    gap: 0.72rem;
    align-content: start;
}

.home-eyebrow {
    margin: 0;
    color: #7f4500;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-hero-copy h1 {
    margin: 0;
    color: #25233a;
    font-size: clamp(1.85rem, 3.2vw, 2.45rem);
    line-height: 1.1;
}

.home-subheadline {
    margin: 0;
    color: #4f5666;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 62ch;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.home-value-list {
    list-style: none;
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
}

.home-value-list li {
    position: relative;
    padding-left: 1.15rem;
    color: #3f4758;
    font-size: 0.93rem;
    font-weight: 600;
}

.home-value-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.48rem;
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #ff8a00;
}

.home-hero-preview {
    min-width: 0;
}

.home-preview-shell {
    border: 1px solid #e6e8ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.85rem;
    box-shadow: 0 16px 34px rgba(37, 35, 58, 0.09);
    display: grid;
    gap: 0.68rem;
}

.home-preview-topbar {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: #2f3446;
    font-size: 0.84rem;
    font-weight: 700;
}

.home-preview-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.home-preview-stats span {
    border: 1px solid #e4e7ef;
    border-radius: 999px;
    background: #fbfbfd;
    color: #51586a;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.18rem 0.48rem;
}

.home-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.home-preview-card {
    border: 1px solid #e7e8ef;
    border-radius: 12px;
    background: #fcfcfe;
    padding: 0.66rem;
    display: grid;
    gap: 0.35rem;
}

.home-preview-card strong {
    color: #262b3e;
    font-size: 0.9rem;
}

.home-preview-card p {
    color: #5a6071;
    font-size: 0.82rem;
    margin: 0;
}

.home-preview-card .btn {
    width: fit-content;
    min-width: 84px;
    text-align: center;
}

.home-steps,
.home-features,
.home-trust,
.home-bottom-cta {
    border: 1px solid #e8e7ec;
    border-radius: 14px;
    background: #ffffff;
    padding: 1rem;
}

.home-section-head {
    margin-bottom: 0.72rem;
    display: grid;
    gap: 0.2rem;
}

.home-section-head h2 {
    margin: 0;
    color: #25233a;
    font-size: 1.3rem;
}

.home-section-head p {
    margin: 0;
    color: #606674;
    font-size: 0.94rem;
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.home-step-card {
    border: 1px solid #ebeaf0;
    border-radius: 12px;
    padding: 0.82rem;
    background: #fcfcfe;
    display: grid;
    gap: 0.3rem;
}

.home-step-index {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff8a00;
    color: #43204f;
    font-weight: 700;
    font-size: 0.78rem;
}

.home-step-card h3 {
    margin: 0;
    color: #25233a;
    font-size: 1.03rem;
}

.home-step-card p {
    margin: 0;
    color: #5f6573;
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.home-feature-card {
    border: 1px solid #ecebf1;
    border-radius: 12px;
    background: #fcfcfe;
    padding: 0.78rem;
    display: grid;
    gap: 0.3rem;
}

.home-feature-icon {
    display: inline-flex;
    width: fit-content;
    padding: 0.15rem 0.52rem;
    border-radius: 999px;
    border: 1px solid #ffd6ad;
    background: #fff4e8;
    color: #8a4a00;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-height: 1.35rem;
}

.home-feature-card h3 {
    margin: 0;
    color: #262b3f;
    font-size: 1rem;
}

.home-feature-card p {
    margin: 0;
    color: #5f6674;
    font-size: 0.87rem;
    line-height: 1.45;
}

.home-trust {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.home-trust-copy h2 {
    margin: 0 0 0.35rem;
    color: #25233a;
    font-size: 1.26rem;
}

.home-trust-copy p {
    margin: 0;
    color: #5f6675;
}

.home-trust-stats {
    display: grid;
    gap: 0.62rem;
}

.home-trust-stats article {
    border: 1px solid #e8eaf1;
    border-radius: 10px;
    background: #ffffff;
    padding: 0.68rem;
    display: grid;
    gap: 0.22rem;
}

.home-trust-stats strong {
    color: #2b3044;
    font-size: 0.9rem;
}

.home-trust-stats span {
    color: #5e6575;
    font-size: 0.84rem;
}

.home-bottom-cta {
    text-align: center;
    background: radial-gradient(circle at top, #fff2e2 0%, #ffffff 65%);
    display: grid;
    gap: 0.5rem;
    justify-items: center;
}

.home-bottom-cta h2 {
    margin: 0;
    color: #25233a;
    font-size: 1.4rem;
}

.home-bottom-cta p {
    margin: 0;
    color: #5f6675;
    max-width: 62ch;
}

/* ── Tutorial Landing ────────────────────────────────────────────────── */
.tutorial-landing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    gap: 1rem;
    align-items: start;
}

.tutorial-card,
.tutorial-side-note {
    border: 1px solid #e8e7ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 35, 58, 0.08);
}

.tutorial-card {
    padding: 1.25rem 1.3rem;
    background: radial-gradient(circle at top right, #fff3e3 0%, #ffffff 45%, #f9fafc 100%);
}

.tutorial-card-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.35rem;
}

.tutorial-hide-btn {
    min-width: 140px;
    text-align: center;
}

.tutorial-progress {
    display: flex;
    align-items: center;
    margin: 0 0 1.15rem;
}

.tutorial-progress-step {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #d9dde8;
    background: #f5f7fb;
    color: #4f586b;
    font-weight: 700;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 160ms ease;
}

.tutorial-progress-line {
    height: 2px;
    flex: 1;
    margin: 0 0.45rem;
    background: linear-gradient(90deg, #e4e8f1 0%, #d8ddeb 100%);
}

.tutorial-progress-step.is-complete {
    border-color: #ffd19f;
    background: #fff2e2;
    color: #8a4a00;
}

.tutorial-progress-step.is-active {
    border-color: #ff8a00;
    background: #ff8a00;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.2);
}

.tutorial-step {
    display: grid;
    gap: 1rem;
}

.tutorial-step[hidden] {
    display: none !important;
}

.tutorial-step h1,
.tutorial-step h2 {
    margin: 0;
    color: #25233a;
    line-height: 1.2;
}

.tutorial-step h1 {
    font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.tutorial-step h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.45rem);
}

.tutorial-step p {
    margin: 0;
    color: #5f6674;
    line-height: 1.55;
}

.tutorial-lead {
    font-size: 1.02rem;
    color: #414a5d;
}

.tutorial-form-group {
    max-width: 460px;
    margin-top: 0.15rem;
}

.tutorial-alert {
    margin: 0;
}

.tutorial-industry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.15rem;
}

.tutorial-industry-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.tutorial-industry-row input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    background: #fff;
    color: #1e293b;
}

.tutorial-industry-row input:focus {
    outline: 2px solid #ffd8a8;
    border-color: #ff8a00;
}

.tutorial-industry-badge {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid #ffd19f;
    background: #fff4e8;
    color: #8a4a00;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 700;
    flex: 0 0 2rem;
    line-height: 1;
    margin: 0;
}

.tutorial-trade-word {
    margin-top: -0.2rem;
    color: #2f3446;
}

.tutorial-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.15rem;
}

.tutorial-actions .btn {
    min-width: 120px;
    text-align: center;
}

.tutorial-business-list {
    margin: -0.25rem 0 0.1rem;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.24rem;
}

.tutorial-business-list li {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.35;
}

.tutorial-side-note {
    padding: 0.95rem;
    display: grid;
    gap: 0.65rem;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.tutorial-side-note h2 {
    margin: 0;
    color: #25233a;
    font-size: 1.15rem;
}

.tutorial-side-note p {
    margin: 0;
    color: #5f6674;
    font-size: 0.92rem;
    line-height: 1.45;
}

.tutorial-side-note .btn {
    width: fit-content;
    min-width: 134px;
    text-align: center;
}

/* ── Page title ───────────────────────────────────────────────────────── */
.page-title { font-size: 1.6rem; margin-bottom: 1.25rem; }

/* ── Search form ──────────────────────────────────────────────────────── */
.search-form { margin-bottom: 2rem; }
.form-row    { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.form-group  {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 160px;
}
.form-group label   { font-size: 0.83rem; font-weight: 600; color: #475569; }
.form-group input,
.form-group select  {
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 0.95rem;
    background: #fff;
    color: #1e293b;
}
.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #ffd8a8;
    border-color: #ff8a00;
}
.form-group--action { flex: 0; min-width: auto; }

/* ── Lead table ───────────────────────────────────────────────────────── */
.results-wrapper   { overflow-x: auto; }
.leads-table       { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.leads-table th,
.leads-table td    { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.leads-table th    { background: #f1f5f9; font-weight: 600; color: #475569; white-space: nowrap; }
.leads-table tr:hover td { background: #f8fafc; }
.leads-table a     { color: #43204f; }

.email-badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.email-badge--enriched {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* ── Hiring-signal badges ────────────────────────────────────────────── */
.hiring-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.01em;
    white-space: nowrap;
    vertical-align: middle;
    cursor: default;
}

.hiring-badge--active {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.hiring-badge--none {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.hiring-badge--unchecked {
    background: #fef9c3;
    color: #854d0e;
    border: 1px solid #fde047;
}

/* ── Error pages ──────────────────────────────────────────────────────── */
.error-page  { justify-content: center; align-items: center; }
.error-box   { text-align: center; padding: 2rem; }
.error-code  { font-size: 6rem; font-weight: 800; color: #e2e8f0; display: block; line-height: 1; }
.error-box h1   { font-size: 1.5rem; margin: 0.5rem 0; }
.error-box p    { color: #64748b; margin-bottom: 1.5rem; }

/* ── Admin ───────────────────────────────────────────────────────────── */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-nav a {
    color: #43204f;
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-nav-logout {
    margin-left: auto;
}

.admin-subscription-actions-cell {
    vertical-align: top;
}

.admin-subscription-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    min-width: 140px;
}

.admin-subscription-actions form {
    margin: 0;
}

.admin-subscription-actions .btn {
    width: 100%;
    text-align: center;
}

.btn-link {
    background: none;
    border: 0;
    color: #43204f;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.25rem;
}

.admin-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.9rem;
}

.admin-card-label {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.admin-card-value {
    font-size: 1.35rem;
    color: #0f172a;
}

.admin-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.admin-filters label {
    display: grid;
    gap: 0.3rem;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-filters input,
.admin-filters select {
    min-width: 140px;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.45rem 0.6rem;
    background: #fff;
    color: #1e293b;
}

.admin-pager {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
    color: #475569;
    font-size: 0.86rem;
}

.admin-pager-links {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-pager-links a {
    color: #43204f;
    text-decoration: none;
}

.admin-pager-links a:hover {
    text-decoration: underline;
}

.site-header-alerts {
    max-width: 1200px;
    margin: 0.85rem auto 0;
    padding: 0 1.5rem;
}

.admin-shell {
    display: grid;
    gap: 1rem;
}

.admin-header p {
    margin: -0.5rem 0 0;
    color: #64748b;
}

.admin-payment-actions-panel {
    padding: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #fff;
}

.admin-payment-actions-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-payment-actions-header p {
    margin: 0.2rem 0 0;
    font-size: 0.86rem;
    color: #64748b;
}

.admin-payment-actions-form {
    margin: 0;
}

.admin-payment-actions-table td {
    vertical-align: top;
}

.page-subtitle {
    font-size: 1.1rem;
    margin: 0.4rem 0 0.75rem;
}

@media (max-width: 860px) {
    .site-main {
        padding: 1.35rem 1rem calc(5.6rem + env(safe-area-inset-bottom));
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-logo {
        max-width: 320px;
    }

    .site-nav {
        width: 100%;
        gap: 0.75rem 1rem;
    }

    .site-nav-upgrade {
        margin-left: 0;
    }

    .pricing-grid {
        gap: 0.8rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-preview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-steps-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .due-lead-reminder {
        right: 0.8rem;
        left: 0.8rem;
        width: auto;
        bottom: 4.8rem;
    }

    .home-trust {
        grid-template-columns: minmax(0, 1fr);
    }

    .tutorial-landing {
        grid-template-columns: minmax(0, 1fr);
    }

    .tutorial-card,
    .tutorial-side-note {
        border-radius: 14px;
    }

    .tutorial-card {
        padding: 1rem;
    }

    .tutorial-industry-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .tutorial-hide-btn,
    .tutorial-actions .btn,
    .tutorial-side-note .btn {
        width: 100%;
    }

    .tutorial-progress-line {
        margin: 0 0.35rem;
    }


@media (prefers-reduced-motion: reduce) {
    .due-lead-reminder {
        animation: none;
    }
}
    .pricing-card {
        padding: 0.9rem;
    }

    .site-footer {
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
    }

    .footer-version {
        display: none;
    }

    .footer-support {
        position: static;
        transform: none;
        order: 2;
        text-align: left;
    }

    .footer-copy {
        order: 3;
        margin-left: auto;
    }

    .footer-disclaimer {
        position: static;
        transform: none;
        order: 4;
        width: 100%;
        text-align: left;
    }

    .home-feature-card,
    .home-step-card {
        padding: 0.72rem;
    }

    .home-feature-icon {
        padding: 0.2rem 0.56rem;
        min-height: 1.4rem;
    }

    .account-session-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-session-state,
    .account-session-actions,
    .account-sessions-actions {
        justify-content: flex-start;
    }

    .whatsapp-float {
        left: 0.75rem;
        bottom: calc(3.0rem + env(safe-area-inset-bottom));
    }

    .whatsapp-float--home {
        bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    .whatsapp-float-label {
        display: none;
    }

    .whatsapp-float-icon {
        width: 2.8rem;
        height: 2.8rem;
    }
}
