 /* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #06a8ff, #00b7ff, #00d0ff);
    min-height: 100vh;
    padding-top: 80px !important;
    overflow-x: hidden;
}

/* ===== LOADER STYLES ===== */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #7171f0, #86a7dc);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.img-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }
.dot:nth-child(4) { animation-delay: 0.16s; }
.dot:nth-child(5) { animation-delay: 0.32s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #010436;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 20px;
    height: 80px;
    transform: translateZ(0);
}

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1500px;
    margin: 0 auto;
    padding: 1rem 0;
    gap: 2rem;
    flex-wrap: nowrap;
    position: relative;
}

/* Logo and branding */
#navbar__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: 120px;
    text-decoration: none;
}

#navbar__logo img {
    height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.branding-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* Search container */
.search-container {
    flex: 1 1 300px;
    display: flex;
    min-width: 150px;
    max-width: 400px;
    transition: all 0.3s ease;
    margin-left: -30px;
}

.search-container input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e5e9;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
    min-width: 80px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease;
    background: #fff;
}

.search-container input:focus {
    border-color: #007bff;
}

.search-container button {
    padding: 0.1rem 0.5rem;
    background: #0011ff;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.search-container button:hover {
    background: #0056b3;
}

/* Desktop navigation */
.desktop-nav {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 7rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #00fff2;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* 🔥 Plans link styling (new) */
.nav-links li a[href*="packages.php"] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links li a[href*="packages.php"] .crown {
    font-size: 1.2rem;
    margin-right: 4px;
    margin-top: -2px;
}

/* Right side container */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Cart button */
.cart-btn {
    color: #ff0000;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-top: 20px;
    margin-right: 60px;
}

.cart-btn:hover {
    background: #333;
}

.cart-count {
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 999px;
    margin-left: 5px;
    font-weight: 700;
}

/* Hamburger menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 1.9rem;
    cursor: pointer;
    padding: 0.5rem;
    color: #ffffff;
    flex-shrink: 0;
    margin-left: -80px;
    margin-top: 10px;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: #0050d0;
    width: 100px;
    padding: 1rem;
    border-radius: 8px;
    z-index: 999;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin: 1rem 0;
}

.mobile-nav li a[href*="packages.php"] {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

/* Close button */
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    align-self: flex-end;
    cursor: pointer;
    color: #fff;
}

/* ===== USER ACCOUNT AREA ===== */
#accountArea {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2000;
    margin: 0;
}

#accountBtn {
    background: linear-gradient(135deg, #007bff, #0056d2);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 20px;
    position: relative;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.3px;
}

#accountBtn:hover {
    background: linear-gradient(135deg, #0056d2, #0041a8);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-avatar {
    display: flex;
    align-items: center;
    background: none;
    padding: 1px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    margin-top: -4px;
}

.profile-avatar:hover {
    background: #e9ecef;
}

.profile-avatar .avatar-letter {
    background: #25fe09ca;
    color: #fffb00;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 8px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 20px;
    min-width: 280px;
    width: 350px;
    display: none;
    animation: slideDown 0.2s ease-out;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.dropdown-menu.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* User info section */
.dropdown-menu .user-info {
    padding: 0 0 16px 0;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 16px;
    font-size: 14px;
    color: #2d3748;
    line-height: 1.5;
}

.dropdown-menu .user-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 4px;
}

.dropdown-menu .user-info small {
    font-size: 13px;
    color: #718096;
}

/* Dropdown menu links */
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.dropdown-menu a:last-child {
    margin-bottom: 0;
}

.dropdown-menu a:hover {
    background: #f7fafc;
    color: #2b6cb0;
    transform: translateX(4px);
}

.dropdown-menu a:active {
    background: #edf2f7;
    transform: translateX(2px);
}

/* ===== AUTH FORM ===== */
.auth-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #f1f5f9;
}

.auth-form h4 {
    margin: 0 0 8px 0;
    color: #1a202c;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.auth-form .form-subtitle {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Form inputs */
.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #2d3748;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-family: inherit;
    line-height: 1.5;
    margin-bottom: 0;
}

.auth-form input::placeholder {
    color: #000000;
    font-weight: 400;
}

.auth-form input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.15);
    outline: none;
    background: #fafcff;
}

.auth-form input:hover {
    border-color: #cbd5e0;
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 4px;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3182ce, #2b6cb0);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(66, 153, 225, 0.4);
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.3);
}

/* Link button */
.auth-form p {
    text-align: center;
    color: #718096;
    font-size: 14px;
    margin: 12px 0 0 0;
    line-height: 1.5;
}

.link-btn {
    background: none;
    border: none;
    color: #4299e1;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
}

.link-btn:hover {
    color: #3182ce;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-btn:focus {
    outline: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-google {
    width: 100%;
    padding: 10px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #444;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 6px 0;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #444;
}

/* Social Login Separator */
.social-login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 4px 0;
    color: #666;
    font-size: 13px;
}

.social-login-separator::before,
.social-login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.social-login-separator span {
    padding: 0 8px;
}

/* Logout button */
#logoutBtn {
    width: 100%;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: inherit;
    margin-top: 12px;
}

#logoutBtn:hover {
    background: #fed7d7;
    border-color: #fc8181;
    color: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 215, 215, 0.4);
}

#logoutBtn:active {
    transform: translateY(0);
}

#logoutBtn:focus {
    outline: none;
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.2);
}

/* Form footer */
.auth-form .form-footer {
    text-align: center;
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid #f0f2f5;
}

.auth-form .form-footer p {
    margin: 12px 0 0 0;
    font-size: 13px;
}

.auth-form .form-footer .link-btn {
    font-size: 13px;
}

/* Plans Button */
.plans-btn {
    background: linear-gradient(135deg, #0078ff, #00c6ff);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 10px;
    margin-left: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,120,255,0.25);
}

.plans-btn:hover {
    background: linear-gradient(135deg, #005fcc, #0090ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,120,255,0.35);
}

.plans-btn .crown {
    font-size: 1.1rem;
}

/* ===== CTA BUTTONS ===== */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: none;
    padding: 1.5rem;
    position: relative;
    z-index: 999;
    width: 100%;
    margin-top: -10px;
    flex-wrap: nowrap;
}

.cta-buttons .btn {
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 160px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 700px;
    border: none;
    max-height: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgb(255, 255, 255);
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-client {
    background: #0b034f;
    color: #fff;
}

.btn-client:hover {
    background: #06084d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-dashboard {
    background: #10b981;
    color: #fff;
}

.btn-dashboard:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ===== TOASTS ===== */
#toastContainer {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2600;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    opacity: 0.95;
    animation: fadeInOut 3s ease forwards;
    z-index: 9999;
    transform: translateX(8px);
    opacity: 0;
    transition: all 300ms ease;
}

.toast.show {
    transform: none;
    opacity: 1;
}

@keyframes fadeInOut {
    0% { transform: translateY(20px); opacity: 0; }
    10%, 90% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ===== UTILITIES ===== */
.close-1btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.sr-only {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.navbar-spacer {
    height: 80px;
    width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
/* Medium screens */
@media (max-width: 1024px) {
    .navbar__container {
        gap: 1.5rem;
        padding: 0.75rem 0;
    }

    .search-container {
        flex: 1 1 250px;
        max-width: 300px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links li a {
        font-size: 0.95rem;
    }

    .branding-text {
        font-size: 1.1rem;
    }

    .logos-img {
        height: 130px;
    }

    .product-card {
        padding: 8px;
    }
}

@media (max-width: 900px) {
    .navbar__container {
        gap: 1rem;
    }

    .search-container {
        flex: 1 1 200px;
        max-width: 300px;
    }

    .search-container input {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .search-container button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .cart-btn {
        padding: 0.6rem 1.2rem;
        font-size: 2rem;
    }

    .branding-text {
        font-size: 1rem;
    }
}

/* Tablet screens */
@media (max-width: 768px) {
    .site-header {
        padding: 0 15px;
    }

    .navbar__container {
        gap: 0.8rem;
    }

    .search-container {
        flex: 1 1 180px;
        max-width: 200px;
        min-width: 100px;
        margin-right: -30px;
    }

    .search-container input {
        padding: 0.9rem 0.9rem;
        min-width: 100px;
    }

    .search-container button {
        padding: 0.1rem 0.1rem;
        max-width: 58px;
    }

    #navbar__logo {
        min-width: 100px;
    }

    #navbar__logo img {
        height: 35px;
    }

    .branding-text {
        font-size: 0.9rem;
        margin-left: 0.3rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.85rem;
    }

    .cart-btn {
        padding: 0.5rem 1rem;
        font-size: 1.5rem;
    }

    #accountArea {
        top: 8px;
        right: 15px;
    }

    #accountBtn {
        font-size: 13px;
        padding: 3px 10px;
    }

    .profile-avatar {
        padding: 1px 10px;
        font-size: 11px;
    }

    .profile-avatar .avatar-letter {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logos-wrapper {
        height: 220px;
    }

    .product-card {
        width: 140px;
        height: 180px;
    }

    /* CTA buttons mobile */
    .cta-buttons {
        padding: 1rem;
        gap: 0.8rem;
        flex-direction: row;
        overflow-x: auto;
        justify-content: center;
        margin-top: -5px;
    }
    
    .cta-buttons .btn {
        min-width: 140px;
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

/* Small screens */
@media (max-width: 650px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .search-container {
        flex: 1 1 150px;
        max-width: 250px;
        min-width: 100px;
    }

    .navbar__container {
        gap: 0.5rem;
    }

    .search-container input {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }

    .search-container button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .branding-text {
        display: none;
    }

    #accountArea {
        top: 8px;
        right: 15px;
    }

    #accountBtn {
        font-size: 12px;
        padding: 3px 10px;
    }

    .profile-avatar {
        padding: 1px 10px;
        font-size: 11px;
    }

    .profile-avatar .avatar-letter {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    /* Mobile menu when active */
    .desktop-nav.mobile-active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 1rem 15px;
    }

    .desktop-nav.mobile-active .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background: #f8f9fa;
        border-radius: 8px;
        overflow: hidden;
    }

    .desktop-nav.mobile-active .nav-links li {
        border-bottom: 1px solid #e9ecef;
    }

    .desktop-nav.mobile-active .nav-links li:last-child {
        border-bottom: none;
    }

    .desktop-nav.mobile-active .nav-links li a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
        font-size: 1rem;
    }

    .cta-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.75rem;
    }

    .cta-buttons .btn {
        flex: 1;
        min-width: auto;
        font-size: 0.95rem;
        padding: 0.1rem 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .site-header {
        padding: 0 10px;
    }

    .navbar__container {
        gap: 0.5rem;
    }

    .search-container {
        flex: 1 1 120px;
        max-width: 200px;
        min-width: 80px;
    }

    .search-container input {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        min-width: 40px;
    }

    .search-container button {
        padding: 0.1rem 0.1rem;
        font-size: 0.75rem;
    }

    #navbar__logo {
        min-width: 80px;
    }

    #navbar__logo img {
        height: 30px;
    }

    .cart-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1.5rem;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    #accountArea {
        top: 6px;
        right: 10px;
    }

    #accountBtn {
        font-size: 11px;
        padding: 2px 8px;
    }

    .profile-avatar {
        padding: 1;
    }
}
/* Compact Avatar Styles - Always Visible Name */
.profile-avatar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 18px;
  transition: background-color 0.3s ease;
  font-family: inherit;
  color: #333;
  min-width: auto;
}

.profile-avatar:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.user-avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
  display: block;
  flex-shrink: 0;
}

.avatar-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 12px;
  border: 2px solid #333;
  flex-shrink: 0;
}

#userMenuName {
  color: #ffffff;
  font-weight: 500;
  display: inline !important;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}

/* Mobile responsive - Keep name visible on all screens */
@media (max-width: 768px) {
  .profile-avatar {
    padding: 3px 6px;
    gap: 5px;
  }
  
  .user-avatar-img,
  .avatar-letter {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }
  
  #userMenuName {
    display: inline !important;
    font-size: 12px;
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .profile-avatar {
    padding: 2px 5px;
    gap: 4px;
  }
  
  .user-avatar-img,
  .avatar-letter {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
  
  #userMenuName {
    display: inline !important;
    font-size: 11px;
    max-width: 70px;
  }
}

@media (max-width: 360px) {
  .profile-avatar {
    padding: 2px 4px;
    gap: 3px;
  }
  
  .user-avatar-img,
  .avatar-letter {
    width: 22px;
    height: 22px;
    font-size: 9px;
  }
  
  #userMenuName {
    display: inline !important;
    font-size: 10px;
    max-width: 60px;
  }
}