:root {
    --primary: #4F46E5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    --secondary: #10B981;
    /* Emerald 500 */
    --dark: #1F2937;
    --light: #F3F4F6;
    --white: #ffffff;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-500: #6B7280;
    --gray-800: #1F2937;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--light);
}

.btn-success {
    background-color: var(--secondary);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header Styles */
.unified-header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
}

.unified-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.unified-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unified-nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.unified-nav-link {
    text-decoration: none;
    color: var(--gray-500);
    font-weight: 500;
    transition: color 0.2s;
}

.unified-nav-link:hover {
    color: var(--primary);
}

.unified-nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Footer Styles */
.unified-footer {
    background: #0f172a;
    /* Slate 900 */
    padding: 80px 0 40px;
    color: #94a3b8;
    /* Slate 400 */
    font-size: 0.95rem;
    margin-top: auto;
    /* Push to bottom if content is short */
}

.unified-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.unified-footer h4 {
    color: #f8fafc;
    /* Slate 50 */
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.unified-footer a {
    display: block;
    margin-bottom: 12px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.unified-footer a:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.unified-footer .unified-logo {
    margin-bottom: 16px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.unified-footer p {
    line-height: 1.7;
    opacity: 0.9;
}

.unified-footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #e2e8f0;
}

/* Mobile Menu */
.mobile-menu-btn,
.mobile-auth-links,
.mobile-header-actions {
    display: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
    margin-left: 1rem;
}

@media (max-width: 900px) {
    .unified-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        transition: background-color 0.2s;
        order: -1;
    }

    /* Mobile Header Layout Reordering */
    /* Desired: [Menu] [Actions] [Logo] */
    .unified-nav {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 0;
        justify-content: space-between;
    }

    .unified-logo {
        font-size: 1.25rem;
        z-index: 1002;
        order: 2;
        /* Right */
    }

    .unified-nav-actions {
        margin: 0 auto;
        /* Center */
        order: 1;
        /* Center */
        gap: 8px;
    }

    .mobile-menu-btn:active {
        background-color: var(--gray-100);
    }

    /* Hide desktop navigation by default */
    .unified-nav-links {
        display: none;
    }

    /* Mobile menu active state */
    .unified-nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        z-index: 1001;
        gap: 0.75rem;
        border-top: 1px solid var(--gray-200);
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .unified-nav-link {
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid transparent;
        width: 100%;
        text-align: center;
        background-color: var(--gray-50);
        margin-bottom: 0.25rem;
    }

    .unified-nav-link:hover,
    .unified-nav-link:active {
        background-color: var(--gray-100);
        border-color: var(--gray-200);
        color: var(--primary);
    }

    .unified-nav-link:last-child {
        margin-bottom: 0;
    }

    /* Mobile auth actions */
    .unified-nav-actions {
        /* margin-left: auto; REMOVED to allow centering via flex order */
        /* Push to right */
        gap: 8px;
    }

    .desktop-auth-actions {
        display: none;
    }

    .mobile-header-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .mobile-auth-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        height: 36px;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .mobile-login-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        border: none;
        background: transparent;
        color: var(--gray-500);
        font-weight: 600;
        height: 36px;
        display: flex;
        align-items: center;
        width: auto;
    }

    .mobile-login-btn:hover {
        color: var(--primary);
        background: var(--gray-50);
    }

    .mobile-auth-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--gray-200);
    }

    /* Adjust header padding */
    .unified-header {
        padding: 12px 0;
    }

    .unified-logo {
        font-size: 1.25rem;
        z-index: 1002;
        /* Ensure logo stays above menu */
    }

    .unified-logo img {
        /* height: 32px !important; Removed to allow dynamic sizing */
        max-width: 100%;
        object-fit: contain;
    }
}

/* Desktop Styles for Auth */
@media (min-width: 769px) {
    .desktop-auth-actions {
        display: flex;
        gap: 16px;
        align-items: center;
    }
}