/* ==========================================
   Social login (Google + Telegram) — modal UI
   Theme: dorado #FFD700/#FFA500 sobre midnight #1a0a2e/#2d1150/#3d1a6a.
   (Sin cyan, según las reglas de marca de CoinLottery.)
   ========================================== */

.cl-social-login {
    margin-top: 18px;
}

.cl-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.cl-social-divider::before,
.cl-social-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 215, 0, 0) 0%,
        rgba(255, 215, 0, 0.35) 50%,
        rgba(255, 215, 0, 0) 100%
    );
}

.cl-social-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cl-social-google,
.cl-social-telegram {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

/* The Google Identity Services button renders its own (dark) iframe; we only
   center it and round its corners to sit nicely in the midnight modal. */
.cl-social-google > div {
    margin: 0 auto;
}

.cl-social-google iframe {
    border-radius: 999px !important;
}

/* Telegram renders an iframe button; keep it centered. */
.cl-social-telegram iframe {
    margin: 0 auto !important;
}

@media (max-width: 480px) {
    .cl-social-login {
        margin-top: 14px;
    }
    .cl-social-divider {
        font-size: 12px;
    }
}

/* ============================================================
   Ventana de vinculación de cuenta (acceso rápido al casino)
   Paleta CoinLottery: morados #1a0a2e/#2d1150/#3d1a6a + oro
   #FFD700/#FFA500. Sin cyan.
   ============================================================ */
.cl-link-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 4, 22, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cl-link-modal.show {
    display: flex;
}
.cl-link-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px 26px 26px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background: linear-gradient(160deg, #2d1150 0%, #1a0a2e 100%);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(61, 26, 106, 0.6) inset;
    color: #f3ecff;
    animation: clLinkIn 0.22s ease;
}
@keyframes clLinkIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.cl-link-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(61, 26, 106, 0.55);
    color: #ffd700;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}
.cl-link-close:hover {
    background: rgba(61, 26, 106, 0.9);
    transform: scale(1.06);
}
.cl-link-title {
    margin: 4px 36px 10px 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cl-link-intro {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(243, 236, 255, 0.85);
}
.cl-link-hint {
    margin: 0 0 16px;
    font-size: 12.5px;
    color: rgba(255, 215, 0, 0.85);
    word-break: break-word;
}
.cl-link-hint:empty {
    display: none;
    margin: 0;
}
.cl-link-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cl-link-label {
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(243, 236, 255, 0.9);
}
.cl-link-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    background: rgba(13, 5, 28, 0.6);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.cl-link-input::placeholder {
    color: rgba(243, 236, 255, 0.4);
}
.cl-link-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.18);
}
.cl-link-message {
    display: none;
    margin: 12px 0 2px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.cl-link-message--error {
    display: block;
    background: rgba(220, 53, 69, 0.16);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #ffb3bb;
}
.cl-link-message--success {
    display: block;
    background: rgba(61, 26, 106, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffe9a8;
}
.cl-link-submit {
    margin-top: 18px;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    color: #1a0a2e;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        opacity 0.18s ease;
}
.cl-link-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(255, 165, 0, 0.35);
}
.cl-link-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
body.cl-link-open {
    overflow: hidden;
}
