        :root {
            --neon-blue: #3b82f6;
            --neon-glow: rgba(59, 130, 246, 0.35);
            --card-bg: rgba(13, 17, 28, 0.6);
            --input-bg: rgba(255, 255, 255, 0.03);
            --input-border: rgba(255, 255, 255, 0.1);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --text-dim: #64748b;
        }

        body {
            background: #030712;
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            transition: background 0.4s ease, color 0.4s ease;
        }

        body.light-mode {
            --card-bg: rgba(255, 255, 255, 0.85);
            --input-bg: rgba(0, 0, 0, 0.02);
            --input-border: rgba(0, 0, 0, 0.06);
            --text-main: #0f172a;
            --text-muted: #475569;
            --text-dim: #64748b;
            --neon-blue: #3b82f6;
            --neon-glow: rgba(59, 130, 246, 0.1);
            background: #f1f5f9;
        }

        .profile-container {
            max-width: 1400px;
            margin: 2rem auto;
            padding: 0 1.5rem;
        }

        .profile-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 1.5rem;
            align-items: start;
        }

        @media (max-width: 1100px) {
            .profile-layout {
                grid-template-columns: 1fr;
            }

            .right-column {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .right-column {
                grid-template-columns: 1fr;
            }
        }

        .mobile-nav-toggle {
            display: none;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--input-border);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 10001;
        }

        body.light-mode .mobile-nav-toggle {
            background: white;
            color: var(--text-main);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        }

        @media (max-width: 1300px) {
            .mobile-nav-toggle {
                display: flex;
            }

            .desktop-sidebar {
                display: none !important;
            }

            .side-nav-column {
                display: block !important;
                position: fixed !important;
                top: 0;
                left: 0;
                width: 300px;
                height: 100vh;
                background: #060912;
                z-index: 10000;
                border-right: 1px solid rgba(255, 255, 255, 0.08);
                transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
                box-shadow: 20px 0 50px rgba(0, 0, 0, 0.8);
                padding: 2.5rem 1.5rem;
                overflow-y: auto;
                transform: translateX(-100%);
                visibility: hidden;
                pointer-events: none;
            }

            body.light-mode .side-nav-column {
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(20px);
                -webkit-backdrop-filter: blur(20px);
                border-right: 1px solid rgba(0, 0, 0, 0.05);
                box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
            }

            .side-nav-column.active {
                transform: translateX(0);
                visibility: visible;
                pointer-events: auto;
            }

            .sidebar-overlay {
                position: fixed;
                inset: 0;
                background: rgba(0, 0, 0, 0.8);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                z-index: 9999;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transition: opacity 0.3s ease, visibility 0.3s;
            }

            .sidebar-overlay.active {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }


            .profile-layout {
                display: block !important;
                margin-top: 0;
            }

            .info-grid {
                grid-template-columns: 1fr !important;
                gap: 1.25rem !important;
            }

            .right-column {
                gap: 1.5rem !important;
            }

            .logo-main {
                display: none;
            }

            .profile-container {
                padding-top: 0.5rem !important;
                margin-top: 0 !important;
            }

            .glass-card {
                padding: 1.5rem;
                border-radius: 24px;
            }

            h2 {
                font-size: 1.45rem !important;
            }

            #qr-canvas {
                max-width: 180px !important;
            }

            .user-profile {
                gap: 0.5rem;
            }

            .btn-outline {
                padding: 8px 12px !important;
                font-size: 0.7rem !important;
                border-radius: 10px !important;
            }

            .profile-header {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }

            .side-nav {
                flex-direction: column !important;
                overflow-x: visible !important;
                gap: 0.75rem;
            }

            .nav-item {
                white-space: normal !important;
                padding: 1rem 1.25rem !important;
                border-radius: 14px !important;
                font-size: 0.9rem !important;
            }

            .side-nav>div {
                display: block !important;
                margin-top: 1.5rem !important;
                padding-top: 1.5rem !important;
                border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
            }

            body.light-mode .side-nav>div {
                border-top-color: rgba(0, 0, 0, 0.05) !important;
            }

            .side-nav span {
                display: block !important;
                letter-spacing: 1px;
                margin-bottom: 0.8rem !important;
            }

            .nav {
                padding: 0.75rem 1.5rem !important;
            }

            .logo img {
                height: 32px !important;
            }

            .btn-outline {
                font-size: 0.75rem !important;
            }
        }

        @media (max-width: 500px) {
            .nav {
                padding: 0.5rem 1rem !important;
                height: 60px !important;
            }

            .logo img {
                height: 28px !important;
            }

            .user-profile {
                gap: 0.5rem !important;
            }

            .btn-outline {
                padding: 8px !important;
                border-radius: 10px !important;
            }

            .btn-outline span {
                display: none;
            }

            .mobile-nav-toggle {
                width: 38px;
                height: 38px;
            }

            .profile-container {
                padding: 0 0.75rem !important;
                margin-top: 0 !important;
            }

            .glass-card {
                padding: 1.25rem !important;
                border-radius: 20px !important;
            }

            h3 {
                font-size: 1.25rem !important;
            }

            .right-column {
                display: flex !important;
                flex-direction: column !important;
                grid-column: auto !important;
            }

            .info-field {
                padding: 1rem 0.5rem !important;
            }

            .btn-update {
                padding: 1rem !important;
                border-radius: 14px !important;
                font-size: 0.9rem !important;
            }
        }

        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .glass-card {
            background: var(--card-bg);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid var(--input-border);
            border-radius: 24px;
            padding: 2rem;
            position: relative;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        }

        body.light-mode .glass-card {
            box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.8);
        }

        .neon-card {
            border-color: rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        /* Sidebar Nav */
        .desktop-sidebar {
            display: block;
        }

        .side-nav-column {
            display: none;
        }

        .side-nav {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 1rem 1.5rem;
            border-radius: 16px;
            color: var(--text-muted);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .nav-item i {
            width: 18px;
        }

        .nav-item:hover,
        .nav-item.active {
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.05);
        }

        body.light-mode .nav-item:hover,
        body.light-mode .nav-item.active {
            background: rgba(59, 130, 246, 0.05);
            color: var(--primary);
        }

        .nav-item.active {
            border: 1px solid var(--neon-blue);
            box-shadow: inset 0 0 10px var(--neon-glow);
        }

        .nav-item.logout {
            margin-top: 2rem;
            border: 1px solid rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .nav-item.logout:hover {
            background: rgba(239, 68, 68, 0.1);
        }

        /* Field Styling */
        .info-field {
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: transparent;
            border: 1px solid transparent;
            border-bottom: 1px solid var(--input-border);
            border-radius: 0;
            padding: 1.25rem 0.5rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            transition: all 0.4s ease;
            position: relative;
        }

        .info-field::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--neon-blue);
            transition: width 0.4s ease;
            z-index: 2;
        }

        .info-field:focus-within::after {
            width: 100%;
        }

        .info-field:hover {
            background: rgba(255, 255, 255, 0.015);
            border-bottom-color: rgba(255, 255, 255, 0.15);
        }

        body.light-mode .info-field {
            background: rgba(255, 255, 255, 0.5) !important;
            border: 1px solid rgba(15, 23, 42, 0.08) !important;
            border-radius: 16px !important;
            padding: 0.85rem 1.25rem !important;
            box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
            border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
        }

        body.light-mode .info-field::after {
            display: none;
            /* Hide the bottom line on light mode boxes */
        }

        body.light-mode .info-field:hover {
            background: rgba(255, 255, 255, 0.8) !important;
            border-color: rgba(59, 130, 246, 0.2) !important;
            transform: translateY(-1px);
        }

        body.light-mode .info-field:focus-within {
            background: #ffffff !important;
            border-color: var(--primary) !important;
            box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08) !important;
        }

        body.light-mode .field-input-box {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            color: #0f172a !important;
        }

        .field-icon-wrapper {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.03);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            transition: all 0.3s ease;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .info-field:focus-within .field-icon-wrapper {
            background: var(--neon-glow);
            color: var(--neon-blue);
            border-color: var(--neon-blue);
            transform: scale(1.1) rotate(-5deg);
        }

        body.light-mode .field-icon-wrapper {
            background: rgba(15, 23, 42, 0.04);
            color: var(--text-dim);
        }

        body.light-mode .info-field:focus-within .field-icon-wrapper {
            background: rgba(59, 130, 246, 0.1);
            color: var(--primary);
        }

        .field-label-text {
            display: block;
            font-size: 0.65rem;
            color: var(--text-dim);
            margin-bottom: 3px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            transition: color 0.3s ease;
        }

        .info-field:focus-within .field-label-text {
            color: var(--neon-blue);
        }

        body.light-mode .info-field:focus-within .field-label-text {
            color: var(--primary);
        }

        .field-input-box {
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            color: var(--text-main) !important;
            font-size: 1.05rem;
            font-weight: 700;
            width: 100%;
            outline: none !important;
            padding: 0 !important;
            margin: 0 !important;
            font-family: 'Outfit', sans-serif;
            letter-spacing: -0.01em;
            display: block;
        }

        /* Prevent auto-fill background */
        .field-input-box:-webkit-autofill,
        .field-input-box:-webkit-autofill:hover,
        .field-input-box:-webkit-autofill:focus {
            -webkit-text-fill-color: var(--text-main) !important;
            -webkit-box-shadow: 0 0 0px 1000px transparent inset !important;
            transition: background-color 5000s ease-in-out 0s;
        }

        .field-input-box::placeholder {
            color: var(--text-dim);
            opacity: 0.5;
        }

        /* Right Summary */
        .summary-header {
            font-size: 1.25rem;
            font-weight: 800;
            margin-bottom: 2rem;
        }

        .mini-profile {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 2rem;
            padding: 1rem;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 20px;
        }

        .mini-avatar-container {
            position: relative;
            width: 60px;
            height: 60px;
        }

        .mini-avatar {
            width: 100%;
            height: 100%;
            border-radius: 15px;
            border: 2px solid var(--neon-blue);
            padding: 3px;
            object-fit: cover;
        }

        .avatar-overlay-btn {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 15px;
            opacity: 0;
            transition: opacity 0.3s;
            cursor: pointer;
            border: none;
            color: white;
        }

        .mini-avatar-container:hover .avatar-overlay-btn {
            opacity: 1;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            z-index: 1000;
            display: none;
            align-items: center;
            justify-content: center;
        }

        .profile-modal {
            background: var(--bg-surface, #0f172a);
            backdrop-filter: blur(30px) saturate(150%);
            -webkit-backdrop-filter: blur(30px) saturate(150%);
            border: 1px solid var(--neon-blue);
            border-radius: 28px;
            padding: 2.5rem;
            width: 95%;
            max-width: 480px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px var(--neon-glow);
            position: relative;
        }

        body.light-mode .profile-modal {
            background: rgba(255, 255, 255, 0.95);
            border-color: var(--primary);
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
        }

        #camera-preview {
            width: 100%;
            aspect-ratio: 1;
            border-radius: 20px;
            background: #000;
            transform: scaleX(-1);
            margin-bottom: 1.5rem;
            object-fit: cover;
            border: 2px solid var(--neon-blue);
            box-shadow: 0 0 20px var(--neon-glow);
        }

        .avatar-option-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--input-border);
            border-radius: 18px;
            padding: 1.5rem;
            display: flex;
            align-items: center;
            gap: 1.5rem;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            width: 100%;
            text-align: left;
            color: var(--text-main);
        }

        .avatar-option-card:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: var(--neon-blue);
            transform: translateY(-4px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .avatar-option-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: var(--neon-glow);
            color: var(--neon-blue);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .avatar-option-info h4 {
            margin: 0 0 0.35rem 0;
            font-size: 1.1rem;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: -0.02em;
        }

        .avatar-option-info p {
            margin: 0;
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.4;
        }

        .btn-update {
            background: rgb(0, 59, 137);
            border: none;
            color: white;
            font-weight: 800;
            padding: 1.25rem;
            border-radius: 18px;
            cursor: pointer;
            width: 100%;
            box-shadow: 0 8px 25px -5px rgba(5, 45, 97, 0.3);
            transition: all 0.3s ease;
        }

        .btn-update:hover {
            box-shadow: 0 12px 30px -5px rgba(5, 45, 97, 0.5);
            background: rgb(3, 30, 65);
        }

        .btn-reset {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--input-border);
            color: white;
            font-weight: 700;
            padding: 1.25rem;
            border-radius: 18px;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s ease;
        }

        .btn-reset:hover {
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px var(--neon-glow);
        }

        /* System Toast */
        .system-toast {
            position: fixed;
            top: 2rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 9999;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--neon-blue);
            box-shadow: 0 10px 30px var(--neon-glow);
            padding: 1rem 2rem;
            border-radius: 50px;
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideInDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        body.light-mode .system-toast {
            background: rgba(255, 255, 255, 0.95);
            border-color: var(--primary);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            color: #0f172a;
        }

        @keyframes slideInDown {
            from {
                transform: translate(-50%, -100%);
                opacity: 0;
            }

            to {
                transform: translate(-50%, 0);
                opacity: 1;
            }
        }

        @keyframes fadeOut {
            from {
                opacity: 1;
                filter: blur(0);
            }

            to {
                opacity: 0;
                filter: blur(10px);
            }
        }
