.scan-v2-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #0f1117;
    color: #f3f4f6;
}

/* Header & Top Bar */
.scan-header {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 16px 20px 0;
    box-sizing: border-box;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 31, 46, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 10px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.brand-icon {
    color: #3b82f6;
    font-size: 14px;
}

/* Language Picker */
.lang-picker-wrapper {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px 12px;
    color: #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.lang-btn:hover,
.lang-btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.lang-picker-wrapper.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #181d2c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 200;
    backdrop-filter: blur(20px);
}

.lang-picker-wrapper.open .lang-dropdown {
    display: block;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #d1d5db;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-option:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #ffffff;
}

.lang-option.active {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    font-weight: 700;
}

.lang-flag {
    font-size: 15px;
}

/* RTL Layout Support */
html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .scan-v2 {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .result-hero,
html[dir="rtl"] .analyzing-content {
    text-align: center;
}

.scan-v2 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 40px;
}

.scan-v2 .quiz-card {
    width: 100%;
    max-width: 440px;
}

.scan-v2 .return-hero {
    margin-bottom: 0;
}

.scan-v2 #return-link {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
}

