/* Trilha de setup — checklist estilo SaaS (home) */

.store-setup-home {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* Banner de retorno fora da Home */
.sst-return-banner {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, #0b7a5c 0%, #0ea47a 55%, #12b886 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(11, 122, 92, 0.28);
}

.sst-return-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    box-sizing: border-box;
}

.sst-return-banner-icon {
    font-size: 22px;
    opacity: 0.95;
    flex-shrink: 0;
}

.sst-return-banner-text {
    margin: 0;
    flex: 1 1 220px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.sst-return-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    background: #fff;
    color: #0b7a5c;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.sst-return-banner-btn:hover {
    background: #f0fdf8;
}

.sst-return-banner-btn .material-icons {
    font-size: 18px;
}

.sst-howto {
    margin: 12px 0 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f3faf7;
    border: 1px solid rgba(14, 164, 122, 0.18);
}

.sst-howto-title {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0b7a5c;
}

.sst-howto-list {
    margin: 0;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.84rem;
    line-height: 1.4;
    color: #374151;
}

.sst-shell {
    flex: 1;
    min-height: 100%;
    padding: 28px 20px 64px;
    background:
        radial-gradient(1200px 480px at 12% -10%, rgba(14, 164, 122, 0.16), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, rgba(14, 164, 122, 0.08), transparent 55%),
        linear-gradient(180deg, #f3faf7 0%, var(--tme-surface-muted, #f4f6f9) 42%, #f8fafc 100%);
    box-sizing: border-box;
}

.sst-shell-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sst-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(14, 164, 122, 0.12);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
    padding: 28px 28px 20px;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    color: #1f2933;
}

.sst-card-center {
    text-align: center;
    padding: 48px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sst-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding-bottom: 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eef2f5;
}

.sst-kicker {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tme-brand-dark, #296e5a);
}

.sst-title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.sst-subtitle {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5b6573;
    max-width: 38rem;
}

.sst-ring {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.sst-ring svg {
    width: 88px;
    height: 88px;
    transform: rotate(-90deg);
}

.sst-ring-track,
.sst-ring-value {
    fill: none;
    stroke-width: 7;
}

.sst-ring-track {
    stroke: #e8eef1;
}

.sst-ring-value {
    stroke: var(--tme-brand, #0ea47a);
    stroke-linecap: round;
    stroke-dasharray: 213.628;
    transition: stroke-dashoffset 0.35s ease;
}

.sst-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    pointer-events: none;
}

.sst-ring-label strong {
    font-size: 1.2rem;
    line-height: 1;
    color: #111827;
}

.sst-ring-label span {
    font-size: 0.68rem;
    color: #6b7280;
    font-weight: 600;
}

.sst-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
}

.sst-timeline {
    list-style: none;
    margin: 0;
    padding: 8px 0 4px;
}

.sst-step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    position: relative;
}

.sst-rail {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 18px;
}

.sst-step:not(:last-child) .sst-rail::after {
    content: "";
    position: absolute;
    top: 54px;
    bottom: -6px;
    width: 2px;
    background: #e5e9ee;
}

.sst-step.is-done:not(:last-child) .sst-rail::after {
    background: rgba(14, 164, 122, 0.35);
}

.sst-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f7;
    color: #6b7280;
    border: 2px solid #e5e9ee;
    z-index: 1;
}

.sst-node .material-icons {
    font-size: 18px;
}

.sst-step.is-done .sst-node {
    background: var(--tme-brand, #0ea47a);
    border-color: var(--tme-brand, #0ea47a);
    color: #fff;
}

.sst-step.is-focus .sst-node {
    background: #fff;
    border-color: var(--tme-brand, #0ea47a);
    color: var(--tme-brand, #0ea47a);
    box-shadow: 0 0 0 4px rgba(14, 164, 122, 0.14);
}

.sst-step-panel {
    padding: 14px 14px 16px;
    border-radius: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sst-step.is-upcoming .sst-step-panel {
    opacity: 0.55;
}

.sst-step.is-done .sst-step-panel {
    padding-top: 16px;
    padding-bottom: 12px;
}

.sst-step.is-done .sst-step-desc {
    display: none;
}

.sst-step.is-focus .sst-step-panel {
    background: linear-gradient(180deg, #f4fbf8 0%, #ffffff 100%);
    border: 1px solid rgba(14, 164, 122, 0.22);
    box-shadow: 0 10px 28px rgba(14, 164, 122, 0.08);
    margin-bottom: 8px;
}

.sst-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sst-step-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.sst-step.is-done .sst-step-title {
    color: #374151;
    font-weight: 600;
}

.sst-step-desc {
    margin: 8px 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #5b6573;
}

.sst-badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
}

.sst-badge.is-done {
    background: rgba(14, 164, 122, 0.12);
    color: var(--tme-brand-dark, #296e5a);
}

.sst-badge.is-now {
    background: #111827;
    color: #fff;
}

.sst-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sst-tour {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(14, 164, 122, 0.18);
}

.sst-tour-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.sst-tour-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--tme-brand-muted, rgba(14, 164, 122, 0.12));
    color: var(--tme-brand, #0ea47a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.sst-tour-counter {
    margin: 0 0 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7280;
}

.sst-tour-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.sst-tour-path {
    margin: 0 0 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tme-brand-dark, #296e5a);
}

.sst-tour-path-root,
.sst-tour-path-crumb {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sst-tour-path .material-icons {
    font-size: 16px;
}

.sst-tour-path-sep {
    color: #9ca3af;
    font-weight: 500;
}

.sst-tour-body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #5b6573;
}

.sst-tour .sst-actions {
    margin-top: 14px;
}

.sst-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.sst-btn .material-icons {
    font-size: 18px;
}

.sst-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sst-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.sst-btn-primary {
    background: var(--tme-brand, #0ea47a);
    color: #fff;
}

.sst-btn-primary:hover:not(:disabled) {
    background: var(--tme-brand-dark, #296e5a);
}

.sst-btn-ghost {
    background: transparent;
    color: #4b5563;
    border: 1px solid #d7dde5;
}

.sst-btn-ghost:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #c5ccd6;
}

.sst-complete-icon {
    font-size: 52px;
    color: var(--tme-brand, #0ea47a);
    margin-bottom: 4px;
}

.sst-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-top-color: var(--tme-brand, #0ea47a);
    border-radius: 50%;
    animation: sst-spin 0.8s linear infinite;
}

@keyframes sst-spin {
    to { transform: rotate(360deg); }
}

.sst-fallback {
    flex: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.sst-fallback img {
    width: min(420px, 70vw);
    height: auto;
    opacity: 0.55;
}

@media (max-width: 720px) {
    .sst-shell {
        padding: 16px 12px 32px;
    }

    .sst-card {
        padding: 20px 16px 14px;
        border-radius: 16px;
    }

    .sst-hero {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .sst-ring {
        order: -1;
    }

    .sst-step {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
    }

    .sst-node {
        width: 30px;
        height: 30px;
    }

    .sst-node .material-icons {
        font-size: 15px;
    }

    .sst-step:not(:last-child) .sst-rail::after {
        top: 48px;
    }

    .sst-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sst-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sst-spinner {
        animation: none;
    }

    .sst-ring-value,
    .sst-btn {
        transition: none;
    }

    .sst-btn:active:not(:disabled) {
        transform: none;
    }
}
