/* Public Layout Wrapper */
.public-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Global Public Styles */
body {
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

.public-locale-switcher {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 120;
    min-width: 136px;
}

.public-locale-switcher__trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 50px;
    background: rgba(2, 6, 23, 0.76);
    color: #f8fafc;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.24);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.public-locale-switcher__trigger:hover,
.public-locale-switcher.is-open .public-locale-switcher__trigger {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(125, 211, 252, 0.28);
    transform: translateY(-1px);
}

.public-locale-switcher__trigger:focus-visible {
    outline: none;
    border-color: rgba(125, 211, 252, 0.34);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.public-locale-switcher__icon {
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.94rem;
    flex-shrink: 0;
}

.public-locale-switcher__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.public-locale-switcher__chevron {
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: transform 0.18s ease, color 0.18s ease;
}

.public-locale-switcher.is-open .public-locale-switcher__chevron {
    transform: rotate(180deg);
    color: #ffffff;
}

.public-locale-switcher__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 100%;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.34);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 1;
}

.public-locale-switcher__option {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(226, 232, 240, 0.82);
    font: inherit;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.public-locale-switcher__option:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.public-locale-switcher__option.is-active {
    background: rgba(56, 189, 248, 0.14);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.14);
}

.public-locale-switcher__option-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.public-locale-switcher__option-check {
    color: #93efff;
    font-size: 0.76rem;
}

@media (max-width: 720px) {
    .public-locale-switcher {
        top: 12px;
        right: 12px;
        left: 12px;
        min-width: 0;
    }

    .public-locale-switcher__panel {
        left: 0;
        right: 0;
        min-width: 0;
    }
}
