/* Styles for /advertise and /list-your-bot (on top of /styles.css). */

/* `hidden` must win over display:flex/inline-flex rules below. */
[hidden] { display: none !important; }

.st-page-hero { padding: 64px 0 36px; }
.st-page-hero h1 { font-size: 3rem; }
.st-page-hero .hero-tagline { margin-bottom: 1.75rem; }

.st-page { padding-bottom: 60px; }
.st-section { margin: 0 auto 48px; }
.st-section > h2 { text-align: center; font-size: 2rem; margin-bottom: 8px; }
.st-section > .st-lead { text-align: center; color: #94a3b8; max-width: 640px; margin: 0 auto 28px; }

/* ---------- feature cards ---------- */
.st-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.st-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
}

.st-feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.st-feature p { font-size: 0.92rem; margin: 0; color: #94a3b8; }
.st-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--primary-gradient);
}

/* ---------- packages ---------- */
.st-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.st-package {
    background: #fff;
    color: var(--text-main);
    border-radius: 14px;
    padding: 22px;
    border: 2px solid transparent;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.st-package.is-selected { border-color: var(--accent-purple); box-shadow: var(--hover-shadow); }
.st-package-name { font-weight: 700; color: #475569; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.st-package-price { font-size: 2rem; font-weight: 800; color: #0f172a; letter-spacing: -0.03em; line-height: 1.2; }
.st-package-meta { font-size: 0.88rem; color: #64748b; margin: 0; }
.st-package button { margin-top: 12px; }
.st-note { text-align: center; color: #94a3b8; font-size: 0.9rem; margin-top: 16px; }

/* ---------- white card + form ---------- */
.st-card {
    background: #fff;
    color: var(--text-main);
    border-radius: var(--card-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--glass-shadow);
    padding: 36px;
    max-width: 860px;
    margin: 0 auto;
}

.st-card h2, .st-card h3 { color: #0f172a; }
.st-card p { color: #475569; }
.st-card a:not(.st-btn) { color: #7c3aed; }
.st-card a:not(.st-btn):hover { color: #5b21b6; }

.st-steps {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    counter-reset: step;
}

.st-steps li {
    flex: 1;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.st-steps li.is-current { background: var(--primary-gradient); color: #fff; }
.st-steps li.is-done { background: #dcfce7; color: #166534; }

.st-field { margin-bottom: 20px; }
.st-field > label, .st-legend {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.st-optional { font-weight: 400; color: #94a3b8; font-size: 0.85rem; }
.st-hint { font-size: 0.85rem; color: #64748b; margin: 6px 0 0; }
.st-card .st-hint { color: #64748b; }

.st-input, .st-select, .st-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.st-textarea { min-height: 96px; resize: vertical; }
.st-input:focus, .st-select:focus, .st-textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.15);
}

.st-input[type="file"] { padding: 10px; background: #f8fafc; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-row.st-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.st-fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.st-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.st-slot-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-slot-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    color: #1e293b;
}
.st-slot-choice input { grid-row: span 2; accent-color: var(--accent-purple); }
.st-slot-choice.is-checked { border-color: var(--accent-purple); background: #f5efff; }
.st-slot-name { font-weight: 700; }
.st-slot-status { font-size: 0.85rem; color: #64748b; }
.st-slot-status.is-free { color: #15803d; font-weight: 600; }
.st-slot-line { font-weight: 600; color: #334155; }
.st-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    color: #1e293b;
    font-size: 0.92rem;
    background: #fff;
}

.st-choice:has(input:checked) { border-color: var(--accent-purple); background: #f5efff; }
.st-choice.is-checked { border-color: var(--accent-purple); background: #f5efff; }
.st-choice input { accent-color: var(--accent-purple); }
.st-check { display: flex; gap: 10px; align-items: flex-start; color: #475569; font-size: 0.9rem; }
.st-check input { margin-top: 4px; accent-color: var(--accent-purple); }
.st-counter { float: right; font-weight: 400; color: #94a3b8; font-size: 0.8rem; }

.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    background: var(--primary-gradient);
    box-shadow: 0 4px 15px rgba(153, 69, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.st-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(153, 69, 255, 0.35); color: #fff; }
.st-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.st-btn.secondary { background: #f1f5f9; color: #1e293b; box-shadow: none; }
.st-btn.secondary:hover { color: var(--accent-purple); }
.st-btn.small { padding: 8px 14px; font-size: 0.85rem; }
.st-btn.block { width: 100%; }

.st-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.st-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.st-alert.info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.st-alert.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ---------- banner previews ---------- */
.st-preview { margin: 8px 0 24px; }
.st-preview-label { font-size: 0.8rem; font-weight: 600; color: #64748b; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.st-preview .st-ad-frame.is-desktop { aspect-ratio: 8 / 1; }
.st-preview .st-ad-frame.is-mobile { aspect-ratio: 4 / 1; max-width: 360px; }
.st-preview .st-ad-frame.is-mobile.is-desktop-only { aspect-ratio: 8 / 1; }
.st-preview .st-ad-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-preview .st-ad-frame img.is-contain { object-fit: contain; }
.st-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    padding: 6px;
}

/* ---------- payment ---------- */
.st-pay-grid { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.st-qr-box { text-align: center; }
.st-qr {
    width: 220px;
    height: 220px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    image-rendering: pixelated;
    background: #fff;
}

.st-qr-box .st-btn { margin-top: 12px; }
.st-pay-label { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; }
.st-copy-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 6px; }
.st-copy-row code {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.st-amount code { font-size: 1.35rem; font-weight: 800; }
.st-usd { color: #475569; font-size: 0.9rem; margin: 0 0 18px; }
.st-timer { font-size: 0.9rem; color: #475569; margin-top: 14px; }
.st-timer strong { font-variant-numeric: tabular-nums; color: #0f172a; }

.st-status {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 24px 0 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.95rem;
}

.st-spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    border-top-color: var(--accent-purple);
    animation: stSpin 0.9s linear infinite;
}

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

.st-manual { margin-top: 18px; color: #334155; }
.st-manual summary { cursor: pointer; font-weight: 600; color: #475569; }
.st-manual form { display: flex; gap: 8px; margin-top: 10px; }

.st-done { text-align: center; padding: 12px 0; }
.st-done-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    background: var(--primary-gradient);
}

.st-done-icon.is-warn { background: #f59e0b; }
.st-status-link { overflow-wrap: anywhere; }

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.st-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.st-policy { max-width: 860px; margin: 28px auto 0; color: #94a3b8; font-size: 0.88rem; }
.st-policy h3 { font-size: 1rem; color: #e2e8f0; }
.st-policy li { color: #94a3b8; }

@media (max-width: 900px) {
    .st-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .st-page-hero { padding: 40px 0 24px; }
    .st-page-hero h1 { font-size: 2.1rem; }
    .st-card { padding: 22px 16px; border-radius: 14px; }
    .st-features { grid-template-columns: 1fr; }
    .st-row, .st-row.st-row-3, .st-slot-choices { grid-template-columns: 1fr; }
    .st-pay-grid { grid-template-columns: 1fr; }
    .st-qr-box { order: 2; }
    .st-steps li { font-size: 0.75rem; padding: 8px 6px; }
    .st-manual form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .st-spinner { animation: none; }
}
