﻿.dw-auth-gate {
    margin: 10px 0 24px;
}

.dw-auth-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
    align-items: center;
    background: linear-gradient(145deg, #ffffff, #f6f9ff);
    border: 1px solid rgba(17, 106, 176, 0.16);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(22, 42, 72, 0.08);
}

.dw-auth-col {
    min-width: 0;
}

.dw-auth-title {
    font-size: 15px;
    font-weight: 700;
    color: #1b3658;
    margin-bottom: 6px;
}

.dw-auth-info {
    font-size: 14px;
    color: #213852;
    line-height: 1.4;
}

.dw-auth-tip {
    margin-top: 8px;
    font-size: 13px;
    color: #4a5f78;
    line-height: 1.45;
}

.dw-auth-user {
    margin-top: 8px;
    font-size: 13px;
    color: #2f4a67;
    font-weight: 600;
}

.dw-auth-ok {
    color: #1e7b4b;
    font-weight: 600;
}

.dw-inline-link {
    color: #1a79cb;
    text-decoration: none;
    border-bottom: 1px dashed rgba(26, 121, 203, 0.55);
    transition: color .2s ease, border-color .2s ease;
}

.dw-inline-link:hover {
    color: #0f5ea1;
    border-color: rgba(15, 94, 161, 0.8);
}

.dw-auth-actions {
    display: flex;
    justify-content: flex-end;
}

.dw-auth-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.dw-btn {
    border: 1px solid rgba(25, 60, 98, 0.18);
    background: #ffffff;
    color: #1f3654;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s ease;
}

.dw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 44, 74, 0.12);
}

.dw-btn-primary {
    background: linear-gradient(180deg, #21a65c, #1f8c4f);
    border-color: #1f8c4f;
    color: #fff;
}

.dw-tg-widget {
    display: inline-flex;
    justify-content: flex-end;
    min-height: 46px;
}

.dw-pulse {
    animation: dwPulse .7s ease;
}

@keyframes dwPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.dw-limit-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
}

.dw-limit-modal.d-none {
    display: none;
}

.dw-limit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 15, 26, 0.58);
    backdrop-filter: blur(2px);
}

.dw-limit-panel {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 28px));
    margin: 12vh auto 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(24, 55, 86, 0.14);
    box-shadow: 0 24px 60px rgba(8, 24, 44, 0.28);
    padding: 20px;
}

.dw-limit-panel h3 {
    margin: 0 0 10px;
    color: #17365a;
    font-size: 22px;
}

.dw-limit-panel p {
    margin: 0;
    color: #2f445d;
    line-height: 1.5;
    font-size: 15px;
}

.dw-limit-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 860px) {
    .dw-auth-card {
        grid-template-columns: 1fr;
    }

    .dw-auth-actions,
    .dw-auth-buttons,
    .dw-tg-widget {
        justify-content: flex-start;
    }
}
