:root {
    --blue-50: #eff6ff;
    --blue-100: #e0f2fe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --violet-500: #8b5cf6;
    --violet-600: #7c3aed;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --green-theme: #20c997; /* Unified nice green from screenshot */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
}

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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: var(--blue-100);
    color: var(--slate-800);
}

.page-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.card-shell {
    width: 100%;
    max-width: 420px;
    min-height: 660px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 8px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.top-bar {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--blue-500), var(--violet-500));
}

.card-body {
    padding: 32px 24px 24px;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.intro-block {
    text-align: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-500), var(--violet-500));
    color: var(--white);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.brand-name {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, var(--blue-600), var(--violet-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-block h1 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--slate-900);
}

.intro-copy {
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.5;
    color: var(--slate-500);
    max-width: 280px;
}

.benefit-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.benefit-card {
    background: var(--slate-50);
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    color: var(--slate-800);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--blue-600);
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
}

.pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 32px 0 24px;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--slate-200);
    transition: all 0.3s ease;
}

.dot.active {
    width: 28px; /* Smooth pill shape */
    background: var(--blue-500);
}

.content-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stage-panel {
    display: flex;
    flex-direction: column;
}

.stage-hidden {
    display: none !important;
}

.stage-panel.centered {
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.input-wrap {
    margin-bottom: 12px;
    width: 100%;
}

.stock-input {
    width: 100%;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    color: var(--slate-800);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stock-input::placeholder {
    color: var(--slate-500);
    font-weight: 500;
    text-transform: none;
}

.stock-input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--white);
}

.helper-copy {
    margin: 0 0 24px;
    text-align: center;
    color: var(--slate-400);
    font-size: 14px;
}

.primary-button,
.whatsapp-button {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 16px;
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
    background: linear-gradient(90deg, var(--blue-600), var(--violet-500));
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.25);
}

.whatsapp-button {
    background: var(--green-theme); 
    box-shadow: 0 10px 24px rgba(32, 201, 151, 0.25);
}

.primary-button:hover,
.whatsapp-button:hover {
    transform: translateY(-2px);
}

.button-link-copy {
    text-decoration: none;
}

.trust-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
}

.delivery-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-icon {
    width: 16px;
    height: 16px;
    color: var(--green-theme);
}

/* Step 2 Loading */
.loader-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid var(--blue-100);
    border-top-color: var(--blue-600);
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px auto;
}

/* Step 3 Success Badge */
.success-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid var(--green-theme);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-theme);
    margin: 0 auto 24px auto;
}

#step-2 h2,
#step-3 h2 {
    margin: 0 0 12px;
    color: var(--slate-900);
    font-size: 24px;
}

#step-2 p,
#step-3 h3,
.result-copy {
    margin: 0;
    color: var(--slate-500);
}

#step-3 h3 {
    font-size: 18px;
    color: var(--slate-800);
    margin-bottom: 12px;
    font-weight: 600;
}

.result-copy {
    max-width: 280px;
    line-height: 1.5;
    margin: 0 auto 28px auto;
}

.legal-note {
    margin-top: 24px;
    padding-top: 18px;
    text-align: center;
    font-size: 12px;
    line-height: 1.5;
    color: var(--slate-400);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.robot-head-animate {
    animation: gentleBob 2s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 768px) {
    .card-shell {
        min-height: 680px;
    }
    .card-body {
        padding: 40px;
    }
}