/* ============================================
   Liberty RP — Whitelist interactiva
   ============================================ */

.wl-hero {
    position: relative;
    padding: 150px 0 60px;
    overflow: hidden;
}

.wl-hero-particles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 40% at 20% 30%, rgba(201, 169, 98, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 45% 35% at 80% 60%, rgba(143, 115, 64, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.wl-hero-lead {
    color: var(--text-secondary);
    font-size: 1.08rem;
    max-width: 640px;
    line-height: 1.75;
    margin-top: 16px;
}

.wl-hero-lead a {
    color: var(--gold-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wl-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.wl-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(6, 6, 6, 0.55);
    color: var(--gold-light);
    font-size: 0.82rem;
    font-weight: 600;
}

.wl-badge-warn {
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.wl-progress-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(201, 169, 98, 0.12);
}

.wl-progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold-light));
    box-shadow: 0 0 16px rgba(201, 169, 98, 0.45);
    transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-section {
    padding: 40px 0 100px;
}

.wl-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.wl-sidebar {
    position: sticky;
    top: 110px;
}

.wl-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wl-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    background: rgba(8, 8, 8, 0.45);
    transition: all 0.35s ease;
    opacity: 0.55;
}

.wl-step-item strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 2px;
}

.wl-step-item small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.wl-step-item.active,
.wl-step-item.done {
    opacity: 1;
    border-color: rgba(201, 169, 98, 0.28);
    background: rgba(201, 169, 98, 0.06);
}

.wl-step-item.done .wl-step-num {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.wl-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(201, 169, 98, 0.15);
    color: var(--gold-light);
    transition: transform 0.3s ease;
}

.wl-step-item.active .wl-step-num {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.35);
}

.wl-form-shell {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: visible;
}

.wl-form-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05) 0%, transparent 45%);
    pointer-events: none;
}

.wl-pane {
    display: none;
    animation: wlFadeIn 0.45s ease;
}

.wl-pane.active {
    display: block;
    overflow: visible;
}

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

.wl-pane-head {
    margin-bottom: 28px;
}

.wl-pane-head h2 {
    font-family: var(--font-display);
    color: var(--gold-light);
    font-size: 1.65rem;
    margin-bottom: 8px;
}

.wl-pane-head p {
    color: var(--text-secondary);
    line-height: 1.65;
}

.wl-label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.wl-field {
    position: relative;
}

.wl-field:focus-within label,
.wl-field:focus-within .wl-label {
    color: var(--gold-light);
}

.wl-choice-grid,
.wl-choice-row {
    display: grid;
    gap: 10px;
}

.wl-choice-row {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.wl-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 169, 98, 0.16);
    background: var(--input-bg);
    cursor: pointer;
    transition: all 0.25s ease;
}

.wl-choice:hover {
    border-color: rgba(201, 169, 98, 0.35);
    transform: translateY(-1px);
}

.wl-choice:has(input:checked) {
    border-color: var(--accent);
    background: rgba(201, 169, 98, 0.1);
    box-shadow: 0 0 0 1px rgba(201, 169, 98, 0.2);
}

.wl-choice input {
    margin-top: 3px;
    accent-color: var(--accent);
}

.wl-choice span {
    font-size: 0.9rem;
    line-height: 1.5;
}

.wl-otro-input {
    margin-top: 12px;
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid rgba(201, 169, 98, 0.18);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all var(--transition);
}

.wl-otro-input:disabled {
    opacity: 0.45;
}

.wl-otro-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(234, 217, 168, 0.15);
}

.wl-word-meter {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.wl-word-bar {
    height: 4px;
    margin-top: 8px;
    border-radius: 999px;
    background: rgba(201, 169, 98, 0.12);
    overflow: hidden;
}

.wl-word-bar div {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ef4444, var(--accent));
    transition: width 0.3s ease, background 0.3s ease;
}

.wl-word-meter.is-valid {
    color: #86efac;
}

.wl-word-meter.is-valid .wl-word-bar div {
    background: linear-gradient(90deg, #22c55e, #86efac);
}

.wl-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wl-submit-wrap {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.wl-submit-wrap[hidden] {
    display: none !important;
}

#wlSubmitBtn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#wlSubmitBtn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.wl-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.92rem;
}

.wl-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.wl-field.is-invalid input,
.wl-field.is-invalid textarea,
.wl-field.is-invalid .wl-choice {
    border-color: rgba(239, 68, 68, 0.45);
}

.wl-field-hint {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.wl-field-hint.is-error {
    color: #fca5a5;
}

.wl-autocomplete {
    position: relative;
}

.wl-autocomplete-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 120;
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(8, 8, 10, 0.96);
    border: 1px solid rgba(201, 169, 98, 0.35);
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    animation: wlFadeIn 0.2s ease;
}

.wl-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.wl-autocomplete-item:hover,
.wl-autocomplete-item.active {
    background: rgba(201, 169, 98, 0.12);
}

.wl-autocomplete-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(201, 169, 98, 0.25);
}

.wl-autocomplete-item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wl-autocomplete-item-text strong {
    font-size: 0.9rem;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-autocomplete-item-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
}

.wl-autocomplete-empty {
    padding: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

.wl-autocomplete-field.is-selected input#discordName {
    border-color: rgba(34, 197, 94, 0.45);
}

.wl-autocomplete-field.is-blocked input#discordName {
    border-color: rgba(239, 68, 68, 0.55);
}

.wl-autocomplete-item.is-approved {
    opacity: 0.72;
}

.wl-approved-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wl-autocomplete-loading {
    padding: 12px;
    font-size: 0.82rem;
    color: var(--gold-light);
    text-align: center;
}

.wl-success {
    text-align: center;
    padding: 48px 24px;
    animation: wlFadeIn 0.5s ease;
}

.wl-btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    display: none;
    flex-shrink: 0;
}

#wlSubmitBtn.is-loading .wl-btn-spinner {
    display: inline-block;
    animation: wlSpin 0.7s linear infinite;
}

#wlSubmitBtn.is-loading .wl-btn-text {
    opacity: 0.75;
}

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

@media (max-width: 960px) {
    .wl-layout {
        grid-template-columns: 1fr;
    }

    .wl-sidebar {
        position: static;
    }

    .wl-steps {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .wl-step-item {
        min-width: 200px;
    }

    .wl-form-shell {
        padding: 28px 22px;
    }
}

@media (max-width: 640px) {
    .wl-form-actions {
        flex-direction: column;
    }

    .wl-form-actions .btn {
        width: 100%;
    }
}
