/* ==================================
   Base & Resets - Hero5 (App Dashboard)
   ================================== */
:root {
    --app-bg: #f4f7fe;
    --app-surface: #ffffff;
    --app-text: #2b3674;
    --app-text-muted: #a3aed1;
    --app-primary: #4318FF;
    --app-primary-hover: #3311db;
    --app-border: #e9edf7;
    --radius-soft: 20px;
    --radius-hard: 12px;
    --shadow-soft: 0 18px 40px rgba(112, 144, 176, 0.12);
    --shadow-float: 0 20px 50px rgba(67, 24, 255, 0.25);

    --c-blue: #3965FF;
    --bg-blue: #e8edff;
    --c-green: #05CD99;
    --bg-green: #e6fcf5;
    --c-orange: #FFB547;
    --bg-orange: #fff6e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.app-theme {
    font-family: 'Poppins', sans-serif;
    background-color: var(--app-bg);
    color: var(--app-text);
    padding-top: 80px;
    padding-bottom: 100px;
}

.app-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 25px;
}

.app-section {
    padding: 40px 0;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pb-large {
    padding-bottom: 150px;
}

/* Colors */
.text-blue {
    color: var(--c-blue);
}

.bg-blue-light {
    background: var(--bg-blue);
}

.text-green {
    color: var(--c-green);
}

.bg-green-light {
    background: var(--bg-green);
}

.text-orange {
    color: var(--c-orange);
}

.bg-orange-light {
    background: var(--bg-orange);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--app-text);
    line-height: 1.2;
}

p {
    color: var(--app-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-title-wrap {
    margin-bottom: 30px;
}

.section-title-wrap h3 {
    font-size: 1.5rem;
}

/* Buttons */
.btn-app-primary {
    background: var(--app-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-hard);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-app-primary:hover {
    background: var(--app-primary-hover);
    box-shadow: var(--shadow-float);
    transform: translateY(-2px);
}

.full-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
    border-radius: 16px;
}

.btn-app-secondary {
    background: var(--app-surface);
    color: var(--app-primary);
    padding: 12px 24px;
    border-radius: var(--radius-hard);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-app-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}


/* ==================================
   Top App Bar
   ================================== */
.top-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--app-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.top-app-bar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-box {
    width: 45px;
    height: 45px;
    background: var(--app-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.app-logo h1 {
    font-size: 1.4rem;
}

.app-logo span {
    font-size: 0.75rem;
    color: var(--app-text-muted);
    font-weight: 500;
    display: block;
}

.app-desktop-nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.app-desktop-nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--app-text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.app-desktop-nav a:hover,
.app-desktop-nav a.active {
    color: var(--app-primary);
}


/* ==================================
   Welcome Banner
   ================================== */
.greeting-card {
    background: var(--app-surface);
    border-radius: var(--radius-soft);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.greeting-card::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(67, 24, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.badge-soft {
    background: var(--bg-blue);
    color: var(--c-blue);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.greeting-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.greeting-text p {
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.greeting-image img {
    width: 100%;
    transform: scale(1.1);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}


/* ==================================
   Dashboard Cards (Overview)
   ================================== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: -20px;
}

.dash-card {
    background: var(--app-surface);
    border-radius: var(--radius-soft);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
}

.dash-card:hover {
    transform: translateY(-5px);
}

.dash-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.dash-data h4 {
    font-size: 1.4rem;
    margin-bottom: 3px;
}

.dash-data p {
    font-size: 0.85rem;
    font-weight: 500;
}


/* ==================================
   App Grid (Catalog)
   ================================== */
.app-filters {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-only-filter {
    display: none;
}

.desktop-filters {
    display: flex;
    background: var(--app-surface);
    padding: 5px;
    border-radius: var(--radius-hard);
    box-shadow: var(--shadow-soft);
}

.app-filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    color: var(--app-text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.app-filter-btn.active {
    background: var(--app-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(67, 24, 255, 0.2);
}

.app-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.app-grid-card {
    background: var(--app-surface);
    border-radius: var(--radius-soft);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    position: relative;
}

.app-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(112, 144, 176, 0.2);
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bike-cc-badge {
    font-weight: 700;
    color: var(--app-text);
    font-size: 0.9rem;
}

.bookmark-btn {
    background: var(--bg-blue);
    color: var(--c-blue);
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.bookmark-btn:hover {
    background: var(--c-blue);
    color: white;
}

.app-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.app-card-img img {
    max-height: 100%;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.1));
    transition: 0.3s;
}

.app-grid-card:hover .app-card-img img {
    transform: scale(1.08);
}

.app-card-data h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.app-card-specs {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--app-text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.app-card-specs i {
    color: var(--app-primary);
    margin-right: 5px;
}

.btn-select-full {
    width: 100%;
    padding: 12px;
    background: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    font-weight: 600;
    color: var(--app-text);
    cursor: pointer;
    transition: 0.3s;
}

.btn-select-full:hover {
    background: var(--app-primary);
    color: white;
    border-color: var(--app-primary);
}


/* ==================================
   Enquiry Form (Floating Input Style)
   ================================== */
.enquiry-card-app {
    background: var(--app-surface);
    border-radius: var(--radius-soft);
    padding: 50px;
    box-shadow: var(--shadow-soft);
    max-width: 600px;
    margin: 0 auto;
}

.enquiry-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-orange);
    color: var(--c-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.enquiry-header h3 {
    font-size: 1.8rem;
}

.app-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-floating {
    position: relative;
}

.input-floating input,
.input-floating select {
    width: 100%;
    padding: 20px 20px 10px;
    background: var(--app-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--app-text);
    transition: 0.3s;
    appearance: none;
    -webkit-appearance: none;
    font-weight: 500;
}

.input-floating input:focus,
.input-floating select:focus {
    border-color: var(--app-primary);
    outline: none;
    background: white;
    box-shadow: var(--shadow-soft);
}

.input-floating label {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--app-text-muted);
    font-size: 1rem;
    transition: 0.3s;
    pointer-events: none;
    font-weight: 500;
}

.input-floating input:focus~label,
.input-floating input:not(:placeholder-shown)~label {
    top: 6px;
    font-size: 0.75rem;
    color: var(--app-primary);
}

.select-style .dir-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--app-text-muted);
    pointer-events: none;
}


/* ==================================
   Bottom App Nav (Mobile)
   ================================== */
.app-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--app-border);
    padding: 15px 25px calc(15px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 30px 30px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--app-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7rem;
    transition: 0.3s;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.nav-item.active {
    color: var(--app-primary);
    transform: translateY(-2px);
}

.highlight-nav {
    position: relative;
    top: -20px;
}

.fab-icon {
    width: 55px;
    height: 55px;
    background: var(--app-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-float);
    margin-bottom: 5px;
    transition: 0.3s;
}

.highlight-nav:hover .fab-icon {
    transform: scale(1.1);
}

.highlight-nav.active .fab-icon {
    background: var(--app-primary-hover);
}

.fab-icon i {
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==================================
   Media Queries
   ================================== */
@media (max-width: 1024px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .app-user-actions,
    .app-desktop-nav {
        display: none;
    }

    .greeting-card {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }

    .greeting-text h2 {
        font-size: 2.2rem;
    }

    .app-nav {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
    }

    .desktop-filters {
        display: none;
    }

    .mobile-only-filter {
        display: block;
        padding: 10px 20px;
        border-radius: 12px;
        border: 1px solid var(--app-border);
        font-family: inherit;
        font-weight: 600;
        background: white;
    }

    .section-title-wrap.flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .mobile-only-filter {
        width: 100%;
    }

    .enquiry-card-app {
        padding: 30px 20px;
    }
}

/* ==================================
   Side Drawer (Mobile)
   ================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--app-text);
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
}

.side-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--app-surface);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 30px 0 0 30px;
}

.side-drawer.open {
    right: 0;
}

.close-drawer {
    align-self: flex-end;
    background: var(--bg-blue);
    color: var(--c-blue);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
    flex-grow: 1;
}

.drawer-links a {
    color: var(--app-text);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    transition: 0.3s;
}

.drawer-links a:hover {
    color: var(--app-primary);
    transform: translateX(10px);
}

.drawer-footer {
    border-top: 1px solid var(--app-border);
    padding-top: 25px;
}

.drawer-footer p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.drawer-socials {
    display: flex;
    gap: 15px;
}

.drawer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--app-bg);
    color: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    text-decoration: none;
}

.drawer-socials a:hover {
    background: var(--app-primary);
    color: white;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 54, 116, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}