/* =========================================================
   Wargaming Auth - Top Meta Status / Account Menu
   ========================================================= */

[hidden] {
    display: none !important;
}

.top-meta-auth {
    position: relative;

    display: inline-flex;
    align-items: center;

    flex-shrink: 0;

    margin-left: 40px;
    margin-right: 18px;
}

/* Hauptbutton in der Top-Meta-Zeile */
.wg-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 24px;
    padding: 4px 11px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);

    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);

    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.wg-auth-button:hover {
    transform: translateY(-1px);
}

.wg-auth-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

/* Statuspunkt im Button */
.wg-auth-dot {
    width: 8px;
    height: 8px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* Nicht verbunden */
.wg-auth-button--offline {
    border-color: rgba(255, 80, 80, 0.45);
    background: rgba(120, 20, 20, 0.22);
    color: #ffb3b3;
}

.wg-auth-button--offline .wg-auth-dot {
    background: #ff5050;
    box-shadow: 0 0 10px rgba(255, 80, 80, 0.75);
}

/* Verbunden */
.wg-auth-button--online {
    border-color: rgba(68, 255, 140, 0.55);
    background: rgba(20, 120, 65, 0.22);
    color: #9cffbd;
}

.wg-auth-button--online .wg-auth-dot {
    background: #44ff8c;
    box-shadow: 0 0 10px rgba(68, 255, 140, 0.75);
}

/* Ladezustand */
.wg-auth-button--loading {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
}

/* Dropdown-Menue unter dem Account-Button */
.wg-auth-menu {
    position: absolute;
    z-index: 100;

    top: calc(100% + 10px);
    left: 0;

    min-width: 270px;
    padding: 12px;

    border: 1px solid rgba(80, 190, 255, 0.24);
    border-radius: 16px;

    background:
        radial-gradient(
            circle at top left,
            rgba(80, 190, 255, 0.12),
            transparent 42%
        ),
        linear-gradient(
            180deg,
            rgba(9, 27, 45, 0.98),
            rgba(4, 12, 22, 0.98)
        );

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(0, 190, 255, 0.10);
}

.wg-auth-menu-header {
    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 5px 5px 11px;
    margin-bottom: 10px;

    border-bottom: 1px solid rgba(80, 190, 255, 0.16);
}

.wg-auth-menu-kicker {
    color: rgba(128, 205, 255, 0.78);

    font-size: 0.60rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1.25;
    text-transform: uppercase;
}

.wg-auth-menu-name {
    color: #ffffff;

    font-size: 0.90rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.wg-auth-menu-meta {
    color: rgba(210, 230, 245, 0.68);

    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.wg-auth-menu-action {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 9px 12px;

    border: 1px solid rgba(255, 80, 80, 0.28);
    border-radius: 12px;

    color: #ffaaaa;
    background:
        linear-gradient(
            180deg,
            rgba(120, 20, 20, 0.18),
            rgba(70, 10, 10, 0.20)
        );

    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.wg-auth-menu-action:hover,
.wg-auth-menu-action:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 100, 100, 0.62);
    background:
        linear-gradient(
            180deg,
            rgba(155, 30, 30, 0.32),
            rgba(95, 12, 12, 0.34)
        );

    box-shadow: 0 0 14px rgba(255, 80, 80, 0.16);
    transform: translateY(-1px);
}

.wg-auth-menu-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    width: 100%;
    padding: 10px 12px;

    border: 1px solid rgba(255, 80, 80, 0.28);
    border-radius: 12px;

    color: #ffaaaa;
    background:
        linear-gradient(
            180deg,
            rgba(120, 20, 20, 0.18),
            rgba(70, 10, 10, 0.20)
        );

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.wg-auth-menu-action:hover,
.wg-auth-menu-action:focus-visible {
    color: #ffffff;
    border-color: rgba(255, 100, 100, 0.62);
    background:
        linear-gradient(
            180deg,
            rgba(155, 30, 30, 0.32),
            rgba(95, 12, 12, 0.34)
        );

    box-shadow: 0 0 14px rgba(255, 80, 80, 0.16);
    transform: translateY(-1px);
}

.wg-auth-menu-action-main {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.1;
    text-transform: uppercase;
}

.wg-auth-menu-action-sub {
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.1;
    text-transform: none;
    opacity: 0.92;
}



/* =========================================================
   Konto-Schnellzugriff neben dem WG-Account-Button
   ========================================================= */

.wg-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;
    margin-left: 8px;
    padding: 4px 11px;

    border: 1px solid rgba(65, 170, 255, 0.42);
    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            rgba(25, 102, 165, 0.24),
            rgba(8, 46, 82, 0.28)
        );

    color: rgba(190, 226, 255, 0.96);

    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;

    transition:
        border-color 160ms ease,
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.wg-account-link:hover {
    border-color: rgba(80, 190, 255, 0.72);

    background:
        linear-gradient(
            180deg,
            rgba(35, 130, 210, 0.34),
            rgba(9, 61, 108, 0.38)
        );

    color: #ffffff;

    box-shadow:
        0 0 14px rgba(50, 170, 255, 0.16);

    transform: translateY(-1px);
}

/* =========================================================
   CIR-Konto-Link neben dem Wargaming-Account-Button
   ========================================================= */

.wg-account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 32px;
    padding: 0 13px;

    border: 1px solid rgba(87, 172, 255, 0.38);
    border-radius: 7px;

    background:
        linear-gradient(
            180deg,
            rgba(24, 78, 121, 0.78),
            rgba(12, 42, 68, 0.88)
        );

    color: #dceeff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 14px rgba(38, 133, 214, 0.08);

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.wg-account-link:hover,
.wg-account-link:focus-visible {
    border-color: rgba(110, 195, 255, 0.78);

    background:
        linear-gradient(
            180deg,
            rgba(31, 100, 153, 0.92),
            rgba(14, 53, 85, 0.96)
        );

    color: #ffffff;

    box-shadow:
        0 0 18px rgba(48, 152, 234, 0.22);

    transform: translateY(-1px);
}

.wg-account-link[hidden] {
    display: none !important;
}


@media (max-width: 760px) {
    .wg-account-link {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.66rem;
    }
}

