/* ============================================================
   Ruhsuz Login — Ultra Minimal Dark Theme (LVOUS Style)
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

:root {
    --lp-bg: #05050A;
    --lp-panel: rgba(12, 14, 22, 0.75);
    --lp-line: rgba(255, 255, 255, 0.06);
    --lp-line-strong: rgba(255, 255, 255, 0.1);
    --lp-text: #f0f2f8;
    --lp-mute: #7a8199;
    --lp-mute2: #555c74;
    --lp-acc: #3b82f6;
    --lp-acc2: #06b6d4;
    --lp-cyan: #22d3ee;
    --lp-r: 20px;
    --lp-r-sm: 12px;
    --lp-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lp-safe-t: env(safe-area-inset-top, 0px);
    --lp-safe-b: env(safe-area-inset-bottom, 0px);
    --lp-safe-l: env(safe-area-inset-left, 0px);
    --lp-safe-r: env(safe-area-inset-right, 0px);
}

body.login-page {
    margin: 0 !important;
    min-height: 100% !important;
    min-height: 100dvh !important;
    min-height: -webkit-fill-available;
    font-family: var(--lp-font) !important;
    color: var(--lp-text) !important;
    background: var(--lp-bg) !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}

/* Background - subtle radial glow */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(6, 182, 212, 0.05), transparent 50%),
        var(--lp-bg);
}

.login-bg-grid,
.login-bg-orb {
    display: none;
}

.login-bg-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background-image: url('/ruhsuz.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    filter: blur(2px);
    pointer-events: none;
}

/* Viewport - centered */
.login-viewport {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(32px, var(--lp-safe-t))
        max(20px, var(--lp-safe-l))
        max(32px, var(--lp-safe-b))
        max(20px, var(--lp-safe-r));
}

/* Layout - single centered card */
.login-layout {
    width: 100%;
    max-width: 420px;
}

.login-layout.is-2fa {
    max-width: 400px;
}

.login-layout.is-2fa .login-aside {
    display: none;
}

/* Hide aside panel */
.login-aside {
    display: none;
}

/* Main card area */
.login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card */
.login-card {
    width: 100%;
    background: var(--lp-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.login-card-inner {
    padding: 44px 40px 36px;
}

/* Logo */
.brand-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.brand-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(34, 211, 238, 0.2));
}

/* Brand block */
.brand-block {
    text-align: center;
    margin-bottom: 28px;
}

.brand-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff;
}

.brand-sub {
    margin: 8px 0 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--lp-mute);
}

/* Alerts */
.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: var(--lp-r-sm);
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
}

.login-alert i {
    margin-top: 2px;
    flex-shrink: 0;
    opacity: 0.9;
}

.login-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.login-alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #bbf7d0;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.login-alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
}

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #b8bdd0;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.field-optional {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--lp-cyan);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    vertical-align: middle;
}

.field-wrap {
    position: relative;
    margin-bottom: 18px;
}

.field-wrap.has-toggle .field-input {
    padding-right: 48px;
}

.field-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-mute2);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}

.field-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--lp-mute);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.field-toggle:hover,
.field-toggle:focus-visible {
    color: var(--lp-cyan);
    background: rgba(255, 255, 255, 0.04);
    outline: none;
}

.field-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border-radius: var(--lp-r-sm);
    border: 1px solid var(--lp-line-strong);
    background: rgba(8, 10, 18, 0.8);
    color: #f3f4f8;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.field-input-otp {
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: center;
}

.field-input::placeholder {
    color: #4a5168;
    letter-spacing: normal;
    font-weight: 400;
}

.field-input:focus {
    border-color: var(--lp-cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
    background: rgba(10, 12, 20, 0.9);
}

.field-hint {
    font-size: 0.78rem;
    color: var(--lp-mute);
    margin: -8px 0 16px;
    line-height: 1.45;
}

.field-hint.center {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
}

.field-hint em {
    font-style: normal;
    color: var(--lp-cyan);
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 0.88rem;
    color: #9aa3bd;
    cursor: pointer;
    user-select: none;
    min-height: 28px;
}

.remember-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--lp-acc);
    cursor: pointer;
    flex-shrink: 0;
}

/* Primary button - gradient */
.login-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--lp-r-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.01em;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
    transition: filter 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.login-btn i {
    font-size: 0.85rem;
    opacity: 0.9;
}

.login-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 10px 28px rgba(59, 130, 246, 0.35);
}

.login-btn:active {
    transform: translateY(1px);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
}

a.login-btn {
    text-decoration: none;
}

/* Secondary button - outline */
.login-btn-secondary {
    width: 100%;
    height: 50px;
    border: 1px solid var(--lp-line-strong);
    border-radius: var(--lp-r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--lp-mute);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    margin-top: 12px;
}

.login-btn-secondary:hover {
    border-color: var(--lp-cyan);
    color: var(--lp-cyan);
    background: rgba(34, 211, 238, 0.04);
}

/* Actions row */
.login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--lp-mute);
}

.inline-link {
    color: var(--lp-cyan);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

.inline-link:hover {
    color: #67e8f9;
    text-decoration: underline;
}

.login-link-back {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 14px;
    min-height: 44px;
    color: var(--lp-mute);
    font-size: 0.88rem;
    text-decoration: none;
}

.login-link-back:hover {
    color: var(--lp-cyan);
}

/* Notice */
.login-notice {
    display: none;
}

/* Card footer */
.login-card-foot {
    padding-top: 20px;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Domain embed link (legacy) */
.domain-embed-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.domain-embed-link:hover {
    color: var(--lp-cyan);
    border-color: rgba(34, 211, 238, 0.2);
    background: rgba(34, 211, 238, 0.05);
}

/* Professional backup domain card */
.domain-access-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.14);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.07) 0%, rgba(99, 102, 241, 0.05) 100%),
        rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.domain-access-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background:
        linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(34, 211, 238, 0.08);
    transform: translateY(-1px);
}

.domain-access-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--lp-cyan, #22d3ee);
    font-size: 1rem;
}

.domain-access-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.domain-access-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    margin-bottom: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-cyan, #22d3ee);
    background: rgba(34, 211, 238, 0.1);
    border-radius: 999px;
}

.domain-access-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.25;
}

.domain-access-url {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(34, 211, 238, 0.9);
    letter-spacing: 0.01em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.domain-access-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.3;
    margin-top: 2px;
}

.domain-access-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.domain-access-card:hover .domain-access-arrow {
    color: var(--lp-cyan, #22d3ee);
    background: rgba(34, 211, 238, 0.12);
    transform: translateX(2px);
}

@media (max-width: 420px) {
    .domain-access-card {
        padding: 14px;
        gap: 12px;
    }
    .domain-access-icon {
        width: 38px;
        height: 38px;
    }
    .domain-access-hint {
        display: none;
    }
}

/* Page footer */
.login-foot {
    text-align: center;
    padding: 20px 16px max(20px, var(--lp-safe-b));
    font-size: 0.75rem;
    color: var(--lp-mute2);
}

.login-foot .dot {
    opacity: 0.5;
    margin: 0 4px;
}

.login-foot a {
    color: var(--lp-mute);
    text-decoration: none;
    transition: color 0.15s;
}

.login-foot a:hover {
    color: var(--lp-cyan);
}

/* Registration helpers */
.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

body.login-page:has(> .login-shell) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding:
        max(32px, var(--lp-safe-t))
        max(20px, var(--lp-safe-l))
        max(32px, var(--lp-safe-b))
        max(20px, var(--lp-safe-r)) !important;
}

.login-shell .login-card {
    background: var(--lp-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.login-shell .brand-logo img {
    height: 100px;
    width: auto;
}

.reg-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: var(--lp-r-sm);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #bfdbfe;
    font-size: 0.88rem;
    line-height: 1.4;
}

.reg-perk i {
    color: var(--lp-cyan);
    flex-shrink: 0;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 12px;
    margin-bottom: 6px;
    align-items: stretch;
}

.captcha-q {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: var(--lp-r-sm);
    border: 1px solid var(--lp-line-strong);
    background: rgba(8, 10, 18, 0.8);
    font-size: 1.2rem;
    font-weight: 700;
    color: #e8eaf2;
    letter-spacing: 0.04em;
    user-select: none;
}

.captcha-q .op { color: var(--lp-mute); font-weight: 600; }
.captcha-q .qmark { color: var(--lp-cyan); }
.captcha-input-wrap { margin-bottom: 0; }

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.reg-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin: 0 0 18px;
}

.reg-meta > div {
    background: rgba(10, 12, 20, 0.8);
    border: 1px solid var(--lp-line);
    border-radius: var(--lp-r-sm);
    padding: 10px 12px;
    text-align: center;
}

.reg-meta span {
    display: block;
    font-size: 0.72rem;
    color: var(--lp-mute);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reg-meta strong {
    font-size: 0.9rem;
    color: #eef2ff;
    word-break: break-all;
}

.reg-meta strong.ok { color: #86efac; }

.key-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    background: rgba(8, 16, 28, 0.9);
}

.key-box code {
    display: block;
    word-break: break-all;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--lp-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    user-select: all;
}

.copy-btn {
    align-self: flex-start;
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 44px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: inherit;
    color: #0b1220;
    background: linear-gradient(135deg, #67e8f9, var(--lp-cyan));
    cursor: pointer;
    touch-action: manipulation;
}

.copy-btn:hover { filter: brightness(1.06); }

/* Kill old leftovers */
body.login-page .login-logo,
body.login-page img.EGMLogo,
body.login-page .ruhsuz-brand,
body.login-page .login-wordmark,
body.login-page .rs-mark {
    display: none !important;
}

/* ========== Mobile / tablet ========== */
@media (max-width: 480px) {
    .login-viewport {
        padding:
            max(24px, var(--lp-safe-t))
            max(16px, var(--lp-safe-l))
            max(24px, var(--lp-safe-b))
            max(16px, var(--lp-safe-r));
    }

    .login-card {
        border-radius: 20px;
    }

    .login-card-inner {
        padding: 32px 24px 28px;
    }

    .brand-logo img {
        height: 85px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    /* iOS focus zoom: font-size >= 16px */
    .field-input,
    .login-btn,
    .login-btn-secondary,
    .copy-btn {
        font-size: 16px !important;
        min-height: 48px;
    }

    .field-input {
        height: 50px;
        padding-left: 42px;
    }

    .login-btn,
    .login-btn-secondary {
        height: 50px;
    }

    .remember-row {
        min-height: 44px;
        font-size: 0.9rem;
    }

    .remember-row input {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .login-card-inner {
        padding: 28px 20px 24px;
    }

    .brand-title {
        font-size: 1.4rem;
    }

    .field-optional {
        display: block;
        margin: 6px 0 0;
        width: fit-content;
    }
}

@media (max-width: 520px) {
    .captcha-row {
        grid-template-columns: 1fr;
    }

    .reg-meta {
        grid-template-columns: 1fr;
    }

    body.login-page:has(> .login-shell) {
        align-items: flex-start !important;
    }

    .login-shell {
        max-width: 100%;
    }

    .login-shell .login-card {
        border-radius: 20px;
    }

    .login-shell .login-card-inner {
        padding: 32px 24px 28px;
    }
}

/* Short landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
    .login-viewport {
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-logo {
        margin-bottom: 12px;
    }

    .brand-logo img {
        height: 75px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .login-card-inner {
        padding: 20px 24px 18px;
    }

    .login-notice {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-btn:active {
        transform: none;
    }
}

/* Telegram Announce Card - Vibrant */
.tg-announce {
    margin: 20px 0 0;
    padding: 24px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 158, 217, 0.12) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(34, 158, 217, 0.25);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tg-announce::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    animation: tgAnnounceGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tgAnnounceGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.tg-announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #229ed9, #a855f7);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(34, 158, 217, 0.3);
    position: relative;
    z-index: 1;
}

.tg-announce-badge i {
    font-size: 0.75rem;
}

.tg-announce-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #229ed9, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.tg-announce-desc {
    margin: 0 0 18px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.tg-announce-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 26px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #229ed9, #a855f7);
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
    transition: all 0.25s ease;
    position: relative;
    z-index: 1;
}

.tg-announce-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
    background: linear-gradient(135deg, #2aa8e5, #b66df7);
}

.tg-announce-btn i:first-child {
    font-size: 1rem;
}

.tg-announce-btn i:last-child {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.tg-announce-btn:hover i:last-child {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .tg-announce {
        padding: 20px 16px;
    }

    .tg-announce-title {
        font-size: 0.98rem;
    }

    .tg-announce-desc {
        font-size: 0.78rem;
    }

    .tg-announce-btn {
        padding: 10px 22px;
        font-size: 0.82rem;
    }
}

/* Telegram Promo - Colorful & Professional */
.tg-promo-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
    overflow: hidden;
}

.tg-promo-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.tg-promo-overlay.is-closing {
    opacity: 0;
}

/* Particles */
.tg-promo-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tg-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ed9, #a855f7);
    opacity: 0;
    animation: tgParticleFloat 3s ease-in-out infinite;
}

@keyframes tgParticleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Promo Card */
.tg-promo {
    position: relative;
    max-width: 480px;
    width: 100%;
    padding: 40px 36px 36px;
    border-radius: 28px;
    background: linear-gradient(135deg, #1a1d24 0%, #0f1419 100%);
    border: 1px solid rgba(34, 158, 217, 0.3);
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(34, 158, 217, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    text-align: center;
}

.tg-promo-overlay.is-visible .tg-promo {
    transform: scale(1) translateY(0);
}

/* Glow Effect */
.tg-promo-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(34, 158, 217, 0.4) 0%, transparent 70%);
    filter: blur(60px);
    animation: tgGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tgGlowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Rings */
.tg-promo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.tg-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(34, 158, 217, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tg-ring-1 {
    width: 200px;
    height: 200px;
    animation: tgRingExpand 3s ease-out infinite;
}

.tg-ring-2 {
    width: 280px;
    height: 280px;
    animation: tgRingExpand 3s ease-out infinite 0.5s;
}

.tg-ring-3 {
    width: 360px;
    height: 360px;
    animation: tgRingExpand 3s ease-out infinite 1s;
}

@keyframes tgRingExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Close Button */
.tg-promo-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.tg-promo-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* Icon */
.tg-promo-icon-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
}

.tg-promo-icon {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #229ed9 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #fff;
    box-shadow: 
        0 12px 32px rgba(34, 158, 217, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    z-index: 2;
    animation: tgIconBounce 2s ease-in-out infinite;
}

@keyframes tgIconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.05); }
}

.tg-promo-icon-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    background: linear-gradient(135deg, #229ed9, #a855f7);
    opacity: 0.3;
    animation: tgIconPulseRing 2s ease-out infinite;
    z-index: 1;
}

@keyframes tgIconPulseRing {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Badge */
.tg-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #fff;
    background: linear-gradient(135deg, #229ed9, #a855f7);
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(34, 158, 217, 0.4);
    animation: tgBadgePulse 2s ease-in-out infinite;
}

@keyframes tgBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tg-promo-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: tgDotBlink 1.5s ease-in-out infinite;
}

@keyframes tgDotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Title */
.tg-promo-title {
    margin: 0 0 12px;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
}

.tg-title-gradient {
    display: block;
    background: linear-gradient(135deg, #229ed9 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tgGradientShift 3s ease-in-out infinite;
}

@keyframes tgGradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.tg-title-accent {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    margin-top: 4px;
}

/* Text */
.tg-promo-text {
    margin: 0 0 28px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

/* Features */
.tg-promo-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.tg-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.tg-feature:hover {
    background: rgba(34, 158, 217, 0.08);
    border-color: rgba(34, 158, 217, 0.2);
    transform: translateX(4px);
}

.tg-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 158, 217, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #229ed9;
    flex-shrink: 0;
}

.tg-feature-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.tg-feature-text strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.tg-feature-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Buttons */
.tg-promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #229ed9 0%, #a855f7 100%);
    box-shadow: 
        0 8px 24px rgba(34, 158, 217, 0.4),
        0 0 40px rgba(168, 85, 247, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.tg-promo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tg-promo-btn:hover::before {
    left: 100%;
}

.tg-promo-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(34, 158, 217, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.tg-promo-btn i:first-child {
    font-size: 1.3rem;
}

.tg-promo-btn i:last-child {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.tg-promo-btn:hover i:last-child {
    transform: translateX(4px);
}

.tg-promo-dismiss {
    width: 100%;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tg-promo-dismiss:hover {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 520px) {
    .tg-promo {
        padding: 32px 24px 28px;
        border-radius: 22px;
    }
    
    .tg-promo-icon-wrap {
        width: 72px;
        height: 72px;
    }
    
    .tg-promo-icon {
        font-size: 2.2rem;
    }
    
    .tg-promo-title {
        font-size: 1.5rem;
    }
    
    .tg-title-accent {
        font-size: 1.25rem;
    }
    
    .tg-promo-text {
        font-size: 0.88rem;
    }
    
    .tg-feature {
        padding: 10px 14px;
    }
    
    .tg-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .tg-feature-text strong {
        font-size: 0.85rem;
    }
    
    .tg-feature-text span {
        font-size: 0.75rem;
    }
    
    .tg-promo-btn {
        padding: 14px 24px;
        font-size: 0.92rem;
    }
}

/* Login Page - Professional Telegram Announcement */
.tg-announce-header {
    margin-bottom: 12px;
}

.tg-announce-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0 20px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}

.tg-feature-small {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
}

.tg-feature-small strong {
    color: #a855f7;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.tg-feature-small span {
    color: rgba(255,255,255,0.55);
}
