/**
 * Whitelist Application Styles — Los Santos After Dark
 * Shared between entry-whitelist.html and splat-whitelist.html
 */

/* ============================================================================
   Layout
   ============================================================================ */

.wl-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121f 50%, #0d0d15 100%);
    color: #e0e0e0;
    font-family: var(--wl-font-body, 'Crimson Text', Georgia, serif);
}

.wl-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ============================================================================
   Header / Navigation Bar
   ============================================================================ */

.wl-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 30px;
    background: rgba(10, 10, 20, 0.95);
    border-bottom: 1px solid rgba(139, 92, 246, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wl-topbar-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #A78BFA;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.wl-topnav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0 16px;
}

.wl-topnav a {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #c0c0c0;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: color 0.2s;
}

.wl-topnav a:hover {
    color: #A78BFA;
}

.wl-topnav a.wl-topnav-accent {
    color: #d4af37;
}

@media (max-width: 820px) {
    .wl-topnav {
        display: none;
    }
}

.wl-topbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wl-topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.4);
}

.wl-topbar-username {
    color: #c0c0c0;
    font-size: 0.9rem;
}

.wl-topbar-logout {
    background: none;
    border: 1px solid rgba(196, 30, 58, 0.4);
    color: #C41E3A;
    padding: 5px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.wl-topbar-logout:hover {
    background: rgba(196, 30, 58, 0.15);
    border-color: #C41E3A;
}

/* ============================================================================
   Progress Tracker
   ============================================================================ */

.wl-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 30px 0 40px;
    padding: 0 20px;
}

.wl-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 120px;
}

.wl-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: rgba(10, 10, 20, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 0.9rem;
    color: #666;
    transition: all 0.4s ease;
    z-index: 2;
}

.wl-progress-dot.active {
    border-color: #8B5CF6;
    color: #8B5CF6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.wl-progress-dot.completed {
    border-color: #10B981;
    background: #10B981;
    color: #fff;
}

.wl-progress-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 8px;
    text-align: center;
    font-family: var(--wl-font-body, 'Crimson Text', Georgia, serif);
    transition: color 0.3s;
}

.wl-progress-dot.active + .wl-progress-label,
.wl-progress-step.active .wl-progress-label {
    color: #A78BFA;
}

.wl-progress-dot.completed + .wl-progress-label,
.wl-progress-step.completed .wl-progress-label {
    color: #10B981;
}

.wl-progress-line {
    width: 80px;
    height: 2px;
    background: rgba(139, 92, 246, 0.15);
    margin-bottom: 24px;
    transition: background 0.4s;
}

.wl-progress-line.completed {
    background: #10B981;
}

/* ============================================================================
   Page Title
   ============================================================================ */

.wl-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 1.8rem;
    color: #A78BFA;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.wl-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* ============================================================================
   Warning / Info Boxes
   ============================================================================ */

.wl-save-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 30px;
    color: #F59E0B;
    font-size: 0.9rem;
    text-align: center;
}

.wl-info-box {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #c0c0c0;
    font-size: 0.9rem;
}

.wl-revision-box {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 30px;
}

.wl-revision-box h3 {
    color: #F59E0B;
    margin: 0 0 8px;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 1rem;
}

.wl-revision-box p {
    color: #ddd;
    margin: 0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.wl-error-box {
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #C41E3A;
    font-size: 0.9rem;
    display: none;
}

.wl-success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    color: #10B981;
}

.wl-success-box h2 {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.wl-success-box p {
    color: #c0c0c0;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================================
   Sections & Forms
   ============================================================================ */

.wl-section {
    background: rgba(18, 18, 30, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.wl-section-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 1.2rem;
    color: #A78BFA;
    margin: 0 0 6px;
    letter-spacing: 1px;
}

.wl-section-note {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-style: italic;
}

.wl-section-instruction {
    color: #c0c0c0;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.wl-breach-warning {
    color: #C41E3A;
    font-size: 0.85rem;
    margin-top: 16px;
    font-style: italic;
    padding-top: 12px;
    border-top: 1px solid rgba(196, 30, 58, 0.2);
}

/* Acknowledgement Checkboxes */
.wl-acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(10, 10, 20, 0.4);
    border-radius: 6px;
    transition: background 0.2s;
}

.wl-acknowledgement:hover {
    background: rgba(139, 92, 246, 0.05);
}

.wl-acknowledgement input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 4px;
    background: rgba(10, 10, 20, 0.6);
    cursor: pointer;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.wl-acknowledgement input[type="checkbox"]:checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

.wl-acknowledgement input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.wl-acknowledgement label {
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

/* Question Fields */
.wl-question {
    margin-bottom: 28px;
}

.wl-question-number {
    color: #8B5CF6;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.wl-question-text {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.wl-question-sub {
    color: #aaa;
    font-size: 0.9rem;
    margin-left: 16px;
    margin-bottom: 4px;
    line-height: 1.5;
}

.wl-question-sub::before {
    content: "• ";
    color: #8B5CF6;
}

.wl-question textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    padding: 12px 14px;
    font-family: var(--wl-font-body, 'Crimson Text', Georgia, serif);
    font-size: 0.95rem;
    line-height: 1.6;
    resize: vertical;
    margin-top: 10px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.wl-question textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

/* Checkbox acknowledgement questions */
.wl-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 10px;
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    color: #e0e0e0;
    font-family: var(--wl-font-body, 'Crimson Text', Georgia, serif);
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.3s;
}

.wl-checkbox-label:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.wl-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 3px;
    background: rgba(10, 10, 20, 0.8);
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: all 0.2s;
}

.wl-checkbox-label input[type="checkbox"]:checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

.wl-checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.wl-checkbox-label.error {
    border-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.wl-question textarea.error {
    border-color: rgba(196, 30, 58, 0.5);
}

.wl-question-charcount {
    text-align: right;
    color: #666;
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ============================================================================
   Splat Selection Cards — Matches index.html flip card aesthetic
   ============================================================================ */

.wl-splat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wl-splat-card {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.06) 0%, rgba(10, 10, 15, 0.95) 40%, rgba(18, 18, 28, 0.95) 100%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 0;
    padding: 24px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Top accent line (matches splat-flip-back) */
.wl-splat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    transition: all 0.3s ease;
}

.wl-splat-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.1);
}

.wl-splat-card:hover::before {
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
    height: 3px;
}

.wl-splat-card.selected {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.12) 0%, rgba(10, 10, 15, 0.95) 40%, rgba(18, 18, 28, 0.95) 100%);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.wl-splat-card.selected::before {
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
    height: 3px;
}

.wl-splat-card.selected::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: #8B5CF6;
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
}

.wl-splat-card-name {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #c9a55a;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.wl-splat-card-desc {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* ============================================================================
   Special Whitelist Checkboxes
   ============================================================================ */

.wl-special-group {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(10, 10, 20, 0.4);
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 6px;
}

.wl-special-group-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #A78BFA;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.wl-special-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.wl-special-item:hover {
    background: rgba(139, 92, 246, 0.05);
}

.wl-special-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid rgba(139, 92, 246, 0.35);
    border-radius: 3px;
    background: rgba(10, 10, 20, 0.6);
    cursor: pointer;
    margin-top: 2px;
    transition: all 0.2s;
    position: relative;
}

.wl-special-item input[type="checkbox"]:checked {
    background: #8B5CF6;
    border-color: #8B5CF6;
}

.wl-special-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.wl-special-icon {
    font-size: 1rem;
}

.wl-special-name {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
}

.wl-special-desc {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.4;
}

/* ============================================================================
   Mortal/Supernatural Choice
   ============================================================================ */

.wl-choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.wl-choice-card {
    background: rgba(18, 18, 30, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wl-choice-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.12);
}

.wl-choice-card.selected {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.1);
}

.wl-choice-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.wl-choice-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.wl-choice-desc {
    color: #888;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.wl-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wl-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.15);
}

.wl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wl-btn-primary {
    background: #8B5CF6;
    border-color: #8B5CF6;
    color: #fff;
}

.wl-btn-primary:hover {
    background: #7C3AED;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

a.wl-btn,
a.wl-btn:link,
a.wl-btn:visited {
    color: inherit;
    text-decoration: none;
}

a.wl-btn-primary,
a.wl-btn-primary:link,
a.wl-btn-primary:visited {
    color: #fff;
}

.wl-btn-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 16px;
}

.wl-btn-group-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

/* ============================================================================
   Loading States
   ============================================================================ */

.wl-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 16px;
}

.wl-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8B5CF6;
    border-radius: 50%;
    animation: wl-spin 0.8s linear infinite;
}

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

.wl-loading-text {
    color: #A78BFA;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 0.95rem;
}

/* ============================================================================
   Login Required State
   ============================================================================ */

.wl-login-required {
    text-align: center;
    padding: 80px 20px;
}

.wl-login-required h2 {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #A78BFA;
    margin-bottom: 16px;
}

.wl-login-required p {
    color: #888;
    margin-bottom: 30px;
}

.wl-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: var(--wl-font-body, 'Crimson Text', Georgia, serif);
    font-size: 1rem;
    transition: background 0.3s;
}

.wl-discord-btn:hover {
    background: #4752C4;
}

/* ============================================================================
   Placeholder Notes (visible to team)
   ============================================================================ */

.wl-placeholder-note {
    background: rgba(245, 158, 11, 0.08);
    border: 1px dashed rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #F59E0B;
    font-size: 0.82rem;
    font-style: italic;
}

/* Section headings within question groups */
.wl-question-section-heading {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    font-size: 1.15rem;
    color: #c9a55a;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding-bottom: 6px;
    margin-bottom: 6px;
    margin-top: 10px;
}

.wl-question-section-subtitle {
    color: #8B5CF6;
    font-size: 0.85rem;
    font-style: italic;
    margin-bottom: 6px;
}

.wl-question-section-desc {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 10px 14px;
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid rgba(139, 92, 246, 0.4);
}

/* ============================================================================
   Already Approved State
   ============================================================================ */

.wl-approved-status {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    margin: 30px 0;
}

.wl-approved-status h3 {
    color: #10B981;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    margin: 0 0 8px;
}

.wl-approved-status p {
    color: #c0c0c0;
    margin: 0;
}

.wl-flag-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
}

.wl-flag-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    letter-spacing: 0.5px;
}

.wl-flag-badge.entry { background: rgba(16, 185, 129, 0.15); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.3); }
.wl-flag-badge.mortal { background: rgba(192, 192, 192, 0.15); color: #c0c0c0; border: 1px solid rgba(192, 192, 192, 0.3); }
.wl-flag-badge.kindred { background: rgba(139, 0, 0, 0.15); color: #C41E3A; border: 1px solid rgba(196, 30, 58, 0.3); }
.wl-flag-badge.garou { background: rgba(47, 79, 47, 0.15); color: #3CB371; border: 1px solid rgba(60, 179, 113, 0.3); }
.wl-flag-badge.mage { background: rgba(75, 0, 130, 0.15); color: #9370DB; border: 1px solid rgba(147, 112, 219, 0.3); }
.wl-flag-badge.changeling { background: rgba(74, 14, 78, 0.15); color: #9932CC; border: 1px solid rgba(153, 50, 204, 0.3); }
.wl-flag-badge.fera { background: rgba(61, 92, 61, 0.15); color: #6B8E6B; border: 1px solid rgba(107, 142, 107, 0.3); }
.wl-flag-badge.hunter { background: rgba(112, 128, 144, 0.15); color: #B0C4DE; border: 1px solid rgba(176, 196, 222, 0.3); }
.wl-flag-badge.special { background: rgba(245, 158, 11, 0.15); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.3); }

/* ============================================================================
   Pending = Waiting screen
   ============================================================================ */

.wl-pending-screen {
    text-align: center;
    padding: 40px 20px;
}

.wl-pending-screen h2 {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #F59E0B;
    margin-bottom: 12px;
}

.wl-pending-screen p {
    color: #aaa;
    line-height: 1.6;
}

.wl-pending-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: wl-pulse 2s ease-in-out infinite;
}

@keyframes wl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================================================
   Sub-type Picker (Clans / Tribes / Breeds)
   ============================================================================ */

.wl-subtype-group {
    margin-bottom: 28px;
}

.wl-subtype-group-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #A78BFA;
    font-size: 1.05rem;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.wl-subtype-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.wl-subtype-card {
    position: relative;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.04) 0%, rgba(10, 10, 15, 0.9) 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 0;
    padding: 16px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

/* Checkbox indicator (top-right corner) */
.wl-subtype-card::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(139, 92, 246, 0.35);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.wl-subtype-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(30, 25, 50, 0.9);
}

.wl-subtype-card:hover::after {
    border-color: rgba(139, 92, 246, 0.6);
}

.wl-subtype-card.selected {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}

/* Filled checkbox with checkmark when selected */
.wl-subtype-card.selected::after {
    background: #8B5CF6;
    border-color: #8B5CF6;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.wl-subtype-card.restricted {
    border-style: dashed;
}

.wl-subtype-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 6px;
    color: #c9a55a;
}

.wl-subtype-icon .wl-icon {
    width: 22px;
    height: 22px;
}

.wl-splat-card-icon {
    display: flex;
    justify-content: center;
    color: #c9a55a;
    margin-bottom: 8px;
}

.wl-splat-card-icon .wl-icon {
    width: 28px;
    height: 28px;
}

.wl-subtype-name {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #c9a55a;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.wl-subtype-desc {
    color: #888;
    font-size: 0.8rem;
    line-height: 1.3;
}

.wl-restricted-tag {
    display: inline-block;
    background: rgba(200, 60, 60, 0.25);
    color: #f87171;
    font-size: 0.65rem;
    font-family: var(--wl-font-body, 'Crimson Text', Georgia, serif);
    padding: 2px 7px;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================================
   Leadership / Elder Contracts
   ============================================================================ */

.wl-contract-block {
    background: rgba(20, 20, 35, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}

.wl-contract-title {
    font-family: var(--wl-font-heading, 'Cinzel', serif);
    color: #A78BFA;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.wl-contract-preamble {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.wl-contract-terms {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.wl-contract-terms li {
    position: relative;
    padding: 10px 12px 10px 28px;
    margin-bottom: 6px;
    background: rgba(10, 10, 20, 0.6);
    border-radius: 4px;
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.45;
}

.wl-contract-terms li::before {
    content: '§';
    position: absolute;
    left: 10px;
    top: 10px;
    color: #8B5CF6;
    font-weight: bold;
}

.wl-contract-ack {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 6px;
    cursor: pointer;
    color: #ccc;
    font-size: 0.95rem;
}

.wl-contract-ack input[type="checkbox"] {
    accent-color: #8B5CF6;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
    .wl-container { padding: 20px 14px 60px; }
    .wl-title { font-size: 1.4rem; }
    .wl-section { padding: 20px; }
    .wl-choice-grid { grid-template-columns: 1fr; }
    .wl-splat-grid { grid-template-columns: 1fr; }
    .wl-subtype-grid { grid-template-columns: 1fr; }
    .wl-btn-group { flex-direction: column; }
    .wl-progress { flex-wrap: wrap; }
    .wl-progress-line { width: 40px; }
}
