/* Hide Google injected UI chrome */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
}

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

.pt-translate-engine {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
}

.pt-translate-engine .goog-te-gadget {
    font-size: 0;
    color: transparent;
}

.pt-translate {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pt-translate-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.pt-translate-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.pt-translate-control {
    position: relative;
}

.pt-lang-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 11px 38px 11px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pt-lang-select:hover,
.pt-lang-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.pt-lang-select option {
    color: #111827;
    background: #fff;
}

.pt-translate-chevron {
    position: absolute;
    top: 50%;
    right: 14px;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

/* Homepage header */
.pt-translate--header {
    min-width: 150px;
    margin-left: 8px;
    align-self: center;
}

.header__right .pt-translate--header {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

.pt-translate--header .pt-translate-label {
    display: none;
}

.pt-translate--header .pt-lang-select {
    min-width: 150px;
    padding: 9px 34px 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.82);
}

.pt-translate--header .pt-translate-chevron {
    right: 12px;
}

/* Homepage mobile menu */
.pt-translate--mobile {
    margin: 18px 0 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pt-translate--mobile .pt-translate-label {
    color: rgba(255, 255, 255, 0.72);
}

/* Dashboard sidebar */
.pt-translate--sidebar {
    margin: 8px 12px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pt-translate--sidebar .pt-translate-label {
    color: rgba(255, 255, 255, 0.55);
}

.pt-translate--sidebar .pt-lang-select {
    background: rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 991px) {
    .pt-translate--header {
        display: none;
    }
}

@media (min-width: 992px) {
    .pt-translate--mobile {
        display: none;
    }
}

[data-theme="dark"] .pt-translate--sidebar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pt-translate--sidebar .pt-lang-select {
    background: rgba(0, 0, 0, 0.28);
}

/* Auth pages */
.pt-auth-translate-bar .pt-translate--auth {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pt-auth-border, #e2e8f0);
    box-shadow: 0 10px 30px rgba(15, 45, 66, 0.12);
    backdrop-filter: blur(8px);
}

.pt-translate--auth .pt-translate-label {
    color: var(--pt-auth-muted, #64748b);
}

.pt-translate--auth .pt-lang-select {
    background: #f8fafc;
    border: 1px solid var(--pt-auth-border, #e2e8f0);
    color: var(--pt-auth-text, #1e293b);
    padding: 10px 36px 10px 12px;
    font-size: 13px;
    font-weight: 600;
}

.pt-translate--auth .pt-lang-select:hover,
.pt-translate--auth .pt-lang-select:focus {
    background: #fff;
    border-color: rgba(var(--pt-auth-teal-rgb, 15, 118, 110), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--pt-auth-teal-rgb, 15, 118, 110), 0.12);
}

.pt-translate--auth .pt-translate-chevron {
    color: var(--pt-auth-muted, #64748b);
}

@media (max-width: 575px) {
    .pt-auth-translate-bar {
        top: 12px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}
