/* ==========================================================================
   HI REVIEW — ULTIMATE MODERN DESIGN SYSTEM
   "Real Reviews. Better Decisions."
   ========================================================================== */

:root {
    /* Official Hi Review Brand Palette */
    --hr-primary: #0047AB;
    --hr-navy: #000080;
    --hr-sky: #82C8E5;
    --hr-slate: #6D8196;
    --hr-white: #FFFFFF;
    --hr-background: #F5F8FC;
    --hr-surface: #FFFFFF;
    --hr-text: #17243A;
    --hr-muted: #6D8196;
    --hr-border: #DFE7F0;
    --hr-soft-blue: #EAF3FF;
    --hr-success: #16803D;
    --hr-warning: #B7791F;
    --hr-danger: #C62828;

    /* Framework Mapping */
    --primary-color: var(--hr-primary);
    --primary-dark: var(--hr-navy);
    --primary-hover: #00388A;
    --primary-light: var(--hr-soft-blue);
    --primary-glow: rgba(0, 71, 171, 0.2);

    --secondary-color: var(--hr-navy);
    --secondary-hover: #000066;
    --secondary-light: #E0E4F7;

    --accent-color: var(--hr-sky);
    --accent-hover: #60B7E0;
    --accent-light: #F0F8FC;

    --success-color: var(--hr-success);
    --success-light: #E6F4EA;

    --danger-color: var(--hr-danger);
    --danger-light: #FCE8E6;

    --dark-color: var(--hr-navy);
    --dark-surface: #000050;
    --dark-card: #0A1530;

    --text-color: var(--hr-text);
    --text-muted: var(--hr-slate);
    --text-light: #94A3B8;

    --background-color: var(--hr-background);
    --card-bg: var(--hr-surface);
    --card-border: var(--hr-border);

    --card-radius: 20px;
    --card-radius-sm: 14px;
    --btn-radius: 9999px;
    --input-radius: 9999px;

    --shadow-xs: 0 1px 3px rgba(0, 71, 171, 0.05);
    --shadow-sm: 0 4px 14px rgba(0, 71, 171, 0.06);
    --shadow-md: 0 10px 25px -5px rgba(0, 71, 171, 0.08), 0 8px 10px -6px rgba(0, 0, 128, 0.04);
    --shadow-lg: 0 20px 40px -12px rgba(0, 0, 128, 0.12), 0 8px 16px -6px rgba(0, 71, 171, 0.05);
    --shadow-hover: 0 20px 40px -8px rgba(0, 71, 171, 0.16), 0 8px 16px -4px rgba(0, 0, 128, 0.06);

    --header-height: 70px;
    --bottom-nav-height: 68px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Base resets & typography */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    text-indent: -9999px;
}

img[src=""], img:not([src]) {
    opacity: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--dark-color);
}

/* Ensure headings inherit pure white text inside dark banners/cards/containers */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.text-white .h1, .text-white .h2, .text-white .h3, .text-white .h4, .text-white .h5, .text-white .h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-success h1, .bg-success h2, .bg-success h3, .bg-success h4, .bg-success h5, .bg-success h6,
.bg-danger h1, .bg-danger h2, .bg-danger h3, .bg-danger h4, .bg-danger h5, .bg-danger h6,
.demo-hero h1, .demo-hero h2, .demo-hero h3, .demo-hero h4, .demo-hero h5, .demo-hero h6,
h1.text-white, h2.text-white, h3.text-white, h4.text-white, h5.text-white, h6.text-white {
    color: #FFFFFF !important;
}

/* Universal High-Contrast Color System for Dark Backgrounds & Containers */
.bg-dark,
.admin-sidebar,
#adminMobileDrawer,
footer.bg-dark,
.demo-hero,
.auth-brand-side,
[data-bs-theme="dark"],
[class*="bg-dark"] {
    color: #F8FAFC;
}

/* Ensure secondary / muted text inside ANY dark container is never dark grey or black */
.bg-dark .text-muted,
.admin-sidebar .text-muted,
#adminMobileDrawer .text-muted,
footer .text-muted,
footer .text-light.opacity-75,
.demo-hero .text-muted,
.auth-brand-side .text-muted,
.bg-primary .text-muted,
.bg-primary .text-white-50,
.bg-danger .text-muted,
.bg-danger .text-white-50,
.bg-success .text-muted,
.bg-success .text-white-50,
.card-theme-midnight .text-muted,
.card-theme-ocean .text-muted,
.card-theme-emerald .text-muted,
.card-theme-sunset .text-muted {
    color: #CBD5E1 !important;
    opacity: 0.92 !important;
}

/* Links inside dark containers: hover should be crisp white */
.bg-dark a:not(.btn):hover,
footer a:not(.btn):hover,
.admin-sidebar a:not(.btn):hover,
.text-white a:not(.btn):hover,
.hover-white:hover {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

/* Badges on dark backgrounds: prevent dark text / invisible pills */
.admin-sidebar .badge.text-primary,
#adminMobileDrawer .badge.text-primary,
.bg-dark > .badge.text-primary {
    color: #FFFFFF !important;
    background-color: #0047AB !important;
}

/* ==========================================================================
   Light Cards & White Containers Nested Inside Dark Backgrounds
   (Ensures white cards inside .bg-dark, .text-white, etc. stay crisp and readable)
   ========================================================================== */
.bg-dark .bg-white:not([class*="bg-opacity"]),
.text-white .bg-white:not([class*="bg-opacity"]),
.bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]),
.text-white .card:not(.bg-dark):not([class*="bg-opacity"]),
.monetization-card {
    background-color: #FFFFFF !important;
    color: #1E293B !important;
}

.bg-dark .bg-white:not([class*="bg-opacity"]) h1, .bg-dark .bg-white:not([class*="bg-opacity"]) h2, .bg-dark .bg-white:not([class*="bg-opacity"]) h3, .bg-dark .bg-white:not([class*="bg-opacity"]) h4, .bg-dark .bg-white:not([class*="bg-opacity"]) h5, .bg-dark .bg-white:not([class*="bg-opacity"]) h6,
.text-white .bg-white:not([class*="bg-opacity"]) h1, .text-white .bg-white:not([class*="bg-opacity"]) h2, .text-white .bg-white:not([class*="bg-opacity"]) h3, .text-white .bg-white:not([class*="bg-opacity"]) h4, .text-white .bg-white:not([class*="bg-opacity"]) h5, .text-white .bg-white:not([class*="bg-opacity"]) h6,
.bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) h1, .bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) h2, .bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) h3, .bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) h4, .bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) h5, .bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) h6,
.text-white .card:not(.bg-dark):not([class*="bg-opacity"]) h1, .text-white .card:not(.bg-dark):not([class*="bg-opacity"]) h2, .text-white .card:not(.bg-dark):not([class*="bg-opacity"]) h3, .text-white .card:not(.bg-dark):not([class*="bg-opacity"]) h4, .text-white .card:not(.bg-dark):not([class*="bg-opacity"]) h5, .text-white .card:not(.bg-dark):not([class*="bg-opacity"]) h6,
.monetization-card h1, .monetization-card h2, .monetization-card h3, .monetization-card h4, .monetization-card h5, .monetization-card h6,
.bg-dark .monetization-card h1, .bg-dark .monetization-card h2, .bg-dark .monetization-card h3, .bg-dark .monetization-card h4, .bg-dark .monetization-card h5, .bg-dark .monetization-card h6,
.bg-dark .monetization-card .text-dark,
.monetization-card .text-dark,
.bg-dark .bg-white .text-dark,
.text-white .bg-white .text-dark {
    color: #0F172A !important;
}

.bg-white:not([class*="bg-opacity"]) label,
.card:not(.bg-dark):not([class*="bg-opacity"]) label,
.monetization-card label {
    color: #0F172A !important;
}

.bg-dark .bg-white:not([class*="bg-opacity"]) p,
.text-white .bg-white:not([class*="bg-opacity"]) p,
.bg-dark .card:not(.bg-dark):not([class*="bg-opacity"]) p,
.text-white .card:not(.bg-dark):not([class*="bg-opacity"]) p,
.bg-dark .monetization-card p,
.monetization-card p {
    color: #475569 !important;
}

.bg-dark .bg-white .text-muted,
.text-white .bg-white .text-muted,
.bg-dark .card:not(.bg-dark) .text-muted,
.text-white .card:not(.bg-dark) .text-muted,
.bg-dark .monetization-card .text-muted,
.monetization-card .text-muted {
    color: #64748B !important;
    opacity: 1 !important;
}

.bg-dark .bg-white .text-secondary,
.text-white .bg-white .text-secondary,
.monetization-card .text-secondary {
    color: #475569 !important;
}

.bg-dark .bg-white .badge.bg-primary-subtle,
.monetization-card .badge.bg-primary-subtle {
    background-color: #EBF3FC !important;
    color: #0047AB !important;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--primary-hover);
}

/* Text Gradient Helpers */
.text-gradient-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #2563EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* App Wrapper */
.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(var(--bottom-nav-height) + var(--safe-bottom) + 16px);
}

@media (min-width: 992px) {
    .app-wrapper {
        padding-bottom: 0;
    }
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--dark-color);
}

.brand-badge {
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #4338CA 100%);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
    transition: transform 0.25s ease;
}
.brand-logo-wrap:hover .brand-badge {
    transform: rotate(-6deg) scale(1.05);
}

/* Desktop Navbar */
.desktop-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    padding: 12px 0;
    margin: 0;
}

.nav-link-custom {
    color: #334155;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}
.nav-link-custom:hover, .nav-link-custom.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: calc(var(--bottom-nav-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 6px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}
.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Cards & Glassmorphism */
.hr-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 4px -1px rgba(15, 23, 42, 0.02);
    padding: 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.hr-card-hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Category Tiles */
.category-tile {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 20px 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
}
.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -8px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.35);
}
.category-tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    margin-bottom: 14px;
    transition: transform 0.25s ease;
}
.category-tile:hover .category-tile-icon {
    transform: scale(1.1) rotate(-4deg);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.14), transparent 45%), radial-gradient(circle at 15% 85%, rgba(79, 70, 229, 0.08), transparent 40%), var(--background-color);
    padding: 50px 0 54px 0;
    border-bottom: 1px solid var(--card-border);
    position: relative;
}

.hero-search-container {
    max-width: 660px;
}

.hero-search-box {
    background: #ffffff;
    border-radius: 9999px;
    padding: 8px 10px 8px 24px;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 20px 45px -8px rgba(79, 70, 229, 0.25), 0 0 0 4px var(--primary-glow);
    transform: translateY(-2px);
}

.hero-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: var(--dark-color);
    flex: 1 1 auto;
    min-width: 0;
    padding: 8px 14px 8px 8px;
}
.hero-search-input::placeholder {
    color: #94A3B8;
}

.hero-search-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), #6366F1);
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.96rem;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px var(--primary-glow);
    transition: all 0.25s ease;
    cursor: pointer;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #6366F1, var(--primary-color));
    color: #ffffff;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 24px var(--primary-glow);
}

/* Floating Ecosystem Animation */
.hero-ecosystem-wrap {
    position: relative;
    padding: 24px 16px;
}

.hero-glow-sphere {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(79, 70, 229, 0.08) 60%, transparent 80%);
    filter: blur(40px);
    z-index: 0;
    animation: pulseGlow 7s ease-in-out infinite alternate;
}

.hero-floating-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(79, 70, 229, 0.06);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card-1 {
    animation: floatSlow 5s ease-in-out infinite alternate;
}
.hero-card-2 {
    animation: floatReverse 6s ease-in-out infinite alternate;
}
.hero-card-3 {
    animation: floatPill 4.5s ease-in-out infinite alternate;
}

@keyframes floatSlow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-16px) rotate(0.8deg); }
}

@keyframes floatReverse {
    0% { transform: translateY(-6px) rotate(0deg); }
    100% { transform: translateY(12px) rotate(-1deg); }
}

@keyframes floatPill {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

/* Monetization Section */
.monetization-card {
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}
.monetization-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
    border-color: rgba(0, 71, 171, 0.4);
}

.monetization-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
}

/* Custom Spacing Utilities */
.p-3\.5 { padding: 1.125rem !important; }
.p-4\.5 { padding: 1.75rem !important; }
.p-5\.5 { padding: 2.25rem !important; }
.px-3\.5 { padding-left: 1.125rem !important; padding-right: 1.125rem !important; }
.py-3\.5 { padding-top: 1.125rem !important; padding-bottom: 1.125rem !important; }
.px-4\.5 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }
.py-4\.5 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
.gap-2\.5 { gap: 0.625rem !important; }
.gap-3\.5 { gap: 1.125rem !important; }
.g-3\.5 { --bs-gutter-x: 1.125rem; --bs-gutter-y: 1.125rem; }
.g-4\.5 { --bs-gutter-x: 1.75rem; --bs-gutter-y: 1.75rem; }

/* How It Works Cards */
.how-it-works-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color, #DFE7F0);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 71, 171, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}
.how-it-works-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 71, 171, 0.08);
    border-color: rgba(0, 71, 171, 0.28);
}
.step-number-badge {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--subtle-blue, #EAF3FF);
    color: var(--primary-color, #0047AB);
    border: 1px solid rgba(0, 71, 171, 0.15);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(0, 71, 171, 0.05);
    transition: all 0.25s ease;
}
.how-it-works-card:hover .step-number-badge {
    background: var(--primary-color, #0047AB);
    color: #FFFFFF;
    transform: scale(1.08);
}
.step-icon-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F8FAFC;
    color: var(--primary-color, #0047AB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    border: 1px solid #EDF2F7;
    transition: all 0.25s ease;
}
.how-it-works-card:hover .step-icon-badge {
    background: #EAF3FF;
    border-color: rgba(0, 71, 171, 0.2);
}

/* Custom Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0047AB, #000080) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 71, 171, 0.25) !important;
    transition: all 0.25s ease !important;
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #00388A, #000066) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.35) !important;
}
.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Hi Review Brand Action Buttons (.btn-hr-*) */
.btn-hr-primary {
    background: linear-gradient(135deg, #0047AB, #000080) !important;
    border: 1px solid #0047AB !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(0, 71, 171, 0.25) !important;
    transition: all 0.25s ease !important;
}
.btn-hr-primary:hover, .btn-hr-primary:focus {
    background: linear-gradient(135deg, #00388A, #000066) !important;
    border-color: #00388A !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.35) !important;
}
.btn-hr-outline-primary {
    background-color: #ffffff !important;
    color: #0047AB !important;
    border: 1.5px solid #0047AB !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 71, 171, 0.08) !important;
    transition: all 0.2s ease !important;
}
.btn-hr-outline-primary:hover, .btn-hr-outline-primary:focus {
    background-color: #0047AB !important;
    color: #ffffff !important;
    border-color: #0047AB !important;
    box-shadow: 0 6px 16px rgba(0, 71, 171, 0.25) !important;
    transform: translateY(-1px) !important;
}
.btn-hr-secondary {
    background-color: #F8FAFC !important;
    color: #334155 !important;
    border: 1.5px solid #CBD5E1 !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}
.btn-hr-secondary:hover, .btn-hr-secondary:focus {
    background-color: #E2E8F0 !important;
    color: #0F172A !important;
    border-color: #94A3B8 !important;
    transform: translateY(-1px) !important;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .hero-search-box {
        flex-direction: column;
        padding: 12px;
        border-radius: 20px;
    }
    .hero-search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* Category & Subcategory Chips */
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #FFFFFF;
    color: var(--dark-color);
    border: 1px solid var(--card-border);
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease-in-out;
}
.category-chip:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.category-chip i {
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* Wishlist / Save Heart Button - White Background by default, Red on click/saved */
.save-toggle-btn {
    background-color: #FFFFFF !important;
    color: #DC2626 !important;
    border: 1px solid rgba(220, 38, 38, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.save-toggle-btn:hover {
    background-color: #FFFFFF !important;
    color: #B91C1C !important;
    border-color: #DC2626 !important;
    transform: scale(1.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.save-toggle-btn.btn-danger,
.save-toggle-btn.is-saved {
    background-color: #DC2626 !important;
    color: #FFFFFF !important;
    border-color: #DC2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35) !important;
}
.save-toggle-btn.btn-danger:hover,
.save-toggle-btn.is-saved:hover {
    background-color: #B91C1C !important;
    color: #FFFFFF !important;
    border-color: #B91C1C !important;
}
.save-toggle-btn.btn-danger .save-icon,
.save-toggle-btn.is-saved .save-icon {
    color: #FFFFFF !important;
}
.save-toggle-btn.icon-only {
    width: 38px;
    height: 38px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
}

/* ==========================================================================
   LIVE SEARCH & AUTOCOMPLETE SUGGESTIONS
   ========================================================================== */
.live-search-wrapper {
    position: relative;
    width: 100%;
}

.live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 300px;
    background: #FFFFFF;
    border: 1px solid var(--hr-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 128, 0.12), 0 4px 12px rgba(0, 71, 171, 0.08);
    z-index: 1060;
    overflow: hidden;
    display: none;
    animation: liveSearchFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes liveSearchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-search-body {
    max-height: 440px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.live-search-body::-webkit-scrollbar {
    width: 6px;
}
.live-search-body::-webkit-scrollbar-track {
    background: #F8FAFC;
}
.live-search-body::-webkit-scrollbar-thumb {
    background: #DFE7F0;
    border-radius: 6px;
}
.live-search-body::-webkit-scrollbar-thumb:hover {
    background: #CBD5E1;
}

.live-search-section-header {
    padding: 8px 16px;
    background: #F8FAFC;
    color: var(--hr-slate);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.live-search-section-header:first-child {
    border-top: none;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--hr-text);
    border-bottom: 1px solid #F8FAFC;
    transition: all 0.15s ease;
    cursor: pointer;
}
.live-search-item:last-child {
    border-bottom: none;
}
.live-search-item:hover,
.live-search-item.active,
.live-search-item:focus {
    background: var(--hr-soft-blue);
    color: var(--hr-primary);
    outline: none;
}

.live-search-thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--hr-border);
    background: #F8FAFC;
}

.live-search-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--hr-border);
    background: #F8FAFC;
}

.live-search-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--hr-soft-blue);
    color: var(--hr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.live-search-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hr-text);
    margin-bottom: 2px;
    line-height: 1.3;
}
.live-search-item:hover .live-search-title,
.live-search-item.active .live-search-title {
    color: var(--hr-primary);
}

.live-search-sub {
    font-size: 0.75rem;
    color: var(--hr-slate);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.live-search-price {
    font-weight: 700;
    color: var(--hr-primary);
    font-size: 0.85rem;
    margin-left: auto;
    flex-shrink: 0;
}

.live-search-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #B7791F;
}

.live-search-footer {
    padding: 10px 16px;
    background: #F8FAFC;
    border-top: 1px solid var(--hr-border);
    text-align: center;
}

.live-search-footer a {
    color: var(--hr-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.live-search-footer a:hover {
    color: var(--hr-navy);
    gap: 10px;
}

.live-search-empty {
    padding: 28px 20px;
    text-align: center;
    color: var(--hr-slate);
}
.live-search-empty i {
    font-size: 2rem;
    color: var(--hr-sky);
    opacity: 0.8;
    margin-bottom: 8px;
    display: inline-block;
}

.live-search-loading {
    padding: 24px 16px;
    text-align: center;
    color: var(--hr-slate);
    font-size: 0.85rem;
}

/* ==========================================================================
   FORM INPUT ICON GROUPS & PASSWORD TOGGLES
   ========================================================================== */
.form-label-custom {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--hr-text, #17243A);
    margin-bottom: 6px;
}

.input-icon-group {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.input-icon-group .input-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6D8196 !important;
    font-size: 1rem !important;
    pointer-events: none !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: color 0.2s ease !important;
}

.input-icon-group .form-control,
.input-icon-group .form-control-custom,
.form-control-custom {
    display: block;
    width: 100%;
    height: 48px !important;
    border-radius: 12px !important;
    border: 1.5px solid #DFE7F0 !important;
    font-size: 0.88rem !important;
    font-family: inherit !important;
    background-color: #FFFFFF !important;
    color: #17243A !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.input-icon-group .form-control,
.input-icon-group .form-control-custom {
    padding-left: 44px !important;
    padding-right: 44px !important;
}

.input-icon-group .form-control:focus,
.input-icon-group .form-control-custom:focus,
.form-control-custom:focus {
    border-color: #0047AB !important;
    background-color: #FFFFFF !important;
    box-shadow: 0 0 0 3.5px rgba(0, 71, 171, 0.12) !important;
    outline: none !important;
}

.input-icon-group:focus-within .input-icon {
    color: #0047AB !important;
}

.input-icon-group .password-toggle-btn {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 8px !important;
    color: #6D8196 !important;
    cursor: pointer !important;
    z-index: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border-radius: 6px !important;
    font-size: 1.05rem !important;
    transition: all 0.2s ease !important;
}

.input-icon-group .password-toggle-btn:hover {
    color: #0047AB !important;
    background-color: rgba(0, 71, 171, 0.08) !important;
}

.input-icon-group .password-toggle-btn:focus {
    outline: none !important;
    color: #0047AB !important;
}

/* ==========================================================================
   PAGINATION STYLING (GLOBAL BOOTSTRAP 5)
   ========================================================================== */
.pagination {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.page-item {
    display: inline-block !important;
}

.page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid #E2E8F0 !important;
    color: #475569 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 36px !important;
    height: 36px !important;
    transition: all 0.15s ease-in-out !important;
    background: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.page-item.active .page-link {
    background-color: var(--hr-primary, #0047AB) !important;
    border-color: var(--hr-primary, #0047AB) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 10px rgba(0, 71, 171, 0.28) !important;
}

.page-item .page-link:hover {
    background-color: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

.page-item.disabled .page-link {
    background-color: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}
