/* ==========================================================================
   Tribes Market - Launch Gate (Screen 1) & Seller Invite Page (Screen 2: /sell)
   CSP-safe, 4-Tier Responsive Layout, Light & Night Mode Compatible
   ========================================================================== */

[hidden] {
    display: none !important;
}

@keyframes tmPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.tm-launch-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--success-text, #15803d);
    flex-shrink: 0;
    animation: tmPulseDot 1.8s ease-in-out infinite;
}

/* Admin Preview Bar shown on / when public visitors are gated */
.admin-launch-preview-bar {
    width: 100%;
    background: #451a03;
    color: #fef3c7;
    border-bottom: 1px solid rgba(253, 230, 138, 0.28);
    font-size: var(--font-xs, 0.78rem);
}

.admin-launch-preview-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px clamp(12px, 3vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    box-sizing: border-box;
}

.admin-launch-preview-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-launch-preview-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(253, 230, 138, 0.45);
    border-radius: 7px;
    padding: 5px 11px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.admin-launch-preview-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Screen 1: Launch Gate Section on / */
.launch-gate-section {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    padding: clamp(20px, 4vw, 44px) clamp(12px, 3vw, 28px) 48px;
}

.launch-gate-inner {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 2.2vw, 20px);
    box-sizing: border-box;
}

.launch-hero-head {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.launch-hero-kicker {
    display: inline-flex;
    align-items: center;
    align-self: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--brand-tint-bg);
    color: var(--brand-tint-text);
    border: 1px solid var(--brand-tint-border);
}

.launch-hero-title {
    margin: 0;
    font-size: clamp(1.45rem, 3.6vw, 2.15rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.launch-hero-sub {
    margin: 0 auto;
    max-width: 520px;
    font-size: clamp(0.86rem, 1.4vw, 0.96rem);
    line-height: 1.5;
    color: var(--text-secondary);
}

.launch-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    padding: clamp(16px, 3vw, 26px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.launch-date-stack {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.launch-date-label {
    margin: 0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-ochre);
}

.launch-online-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.launch-timer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(6px, 1.8vw, 12px);
}

.launch-timer-box {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: clamp(10px, 2vw, 14px) 6px;
    text-align: center;
}

.launch-timer-num {
    font-size: clamp(1.35rem, 3.6vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
}

.launch-timer-num--sec {
    color: var(--brand-ochre);
}

.launch-timer-unit {
    margin-top: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.launch-progress-pill {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
    border-radius: 12px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.launch-state-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.launch-ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.launch-cta-primary,
.launch-cta-wa,
.launch-cta-wa-outline {
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.launch-cta-primary {
    background: var(--brand-ochre);
    color: #ffffff;
    border: 1px solid var(--brand-ochre);
}

[data-theme="dark"] .launch-cta-primary {
    color: #121417;
}

.launch-cta-primary:hover {
    background: var(--brand-brown);
    border-color: var(--brand-brown);
}

.launch-cta-wa {
    background: #15803d;
    color: #ffffff;
    border: 1px solid #166534;
}

.launch-cta-wa:hover {
    background: #166534;
}

.launch-cta-wa-outline {
    background: var(--bg-white);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.launch-cta-wa-outline:hover {
    background: var(--success-bg);
}

.launch-helper-note {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.launch-inline-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.launch-text-btn {
    background: none;
    border: 0;
    padding: 2px 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    color: var(--brand-ochre);
}

.launch-text-btn--wa {
    color: var(--success-text);
}

.launch-text-btn--sec {
    color: var(--text-secondary);
}

.launch-trust-line {
    margin: 0;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
}

.launch-seller-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.launch-seller-footer a {
    color: var(--brand-ochre);
    font-weight: 800;
    text-decoration: underline;
}

/* ==========================================================================
   Screen 2: Dedicated Seller Invite Landing Page (/sell)
   ========================================================================== */
body.sell-landing-page {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-page);
    color: var(--text-main);
}

.sell-urgency-strip {
    width: 100%;
    background: #78350f;
    color: #ffffff;
    padding: 8px clamp(12px, 3vw, 24px);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
    box-sizing: border-box;
}

[data-theme="dark"] .sell-urgency-strip {
    background: #451a03;
    color: #fef3c7;
}

.sell-header {
    width: 100%;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.sell-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px clamp(12px, 3vw, 28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-sizing: border-box;
}

.sell-brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.sell-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--brand-tint-bg);
    color: var(--brand-tint-text);
    border: 1px solid var(--brand-tint-border);
    white-space: nowrap;
}

.sell-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sell-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border-strong);
    white-space: nowrap;
}

.sell-outline-btn:hover {
    background: var(--bg-surface-elevated);
}

.sell-main {
    flex: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(22px, 4vw, 44px) clamp(12px, 3vw, 28px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3.2vw, 32px);
}

.sell-hero {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sell-hero h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3.8vw, 2.45rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.sell-hero p {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.55;
    color: var(--text-secondary);
}

.sell-cta-row {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.sell-cta-row > a,
.sell-cta-row > button {
    flex: 1 1 240px;
}

.sell-reasons-grid {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
}

.sell-reason-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: clamp(16px, 2.4vw, 22px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sell-reason-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sell-reason-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    background: var(--brand-tint-bg);
    color: var(--brand-tint-text);
    border: 1px solid var(--brand-tint-border);
    flex-shrink: 0;
}

.sell-reason-head h2 {
    margin: 0;
    font-size: clamp(0.92rem, 1.4vw, 1.02rem);
    font-weight: 800;
    color: var(--text-main);
}

.sell-reason-card p {
    margin: 0;
    font-size: clamp(0.82rem, 1.2vw, 0.9rem);
    line-height: 1.52;
    color: var(--text-secondary);
}

.sell-reassurance-box {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    background: var(--brand-tint-bg);
    border: 1px solid var(--brand-tint-border);
    border-radius: 16px;
    padding: clamp(16px, 2.4vw, 22px);
    box-sizing: border-box;
}

.sell-reassurance-title {
    margin: 0 0 6px 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-tint-text);
}

.sell-reassurance-text {
    margin: 0;
    font-size: clamp(0.84rem, 1.25vw, 0.92rem);
    line-height: 1.52;
    color: var(--text-main);
}

@media (max-width: 720px) {
    .sell-reasons-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 579px) {
    .sell-header-inner {
        padding: 8px 12px;
        gap: 6px;
    }

    .sell-header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .sell-outline-btn {
        min-height: 32px;
        padding: 5px 9px;
        font-size: 0.72rem;
    }
}

@media (max-width: 520px) {
    .sell-role-pill {
        display: none;
    }
}
