:root {
    --cv-primary-rgb: 94, 234, 212;
    --primary-color: #5eead4;
    --secondary-color: #34d399;
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --cv-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.cv-lang-switch {
    display: flex;
    align-items: center;
}

.cv-lang-dropdown {
    position: relative;
    display: inline-block;
}

.cv-lang-main-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-primary, #f4f6fb);
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s var(--cv-ease);
    font-size: 14px;
    min-width: 58px;
    justify-content: center;
}

.cv-lang-main-btn:hover {
    background: rgba(var(--cv-primary-rgb), 0.1);
    border-color: rgba(var(--cv-primary-rgb), 0.28);
}

.cv-lang-flag {
    font-size: 16px;
    line-height: 1;
}

.cv-lang-arrow {
    font-size: 9px;
    color: var(--text-muted, #6b7486);
    transition: transform 0.3s var(--cv-ease);
}

.cv-lang-dropdown.active .cv-lang-arrow {
    transform: rotate(180deg);
}

.cv-lang-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(18, 21, 29, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 24px rgba(var(--cv-primary-rgb), 0.12);
    min-width: 210px;
    max-height: 340px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s var(--cv-ease);
    z-index: 1200;
    padding: 6px;
}

.cv-lang-dropdown.active .cv-lang-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cv-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 9px;
    color: var(--text-secondary, #9aa4b6);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s var(--cv-ease);
    font-size: 14px;
}

.cv-lang-option:hover,
.cv-lang-option.active {
    background: rgba(var(--cv-primary-rgb), 0.1);
    color: var(--text-primary, #f4f6fb);
}

.cv-lang-option.active {
    box-shadow: inset 0 0 0 1px rgba(var(--cv-primary-rgb), 0.35);
}

.cv-lang-option .cv-lang-name {
    flex: 1;
}

.cv-lang-option .cv-lang-check {
    color: var(--primary-color);
    opacity: 0;
    font-size: 12px;
}

.cv-lang-option.active .cv-lang-check {
    opacity: 1;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid rgba(var(--cv-primary-rgb), 0.28);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    cursor: pointer;
    color: var(--text-primary, #f4f6fb);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s var(--cv-ease);
    animation: cvAttract 3.2s ease-in-out infinite;
}

.user-menu-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--primary-gradient);
    opacity: 0;
    filter: blur(9px);
    z-index: -1;
    transition: opacity 0.4s var(--cv-ease);
}

.user-menu-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.user-menu-btn:hover::before,
.user-menu.active .user-menu-btn::before {
    opacity: 0.55;
}

@keyframes cvAttract {
    0%, 100% { box-shadow: 0 0 0 rgba(var(--cv-primary-rgb), 0); }
    50% { box-shadow: 0 0 18px rgba(var(--cv-primary-rgb), 0.32); }
}

.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #06231d;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(var(--cv-primary-rgb), 0.4);
}

.user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    font-size: 9px;
    color: var(--text-muted, #6b7486);
    transition: transform 0.3s var(--cv-ease);
}

.user-menu.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--cv-primary-rgb), 0.6) rgba(255, 255, 255, 0.05);
    background: rgba(16, 19, 27, 0.97);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(var(--cv-primary-rgb), 0.22);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 34px rgba(var(--cv-primary-rgb), 0.16);
    padding: 8px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.34s var(--cv-ease), transform 0.34s var(--cv-ease), visibility 0.34s var(--cv-ease);
}

.user-menu.active .user-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.user-menu-panel::-webkit-scrollbar {
    width: 10px;
}

.user-menu-panel::-webkit-scrollbar-track {
    margin: 10px 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.user-menu-panel::-webkit-scrollbar-thumb {
    min-height: 36px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(var(--cv-primary-rgb), 0.7);
    background-clip: padding-box;
}

.user-menu-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--cv-primary-rgb), 0.95);
    background-clip: padding-box;
}

.um-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 16px;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(var(--cv-primary-rgb), 0.14) 0%, transparent 60%);
}

.um-header-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #06231d;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(var(--cv-primary-rgb), 0.45), 0 0 18px rgba(var(--cv-primary-rgb), 0.35);
}

.um-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.um-header-info {
    min-width: 0;
}

.um-header-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary, #f4f6fb);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.um-header-sub {
    font-size: 12px;
    color: var(--primary-color);
    margin-top: 2px;
}

.um-divider {
    height: 1px;
    margin: 8px 6px;
    background: linear-gradient(90deg, transparent, rgba(var(--cv-primary-rgb), 0.28), transparent);
}

.um-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary, #9aa4b6);
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s var(--cv-ease);
}

.um-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.um-item:hover {
    background: rgba(var(--cv-primary-rgb), 0.1);
    color: var(--text-primary, #f4f6fb);
    transform: translateX(2px);
}

.um-item.um-logout {
    color: #fb6f7e;
}

.um-item.um-logout:hover {
    background: rgba(251, 111, 126, 0.12);
    color: #ff8a97;
}

.um-section {
    padding: 6px 12px 12px;
}

.um-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #6b7486);
    margin: 6px 2px 12px;
    font-weight: 700;
}

.cv-theme-wheel-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cv-theme-wheel {
    position: relative;
    width: 128px;
    height: 128px;
    flex-shrink: 0;
}

#cvThemeWheel {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    cursor: crosshair;
    box-shadow: 0 0 22px rgba(var(--cv-primary-rgb), 0.28);
    touch-action: none;
}

.cv-wheel-handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
    top: 50%;
    left: 50%;
}

.cv-theme-side {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-theme-preview {
    height: 46px;
    border-radius: 12px;
    background: var(--primary-gradient);
    box-shadow: 0 0 20px rgba(var(--cv-primary-rgb), 0.5);
    transition: all 0.25s var(--cv-ease);
}

.cv-value-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cv-value-row label {
    font-size: 11px;
    color: var(--text-muted, #6b7486);
    font-weight: 600;
}

#cvValueSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(90deg, #000, var(--primary-color));
    outline: none;
    cursor: pointer;
}

#cvValueSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(var(--cv-primary-rgb), 0.7);
    cursor: pointer;
}

#cvValueSlider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px rgba(var(--cv-primary-rgb), 0.7);
    cursor: pointer;
}

.cv-theme-hexrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.cv-hex-swatch {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(var(--cv-primary-rgb), 0.6);
    flex-shrink: 0;
}

#cvHexInput {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #f4f6fb);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s var(--cv-ease);
}

#cvHexInput:focus {
    border-color: var(--primary-color);
}

.cv-theme-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.cv-theme-btn {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s var(--cv-ease);
    border: 1px solid rgba(var(--cv-primary-rgb), 0.35);
    background: transparent;
    color: var(--primary-color);
}

.cv-theme-btn:hover {
    background: rgba(var(--cv-primary-rgb), 0.12);
}

.cv-theme-btn.cv-apply {
    border: none;
    background: var(--primary-gradient);
    color: #06231d;
    box-shadow: 0 6px 20px rgba(var(--cv-primary-rgb), 0.4);
}

.cv-theme-btn.cv-apply:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.um-lang-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 210px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--cv-primary-rgb), 0.6) rgba(255, 255, 255, 0.05);
    padding-right: 2px;
}

.um-lang-list::-webkit-scrollbar {
    width: 8px;
}

.um-lang-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
}

.um-lang-list::-webkit-scrollbar-thumb {
    min-height: 28px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(var(--cv-primary-rgb), 0.7);
    background-clip: padding-box;
}

.um-lang-list::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--cv-primary-rgb), 0.95);
    background-clip: padding-box;
}

.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate iframe,
.goog-te-gadget-icon,
.goog-te-balloon-frame,
iframe.goog-te-balloon-frame,
#goog-gt-tt,
.goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.goog-te-gadget {
    height: 0;
    overflow: hidden;
    color: transparent !important;
    font-size: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

font[style] {
    background-color: transparent !important;
    box-shadow: none !important;
}

body {
    top: 0 !important;
    position: static !important;
}

#google_translate_element {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .user-menu-name {
        max-width: 90px;
    }
    .user-menu-panel {
        width: min(92vw, 320px);
    }
}
