/* assets/css/global.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-purple: #6b21a8;
    --brand-purple-hover: #581c87;
    --brand-purple-light: #faf5ff;
    --brand-purple-border: #e9d5ff;

    --brand-orange: #f59e0b;
    --brand-orange-hover: #d97706;
    --brand-orange-light: #fffbeb;

    --bg-page: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;

    --text-title: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 12px 28px -5px rgba(107, 33, 168, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Header */
.top-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-text-logo {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: var(--brand-purple);
}

.brand-text-logo span {
    color: var(--brand-orange);
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
}

.menu-item a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.menu-item a:hover, .menu-item a.active {
    color: var(--brand-purple);
}

/* Standard Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--brand-purple);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--brand-purple-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 33, 168, 0.3);
}

.btn-outline {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-title);
}

.btn-outline:hover {
    border-color: var(--brand-purple);
    background: var(--brand-purple-light);
    color: var(--brand-purple);
}

.brand-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: var(--brand-purple-light);
    color: var(--brand-purple);
    border: 1px solid var(--brand-purple-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Floating Actions */
.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.75);
}

.floating-whatsapp svg {
    width: 30px;
    height: 30px;
    fill: #ffffff;
}

.floating-scrolltop {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background: var(--text-title);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-scrolltop.visible {
    opacity: 1;
    visibility: visible;
}

.floating-scrolltop:hover {
    background: var(--brand-purple);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 22px rgba(107, 33, 168, 0.85);
}

.floating-scrolltop svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* CTA Action Box */
.cta-box-wrap {
    max-width: 1240px;
    margin: 5.5rem auto;
    padding: 0 1.5rem;
}

.cta-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #3b0764 60%, #581c87 100%);
    border-radius: var(--radius-lg);
    padding: 3.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    box-shadow: 0 20px 40px -10px rgba(88, 28, 135, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
}

.cta-box h2 span {
    color: #c084fc;
}

.cta-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.2rem;
    background: #9333ea;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(147, 51, 234, 0.4);
    transition: all 0.25s ease;
}

.cta-btn-action:hover {
    background: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(147, 51, 234, 0.55);
}

/* Footer & Social Icons */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 4.5rem 1.5rem 2.5rem;
    margin-top: 5rem;
}

.footer-box {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-box h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-title);
    margin-bottom: 1.25rem;
}

.footer-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-box a {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-box a:hover {
    color: var(--brand-purple);
}

.footer-social-strip {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-title);
    transition: all 0.25s ease;
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-icon-btn:hover {
    background: var(--brand-purple);
    border-color: var(--brand-purple);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1280px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .cta-box { flex-direction: column; text-align: center; gap: 1.8rem; }
    .footer-box { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
    .footer-box { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}

/* ==========================================================
   1. GLOBAL NAVBAR LINKS HOVER UNDERLINE ANIMATION (ALL PAGES)
   ========================================================== */
.main-menu, .hero-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-menu a, .hero-menu a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    padding: 0.35rem 0;
    transition: color 0.2s ease;
}

.hero-menu a {
    color: #cbd5e1;
}

.main-menu a::after, .hero-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2.5px;
    background: #9333ea;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-menu a::after {
    background: #c084fc;
}

.main-menu a:hover, .main-menu a.active {
    color: #9333ea;
}

.hero-menu a:hover, .hero-menu a.active {
    color: #ffffff;
}

.main-menu a:hover::after, .main-menu a.active::after,
.hero-menu a:hover::after, .hero-menu a.active::after {
    transform: scaleX(1);
}

/* ==========================================================
   2. UNIFIED UNIVERSAL USER DROPDOWN (NO EMOJIS, CLEAN SVG)
   ========================================================== */
.user-nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-nav-profile-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.4rem 0.95rem 0.4rem 0.5rem !important;
    border-radius: 9999px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
}

/* Top-header (Courses, About, Contact) Button */
.top-header .user-nav-profile-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}

.top-header .user-nav-profile-btn:hover,
.top-header .user-nav-profile-btn.active {
    background: #f8fafc !important;
    border-color: #9333ea !important;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.12) !important;
}

.top-header .user-nav-label {
    color: #0f172a !important;
}

.top-header .dropdown-arrow-svg {
    stroke: #64748b !important;
}

/* Hero-nav (Home page) Button */
.hero-nav .user-nav-profile-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

.hero-nav .user-nav-profile-btn:hover,
.hero-nav .user-nav-profile-btn.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #c084fc !important;
    box-shadow: 0 4px 16px rgba(192, 132, 252, 0.3) !important;
}

.hero-nav .user-nav-label {
    color: #ffffff !important;
}

.hero-nav .dropdown-arrow-svg {
    stroke: #cbd5e1 !important;
}

/* User Icon Badge */
.user-profile-icon-badge {
    width: 28px !important;
    height: 28px !important;
    background: linear-gradient(135deg, #9333ea, #7c3aed) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35) !important;
}

.user-profile-icon-badge svg {
    width: 15px !important;
    height: 15px !important;
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
}

.dropdown-arrow-svg {
    width: 14px !important;
    height: 14px !important;
    stroke-width: 2.5 !important;
    transition: transform 0.2s ease !important;
}

.user-nav-profile-btn.active .dropdown-arrow-svg {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu Box */
.user-nav-menu-box {
    display: none !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
    width: 240px !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    animation: menuPop 0.16s ease-out !important;
}

.user-nav-menu-box.open {
    display: block !important;
}

@keyframes menuPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header inside Dropdown */
.user-menu-header {
    padding: 1rem 1.2rem 0.85rem !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

.user-menu-fullname {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.user-menu-email {
    font-size: 0.78rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Links inside Dropdown */
.dropdown-links-group {
    padding: 0.45rem 0.5rem !important;
}

.user-nav-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.user-nav-menu-link svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #64748b !important;
    stroke-width: 2 !important;
    transition: stroke 0.15s ease !important;
}

.user-nav-menu-link:hover {
    background: #faf5ff !important;
    color: #9333ea !important;
}

.user-nav-menu-link:hover svg {
    stroke: #9333ea !important;
}

/* Footer & Log Out */
.dropdown-footer-group {
    padding: 0.45rem 0.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.user-nav-logout-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    background: none !important;
    border: none !important;
    color: #dc2626 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.user-nav-logout-btn svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #dc2626 !important;
    stroke-width: 2 !important;
}

.user-nav-logout-btn:hover {
    background: #fef2f2 !important;
}

/* ==========================================================
   UNIVERSAL HEADER NAV ACTIONS & ICON-ONLY PROFILE BUTTON
   ========================================================== */
.header-user-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Quick Action Button (Dashboard Icon) */
.nav-action-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

.hero-nav .nav-action-icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hero-nav .nav-action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.top-header .nav-action-icon-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.top-header .nav-action-icon-btn:hover {
    background: #f8fafc;
    border-color: #9333ea;
    color: #9333ea;
}

.nav-action-icon-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* Icon-Only User Profile Button */
.user-nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.user-nav-profile-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.25rem 0.55rem 0.25rem 0.25rem !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* Dark Hero Theme */
.hero-nav .user-nav-profile-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.hero-nav .user-nav-profile-btn:hover,
.hero-nav .user-nav-profile-btn.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #c084fc !important;
}

.hero-nav .dropdown-arrow-svg {
    stroke: #cbd5e1 !important;
}

/* Light Top Header Theme */
.top-header .user-nav-profile-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
}

.top-header .user-nav-profile-btn:hover,
.top-header .user-nav-profile-btn.active {
    background: #f8fafc !important;
    border-color: #9333ea !important;
}

.top-header .dropdown-arrow-svg {
    stroke: #64748b !important;
}

/* Avatar Badge */
.user-avatar-circle {
    width: 30px !important;
    height: 30px !important;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    font-weight: 800 !important;
}

.user-avatar-circle.large {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.05rem !important;
}

.dropdown-arrow-svg {
    width: 13px !important;
    height: 13px !important;
    stroke-width: 2.5 !important;
    transition: transform 0.2s ease !important;
}

.user-nav-profile-btn.active .dropdown-arrow-svg {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu Card */
.user-nav-menu-box {
    display: none !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2) !important;
    width: 250px !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    animation: menuPop 0.16s ease-out !important;
}

.user-nav-menu-box.open {
    display: block !important;
}

@keyframes menuPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu-header {
    padding: 1rem 1.15rem !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.user-meta-avatar {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.user-meta-text {
    overflow: hidden !important;
}

.user-menu-fullname {
    display: block !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.user-menu-email {
    display: block !important;
    font-size: 0.76rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dropdown-links-group {
    padding: 0.45rem 0.5rem !important;
}

.user-nav-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.user-nav-menu-link svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #64748b !important;
    stroke-width: 2 !important;
    transition: stroke 0.15s ease !important;
}

.user-nav-menu-link:hover {
    background: #faf5ff !important;
    color: #9333ea !important;
}

.user-nav-menu-link:hover svg {
    stroke: #9333ea !important;
}

.dropdown-footer-group {
    padding: 0.45rem 0.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.user-nav-logout-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    background: none !important;
    border: none !important;
    color: #dc2626 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.user-nav-logout-btn svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #dc2626 !important;
    stroke-width: 2 !important;
}

.user-nav-logout-btn:hover {
    background: #fef2f2 !important;
}

/* ==========================================================
   UNIFIED EXACT-MATCH PROFILE PILL & DROPDOWN (ALL PAGES)
   ========================================================== */
.user-nav-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* User Pill Button */
.user-nav-profile-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.32rem 0.55rem 0.32rem 0.35rem !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
}

/* Dark Navbar Style (Home Hero) */
.hero-nav .user-nav-profile-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.hero-nav .user-nav-profile-btn:hover,
.hero-nav .user-nav-profile-btn.active {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #c084fc !important;
    box-shadow: 0 4px 16px rgba(192, 132, 252, 0.3) !important;
}

.hero-nav .dropdown-arrow-svg {
    stroke: #cbd5e1 !important;
}

/* Light Top Header Style (Courses, About, Contact) */
.top-header .user-nav-profile-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
}

.top-header .user-nav-profile-btn:hover,
.top-header .user-nav-profile-btn.active {
    background: #f8fafc !important;
    border-color: #9333ea !important;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.12) !important;
}

.top-header .dropdown-arrow-svg {
    stroke: #64748b !important;
}

/* SVG Avatar Silhouette Badge (Matching reference) */
.user-profile-svg-badge {
    width: 28px !important;
    height: 28px !important;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35) !important;
}

.user-profile-svg-badge svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #ffffff !important;
}

.dropdown-arrow-svg {
    width: 13px !important;
    height: 13px !important;
    stroke-width: 2.5 !important;
    transition: transform 0.2s ease !important;
}

.user-nav-profile-btn.active .dropdown-arrow-svg {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu Window */
.user-nav-menu-box {
    display: none !important;
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 10px) !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 40px -10px rgba(15, 23, 42, 0.2) !important;
    width: 245px !important;
    z-index: 999999 !important;
    overflow: hidden !important;
    animation: menuPop 0.16s ease-out !important;
}

.user-nav-menu-box.open {
    display: block !important;
}

@keyframes menuPop {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-menu-header {
    padding: 1rem 1.15rem 0.85rem !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

.user-menu-fullname {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.user-menu-email {
    font-size: 0.76rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.dropdown-links-group {
    padding: 0.45rem 0.5rem !important;
}

.user-nav-menu-link {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

.user-nav-menu-link svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #64748b !important;
    stroke-width: 2 !important;
    transition: stroke 0.15s ease !important;
}

.user-nav-menu-link:hover {
    background: #faf5ff !important;
    color: #9333ea !important;
}

.user-nav-menu-link:hover svg {
    stroke: #9333ea !important;
}

.dropdown-footer-group {
    padding: 0.45rem 0.5rem !important;
    border-top: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.user-nav-logout-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.65rem 0.85rem !important;
    background: none !important;
    border: none !important;
    color: #dc2626 !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.user-nav-logout-btn svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #dc2626 !important;
    stroke-width: 2 !important;
}

.user-nav-logout-btn:hover {
    background: #fef2f2 !important;
}

/* ==========================================================
   MOBILE HAMBURGER & SLIDE-OVER DRAWER
   ========================================================== */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    color: inherit;
    align-items: center;
    justify-content: center;
}

.hero-nav .mobile-nav-toggle { color: #ffffff; }
.top-header .mobile-nav-toggle { color: #0f172a; }

.mobile-nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 290px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 999999;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-drawer-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.2rem 0.5rem;
}

.mobile-drawer-links {
    list-style: none;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.mobile-drawer-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
    background: #faf5ff;
    color: #9333ea;
}

.remember-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.remember-checkbox-label input {
    accent-color: var(--brand-purple);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mobile-nav-toggle { display: flex !important; }
    .hero-menu, .main-menu { display: none !important; }
}
/* ==========================================================
   FIX 1: Prevent Mobile Drawer from opening on Desktop View
   ========================================================== */
@media (min-width: 901px) {
    /* Hide actual mobile toggle buttons and overlays on desktop */
    .mobile-nav-toggle, 
    .nav-toggle, 
    .menu-toggle, 
    .topbar-toggle-btn, 
    .hamburger,
    [class*="toggle"], 
    [class*="hamburger"] {
        display: none !important;
    }
    
    /* Ensure mobile drawer overlay never blocks clicks or opens on desktop */
    .mobile-drawer, 
    .mobile-drawer-overlay {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ==========================================================
   FIX 2: Make Logout Button Text Visible inside User Dropdown
   ========================================================== */
.user-nav-dropdown a,
.user-nav-dropdown button,
.dropdown-menu a,
.dropdown-menu button,
.user-dropdown-item {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.user-nav-dropdown a:hover,
.user-nav-dropdown button:hover,
.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f1f5f9 !important;
    color: #9333ea !important;
}

/* Specific fix for Logout text/icon coloring */
.user-nav-dropdown a[href*="logout"],
.user-nav-dropdown button[onclick*="logout"],
.dropdown-menu a[href*="logout"],
.dropdown-menu button[onclick*="logout"] {
    color: #dc2626 !important; /* Red text for clear visibility */
}
/* ==========================================================
   FORCE SHOW SIGN OUT IN USER DROPDOWN ACROSS ALL PAGES
   ========================================================== */
.user-nav-menu-box .dropdown-footer-group,
.user-nav-menu-box [id*="logout"],
.user-nav-menu-box a[href*="logout"],
.user-nav-menu-box button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.user-nav-logout-btn, 
.user-nav-menu-box button[id*="Logout"],
.user-nav-menu-box button[onclick*="SignOut"] {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    background: transparent !important;
    border: none !important;
    color: #dc2626 !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    text-align: left !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 6px !important;
}

.user-nav-logout-btn:hover {
    background-color: #fee2e2 !important;
}
