/* Вынесено из auth_modal.php. Правьте здесь — страница подключает этот файл. */
.tgam-overlay {
    position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    background: rgba(3, 12, 20, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .2s ease;
}
.tgam-overlay.active { display: flex; }
.tgam-overlay.show { opacity: 1; }
.tgam-card {
    position: relative; width: 100%; max-width: 500px; box-sizing: border-box; padding: 34px 34px 32px;
    border-radius: 26px; color: #e2f3f7; font-family: 'Inter', system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 0%, rgba(24, 210, 168, .22), transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(20, 165, 255, .22), transparent 50%),
        linear-gradient(160deg, #0b3a4a 0%, #0a2c3a 55%, #0b3b38 100%);
    border: 1px solid rgba(94, 243, 180, .22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
    transform: translateY(10px) scale(.98); transition: transform .22s ease;
}
.tgam-overlay.show .tgam-card { transform: none; }
.tgam-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    background: rgba(255, 255, 255, .1); color: #fff; font-size: 20px; line-height: 1; transition: background .15s, transform .15s;
}
.tgam-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
.tgam-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding-right: 36px; }
.tgam-icon {
    width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(24, 210, 168, .14); border: 1px solid rgba(24, 210, 168, .3); color: #34e3a8;
}
.tgam-icon svg { width: 26px; height: 26px; }
.tgam-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0; }
.tgam-text { font-size: 15px; line-height: 1.6; color: rgba(226, 243, 247, .85); margin: 0 0 20px; }
.tgam-text b { color: #fff; }
.tgam-note { font-size: 12.5px; line-height: 1.5; color: rgba(226, 243, 247, .55); margin: 0 0 10px; }
.tgam-cmd {
    padding: 12px; border-radius: 14px; margin-bottom: 20px;
    background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .1);
}
.tgam-cmd code {
    display: block; text-align: center; font: 700 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: #fff;
    word-break: break-all; margin-bottom: 10px;
}
.tgam-copy {
    width: 100%; height: 34px; border: 0; border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, .12); color: #fff; font: 700 13px/1 'Inter', sans-serif; transition: background .15s;
}
.tgam-copy:hover { background: rgba(255, 255, 255, .2); }
.tgam-copy.done { background: #10b981; }
.tgam-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; box-sizing: border-box;
    border-radius: 16px; text-decoration: none; color: #fff; font: 800 16px/1 'Inter', sans-serif;
    background: linear-gradient(90deg, #0ea5ff 0%, #12c6c0 60%, #18d2a8 100%);
    box-shadow: 0 10px 26px rgba(14, 165, 255, .32); transition: filter .15s, transform .15s, box-shadow .15s;
}
.tgam-btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(14, 165, 255, .4); }
.tgam-btn svg { width: 20px; height: 20px; }
.tgam-btn.ok { background: #10b981; box-shadow: 0 8px 20px rgba(16, 185, 129, .3); }
body.tgam-lock { overflow: hidden; }

@media (max-width: 640px) {
    .tgam-card { max-width: 340px; padding: 22px 18px 18px; border-radius: 20px; }
    .tgam-close { top: 12px; right: 12px; width: 26px; height: 26px; font-size: 17px; }
    .tgam-head { gap: 11px; margin-bottom: 12px; }
    .tgam-icon { width: 40px; height: 40px; border-radius: 12px; }
    .tgam-icon svg { width: 20px; height: 20px; }
    .tgam-title { font-size: 17px; }
    .tgam-text { font-size: 12.5px; margin-bottom: 14px; }
    .tgam-note { font-size: 10.5px; }
    .tgam-cmd { padding: 9px; border-radius: 11px; margin-bottom: 14px; }
    .tgam-cmd code { font-size: 10.5px; margin-bottom: 8px; }
    .tgam-copy { height: 28px; font-size: 11.5px; border-radius: 8px; }
    .tgam-btn { height: 42px; font-size: 14px; border-radius: 12px; }
    .tgam-btn svg { width: 17px; height: 17px; }
}
