body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
}

#app {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
}

.auth-overlay[data-open="true"] {
    display: flex;
}

.auth-card {
    width: min(520px, calc(100vw - 32px));
    background: #121823;
    border: 1px solid rgba(214, 178, 94, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    padding: 24px;
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.auth-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.auth-lang-btn {
    appearance: none;
    border: 1px solid rgba(234, 240, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(234, 240, 255, 0.9);
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
}

.auth-lang-btn[data-active="true"] {
    border-color: rgba(214, 178, 94, 0.5);
    background: rgba(214, 178, 94, 0.16);
}

.auth-title {
    font-size: 20px;
    font-weight: 700;
    color: #eaf0ff;
}

.auth-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(234, 240, 255, 0.7);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0 16px;
}

.auth-tab {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(234, 240, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(234, 240, 255, 0.9);
    cursor: pointer;
}

.auth-tab[data-active="true"] {
    border-color: rgba(214, 178, 94, 0.5);
    background: rgba(214, 178, 94, 0.12);
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.auth-label {
    font-size: 12px;
    color: rgba(234, 240, 255, 0.7);
}

.auth-input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(234, 240, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(234, 240, 255, 0.95);
    outline: none;
}

.auth-input:focus {
    border-color: rgba(214, 178, 94, 0.55);
    box-shadow: 0 0 0 3px rgba(214, 178, 94, 0.12);
}

.auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.auth-primary {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    background: #d6b25e;
    color: #0b0f14;
    font-weight: 700;
}

.auth-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-error {
    margin-top: 10px;
    font-size: 13px;
    color: #ffb4b4;
    min-height: 18px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: rgba(234, 240, 255, 0.55);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(234, 240, 255, 0.12);
}

.auth-google {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-hint {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(234, 240, 255, 0.55);
    line-height: 1.5;
}

.auth-role-hint {
    margin-top: 14px;
    color: rgba(214, 226, 255, 0.78);
}

.site-footer {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 10001;
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-footer[data-visible="true"] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(7, 12, 20, 0.82);
    border: 1px solid rgba(214, 178, 94, 0.28);
    color: #eaf0ff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
}

.site-footer-link:hover {
    border-color: rgba(214, 178, 94, 0.56);
    background: rgba(14, 20, 31, 0.92);
}

.user-center-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.56);
    z-index: 10020;
}

.user-center-overlay[data-open="true"] {
    display: flex;
}

.user-center-card {
    width: min(560px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(17, 24, 36, 0.98), rgba(10, 15, 24, 0.98));
    border: 1px solid rgba(214, 178, 94, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    padding: 24px;
}

.user-center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-center-title {
    font-size: 20px;
    font-weight: 700;
    color: #f4f7ff;
}

.user-center-close {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(234, 240, 255, 0.72);
    cursor: pointer;
    font-size: 20px;
}

.user-center-summary {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: #d6b25e;
}

.user-center-row {
    margin-top: 10px;
    font-size: 14px;
    color: rgba(234, 240, 255, 0.86);
}

.user-center-subtitle {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #f4f7ff;
}

.user-center-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(214, 226, 255, 0.68);
}

.user-center-input {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(234, 240, 255, 0.12);
    background: rgba(0, 0, 0, 0.26);
    color: rgba(234, 240, 255, 0.96);
    box-sizing: border-box;
}

.user-center-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.user-center-primary,
.user-center-secondary {
    appearance: none;
    border-radius: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-weight: 700;
}

.user-center-primary {
    flex: 1;
    border: 0;
    background: #d6b25e;
    color: #0b0f14;
}

.user-center-secondary {
    border: 1px solid rgba(234, 240, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(234, 240, 255, 0.9);
}

.user-center-primary:disabled,
.user-center-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-center-message {
    min-height: 20px;
    margin-top: 14px;
    font-size: 13px;
    color: #e6f0ff;
}

@media (max-width: 768px) {
    .site-footer {
        left: 12px;
        right: 12px;
        bottom: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .site-footer-link {
        flex: 1;
    }

    .user-center-card {
        padding: 20px;
    }

    .user-center-actions {
        flex-direction: column;
    }
}
