        html, body {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
            color: #1a1a1a;
            background: #ffffff;
            line-height: 1.6;
        }

        /* Header */
        header {
            padding: 20px 45px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #e8e8e8;
            position: sticky;
            top: 0;
            background: white;
            z-index: 200;
        }

        .logo {
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .logo img {
            height: 30px;
            width: auto;
            object-fit: contain;
        }

        nav {
            display: grid;
            grid-template-columns: auto auto auto 1fr;
            column-gap: 35px;
            align-items: center;
            padding: 2px;
            padding-right: 0;
            padding-left: 0;
        }

        /* Auth container overlays both auth buttons and profile in same grid cell */
        .auth-buttons,
        .user-profile {
            grid-column: 4;
            grid-row: 1;
            justify-self: end;
            margin-left: 0;
        }

        .nav-link {
            color: #333;
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            cursor: pointer;
            transition: color 0.2s;
            position: relative;
        }

        .nav-link:hover {
            color: #ff6154;
        }

        .dropdown {
            position: static;
        }

        .dropdown-toggle {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .dropdown-toggle i {
            font-size: 12px;
            transition: transform 0.3s;
        }

        .dropdown:hover .dropdown-toggle i,
        .dropdown.active .dropdown-toggle i {
            transform: rotate(180deg);
        }

        .dropdown-menu {
            position: fixed;
            top: 81px;
            left: 45px;
            right: 45px;
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.12);
            padding: 50px 60px;
            max-height: 80vh;
            overflow-y: auto;
            display: none;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 99;
        }

        .dropdown-menu::before {
            content: '';
            position: fixed;
            top: 71px;
            left: 0;
            right: 0;
            height: 10px;
            background: transparent;
        }

        .dropdown:hover .dropdown-menu,
        .dropdown.active .dropdown-menu {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            column-gap: 40px;
            row-gap: 30px;
            opacity: 1;
        }

        .dropdown-menu::-webkit-scrollbar {
            width: 8px;
        }

        .dropdown-menu::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .dropdown-menu::-webkit-scrollbar-thumb {
            background: #ff6154;
            border-radius: 10px;
        }

        .dropdown-menu::-webkit-scrollbar-thumb:hover {
            background: #e5554a;
        }

        .tool-category {
            margin-bottom: 10px;
        }

        .category-title {
            font-size: 11px;
            font-weight: 700;
            color: #999;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
        }

        .tool-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 4px;
            color: #333;
            text-decoration: none;
            font-size: 14px;
            transition: all 0.2s;
            border-radius: 8px;
            margin-bottom: 4px;
        }

        .tool-icon-t {
            width: 21px; /* adjust as needed */
            height: 21px;
            object-fit: contain;
        }


        .tool-item:hover {
            background: #fff4f3;
            color: #ff6154;
        }

        .tool-item i {
            width: 18px;
            font-size: 16px;
            color: #ff6154;
        }

        .btn-secondary-h {
            background: transparent;
            color: #333;
            padding: 12px 20px;
            border-radius: 8px;
            border: 1px solid #ddd;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .btn-secondary-h:hover {
            border-color: #ff6154;
            color: #ff6154;
            background: none;
            box-shadow: none;
        }

        .btn-primary-h {
            background: #ff6154;
            color: white;
            padding: 12px 28px;
            border-radius: 8px;
            border: none;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(255, 97, 84, 0.3);
            white-space: nowrap;
        }

        .btn-primary-h:hover {
            background: #e5554a;
            box-shadow: 0 4px 12px rgba(255, 97, 84, 0.4);
            transform: translateY(-1px);
        }

        /* Hero Section */
        .hero {
            text-align: center;
            padding: 100px 40px 80px;
            max-width: 1000px;
            margin: 0 auto;
        }

        .hero h1 {
            font-size: 64px;
            font-weight: 800;
            margin-bottom: 24px;
            line-height: 1.1;
            letter-spacing: -1px;
        }

        .hero p {
            font-size: 22px;
            color: #666;
            margin-bottom: 50px;
            font-weight: 400;
        }

        .hero-cta {
            display: flex;
            gap: 20px;
            justify-content: center;
            align-items: center;
        }

        .btn-hero {
            background: #ff6154;
            color: white;
            padding: 18px 48px;
            border-radius: 8px;
            border: none;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(255, 97, 84, 0.3);
            text-decoration: none;
            display: inline-block;
        }

        .btn-hero:hover {
            background: #e5554a;
            box-shadow: 0 4px 12px rgba(255, 97, 84, 0.4);
            transform: translateY(-1px);
        }

        /* Popular Tools Section */
        .section-title-m {
            text-align: center;
            font-size: 42px;
            font-weight: 800;
            margin-bottom: 20px;
            color: #1a1a1a;
        }

        .section-subtitle-m {
            text-align: center;
            font-size: 16px;
            color: #666;
            margin-bottom: 50px;
        }

        .tools-section {
            max-width: 1400px;
            margin: 120px auto;
            padding: 0 60px;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        .tool-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 24px;
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 16px;
            text-align: left;
        }

        .tool-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            transform: translateY(-2px);
            border-color: #d1d5db;
        }

        .tool-icon {
            width: 48px;
            height: 48px;
            background: none;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: #ff6154;
            flex-shrink: 0;
        }

        .tool-content {
            flex: 1;
            min-width: 0;
        }

        .tool-card h3 {
            font-size: 17px;
            font-weight: 600;
            margin-bottom: 6px;
            color: #1a1a1a;
        }

        .tool-card p {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.5;
        }

        .tool-arrow {
            color: #9ca3af;
            font-size: 18px;
            flex-shrink: 0;
            margin-left: auto;
        }

        .see-all-btn {
            display: block;
            margin: 0 auto;
            background: #ff6154;
            color: white;
            padding: 14px 32px;
            border-radius: 8px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: 0 2px 8px rgba(255, 97, 84, 0.3);
        }

        .see-all-btn:hover {
            background: #e5554a;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(255, 97, 84, 0.4);
        }

        /* Features Section - Bento Grid */
        .features-section {
            background: white;
            padding: 120px 60px;
        }

        .features-container {
            max-width: 1100px;
            margin: 0 auto;
            text-align: center;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: auto auto auto;
            gap: 10px;
            margin-top: 64px;
            text-align: left;
        }

        .bento-item {
            background: #f9fafb;
            border-radius: 20px;
            padding: 36px 32px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            min-height: 180px;
            transition: all 0.3s ease;
            position: relative;
        }

        .bento-item:hover {
            background: #f3f4f6;
            transform: translateY(-2px);
        }

        .bento-item h3 {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 10px;
            color: #1a1a1a;
            letter-spacing: -0.01em;
        }

        .bento-dash {
            color: #d1d5db;
            margin-left: 6px;
            font-weight: 400;
        }

        .bento-large .bento-dash {
            color: #4b5563;
        }

        .bento-item p {
            font-size: 14px;
            color: #6b7280;
            line-height: 1.65;
            margin: 0;
        }

        /* Featured card */
        .bento-large {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
            background: #1a1a1a;
            padding: 44px 36px;
            min-height: 380px;
            border-radius: 20px;
        }

        .bento-large:hover {
            background: #222;
            transform: translateY(-2px);
        }

        .bento-large .bento-content {
            margin-top: auto;
        }

        .bento-large h3 {
            font-size: 26px;
            color: white;
            margin-bottom: 14px;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .bento-large p {
            font-size: 15px;
            color: #9ca3af;
            line-height: 1.65;
        }

        .bento-tag {
            display: inline-block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #ff6154;
            background: rgba(255, 97, 84, 0.1);
            padding: 6px 14px;
            border-radius: 100px;
            margin-bottom: auto;
            align-self: flex-start;
        }

        /* Wide card */
        .bento-wide {
            grid-column: span 2;
        }

        /* Section Label */
        .section-label {
            display: inline-block;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #ff6154;
            margin-bottom: 16px;
        }

        .section-label-light {
            color: rgba(255, 255, 255, 0.7);
        }

        /* How It Works Section */
        .how-it-works {
            padding: 120px 60px;
            background: white;
        }

        .how-it-works-container {
            max-width: 1000px;
            margin: 0 auto;
            text-align: center;
        }

        .steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            margin-top: 64px;
            background: #e5e7eb;
            border-radius: 20px;
            overflow: hidden;
        }

        .step-item {
            background: #f9fafb;
            padding: 48px 36px;
            text-align: left;
        }

        .step-num {
            font-size: 48px;
            font-weight: 800;
            color: #f0f0f0;
            line-height: 1;
            margin-bottom: 24px;
            display: block;
            letter-spacing: -2px;
        }

        .step-item h3 {
            font-size: 22px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 12px;
        }

        .step-item p {
            font-size: 15px;
            color: #6b7280;
            line-height: 1.6;
            margin: 0;
        }

        /* Stats Bar */
        .stats-bar {
            background: white;
            padding: 0 60px;
        }

        .stats-container {
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 64px 0;
            border-top: 1px solid #e5e7eb;
            border-bottom: 1px solid #e5e7eb;
        }

        .stat-item {
            flex: 1;
            text-align: center;
        }

        .stat-number {
            font-size: 40px;
            font-weight: 800;
            color: #1a1a1a;
            letter-spacing: -1px;
            display: block;
            line-height: 1;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 14px;
            color: #9ca3af;
            font-weight: 500;
        }

        .stat-divider {
            width: 1px;
            height: 48px;
            background: #e5e7eb;
            flex-shrink: 0;
        }

        /* Testimonials Carousel */
        .testimonials-section {
            padding: 120px 0;
            background: white;
            overflow: hidden;
        }

        .testimonials-header {
            text-align: center;
            padding: 0 60px;
            margin-bottom: 64px;
        }

        .carousel-wrapper {
            position: relative;
        }

        .carousel-wrapper::before,
        .carousel-wrapper::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 200px;
            z-index: 2;
            pointer-events: none;
        }

        .carousel-wrapper::before {
            left: 0;
            background: linear-gradient(to right, white 0%, transparent 100%);
        }

        .carousel-wrapper::after {
            right: 0;
            background: linear-gradient(to left, white 0%, transparent 100%);
        }

        .carousel-track {
            display: flex;
            gap: 20px;
            animation: carousel-scroll 40s linear infinite;
            width: max-content;
            padding: 4px 0;
            will-change: transform;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .carousel-track:hover {
            animation-play-state: paused;
        }

        @keyframes carousel-scroll {
            0% {
                transform: translate3d(0, 0, 0);
            }
            100% {
                transform: translate3d(-50%, 0, 0);
            }
        }

        .testimonial-card {
            background: #f9fafb;
            border-radius: 20px;
            padding: 36px;
            border: none;
            display: flex;
            flex-direction: column;
            width: 400px;
            flex-shrink: 0;
            transition: background 0.3s ease;
            position: relative;
        }

        .testimonial-card:hover {
            background: #f3f4f6;
        }

        .testimonial-quote {
            font-size: 64px;
            font-weight: 700;
            color: #ff6154;
            line-height: 1;
            height: 40px;
            display: block;
            margin-bottom: 8px;
            opacity: 0.4;
        }

        .testimonial-text {
            font-size: 17px;
            line-height: 1.7;
            color: #1a1a1a;
            flex: 1;
            font-weight: 400;
            margin: 0;
        }

        /* CTA Section */
        .cta-section {
            background: #1a1a1a;
            padding: 120px 60px;
            text-align: center;
            color: white;
        }

        .cta-container {
            max-width: 600px;
            margin: 0 auto;
        }

        .cta-section h2 {
            font-size: 44px;
            font-weight: 800;
            margin-bottom: 16px;
            letter-spacing: -0.5px;
            line-height: 1.15;
        }

        .cta-section p {
            font-size: 17px;
            margin-bottom: 40px;
            color: #9ca3af;
        }

        .cta-buttons {
            display: flex;
            gap: 16px;
            justify-content: center;
            align-items: center;
        }

        .btn-white {
            background: white;
            color: #1a1a1a;
            padding: 14px 36px;
            border-radius: 10px;
            border: none;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
        }

        .btn-white:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
        }

        .btn-ghost {
            color: #9ca3af;
            padding: 14px 36px;
            border-radius: 10px;
            border: 1px solid #333;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            display: inline-block;
            background: transparent;
        }

        .btn-ghost:hover {
            border-color: #555;
            color: white;
        }

        /* Footer */
        footer {
            background: #1a1a1a;
            padding: 80px 45px 40px;
            color: white;
        }

        .footer-content {
            max-width: 1800px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 60px;
            margin-bottom: 60px;
        }

        .footer-column h4 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 24px;
            color: white;
        }

        .footer-column p {
            font-size: 13px;
            color: #999;
            line-height: 1.4;
            margin-bottom: 24px;
        }

        .footer-column a {
            display: block;
            color: #999;
            text-decoration: none;
            font-size: 14px;
            margin-bottom: 12px;
            transition: color 0.2s;
        }

        .footer-column a:hover {
            color: #ff6154;
        }

        .social-links {
            display: flex;
            gap: 16px;
            margin-top: 24px;
        }

        .social-link {
            width: 40px;
            height: 40px;
            background: none;
            border-radius: 50%;
            display: flex;
            align-content: center;
            text-align: center;
            justify-content: center;
            color: white;
            transition: all 0.2s;
        }

        .social-link:hover {
            background: none;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 40px;
            border-top: 1px solid #2a2a2a;
            color: #666;
            font-size: 14px;
        }

        @media (max-width: 1200px) {
            .dropdown:hover .dropdown-menu,
            .dropdown.active .dropdown-menu {
                grid-template-columns: repeat(3, 1fr);
            }

            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 1024px) {
            .footer-content {
                grid-template-columns: 1fr 1fr;
            }

            .dropdown-menu {
                padding: 30px 40px;
                left: 40px;
                right: 40px;
            }

            .dropdown:hover .dropdown-menu,
            .dropdown.active .dropdown-menu {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .btn-primary-h {
                display: none;
            }

            .bento-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .bento-large {
                grid-column: span 2;
                grid-row: span 1;
                min-height: auto;
            }

            .bento-wide {
                grid-column: span 2;
            }

            .bento-item {
                min-height: 160px;
            }

            .carousel-wrapper::before,
            .carousel-wrapper::after {
                width: 100px;
            }

            .testimonial-card {
                width: 340px;
            }

            .steps-grid {
                grid-template-columns: 1fr;
                border-radius: 16px;
            }
        }

        @media (max-width: 768px) {
            header {
                padding: 16px 20px;
            }

            nav {
                gap: 16px;
            }

            .nav-link {
                font-size: 14px;
            }

            .hero h1 {
                font-size: 36px;
            }

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

            .section-title {
                font-size: 32px;
            }

            .tools-section {
                padding: 0 20px;
            }

            .tools-grid {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .features-section {
                padding: 80px 20px;
            }

            .bento-grid {
                grid-template-columns: 1fr;
                gap: 8px;
                margin-top: 40px;
            }

            .bento-large,
            .bento-wide {
                grid-column: 1;
            }

            .bento-item {
                min-height: auto;
                padding: 28px 24px;
            }

            .bento-large {
                padding: 32px 28px;
                min-height: auto;
            }

            .bento-large h3 {
                font-size: 22px;
            }

            .dropdown-menu {
                left: 20px;
                right: 20px;
                padding: 30px 20px;
            }

            .dropdown:hover .dropdown-menu,
            .dropdown.active .dropdown-menu {
                grid-template-columns: 1fr;
            }
            
            .btn-primary-h {
                display: none;
            }

            .section-title-m {
                font-size: 32px;
            }

            .how-it-works {
                padding: 80px 20px;
            }

            .steps-grid {
                grid-template-columns: 1fr;
                margin-top: 40px;
                border-radius: 16px;
            }

            .step-item {
                padding: 32px 24px;
            }

            .step-num {
                font-size: 36px;
            }

            .step-item h3 {
                font-size: 18px;
            }

            .stats-bar {
                padding: 0 20px;
            }

            .stats-container {
                flex-wrap: wrap;
                padding: 40px 0;
            }

            .stat-item {
                flex: 0 0 calc(50% - 1px);
            }

            .stat-divider {
                display: none;
            }

            .stat-number {
                font-size: 32px;
            }

            .stat-label {
                font-size: 12px;
            }

            .testimonials-section {
                padding: 80px 0;
            }

            .testimonials-header {
                padding: 0 20px;
                margin-bottom: 40px;
            }

            .carousel-wrapper::before,
            .carousel-wrapper::after {
                width: 40px;
            }

            .testimonial-card {
                width: 300px;
                padding: 28px;
            }

            .testimonial-text {
                font-size: 15px;
            }

            .cta-section {
                padding: 80px 20px;
            }

            .cta-section h2 {
                font-size: 30px;
            }

            .cta-section p {
                font-size: 15px;
            }

            .cta-buttons {
                flex-direction: column;
                gap: 12px;
            }

            .btn-white,
            .btn-ghost {
                width: 100%;
                text-align: center;
                box-sizing: border-box;
            }
        }
/* User Menu Styles (for authenticated users) - Updated to match dashboard */
.user-menu {
    position: relative;
    display: inline-block;
}

/* User Profile Styles - Matching Dashboard Exactly */
.user-profile {
    position: relative;
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid white;
    color: white;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-avatar span {
    color: white;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.user-avatar {
    position: relative;
}

/* User dropdown styling - matching homepage */
.user-dropdown,
.user-dropdown *,
.user-dropdown *::before,
.user-dropdown *::after {
    box-sizing: border-box;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    padding: 8px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s;
}

.user-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.user-info {
    padding: 22px 26px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6154 0%, #ff8a7a 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.user-email {
    font-size: 13px;
    color: #737373;
}

/* Pro user avatar border */
.user-avatar.pro-user {
    border-color: #ff6154;
}

body.homepage .user-avatar.pro-user {
    border-color: #ff6154;
}

/* Dropdown divider - hide first, show before logout */
.dropdown-divider {
    display: none;
}

.dropdown-divider + .dropdown-item.logout {
    margin-top: 0;
}

.dropdown-divider:has(+ .dropdown-item.logout),
.dropdown-divider:has(+ .dropdown-item[href*="logout"]),
.dropdown-divider:has(+ #logoutBtnDropdown) {
    display: block;
    height: 1px;
    background: #f0f0f0;
    margin: 8px 26px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 26px;
    color: #1a1a1a;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 8px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item svg {
    width: 20px;
    height: 20px;
    color: #737373;
    flex-shrink: 0;
}

.dropdown-item span {
    font-size: 14px;
    font-weight: 500;
}

.user-profile {
    position: relative;
}

/* Logout button styling - normal state */
.dropdown-item.logout-btn,
.dropdown-item[href*="logout"],
.dropdown-item.logout {
    color: #e5554a;
}

.dropdown-item.logout-btn svg,
.dropdown-item[href*="logout"] svg,
.dropdown-item.logout svg {
    color: #e5554a;
}

.dropdown-item.logout-btn span,
.dropdown-item[href*="logout"] span,
.dropdown-item.logout span {
    color: #e5554a;
}

/* Logout button styling - hover state */
.dropdown-item.logout-btn:hover,
.dropdown-item[href*="logout"]:hover,
.dropdown-item.logout:hover {
    background: #fff4f3;
}

/* Hide auth buttons when user is logged in */
.user-profile ~ .btn-secondary-h,
.user-profile ~ .btn-primary-h {
    display: none;
}

/* Hide auth buttons when user is logged in */
.user-menu ~ .btn-secondary-h,
.user-menu ~ .btn-primary-h {
    display: none;
}

/* Homepage Pill-Shaped Profile Button */
body.homepage .user-profile {
    position: relative;
}

body.homepage .user-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 16px 2px 2px;
    background: white;
    border: 1.5px solid #e5e5e5;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.homepage .user-profile-pill:hover {
    border-color: #d4d4d4;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

body.homepage .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid white;
    position: relative;
}

body.homepage .user-avatar span {
    color: white;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.homepage .user-avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

body.homepage .user-avatar.logged-out {
    width: 32px;
    height: 32px;
}

body.homepage .user-greeting {
    font-size: 14px;
    font-weight: 500;
    color: #171717;
    white-space: nowrap;
}

/* User profile should be visible immediately when added */
.user-profile {
    opacity: 1;
    visibility: visible;
}

/* Auth elements - rendered dynamically by instant-auth-render.js */
/* No hiding/showing needed - only correct elements are created */

/* Auth buttons styling - DISABLED - Always show auth buttons */
/* body:not(.homepage) .auth-buttons {
    display: none !important;
}

body:not(.homepage) .btn-secondary-h,
body:not(.homepage) .btn-primary-h {
    display: none !important;
} */

/* Homepage keeps auth buttons visible - targets the div with class homepage */
.homepage .auth-buttons {
    display: flex !important;
    gap: 12px;
    align-items: center;
}

.homepage .btn-secondary-h,
.homepage .btn-primary-h {
    display: inline-block !important;
}

/* User profile styling - ALWAYS shown (logged in AND logged out) */
.user-profile {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Logged-out profile circle - grey user icon */
.user-avatar.logged-out {
    width: 34px;
    height: 34px;
    background: #f5f5f5;
    border-color: #f5f5f5;
}

.user-avatar.logged-out i {
    color: #b5b5b5;
    font-size: 16px;
}

/* Logged-out dropdown - shows login/signup */
.user-dropdown.logged-out {
    min-width: 210px;
    padding: 22px;
    text-align: center;
}

.auth-dropdown-header {
    display: none;
}

.auth-dropdown-group {
    display: none;
}

.auth-dropdown-group.signup-group {
    display: block;
    margin-bottom: 12px;
}

.auth-dropdown-group.login-group {
    display: block;
}

.auth-dropdown-label {
    display: none;
}

.auth-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 16px;
    color: #404040;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-radius: 6px;
}

.auth-dropdown-item span {
    transition: opacity 0.2s ease;
}

.auth-dropdown-item svg.arrow-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-dropdown-item:hover span {
    opacity: 0;
}

.auth-dropdown-item:hover svg.arrow-icon {
    opacity: 1;
}

.auth-dropdown-item svg:not(.arrow-icon) {
    display: none;
}

/* Signup - primary CTA button */
.auth-dropdown-item.signup {
    color: #fff;
    background: #1f2937;
    border: none;
}

.auth-dropdown-item.signup:hover {
    background: #1f2937;
    color: #fff;
}

/* Login - inline text link */
.auth-dropdown-item.login {
    display: inline;
    padding: 0;
    font-size: 13px;
    color: #ff6154;
    font-weight: 500;
}

.auth-dropdown-item.login:hover {
    text-decoration: underline;
    background: none;
}

.auth-dropdown-item.login span {
    transition: none;
}

.auth-dropdown-item.login:hover span {
    opacity: 1;
}

.auth-dropdown-item.login svg.arrow-icon {
    display: none;
}

.login-group .auth-dropdown-label {
    display: inline;
    font-size: 13px;
    color: #737373;
    padding: 0;
    margin: 0;
}



/* Auth Loading State - Clean approach */
/* No predefined spacing - nav hidden until ready */

/* Keep dropdown and nav links visible always */
header nav .nav-link,
header nav .dropdown {
    opacity: 1 !important;
}
