@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    --primary: #4f46e5;
    /* Indigo 600 */
    --primary-dark: #4338ca;
    --secondary: #0f172a;
    /* Slate 900 */
    --accent: #8b5cf6;
    /* Violet 500 */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --sidebar-width: 260px;
    --gradient-hero: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --gradient-text: linear-gradient(135deg, #4f46e5 0%, #a855f7 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite;
    opacity: 0.6;
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: rgba(79, 70, 229, 0.15);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.15);
    animation-delay: -5s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 1.3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
    display: block;
}

.nav-links>li>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links>li>a:hover {
    color: var(--primary);
}

.nav-links>li>a:hover::after {
    width: 100%;
}

/* Active State */
.nav-links>li.active>a,
.nav-links>li>a.active {
    color: var(--primary);
}

.nav-links>li.active>a::after,
.nav-links>li>a.active::after {
    width: 100%;
}

/* Special Highlight Service Button */
.nav-highlight-btn {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    color: var(--primary) !important;
    padding: 6px 18px !important;
    /* Adjusted padding for alignment */
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-weight: 700 !important;
    margin: 0;
    line-height: normal !important;
}

.nav-highlight-btn::after {
    display: none !important;
}

.nav-highlight-btn:hover {
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
    transform: translateY(-2px);
    background: white;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown>a {
    padding-bottom: 15px;
    margin-bottom: -15px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    margin-top: 5px;
    animation: dropIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(79, 70, 229, 0.1);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Hero Section (Home) */
.hero {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-img-box {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-img-box:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Section (Home) */
.features-section {
    padding: 6rem 5%;
    background: var(--bg-alt);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border-radius: 16px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* --- PAGE BUILDER STYLES (Modern Structured Pages) --- */
.page-container {
    padding: 10rem 10% 4rem;
    min-height: 80vh;
    max-width: 1200px;
    margin: 0 auto;
}

.modern-hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.hero-txt-col {
    flex: 1;
    min-width: 300px;
}

.hero-img-col {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.gradient-headline {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--secondary);
    letter-spacing: -1.5px;
}

.gradient-headline span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    font-size: 1.35rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.stat-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.stat-badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 24px 12px 12px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    transition: transform 0.2s;
}

.stat-badge-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.icon-success {
    background: #dcfce7;
    color: #166534;
}

.icon-primary {
    background: #e0e7ff;
    color: #4338ca;
}

.stat-text strong {
    display: block;
    color: var(--secondary);
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 700;
}

.stat-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.floating-img-wrapper {
    position: relative;
    padding: 0;
    /* Removed padding to align better */
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob-bg {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 70%);
    z-index: 0;
    border-radius: 50%;
    filter: blur(40px);
    animation: none;
    /* Clean look */
}

.main-page-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    /* NO ROTATION for clean design */
    transition: transform 0.5s;
    border: none;
}

.main-page-img:hover {
    transform: scale(1.01);
}

.float-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 3;
    animation: float 6s infinite ease-in-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-features-grid {
    display: grid;
    gap: 2rem;
    /* Default Mobile */
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .modern-features-grid {
        /* Force 3 columns on Desktop */
        grid-template-columns: repeat(3, 1fr);
    }
}

.modern-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.3);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    color: var(--primary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.modern-card:hover .modern-icon {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

/* Animations */
@keyframes float {
    0% {
        transform: translate(0px, 0px);
    }

    50% {
        transform: translate(0px, -15px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Visibility Utilities */
/* Visibility Utilities */
.mobile-only-auth,
.mobile-only-profile,
.mobile-user-link {
    display: none;
}

.mobile-only-close {
    display: none;
}

/* Mobile Profile Card Style */
.mobile-user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mobile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #eef2ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    overflow: hidden;
}

.mobile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
}

.mobile-user-info small {
    color: var(--text-muted);
}

/* Admin Global Styles - Redesigned Sidebar */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    padding: 0;
    z-index: 100;
    left: 0;
    top: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-sidebar .brand {
    color: var(--secondary);
    font-size: 1.4rem;
    font-weight: 800;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    border-bottom: 1px solid var(--border);
}

.admin-sidebar .brand ion-icon {
    color: var(--primary);
    font-size: 1.8rem;
}

.admin-menu {
    list-style: none;
    padding: 1.5rem 1rem;
    margin: 0;
    flex: 1;
}

.admin-menu li {
    margin-bottom: 0.25rem;
}

.admin-menu a {
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.admin-menu a:hover {
    background: #f8fafc;
    color: var(--primary);
    transform: translateX(4px);
}

.admin-menu a.active {
    background: linear-gradient(90deg, #eff6ff 0%, white 100%);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    border-radius: 4px 12px 12px 4px;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2.5rem;
    background: #f8fafc;
    min-height: 100vh;
}

/* Footer Global */
footer {
    background: white;
    border-top: 1px solid var(--border);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* =========================================
   RESPONSIVE DESIGN & MOBILE MENU (Premium)
   ========================================= */

/* Hamburger Button (Default Hidden) */
.mobile-menu-btn {
    display: none;
    font-size: 2.2rem;
    color: var(--secondary);
    cursor: pointer;
    z-index: 1005;
    background: transparent;
    border: none;
    padding: 5px;
    transition: transform 0.2s;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

/* Tablet & Mobile Breakpoint (Switch to Drawer earlier for better UX) */
@media screen and (max-width: 1024px) {

    /* Navbar Config */
    .navbar {
        padding: 1rem 5%;
        justify-content: space-between;
    }

    /* Show Hamburger */
    .mobile-menu-btn {
        display: block;
    }

    .mobile-only-close {
        display: flex !important;
        justify-content: flex-end;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .mobile-only-close button {
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--text-muted);
        cursor: pointer;
    }

    /* Hide Desktop-Specific Elements */
    .header-actions .desktop-login-btn,
    .header-actions .user-dropdown {
        display: none !important;
    }

    /* PREMIUM MOBILE DRAWER */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1005;
        gap: 0;
        overflow-y: auto;
        display: flex;
    }

    .nav-links.active {
        right: 0;
    }

    /* Links inside Drawer */
    .nav-links>li {
        width: 100%;
        opacity: 1;
        /* Reset logic for simplicity to ensure visible */
        transform: none;
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--bg-alt);
        font-size: 1.05rem;
        color: var(--secondary);
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .nav-links a:hover {
        background: #f8fafc;
        color: var(--primary);
        padding-left: 2rem;
    }

    /* Mobile Profile Section */
    .mobile-only-auth,
    .mobile-only-profile,
    .mobile-user-link {
        display: block;
    }

    .mobile-only-profile {
        padding: 1.5rem;
        background: linear-gradient(to bottom, #f8fafc, white);
        border-bottom: 1px solid var(--border);
    }

    .mobile-user-card {
        background: white;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
        padding: 1rem;
        border-radius: 16px;
        margin: 0;
        display: flex;
        /* Ensure flex is active */
        align-items: center;
        gap: 15px;
    }

    /* Backdrop Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        z-index: 1004;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
        backdrop-filter: blur(4px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Dropdown Logic */
    .dropdown>a {
        justify-content: space-between;
    }

    .dropdown>a::after {
        display: none;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        border-radius: 0;
        padding: 0;
        display: none;
        opacity: 1;
        transform: none;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding-left: 2.5rem;
        font-size: 0.95rem;
        color: var(--text-muted);
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

}

/* End of max-width: 1024px Media Query */

/* Extra Small Devices */
@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-content div[style*="flex"] {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card,
    .modern-card {
        padding: 1.5rem;
    }

    /* Mobile Profile Fixes */
    .user-name,
    .user-btn ion-icon {
        display: none;
    }

    .user-btn {
        padding: 0;
        border: none;
        background: none;
        box-shadow: none;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 1rem;
    }
}

/* === USER DASHBOARD (PROFILE) RESPONSIVE (< 900px) === */
body {
    /* Allow stacking on dashboard pages explicitly if body has flex */
    /* Note: This might conflict with main site body?? 
           Main site body is usually block. Profile pages are flex. 
           We target body only if it has .profile-sidebar as direct child? No CSS parent selector.
           But main site body doesn't have flex-direction row usually.
           Let's target .profile-sidebar parent logic via body override for now 
           OR simply enforce stacking on sidebar/main.
        */
}

/* Force Dashboard Body Stack */
/* We can't safely target body generally. 
       Let's assume the user pages have a specific class or we target elements. */

.profile-sidebar {
    width: 100% !important;
    height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    position: relative !important;
    min-height: auto !important;
}

/* Sidebar Header Compact */
.sidebar-header {
    justify-content: center;
    padding: 1rem !important;
    font-size: 1.2rem !important;
}

/* Mini Profile Compact */
.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left !important;
    padding: 1rem !important;
    justify-content: center;
}

.mini-avatar-placeholder,
.mini-avatar {
    margin: 0 !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 1.2rem !important;
}

.user-mini-profile>div {
    text-align: left;
}

/* Horizontally Scrollable Menu */
.sidebar-menu {
    display: flex;
    overflow-x: auto;
    padding: 0.5rem !important;
    gap: 0.5rem;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    background: white;
    margin-bottom: 0 !important;
}

/* Hide scrollbar */
.sidebar-menu::-webkit-scrollbar {
    height: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sidebar-menu li {
    margin-bottom: 0 !important;
}

/* Admin & Utility Mobile Tweaks */
@media screen and (max-width: 1024px) {
    .sidebar-menu a {
        padding: 0.5rem 1rem !important;
        border: 1px solid var(--border);
        border-radius: 50px !important;
        font-size: 0.85rem !important;
        background: white;
        white-space: nowrap;
    }

    .sidebar-menu a.active {
        background: var(--primary) !important;
        color: white !important;
        border-color: var(--primary) !important;
    }

    /* Main Content */
    .profile-main {
        padding: 1.5rem !important;
        overflow: visible !important;
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Info Grid Stack */
    .info-grid {
        grid-template-columns: 1fr !important;
    }

    /* Header Bar */
    .header-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    /* === LOGIN / REGISTER BOX === */
    .login-box {
        padding: 2rem !important;
        margin: 1rem;
        width: 100% !important;
        max-width: 90% !important;
    }

    /* === TABLES / TICKETS === */
    .ticket-item {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem !important;
    }

    .ticket-list {
        gap: 1rem !important;
    }
}


/* =========================================
   ANIMATED BREADCRUMB ROADMAP (GLOBAL)
   ========================================= */
.roadmap-container {
    background: linear-gradient(to right, #f8fafc, #f1f5f9);
    padding: 3rem 5%;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
}

.roadmap-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Moving Background Particles */
.roadmap-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#4f46e5 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    animation: slideBg 20s linear infinite;
    z-index: 1;
}

@keyframes slideBg {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.breadcrumb-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    background: #eef2ff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.1);
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* Pulsing Dot for Active */
.pulsing-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
}

.pulsing-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.5;
    animation: pulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}


/* Default Hidden for Desktop */
.mobile-only-close {
    display: none;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}


/* --- Logo & Brand Animation Styles (Premium & Alive) --- */

/* 1. Continuous Gradient Flow for Text */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 2. Continuous "Alive" Pulse for Icon */
@keyframes iconPulseAlive {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(79, 70, 229, 0.3));
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(79, 70, 229, 0.3));
    }
}

/* 3. Hover Interaction: Spin & Pop */
@keyframes iconSpinPop {
    0% {
        transform: rotate(0deg) scale(1.1);
    }

    50% {
        transform: rotate(180deg) scale(1.3);
    }

    100% {
        transform: rotate(360deg) scale(1.1);
    }
}

/* Brand Container */
.logo,
.brand {
    font-weight: 900 !important;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-decoration: none;

    /* Gradient Text Setup */
    background: linear-gradient(45deg,
            #4f46e5,
            /* Indigo */
            #8b5cf6,
            /* Violet */
            #ec4899,
            /* Pink */
            #3b82f6,
            /* Blue */
            #4f46e5
            /* Loop back */
        );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;

    /* Continuous Animation */
    animation: gradientFlow 5s ease infinite;
    cursor: pointer;
}

/* Icon Styles - Force Visibility & Animation */
.logo ion-icon,
.brand ion-icon {
    font-size: 2rem;
    /* Slightly larger */
    min-width: 2rem;

    /* Force Solid Color Override for Visibility against Transparent Parent */
    color: #4f46e5 !important;
    -webkit-text-fill-color: #4f46e5 !important;
    background: none !important;
    -webkit-background-clip: border-box !important;

    /* Alive Animation */
    animation: iconPulseAlive 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Hover Effects */
.logo:hover ion-icon,
.brand:hover ion-icon {
    /* Override Pulse with Spin */
    animation: iconSpinPop 0.8s ease-in-out forwards;
    color: #8b5cf6 !important;
    /* Change color on hover */
    -webkit-text-fill-color: #8b5cf6 !important;
}

.logo:hover,
.brand:hover {
    filter: brightness(1.2);
}

/* Admin Sidebar Specific Alignment */
.admin-sidebar .brand {
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
    font-size: 1.6rem;
}

/ *   - - -   H e r o   S l i d e r   S t y l e s   - - -   * /         . h e r o - s l i d e r - w r a p p e r    {
                 p o s i t i o n :    r e l a t i v e ;
                 w i d t h :    1 0 0 % ;
                 m i n - h e i g h t :    1 0 0 v h ;
                 / *   M a t c h   h e r o   h e i g h t   * /             o v e r f l o w :    h i d d e n ;
                 / *   E n s u r e   i t   h a n d l e s   t h e   n a v b a r   p a d d i n g   i f   n e e d e d ,
       h e r o   u s u a l l y   h a s   p a d d i n g - t o p   * /             p a d d i n g - t o p :    0 ;
         
}

         . h e r o - s l i d e r - t r a c k    {
                 d i s p l a y :    f l e x ;
                 w i d t h :    1 0 0 % ;
                 h e i g h t :    1 0 0 % ;
                 t r a n s i t i o n :    t r a n s f o r m   0 . 6 s   c u b i c - b e z i e r ( 0 . 6 5 ,    0 ,    0 . 3 5 ,    1 ) ;
                 / *   S m o o t h   ' f l o w i n g '    e a s e   * /     
}

         / *   I n d i v i d u a l   S l i d e   * /     . h e r o - s l i d e    {
                 m i n - w i d t h :    1 0 0 % ;
                 w i d t h :    1 0 0 % ;
                 / *   F l e x   a l i g n m e n t   h a n d l e d   b y   h e r o - c o n t a i n e r   i n s i d e ,
       b u t   s l i d e   n e e d s   f l e x   s e t t i n g s   t o   c e n t e r   c o n t e n t   i n s i d e   * /             d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 p o s i t i o n :    r e l a t i v e ;
                 / *   M a i n t a i n   p a d d i n g   f r o m   o r i g i n a l   h e r o   f o r   n a v b a r   c l e a r a n c e   * /             p a d d i n g - t o p :    8 0 p x ;
         
}

         / *   E n s u r e   h e r o - c o n t a i n e r   i n s i d e   s l i d e   t a k e s   f u l l   w i d t h / h e i g h t   p r o p e r l y   * /     . h e r o - s l i d e   . h e r o - c o n t a i n e r    {
                 h e i g h t :    1 0 0 % ;
                 m i n - h e i g h t :    c a l c ( 1 0 0 v h   -   8 0 p x ) ;
                 / *   A d j u s t   f o r   n a v   * /     
}

         / *   C o n t r o l s   ( A r r o w s )   * /     . s l i d e r - b t n    {
                 p o s i t i o n :    a b s o l u t e ;
                 t o p :    5 0 % ;
                 t r a n s f o r m :    t r a n s l a t e Y ( - 5 0 % ) ;
                 b a c k g r o u n d :    r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 1 ) ;
                 b a c k d r o p - f i l t e r :    b l u r ( 5 p x ) ;
                 b o r d e r :    1 p x   s o l i d   r g b a ( 2 5 5 ,    2 5 5 ,    2 5 5 ,    0 . 2 ) ;
                 c o l o r :    v a r ( - - s e c o n d a r y ) ;
                 w i d t h :    5 0 p x ;
                 / *   B i g g e r   t o u c h   a r e a   * /             h e i g h t :    5 0 p x ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 d i s p l a y :    f l e x ;
                 a l i g n - i t e m s :    c e n t e r ;
                 j u s t i f y - c o n t e n t :    c e n t e r ;
                 f o n t - s i z e :    1 . 5 r e m ;
                 c u r s o r :    p o i n t e r ;
                 z - i n d e x :    1 0 ;
                 t r a n s i t i o n :    a l l   0 . 3 s ;
                 b o x - s h a d o w :    0   4 p x   1 2 p x   r g b a ( 0 ,    0 ,    0 ,    0 . 0 5 ) ;
         
}

         . s l i d e r - b t n : h o v e r    {
                 b a c k g r o u n d :    w h i t e ;
                 c o l o r :    v a r ( - - p r i m a r y ) ;
                 b o x - s h a d o w :    0   8 p x   1 6 p x   r g b a ( 7 9 ,    7 0 ,    2 2 9 ,    0 . 2 ) ;
                 t r a n s f o r m :    t r a n s l a t e Y ( - 5 0 % )   s c a l e ( 1 . 1 ) ;
         
}

         . s l i d e r - b t n . p r e v    {
                 l e f t :    2 % ;
         
}

         . s l i d e r - b t n . n e x t    {
                 r i g h t :    2 % ;
         
}

         / *   P a g i n a t i o n   D o t s   * /     . s l i d e r - d o t s    {
                 p o s i t i o n :    a b s o l u t e ;
                 b o t t o m :    3 0 p x ;
                 l e f t :    5 0 % ;
                 t r a n s f o r m :    t r a n s l a t e X ( - 5 0 % ) ;
                 d i s p l a y :    f l e x ;
                 g a p :    1 2 p x ;
                 z - i n d e x :    1 0 ;
         
}

         . d o t    {
                 w i d t h :    1 2 p x ;
                 h e i g h t :    1 2 p x ;
                 b a c k g r o u n d :    r g b a ( 0 ,    0 ,    0 ,    0 . 2 ) ;
                 b o r d e r - r a d i u s :    5 0 % ;
                 c u r s o r :    p o i n t e r ;
                 t r a n s i t i o n :    a l l   0 . 3 s ;
                 b o r d e r :    2 p x   s o l i d   t r a n s p a r e n t ;
         
}

         . d o t . a c t i v e    {
                 b a c k g r o u n d :    v a r ( - - p r i m a r y ) ;
                 t r a n s f o r m :    s c a l e ( 1 . 2 ) ;
                 b o x - s h a d o w :    0   0   1 0 p x   r g b a ( 7 9 ,    7 0 ,    2 2 9 ,    0 . 4 ) ;
         
}

         . d o t : h o v e r    {
                 b a c k g r o u n d :    r g b a ( 7 9 ,    7 0 ,    2 2 9 ,    0 . 5 ) ;
         
}

         / *   M o b i l e   T w e a k s   * /     @ m e d i a   ( m a x - w i d t h :   7 6 8 p x )    {
                 . s l i d e r - b t n    {
                             w i d t h :    4 0 p x ;
                             h e i g h t :    4 0 p x ;
                             f o n t - s i z e :    1 . 2 r e m ;
                     
    }

                     / *   P u s h   b u t t o n s   s l i g h t l y   o u t   o f   t h e   c o n t e n t   w a y   i f   p o s s i b l e ,
       o r   o v e r l a y   * /             . s l i d e r - b t n . p r e v    {
                             l e f t :    1 0 p x ;
                     
    }

                     . s l i d e r - b t n . n e x t    {
                             r i g h t :    1 0 p x ;
                     
    }

         
}

     