/* Sign-up + view actions on paid-events / tournaments list cards */

.list-card-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: auto;
}

.list-card-actions .list-btn--primary {
    margin-left: auto;
}

/* Shared button base (matches site glass / indigo theme) */
.list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    box-sizing: border-box;
}

.list-btn--primary,
.pe-card-body .pe-btn,
.tour-row-inner .tour-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 2px 14px rgba(99, 102, 241, 0.38);
}

.list-btn--primary:hover,
.pe-card-body .pe-btn:hover,
.tour-row-inner .tour-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
}

.list-btn--signup {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e7ff;
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.list-btn--signup:hover {
    background: rgba(129, 140, 248, 0.18);
    border-color: rgba(167, 139, 250, 0.55);
    color: #fff;
    transform: translateY(-1px);
}

.list-btn--ghost {
    background: transparent;
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.35);
}

.list-btn--ghost:hover {
    background: rgba(129, 140, 248, 0.12);
    color: #fff;
    border-color: rgba(129, 140, 248, 0.5);
}

.list-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Signed-up state — pill badge, not plain text */
.list-signup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.list-signup-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    color: #052e16;
    background: #4ade80;
    flex-shrink: 0;
}

/* Legacy wrappers — keep for pointer-events hooks */
.list-signup-actions {
    display: contents;
}

.list-signup-login {
    /* unused when using buildCardActionsRow */
}

/* —— BTC sign-up modal (glass) —— */
.els-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.els-modal[hidden] {
    display: none !important;
}

.els-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.els-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 0;
    border-radius: 18px;
    background: rgba(18, 18, 24, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}

.els-modal-header {
    padding: 22px 24px 0;
    padding-right: 52px;
}

.els-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.65);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.els-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.els-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35) 0%, rgba(79, 70, 229, 0.2) 100%);
    border: 1px solid rgba(129, 140, 248, 0.35);
    font-size: 22px;
    line-height: 1;
}

.els-modal-panel h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.els-modal-event-title {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.45;
}

.els-modal-body {
    padding: 20px 24px 24px;
}

.els-modal-body label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
}

.els-modal-body input[type='text'] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.els-modal-body input[type='text']::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.els-modal-body input[type='text']:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.65);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

.els-modal-hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.5;
}

.els-modal-msg {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.els-modal-msg[hidden] {
    display: none !important;
}

.els-modal-msg.is-error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.35);
}

.els-modal-msg.is-ok {
    color: #bbf7d0;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.els-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.els-modal-actions button {
    width: 100%;
    padding: 12px 18px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.els-modal-submit {
    border: 1px solid rgba(129, 140, 248, 0.4);
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.els-modal-submit:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.els-modal-later {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.els-modal-later:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.els-modal-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.42);
    border: none;
}

.els-modal-cancel:hover {
    color: rgba(255, 255, 255, 0.7);
}

.els-modal-row-secondary {
    display: flex;
    gap: 10px;
}

.els-modal-row-secondary .els-modal-later,
.els-modal-row-secondary .els-modal-cancel {
    flex: 1;
    width: auto;
}
