/* ============================================================
   VNAPP AUTH — Vercel Monochrome Design System
   Phong cách: Tối giản (Minimalist), Đen/Trắng (Monochrome), Hiện đại, Tương phản cao
   Font: Outfit (body) + Space Grotesk (heading)
   ============================================================ */

/* --- CSS VARIABLES: LIGHT MODE (MẶC ĐỊNH) --- */
:root {
    --bg-main: #ffffff;
    --bg-surface: #fafafa;
    --bg-surface-hover: #f1f1f1;
    --bg-card: #ffffff;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.2);
    
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-tertiary: #888888;
    
    --primary: #000000;
    --primary-hover: #111111;
    --primary-text: #ffffff;
    
    --accent: #0070f3; /* Vercel Brand Blue */
    --success: #0070f3;
    --error: #ee0000;
    
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 4px;
    
    --shadow-soft: 0 2px 4px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.02);
    --shadow-elevated: 0 4px 12px rgba(0,0,0,0.05), 0 16px 32px rgba(0,0,0,0.05);
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Nút bấm trong Form */
    --btn-solid-bg: #000000;
    --btn-solid-bg-hover: #ffffff;
    --btn-solid-text: #ffffff;
    --btn-solid-text-hover: #000000;
    
    /* Nút Navigation Bar */
    --nav-btn-primary-bg: #000000;
    --nav-btn-primary-bg-hover: #ffffff;
    --nav-btn-primary-text: #ffffff;
    --nav-btn-primary-text-hover: #000000;
    
    --nav-btn-ghost-text: #666666;
    --nav-btn-ghost-border: rgba(0, 0, 0, 0.08);
    --nav-btn-ghost-hover-bg: rgba(0, 0, 0, 0.04);
    --nav-btn-ghost-hover-text: #000000;
}

/* --- DARK MODE VARIABLES --- */
.dark {
    --bg-main: #000000;
    --bg-surface: #0a0a0a;
    --bg-surface-hover: #1a1a1a;
    --bg-card: #0a0a0a;
    
    --border-color: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.3);
    
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-tertiary: #a3a3a3;
    
    --primary: #ffffff;
    --primary-hover: #eaeaea;
    --primary-text: #000000;
    
    --shadow-soft: none;
    --shadow-elevated: none;
    
    /* Nút bấm trong Form Dark */
    --btn-solid-bg: #ffffff;
    --btn-solid-bg-hover: #000000;
    --btn-solid-text: #000000;
    --btn-solid-text-hover: #ffffff;
    
    /* Nút Navigation Bar Dark */
    --nav-btn-primary-bg: #ffffff;
    --nav-btn-primary-bg-hover: #000000;
    --nav-btn-primary-text: #000000;
    --nav-btn-primary-text-hover: #ffffff;
    
    --nav-btn-ghost-text: #888888;
    --nav-btn-ghost-border: rgba(255, 255, 255, 0.15);
    --nav-btn-ghost-hover-bg: rgba(255, 255, 255, 0.08);
    --nav-btn-ghost-hover-text: #ffffff;
}

/* --- GLOBAL RESET & TYPOGRAPHY SHARPNESS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
}

/* Chuyển theme mượt mà */
body, header, footer, .feature-card, .btn-cta, .nav-menu, input, textarea, select {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Ẩn canvas cực quang cũ để giữ giao diện trơn phẳng chuẩn Vercel */
#bg-canvas {
    display: none !important;
}

/* --- BASE CONTAINER --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   HEADER / NAVIGATION (Mobile-First)
   ============================================================ */
header.site-header {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- Logo --- */
.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: opacity 0.2s ease;
}

.logo a:hover .logo-icon {
    opacity: 0.8;
}

.logo-text {
    font-weight: 700;
}

.logo-accent {
    font-weight: 400;
    color: var(--text-secondary);
}

/* --- Hamburger Button (Mobile) --- */
.hamburger {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    display: block;
    z-index: 110;
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hamburger:hover {
    background: var(--bg-surface-hover);
}

/* --- Navigation Menu (Mobile Drawer) --- */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px;
    gap: 4px;
    transition: right 0.3s var(--transition-smooth);
    z-index: 105;
}

.nav-menu.open {
    right: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

/* --- Navigation Buttons (Mobile Drawer) --- */
.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
}

/* Ẩn hoàn toàn icon trong các nút điều hướng để giống Vercel */
.btn-nav i {
    display: none !important;
}

/* Nút Đăng nhập: Ghost / Text link trơn dạng Vercel */
.nav-menu a.btn-login {
    color: var(--nav-btn-ghost-text) !important;
    background: transparent;
    border: 1px solid transparent;
}

.nav-menu a.btn-login:hover {
    background: var(--nav-btn-ghost-hover-bg);
    color: var(--nav-btn-ghost-hover-text) !important;
}

/* Nút Đăng ký: Solid Monochrome */
.nav-menu a.btn-register {
    background: var(--nav-btn-primary-bg);
    color: var(--nav-btn-primary-text) !important;
    border: 1px solid var(--nav-btn-primary-bg);
}

.nav-menu a.btn-register:hover {
    background: var(--nav-btn-primary-bg-hover);
    color: var(--nav-btn-primary-text-hover) !important;
    border-color: var(--text-primary);
}

/* ============================================================
   DESKTOP NAVIGATION (min-width: 1024px)
   ============================================================ */
@media (min-width: 1024px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        border-left: none;
        padding: 0;
        align-items: center;
        gap: 4px;
        box-shadow: none;
    }

    .nav-menu a {
        padding: 6px 12px;
        color: var(--text-secondary);
        font-size: 14px;
    }

    .nav-menu a:hover {
        color: var(--text-primary);
        background: var(--bg-surface-hover);
    }

    .nav-buttons {
        flex-direction: row;
        margin-top: 0;
        gap: 12px;
        padding-top: 0;
        border-top: none;
        margin-left: 14px;
    }

    .btn-nav {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .nav-menu a.btn-login {
        border-color: transparent;
    }

    .mobile-user-card, .mobile-socials {
        display: none !important;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 80px 0 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero h2 {
        font-size: 56px;
        letter-spacing: -1.8px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* ============================================================
   SERVICES / FEATURES SECTION
   ============================================================ */
.features {
    padding: 24px 0 96px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 460px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* ============================================================
   CTA BUTTONS (Monochrome & Service Brand Accents)
   ============================================================ */
.btn-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.15s ease;
    text-align: center;
}

/* 🟦 1. Nút CV: Xanh dương Vercel */
.btn-cv {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
}

.btn-cv:hover {
    background: #0060df;
    border-color: #0060df;
}

/* ⬛ 2. Nút Sửa ảnh: Đen tuyền / Trắng tinh */
.btn-photo {
    background: var(--primary);
    color: var(--bg-main);
    border: 1px solid var(--primary);
}

.btn-photo:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* 🟥 3. Nút Thiệp cưới: Hồng đỏ */
.btn-wedding {
    background: #e11d48;
    color: #ffffff;
    border: 1px solid #e11d48;
}

.btn-wedding:hover {
    background: #be123c;
    border-color: #be123c;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-header h3 {
        font-size: 28px;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo span {
    font-weight: 400;
    color: var(--text-secondary);
}

.footer-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ============================================================
   THEME TOGGLE BUTTON & NAVIGATION ACTIONS
   ============================================================ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 110;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* Sun/Moon Icon Simple Spin */
.theme-toggle-btn i {
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover i {
    transform: scale(1.05);
}

/* ============================================================
   NAVIGATION ITEMS & ICONS (Mobile Drawer specific)
   ============================================================ */
.nav-menu a.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-menu a.nav-item:hover .nav-icon {
    color: var(--text-primary);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}


/* ============================================================
   MOBILE USER PROFILE CARD (Mobile Drawer only)
   ============================================================ */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.user-avatar {
    font-size: 32px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-info .greeting {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.user-info .subtext {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* ============================================================
   MOBILE SOCIAL LINKS (Mobile Drawer only)
   ============================================================ */
.mobile-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.mobile-socials a {
    font-size: 20px;
    color: var(--text-secondary) !important;
    transition: color 0.2s ease !important;
    padding: 0 !important;
    background: none !important;
}

.mobile-socials a:hover {
    color: var(--text-primary) !important;
}

/* ============================================================
   SCROLL REVEAL (Simple Fade In)
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   DARK MODE INPUT OVERRIDES (Dùng chung)
   ============================================================ */
.dark .input-wrapper input,
.dark textarea.form-control,
.dark .form-control {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .input-wrapper input:focus,
.dark textarea.form-control:focus,
.dark .form-control:focus {
    background: #000000;
    border-color: #ffffff;
    box-shadow: none;
}

/* ============================================================
   USER PROFILE DROPDOWN & AVATAR (Monogram)
   ============================================================ */
.user-profile-menu {
    position: relative;
    display: none; /* Mặc định ẩn trên Mobile, chỉ hiện trong desktop nav */
}

.avatar-trigger {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    padding: 0;
    flex-shrink: 0;
}

.avatar-trigger:hover {
    opacity: 0.9;
    transform: scale(1.03);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    z-index: 120;
    
    /* Animation hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s var(--transition-smooth), visibility 0.15s;
}

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

.dropdown-header {
    padding: 12px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dropdown-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-email {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-vip-badge {
    align-self: flex-start;
    font-size: 9px;
    font-weight: 700;
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark .dropdown-vip-badge {
    background: #ffffff;
    color: #000000;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.dropdown-item i {
    font-size: 16px;
    color: var(--text-secondary);
}

.dropdown-item:hover i {
    color: var(--text-primary);
}

.dropdown-item.btn-logout:hover {
    color: var(--error) !important;
    background: rgba(238, 0, 0, 0.05);
}

.dropdown-item.btn-logout:hover i {
    color: var(--error) !important;
}

/* --- Mobile Drawer Specific Dynamic Items --- */
.nav-menu .mobile-only {
    display: flex;
}

.nav-menu button.nav-item {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu button.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.nav-menu button.mobile-logout-btn:hover {
    color: var(--error) !important;
    background: rgba(238, 0, 0, 0.05);
}

.nav-menu button.mobile-logout-btn:hover .nav-icon {
    color: var(--error) !important;
}

.user-avatar.monogram {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

/* Helper classes for conditional rendering */
.pc-only {
    display: none !important;
}

.mobile-only {
    display: flex !important;
}

.mobile-only-flex {
    display: flex !important;
}

/* Mobile Header User Button */
.mobile-header-user {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 24px;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.mobile-header-user:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.header-monogram-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

/* ============================================================
   MOBILE LAYOUT & SLIDE DIRECTION REDESIGN
   ============================================================ */
@media (max-width: 1023px) {
    /* Center the logo absolutely */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 99;
    }
    
    .logo a {
        font-size: 15px; /* Cỡ chữ logo nhỏ hơn chút cho thanh thoát */
    }

    /* Đổi hướng drawer di động trượt từ TRÁI */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Trượt từ trái thay vì từ phải */
        right: auto !important;
        width: 280px;
        height: 100vh;
        background: var(--bg-surface);
        border-right: 1px solid var(--border-color);
        border-left: none !important;
        display: flex;
        flex-direction: column;
        padding: 80px 24px 40px;
        gap: 4px;
        transition: left 0.3s var(--transition-smooth);
        z-index: 105;
        box-shadow: var(--shadow-elevated);
    }

    .nav-menu.open {
        left: 0 !important;
        right: auto !important;
    }
}

@media (min-width: 1024px) {
    .pc-only {
        display: flex !important;
    }
    
    .pc-only.user-profile-menu {
        display: block !important;
    }
    
    .mobile-only, .mobile-only-flex {
        display: none !important;
    }

    /* Reset các định dạng di động khi lên PC */
    .logo {
        position: static;
        transform: none;
    }

    .nav-menu {
        left: auto !important;
        right: auto !important;
        border: none !important;
        transition: none !important;
    }
}


