/* ═══════════════════════════════════════════════════════
   BREXÓ — seller.css
   Páginas de onboarding de vendedor (join, register, pending)
═══════════════════════════════════════════════════════ */

/* ── JOIN PAGE ── */

.join-hero {
    background: linear-gradient(135deg, #2e2620 0%, #5A4A3A 100%);
    color: #fff;
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.join-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,39,104,.18) 0%, transparent 65%);
    pointer-events: none;
}
.join-hero-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.join-hero-eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--pink); margin-bottom: 1rem;
    background: rgba(255,39,104,.12); padding: .3rem .75rem; border-radius: 99px;
}
.join-hero h1 {
    font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15; margin-bottom: 1.25rem;
}
.join-hero h1 em { font-style: normal; color: var(--pink); }
.join-hero p {
    font-size: 1.05rem; color: rgba(255,255,255,.78); line-height: 1.65; margin-bottom: 2rem;
}
.join-hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-join-primary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--pink); color: #fff; font-weight: 700; font-size: 1rem;
    padding: .9rem 2rem; border-radius: 999px; text-decoration: none;
    transition: background .2s, transform .15s; white-space: nowrap;
    font-family: var(--sans);
}
.btn-join-primary:hover { background: var(--pink-deep); transform: translateY(-1px); }
.btn-join-secondary {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: .95rem;
    padding: .9rem 1.75rem; border-radius: 999px; text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.25);
    transition: background .2s; white-space: nowrap;
}
.btn-join-secondary:hover { background: rgba(255,255,255,.2); }
.join-hero-visual {
    display: flex; flex-direction: column; gap: .75rem;
}
.join-hero-card {
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: .75rem;
    backdrop-filter: blur(8px);
}
.join-hero-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,39,104,.15); color: var(--pink);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.join-hero-card-text strong { display: block; font-size: .92rem; font-weight: 600; }
.join-hero-card-text span { font-size: .8rem; color: rgba(255,255,255,.6); }

/* Stats bar */
.join-stats {
    background: var(--ink);
    padding: 1.5rem 0;
}
.join-stats-inner {
    max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-around; gap: 1rem; flex-wrap: wrap;
}
.join-stat {
    text-align: center; color: #fff;
}
.join-stat-num {
    font-family: var(--serif); font-weight: 900; font-size: 2rem; color: var(--pink);
    display: block; line-height: 1;
}
.join-stat-label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .25rem; }

/* How it works */
.join-section {
    max-width: 1100px; margin: 0 auto; padding: 4rem 1.5rem;
}
.join-section-title {
    text-align: center; font-family: var(--serif); font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--ink); margin-bottom: .5rem;
}
.join-section-sub {
    text-align: center; color: var(--muted); font-size: 1rem; margin-bottom: 3rem;
}
.join-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
    position: relative;
}
.join-steps::before {
    content: '';
    position: absolute; top: 28px; left: calc(16.6% + 14px); right: calc(16.6% + 14px);
    height: 2px; background: var(--line);
}
.join-step { text-align: center; }
.join-step-num {
    width: 56px; height: 56px; border-radius: 999px;
    background: var(--pink); color: #fff;
    font-family: var(--serif); font-weight: 900; font-size: 1.4rem;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; position: relative; z-index: 1;
}
.join-step h3 {
    font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
    color: var(--ink); margin-bottom: .5rem;
}
.join-step p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* Benefits */
.join-benefits-bg { background: var(--ground); }
.join-benefits {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.join-benefit {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 1.5rem;
}
.join-benefit-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--light-pink); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.join-benefit h3 {
    font-family: var(--serif); font-weight: 700; font-size: 1rem;
    color: var(--ink); margin-bottom: .4rem;
}
.join-benefit p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* CTA bottom */
.join-cta {
    background: linear-gradient(135deg, var(--pink) 0%, #c0183e 100%);
    padding: 5rem 0; text-align: center; color: #fff;
}
.join-cta h2 {
    font-family: var(--serif); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}
.join-cta p { font-size: 1rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.btn-join-white {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #fff; color: var(--pink); font-weight: 700; font-size: 1rem;
    padding: .9rem 2.25rem; border-radius: 999px; text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-join-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.2); }

/* FAQ */
.join-faq { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
    width: 100%; background: none; border: none; padding: 1.1rem 0;
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--ink);
    cursor: pointer; text-align: left; gap: 1rem;
}
.faq-q svg { flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { font-size: .9rem; color: var(--muted); line-height: 1.7; padding-bottom: 1.1rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* ── REGISTER FORM (multi-step) ── */

.seller-register-wrap {
    min-height: calc(100vh - 200px);
    display: flex; align-items: flex-start; justify-content: center;
    padding: 3rem 1rem 4rem;
}
.seller-register-box {
    width: 100%; max-width: 520px;
}
.seller-register-logo {
    text-align: center; margin-bottom: 2rem;
}
.seller-register-logo a {
    font-family: var(--serif); font-weight: 900; font-size: 1.8rem; text-decoration: none;
}
.seller-register-logo .p { color: var(--pink); }
.seller-register-logo .y { color: var(--yellow); }

/* Progress */
.seller-progress {
    display: flex; align-items: center; margin-bottom: 2.25rem;
}
.seller-progress-step {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    flex: 1;
}
.seller-progress-dot {
    width: 32px; height: 32px; border-radius: 999px;
    background: var(--line); color: var(--faint);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; transition: background .3s, color .3s;
}
.seller-progress-step.done .seller-progress-dot {
    background: var(--pink); color: #fff;
}
.seller-progress-step.active .seller-progress-dot {
    background: var(--ink); color: #fff;
}
.seller-progress-label {
    font-size: .7rem; font-weight: 600; color: var(--faint); white-space: nowrap;
    transition: color .3s;
}
.seller-progress-step.done .seller-progress-label,
.seller-progress-step.active .seller-progress-label { color: var(--ink); }
.seller-progress-line {
    flex: 1; height: 2px; background: var(--line); margin-bottom: 1.2rem;
    transition: background .3s;
}
.seller-progress-line.done { background: var(--pink); }

/* Form */
.seller-form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 20px; padding: 2rem;
}
.seller-step { display: none; }
.seller-step.active { display: block; }
.seller-step-title {
    font-family: var(--serif); font-weight: 800; font-size: 1.4rem;
    color: var(--ink); margin-bottom: .35rem;
}
.seller-step-sub { font-size: .88rem; color: var(--muted); margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group:last-child { margin-bottom: 0; }
.form-label {
    display: block; font-size: .8rem; font-weight: 600;
    color: var(--ink); margin-bottom: .4rem;
}
.form-label span { font-weight: 400; color: var(--faint); }
.form-input {
    width: 100%; border: 1.5px solid var(--line); background: var(--surface);
    border-radius: 10px; padding: .75rem 1rem;
    font-family: var(--sans); font-size: .95rem; color: var(--ink);
    outline: none; transition: border-color .15s; -webkit-appearance: none;
}
.form-input:focus { border-color: var(--ink); }
.form-input.error { border-color: #e53e3e; }
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: .75rem; }
.form-hint { font-size: .77rem; color: var(--faint); margin-top: .3rem; }
.form-error-msg { font-size: .8rem; color: #e53e3e; margin-top: .3rem; }

/* Inline errors from server */
.alert-errors {
    background: #FBE7E7; border: 1px solid #f5c6c6; border-radius: 10px;
    padding: .9rem 1.1rem; margin-bottom: 1.25rem;
}
.alert-errors ul { margin: 0; padding-left: 1.1rem; }
.alert-errors li { font-size: .85rem; color: #A12A2A; line-height: 1.5; }

/* Nav buttons */
.seller-form-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.75rem; gap: .75rem;
}
.btn-seller-back {
    display: inline-flex; align-items: center; gap: .4rem;
    background: none; border: 1.5px solid var(--line); border-radius: 999px;
    padding: .7rem 1.4rem; font-family: var(--sans); font-size: .92rem;
    font-weight: 600; color: var(--muted); cursor: pointer;
    transition: border-color .15s, color .15s;
}
.btn-seller-back:hover { border-color: var(--ink); color: var(--ink); }
.btn-seller-next {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ink); color: #fff; border: none; border-radius: 999px;
    padding: .75rem 1.75rem; font-family: var(--sans); font-size: .95rem;
    font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-seller-next:hover { background: #3a2e24; }
.btn-seller-submit {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--pink); color: #fff; border: none; border-radius: 999px;
    padding: .75rem 1.75rem; font-family: var(--sans); font-size: .95rem;
    font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-seller-submit:hover { background: var(--pink-deep); }

.seller-register-login {
    text-align: center; margin-top: 1.25rem;
    font-size: .85rem; color: var(--muted);
}
.seller-register-login a { color: var(--ink); font-weight: 600; text-decoration: none; }
.seller-register-login a:hover { color: var(--pink); }

/* Address loading */
.form-input[readonly] { background: var(--ground); color: var(--muted); }
.cep-spinner { display: none; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--pink); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PENDING PAGE ── */

.seller-pending-wrap {
    min-height: calc(100vh - 200px);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1rem;
}
.seller-pending-box {
    width: 100%; max-width: 520px; text-align: center;
}
.seller-pending-icon {
    width: 80px; height: 80px; border-radius: 999px;
    background: #E7F6EC; color: #1F6B3A;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
}
.seller-pending-box h1 {
    font-family: var(--serif); font-weight: 900; font-size: 1.9rem;
    color: var(--ink); margin-bottom: .75rem;
}
.seller-pending-box > p {
    color: var(--muted); font-size: .98rem; line-height: 1.7; margin-bottom: 2rem;
}
.seller-pending-store {
    background: var(--ground); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.25rem 1.5rem; margin-bottom: 2rem; text-align: left;
    display: flex; align-items: center; gap: 1rem;
}
.seller-pending-store-avatar {
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--light-pink); color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 900; font-size: 1.3rem;
    flex-shrink: 0;
}
.seller-pending-store strong { display: block; font-weight: 700; color: var(--ink); }
.seller-pending-store span { font-size: .84rem; color: var(--muted); }

.seller-pending-timeline {
    text-align: left; margin-bottom: 2rem;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.5rem;
}
.seller-pending-timeline h3 {
    font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--faint); margin-bottom: 1.25rem;
}
.tl-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding-bottom: 1.25rem; position: relative;
}
.tl-item:not(:last-child)::before {
    content: ''; position: absolute; left: 15px; top: 30px; bottom: 0;
    width: 2px; background: var(--line);
}
.tl-dot {
    width: 30px; height: 30px; border-radius: 999px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.tl-dot.done { background: #E7F6EC; color: #1F6B3A; }
.tl-dot.wait { background: var(--ground); color: var(--faint); border: 2px dashed var(--line); }
.tl-text strong { display: block; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; }
.tl-text span { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.seller-pending-actions { display: flex; flex-direction: column; gap: .75rem; align-items: center; }
.btn-pending-home {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--ink); color: #fff; border: none; border-radius: 999px;
    padding: .8rem 2rem; font-family: var(--sans); font-size: .95rem; font-weight: 700;
    text-decoration: none; transition: background .15s;
}
.btn-pending-home:hover { background: #3a2e24; }
.btn-pending-whatsapp {
    display: inline-flex; align-items: center; gap: .5rem;
    background: #25D366; color: #fff; border: none; border-radius: 999px;
    padding: .75rem 1.75rem; font-family: var(--sans); font-size: .92rem; font-weight: 600;
    text-decoration: none; transition: background .15s;
}
.btn-pending-whatsapp:hover { background: #1ebe5c; }
.seller-pending-note { font-size: .8rem; color: var(--faint); line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 819px) {
    .join-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .join-hero-visual { display: none; }
    .join-hero { padding: 3.5rem 0 3rem; }
    .join-steps { grid-template-columns: 1fr; gap: 1.5rem; }
    .join-steps::before { display: none; }
    .join-step-num { margin-bottom: .75rem; }
    .join-benefits { grid-template-columns: 1fr; }
    .join-stats-inner { justify-content: center; gap: 1.5rem; }

    .seller-form-card { padding: 1.5rem; border-radius: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    .form-row-3 .form-group:last-child { grid-column: 1 / -1; }
}
