@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --logo-red: #1a56db; /* Modern Indigo/Royal Blue Accent */
    --logo-blue: #ffffff; /* White background */
    --logo-blue-light: #f1f5f9; /* Slate 100 backdrop */
    --white: #ffffff;
    --light-grey: #f8fafc; /* Slate 50 backdrop */
    --dark-text: #0f172a; /* Deep Slate charcoal black */
    --medium-text: #475569; /* Slate 600 readable content */
    --accent-silver: #e2e8f0; /* Soft Slate border */
    --gold: #2563eb; /* Secondary Brand Blue */
    --gold-light: #f0f7ff; /* Soft Light Ice Blue backdrop */
    --success: #16a34a;
    --warning: #ea580c;
    --info: #2563eb;
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 4px 20px rgba(0,0,0,0.01), 0 8px 30px rgba(0,0,0,0.01);
    --shadow-hover: 0 15px 35px rgba(15,23,42,0.04);
    --border-radius-premium: 0px; /* Clean, modern, premium B2B look */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--light-grey);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Global typography configuration */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

/* Scroll reveals */
.js-enabled .reveal { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: var(--transition-premium); 
}
.js-enabled .reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- BUTTONS --- */
button,
.cta-btn,
.cta-btn-outline,
.cta-btn-small,
.cta-btn-gold,
.portal-nav-btn,
.btn-action,
.badge,
.badge-free,
.badge-gold,
.badge-verified,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: 2px !important;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--logo-red), #1e40af);
    color: white !important;
    padding: 14px 32px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-premium);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.15);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(26, 86, 219, 0.25);
    background: linear-gradient(135deg, #1e40af, var(--logo-red));
}

.cta-btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-premium);
    border: 2px solid var(--logo-red);
    color: var(--logo-red) !important;
    background: transparent;
}

.cta-btn-outline:hover {
    background: var(--logo-red);
    color: var(--white) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 86, 219, 0.15);
}

.cta-btn-small {
    display: inline-block;
    background: #1e40af;
    color: white !important;
    padding: 8px 18px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition-premium);
    border: none;
    cursor: pointer;
}

.cta-btn-small:hover {
    background: var(--logo-red);
    transform: translateY(-1px);
}

.cta-btn-gold {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), #1e40af);
    color: white !important;
    padding: 14px 32px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-premium);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.cta-btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.25);
    filter: brightness(1.1);
}

/* --- B2B MARKETPLACE DOUBLE-ROW HEADER --- */
.b2b-header-main {
    background: #ffffff;
    padding: 14px 5%;
    border-bottom: 1px solid #f1f5f9;
}

.b2b-header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.b2b-logo img {
    height: 48px;
    display: block;
    transition: transform 0.3s ease;
}

.b2b-logo img:hover {
    transform: scale(1.02);
}

/* B2B Large Centered Search Bar */
.b2b-search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #1a56db; /* Royal Blue */
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    height: 44px;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.05);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.b2b-search-wrapper:focus-within {
    box-shadow: 0 6px 18px rgba(26, 86, 219, 0.12), 0 0 0 3px rgba(26, 86, 219, 0.15);
    border-color: #1e40af;
}

.b2b-search-region {
    background: #f8fafc;
    border: none;
    border-right: 1px solid #e2e8f0;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0 16px;
    height: 100%;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-family: inherit;
}

.b2b-search-region option {
    color: var(--dark-text);
}

.b2b-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--dark-text);
    font-family: inherit;
}

.b2b-search-input::placeholder {
    color: #94a3b8;
}

.b2b-search-button {
    background: #1a56db;
    color: #ffffff;
    border: none;
    height: 100%;
    padding: 0 22px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.b2b-search-button:hover {
    background: #1e40af;
}

/* Header Right Actions */
.b2b-right-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.auth-portal-btn i {
    color: #1a56db;
    font-size: 0.95rem;
}

.auth-portal-btn:hover {
    color: #1a56db;
}

.drawer-auth {
    display: none; /* Hide drawer auth card on desktop */
}

.drawer-post-btn {
    display: none !important; /* Hide drawer post requirement button on desktop */
}

.post-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a56db, #1e40af);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 86, 219, 0.25);
    background: linear-gradient(135deg, #1e40af, #1a56db);
}

/* Secondary Sub-Navigation Row */
.b2b-header-sub {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.b2b-header-sub.scrolled {
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: none; /* Force normal/natural casing */
    letter-spacing: normal;
}

.nav-links a:hover {
    color: #1a56db;
}

.nav-links a i.nav-link-icon {
    display: none; /* Hide icons in desktop layout */
}

/* Sliding underline hover animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #1a56db;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

/* Sub-Nav Hotline Desk */
.sub-nav-hotline {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--medium-text);
    font-weight: 500;
}

.sub-nav-hotline span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-nav-hotline i {
    color: #1a56db;
}

/* Mega dropdown setup */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

/* Transparent bridge to prevent hover loss when moving cursor to dropdown */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

/* Remove hover line on the trigger text link */
.dropdown > a::after {
    display: none;
}

.dropdown-content a::after {
    display: none !important;
}

.dropdown:hover .dropdown-content {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-dropdown-item {
    display: block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none !important;
    color: var(--dark-text) !important;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    border: none;
}

.mega-dropdown-item:hover {
    background: #f1f5f9;
    color: #1a56db !important;
}

.mega-dropdown-info {
    display: flex;
    flex-direction: column;
}

.mega-dropdown-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-text);
    margin-bottom: 2px;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.mega-dropdown-desc {
    font-size: 0.75rem;
    color: var(--medium-text);
    line-height: 1.4;
    font-weight: 400;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Inline Expandable Search in Navbar */
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search-btn {
    background: none;
    border: none;
    color: var(--dark-text);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-btn:hover {
    background: #f1f5f9;
    color: var(--logo-red);
}

.nav-search-input-container {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease, margin 0.35s ease;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    border-radius: 50px;
    border: 1px solid var(--accent-silver);
    display: flex;
    align-items: center;
    padding: 0;
}

.nav-search-input-container.active {
    width: 260px;
    padding: 4px 12px 4px 16px;
    margin-right: 12px;
}

.nav-search-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.82rem;
    width: 100%;
    color: var(--dark-text);
    font-family: inherit;
}

.nav-search-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-search-close:hover {
    color: var(--logo-red);
}



/* --- HERO SECTION (B2B PORTAL STYLED) --- */
.hero {
    min-height: 75vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.96)), url('../images/hero-bg.png') center/cover;
    background-attachment: fixed;
    color: var(--dark-text);
    border-bottom: 1px solid var(--accent-silver);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.25;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--logo-red);
}

.hero p {
    color: var(--medium-text);
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 40px;
}

/* B2B Marketplace Search Form */
.search-container {
    background: white;
    padding: 6px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    border: 1px solid var(--accent-silver);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    max-width: 750px;
    margin-bottom: 30px;
}

.search-container select {
    background: transparent;
    border: none;
    color: var(--dark-text);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0 20px;
    outline: none;
    cursor: pointer;
}

.search-container select option {
    color: var(--dark-text);
}

.search-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--dark-text);
    padding: 10px 15px;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}

.search-container input::placeholder {
    color: #999999;
}

.search-container button {
    background: var(--logo-red);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #1e40af;
    color: white;
}

/* --- BADGES & TAGS --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-gold {
    background: linear-gradient(135deg, #FFFDF0, #FFF5C2);
    color: #9A6A00;
    border: 1px solid #E5C158;
}

.badge-verified {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.badge-free {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}

/* --- SECTIONS --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-weight: 800;
}

.section-title p {
    font-size: 0.85rem;
    color: var(--logo-red);
    font-weight: 700;
}

section {
    padding: 80px 5%;
}

/* --- B2B TILES & GRID --- */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .marketplace-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        gap: 20px;
    }
    
    .search-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .search-container input {
        width: 100%;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--accent-silver);
    }
    
    .search-container button {
        width: 100%;
    }
}

.m-card {
    background: white;
    border-radius: var(--border-radius-premium);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-premium);
    border: 1px solid var(--accent-silver);
}

.m-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.m-card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.m-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.m-card:hover .m-card-image img {
    transform: scale(1.08);
}

.m-card-content {
    padding: 24px;
}

.m-card-category {
    font-size: 0.75rem;
    color: var(--logo-red);
    font-weight: 700;
    margin-bottom: 8px;
}

.m-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.m-card-desc {
    font-size: 0.9rem;
    color: var(--medium-text);
    margin-bottom: 20px;
}

.m-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--accent-silver);
    padding-top: 16px;
    margin-top: 8px;
}

/* --- BUYER LEADS BOARD --- */
.leads-board {
    background: white;
    border-radius: var(--border-radius-premium);
    box-shadow: var(--shadow-premium);
    padding: 30px;
    margin-bottom: 50px;
    border: 1px solid var(--accent-silver);
}

.leads-ticker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 15px;
}

.leads-ticker-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.lead-item {
    background: white;
    border-radius: 2px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
    border: 1px solid var(--accent-silver);
    border-left: 4px solid var(--logo-red);
}

.lead-item:hover {
    background: var(--light-grey);
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
    border-left-color: #1e40af;
}

.lead-info-col h4 {
    font-size: 1rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.lead-info-col p {
    font-size: 0.85rem;
    color: var(--medium-text);
}

.lead-meta-col {
    text-align: right;
}

.lead-qty {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--logo-red);
    margin-bottom: 5px;
}

/* Blur overlay for free suppliers accessing lead details */
.blurred-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

/* --- STATS --- */
.global-stats {
    background: #f8f9fa;
    color: var(--dark-text);
    padding: 60px 5%;
    border-top: 1px solid var(--accent-silver);
    border-bottom: 1px solid var(--accent-silver);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--logo-red);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    color: var(--medium-text);
    font-weight: 700;
}

/* --- PRICING & MEMBERSHIPS --- */
.pricing-section {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.pricing-card {
    background: var(--light-grey);
    border-radius: var(--border-radius-premium);
    padding: 48px;
    text-align: center;
    border: 1px solid var(--accent-silver);
    transition: var(--transition-premium);
    position: relative;
}

.pricing-card.premium {
    background: white;
    color: var(--dark-text);
    border: 2px solid var(--logo-red);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(26, 86, 219, 0.1);
}

.pricing-card.premium::after {
    content: "Popular";
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--logo-red);
    color: white;
    padding: 4px 12px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.7rem;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--logo-red);
    margin-bottom: 30px;
}

.pricing-card.premium .pricing-price {
    color: var(--logo-red);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--medium-text);
}

.pricing-card.premium .pricing-price span {
    color: var(--medium-text);
}

.pricing-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--success);
}

.pricing-card.premium .pricing-features li i {
    color: var(--logo-red);
}

/* --- CONTACT & FORMS --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius-premium);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--accent-silver);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--accent-silver);
    border-radius: 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s;
    background: var(--light-grey);
    color: var(--dark-text);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--logo-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.1);
}

/* --- USER PORTAL PANELS & TABS --- */
.portal-header {
    background: white;
    padding: 40px 5%;
    border-bottom: 1px solid var(--accent-silver);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-nav {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.portal-nav-btn {
    padding: 12px 24px;
    background: white;
    border: 1px solid var(--accent-silver);
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.85rem;
    color: var(--medium-text);
}

.portal-nav-btn.active {
    background: var(--logo-red);
    color: white;
    border-color: var(--logo-red);
}

/* --- DYNAMIC CRM PORTAL STYLE --- */
.crm-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: #f8f9fa;
}

.crm-sidebar {
    background: white;
    color: var(--dark-text);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--accent-silver);
}

.crm-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--logo-red);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.crm-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 2px;
    color: var(--medium-text);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    font-size: 0.8rem;
}

.crm-menu-item.active a, .crm-menu-item a:hover {
    background: var(--light-grey);
    color: var(--logo-red);
}

.crm-main {
    padding: 40px;
    overflow-y: auto;
}

.crm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.crm-header h2 {
    font-size: 1.8rem;
    color: var(--dark-text);
}

.crm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.crm-stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--border-radius-premium);
    box-shadow: var(--shadow-premium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--accent-silver);
}

.crm-stat-info h4 {
    font-size: 0.75rem;
    color: var(--medium-text);
    margin-bottom: 8px;
    font-weight: 700;
}

.crm-stat-info .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-text);
}

.crm-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.crm-stat-icon.red { background: #fdf2f2; color: var(--logo-red); }
.crm-stat-icon.gold { background: #fdfaf2; color: var(--logo-red); }
.crm-stat-icon.blue { background: #f0fdf4; color: var(--success); }
.crm-stat-icon.green { background: #ecfdf5; color: var(--success); }

/* --- DATA TABLE --- */
.data-table-container {
    background: white;
    border-radius: var(--border-radius-premium);
    padding: 30px;
    box-shadow: var(--shadow-premium);
    overflow-x: auto;
    border: 1px solid var(--accent-silver);
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
}

.crm-table th, .crm-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--accent-silver);
}

.crm-table th {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 0.8rem;
    background: var(--light-grey);
}

.crm-table tbody tr:hover {
    background: var(--light-grey);
}

/* --- MODAL DIALOGS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-premium);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--accent-silver);
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--medium-text);
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--logo-red);
}

/* --- ADVANTAGE FEATURE CARDS --- */
.advantage-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.adv-card {
    position: relative;
    border-radius: 16px;
    padding: 36px 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
    min-height: 280px;
}

.adv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 55%);
    border-radius: 16px;
    pointer-events: none;
}

.adv-card:hover {
    transform: translateY(-8px);
}

/* Card number watermark */
.adv-card-number {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 900;
    opacity: 0.12;
    line-height: 1;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    pointer-events: none;
}

/* Icon wrapper */
.adv-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    backdrop-filter: blur(4px);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.adv-card:hover .adv-card-icon-wrap {
    transform: scale(1.12) rotate(-6deg);
}

.adv-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.adv-card p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.88);
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

/* Arrow at bottom */
.adv-card-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    margin-top: auto;
    transition: background 0.3s ease, transform 0.3s ease;
}

.adv-card:hover .adv-card-arrow {
    background: rgba(255,255,255,0.35);
    transform: translateX(4px);
}

/* ── COLOR THEMES ── */
/* YELLOW */
.adv-yellow {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 10px 30px rgba(245,158,11,0.30);
}
.adv-yellow:hover { box-shadow: 0 20px 45px rgba(245,158,11,0.45); }

/* RED */
.adv-red {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 30px rgba(239,68,68,0.30);
}
.adv-red:hover { box-shadow: 0 20px 45px rgba(239,68,68,0.45); }

/* BLUE */
.adv-blue {
    background: linear-gradient(135deg, #1a56db, #0f3398);
    box-shadow: 0 10px 30px rgba(26,86,219,0.30);
}
.adv-blue:hover { box-shadow: 0 20px 45px rgba(26,86,219,0.45); }

/* LEATHER / TAN */
.adv-leather {
    background: linear-gradient(135deg, #92400e, #78350f);
    box-shadow: 0 10px 30px rgba(146,64,14,0.30);
}
.adv-leather:hover { box-shadow: 0 20px 45px rgba(146,64,14,0.45); }

@media (max-width: 1100px) {
    .advantage-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .advantage-cards-grid { grid-template-columns: 1fr; }
}

/* --- MEGA FOOTER --- */
.main-footer {
    background: white;
    color: var(--medium-text);
    padding: 80px 0 0 0;
    border-top: 1px solid var(--accent-silver);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.footer-col h4 {
    font-size: 0.9rem;
    color: var(--dark-text);
    margin-bottom: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: var(--medium-text) !important;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
    font-weight: 600;
}

.footer-col ul li a:hover {
    color: var(--logo-red) !important;
    padding-left: 6px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--accent-silver);
    background: #f8fafc;
    color: var(--medium-text) !important;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-premium);
    border-radius: 2px !important;
}

.social-links a:hover {
    background: var(--logo-red);
    border-color: var(--logo-red);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(26, 86, 219, 0.15);
}

.footer-logo {
    height: 52px;
    margin-bottom: 20px;
}

.footer-col ul li a.admin-login-btn {
    display: inline-block;
    background: var(--light-grey) !important;
    color: var(--dark-text) !important;
    padding: 8px 18px;
    border-radius: 2px;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    border: 1px solid var(--accent-silver);
}

.footer-col ul li a.admin-login-btn:hover {
    background: var(--logo-red) !important;
    color: white !important;
}

.footer-bottom {
    margin-top: 60px;
    padding: 24px 5%;
    border-top: 1px solid var(--accent-silver);
    background: var(--light-grey);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--medium-text);
    font-weight: 600;
}

/* FLOATING CHAT SUPPORT WIDGET */
.floating-chat-container {
    position: fixed;
    bottom: 45px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    z-index: 1000;
}

/* === TRIGGER BUTTON === */
.chat-trigger-btn {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #1a56db, #0f3398);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(26, 86, 219, 0.45), 0 0 0 3px rgba(26, 86, 219, 0.18);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50% !important;
    border: none;
    overflow: visible;
    position: relative;
    animation: chatPulse 2.5s infinite;
}

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 6px 22px rgba(26, 86, 219, 0.45), 0 0 0 3px rgba(26, 86, 219, 0.18); }
    50%       { box-shadow: 0 6px 22px rgba(26, 86, 219, 0.60), 0 0 0 8px rgba(26, 86, 219, 0.08); }
}

.chat-trigger-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 55%);
    pointer-events: none;
}

.chat-trigger-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 14px 36px rgba(26, 86, 219, 0.60), 0 0 0 5px rgba(26, 86, 219, 0.15);
    animation: none;
}

/* Icon inside the trigger */
.chat-trigger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transition: transform 0.35s ease;
}

.chat-trigger-btn:hover .chat-trigger-icon {
    transform: scale(1.15) rotate(-8deg);
}

/* Hide label - icon only */
.chat-trigger-label {
    display: none;
}

/* Notification badge on trigger */
.chat-trigger-btn .chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff3b3b;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    border: 2px solid white;
    z-index: 2;
    animation: badgePop 0.4s ease;
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* === OPTIONS MENU === */
.chat-options-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

/* Show on hover of the container */
.floating-chat-container:hover .chat-options-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 10px !important;
    white-space: nowrap;
    border: none;
    position: relative;
    overflow: hidden;
}

.chat-option-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, transparent 80%);
    pointer-events: none;
}

.chat-option-item.whatsapp {
    background: linear-gradient(135deg, #25D366, #1aaa52);
}

.chat-option-item.whatsapp:hover {
    transform: translateX(-6px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    filter: brightness(1.08);
}

.chat-option-item.portal {
    background: linear-gradient(135deg, #1a56db, #0f3398);
}

.chat-option-item.portal:hover {
    transform: translateX(-6px);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.35);
    filter: brightness(1.08);
}

.chat-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.22);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.chat-option-item:hover .chat-icon-circle {
    transform: scale(1.15) rotate(-8deg);
}

/* FLOATING CHAT WINDOW STYLE */
.floating-chat-window {
    position: fixed;
    bottom: 136px;
    right: 30px;
    width: 355px;
    height: 490px;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 6px 20px rgba(0,0,0,0.08);
    border: none;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.97);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 18px !important;
    overflow: hidden;
}

.floating-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-win-header {
    background: linear-gradient(135deg, #1a56db, #0f3398);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    flex-shrink: 0;
}

.chat-win-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: var(--logo-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.agent-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

.agent-info span {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #25D366;
}

.chat-win-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.chat-win-close:hover {
    color: white;
}

.chat-win-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fcfcfd;
}

.chat-bubble-agent {
    background: #f1f3f5;
    color: var(--dark-text);
    padding: 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    align-self: flex-start;
    max-width: 85%;
    border-left: 3px solid var(--logo-red);
}

.chat-bubble-user {
    background: var(--logo-red);
    color: white;
    padding: 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    align-self: flex-end;
    max-width: 85%;
}

.chat-tickets-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 5px;
}

.chat-ticket-row {
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-win-footer {
    padding: 15px;
    border-top: 1px solid var(--accent-silver);
    background: white;
}

.chat-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-group input, .chat-input-group textarea {
    padding: 10px;
    border: 1px solid var(--accent-silver);
    border-radius: 2px;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.chat-input-group input:focus, .chat-input-group textarea:focus {
    border-color: var(--logo-red);
}

.chat-input-group button {
    background: #1e40af;
    color: white;
    border: none;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px !important;
}
    transform: translateX(-6px);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.35);
    filter: brightness(1.08);
}

.chat-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.22);
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.chat-option-item:hover .chat-icon-circle {
    transform: scale(1.15) rotate(-8deg);
}

/* FLOATING CHAT WINDOW STYLE */
.floating-chat-window {
    position: fixed;
    bottom: 136px;
    right: 30px;
    width: 355px;
    height: 490px;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 6px 20px rgba(0,0,0,0.08);
    border: none;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.97);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 18px !important;
    overflow: hidden;
}

.floating-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-win-header {
    background: linear-gradient(135deg, #1a56db, #0f3398);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: none;
    flex-shrink: 0;
}

.chat-win-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    background: var(--logo-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.agent-info h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    color: white;
}

.agent-info span {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #25D366;
}

.chat-win-close {
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.chat-win-close:hover {
    color: white;
}

.chat-win-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fcfcfd;
}

.chat-bubble-agent {
    background: #f1f3f5;
    color: var(--dark-text);
    padding: 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    align-self: flex-start;
    max-width: 85%;
    border-left: 3px solid var(--logo-red);
}

.chat-bubble-user {
    background: var(--logo-red);
    color: white;
    padding: 12px;
    border-radius: 2px;
    font-size: 0.85rem;
    align-self: flex-end;
    max-width: 85%;
}

.chat-tickets-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 5px;
}

.chat-ticket-row {
    padding: 8px;
    background: #fff;
    border: 1px solid #eee;
    font-size: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-win-footer {
    padding: 15px;
    border-top: 1px solid var(--accent-silver);
    background: white;
}

.chat-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-input-group input, .chat-input-group textarea {
    padding: 10px;
    border: 1px solid var(--accent-silver);
    border-radius: 2px;
    font-size: 0.85rem;
    outline: none;
    width: 100%;
}

.chat-input-group input:focus, .chat-input-group textarea:focus {
    border-color: var(--logo-red);
}

.chat-input-group button {
    background: #1e40af;
    color: white;
    border: none;
    padding: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 2px !important;
}

.chat-input-group button:hover {
    background: var(--logo-red);
}

/* RESPONSIVE BREAKPOINTS & MOBILE DRAWER */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--dark-text);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: #f1f5f9;
    color: var(--logo-red);
}

/* Drawer backdrop overlay */
.nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
}

.nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile drawer title and close button container */
.drawer-header {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--accent-silver);
    padding-bottom: 16px;
    margin-bottom: 12px;
}

.drawer-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--medium-text);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.drawer-close-btn:hover {
    color: var(--logo-red);
}

/* --- CRM MOBILE RESPONSIVENESS ELEMENTS --- */
.crm-mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-bottom: 1px solid var(--accent-silver);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.crm-mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    transition: background 0.2s;
}
.crm-mobile-menu-btn:hover {
    background: var(--light-grey);
}
.crm-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark-text);
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.crm-sidebar-close:hover {
    background: var(--light-grey);
    color: var(--logo-red);
}
.crm-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.crm-sidebar-overlay.active {
    display: block;
    opacity: 1;
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 600px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .crm-layout {
        grid-template-columns: 1fr;
    }
    .crm-mobile-header {
        display: flex;
    }
    .crm-sidebar-close {
        display: block;
    }
    .crm-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        box-shadow: 5px 0 25px rgba(15, 23, 42, 0.15);
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        border-right: 1px solid var(--accent-silver);
    }
    .crm-sidebar.open {
        left: 0;
    }
    .crm-main {
        padding: 30px 20px;
    }
    .mobile-menu-btn { 
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    .b2b-header-main {
        padding: 10px 5%;
    }
    .b2b-header-main-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    .b2b-search-wrapper {
        order: 3; /* Push search below logo and buttons */
        max-width: 100%;
        width: 100%;
        margin-top: 4px;
        height: 40px;
    }
    .b2b-search-region {
        padding: 0 10px;
        font-size: 0.75rem;
    }
    .b2b-search-input {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .b2b-search-button {
        padding: 0 16px;
        font-size: 0.8rem;
    }
    .b2b-header-sub {
        position: static;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border: none;
        box-shadow: none;
        display: block; /* Ensure container is displayed so that the fixed drawer child nav-links is visible */
    }
    .sub-nav-hotline {
        display: none; /* Hide contacts in subnav row on mobile */
    }
    .auth-portal-btn {
        display: none; /* Hide on top header, show inside mobile drawer */
    }
    .post-buy-btn {
        display: none !important; /* Hide on top header, show inside mobile drawer */
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        padding: 24px 20px 32px 20px;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -15px 0 40px rgba(15, 23, 42, 0.12);
        z-index: 2000; /* High z-index to overlay body content */
        align-items: flex-start;
        gap: 8px;
        overflow-y: auto;
        display: flex;
    }
    .nav-links.active { 
        right: 0; 
    }
    .drawer-header {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .drawer-header img {
        height: 32px;
        width: auto;
        object-fit: contain;
    }
    .nav-links a {
        width: 100%;
        padding: 12px 10px;
        border-bottom: 1px solid #f8fafc;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--dark-text);
        display: flex;
        align-items: center;
        gap: 12px;
        border-radius: 6px;
        transition: background 0.2s, color 0.2s;
    }
    .nav-links a:hover {
        background: #f8fafc;
        color: #1a56db;
    }
    /* Mobile Navigation Link Icons */
    .nav-links a i.nav-link-icon {
        display: inline-block;
        font-size: 1rem;
        color: #1a56db;
        width: 20px;
        text-align: center;
        transition: transform 0.2s;
    }
    .nav-links a:hover i.nav-link-icon {
        transform: scale(1.1);
    }
    .nav-links a::after {
        display: none; /* Hide hover underline animation on mobile */
    }
    .dropdown {
        width: 100%;
    }
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .dropdown > a i.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    .dropdown.active > a i.fa-chevron-down {
        transform: rotate(180deg);
        color: #1a56db;
    }
    .dropdown-content {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding: 6px 0 6px 14px;
        min-width: 100%;
        transform: none;
        grid-template-columns: 1fr;
        gap: 4px;
        opacity: 1;
        visibility: visible;
        background: transparent;
        transition: none;
        border-left: 2px solid #e2e8f0;
        margin-left: 18px;
    }
    .dropdown.active .dropdown-content {
        display: flex;
        flex-direction: column;
    }
    .mega-dropdown-item {
        padding: 8px 10px;
        background: none !important;
        border: none !important;
        transform: none !important;
        width: 100%;
        display: block;
        font-size: 0.85rem;
        color: var(--medium-text) !important;
    }
    .mega-dropdown-item:hover {
        color: #1a56db !important;
    }
    /* Mobile Drawer Auth Panel Card */
    .drawer-auth {
        width: 100%;
        margin-top: 24px;
        padding: 16px;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        box-sizing: border-box;
    }
    .drawer-auth a {
        width: 100% !important;
        padding: 10px 16px !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        border-radius: 6px !important;
        text-align: center;
        border-bottom: none !important;
        justify-content: center;
        display: inline-flex;
    }
    .drawer-auth .auth-login-btn {
        background: #1a56db;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(26, 86, 219, 0.15);
    }
    .drawer-auth .auth-dashboard-btn {
        background: #2563eb;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
    }
    .drawer-auth .auth-logout-btn {
        background: rgba(15, 23, 42, 0.05);
        color: var(--dark-text) !important;
    }
    .drawer-auth .auth-logout-btn:hover {
        background: rgba(15, 23, 42, 0.1);
    }
    .drawer-post-btn {
        display: inline-flex !important;
        width: 100% !important;
        justify-content: center;
        margin-bottom: 8px;
    }
    .contact-container { 
        grid-template-columns: 1fr; 
    }
    .footer-container { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    section { padding: 50px 5%; }
    .footer-container { grid-template-columns: 1fr; }
    .footer-bottom-content { flex-direction: column; gap: 10px; text-align: center; }
    .top-bar { display: none; }
    .form-grid { grid-template-columns: 1fr; }
}
/* Responsive Utility Classes Added for Mobile/Tablet */
.responsive-sidebar-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}
@media (max-width: 900px) {
    .responsive-sidebar-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.responsive-2col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 600px) {
    .responsive-2col-layout {
        grid-template-columns: 1fr;
    }
}
.responsive-admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.3fr) 1fr;
    gap: 30px;
}
@media (max-width: 900px) {
    .responsive-admin-layout {
        grid-template-columns: 1fr;
    }
}
.responsive-press-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    border-bottom: 1px solid var(--accent-silver);
    padding-bottom: 30px;
}
@media (max-width: 768px) {
    .responsive-press-layout {
        grid-template-columns: 1fr;
    }
}

/* Make Typography Responsive */
@media (max-width: 768px) {
    p, span, div {
        font-size: 0.95rem;
    }
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.6rem !important; }
    h3 { font-size: 1.3rem !important; }
    .hero-content h1 { font-size: 2.2rem !important; }
    .page-header-content h1 { font-size: 2rem !important; }
    .lead-item { flex-direction: column; align-items: flex-start; }
    .lead-meta-col { text-align: left; margin-top: 10px; }
}

/* Modal and Box Responsiveness */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        margin: 5% auto !important;
        padding: 20px !important;
    }
    .content-page, .hero-content, .login-box, #authSection {
        padding: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    .m-card-image img {
        height: auto;
    }
}

/* Modern Page Header Design (Replacing Static Images) */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 50%, #2563eb 100%);
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
    border-bottom: 3px solid var(--logo-red);
}
.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 40%),
                radial-gradient(circle at bottom left, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}
.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInDown 0.8s ease-out forwards;
}
.page-header-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-top: 15px;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.page-header-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
}
.page-header-content span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
}

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

/* Global Standard Containers and Cards */
.content-card {
    background: white;
    padding: 40px;
    border-radius: 2px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 30px;
    transition: var(--transition-premium);
}
.feature-card {
    background: white;
    padding: 30px;
    border-radius: 2px;
    box-shadow: var(--shadow-premium);
    border-left: 4px solid var(--logo-red);
    transition: var(--transition-premium);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15,23,42,0.08);
}
.feature-card i {
    font-size: 2rem;
    color: var(--logo-red);
    margin-bottom: 20px;
    background: rgba(26, 86, 219, 0.1);
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-text) !important;
    margin-bottom: 15px;
}
.feature-card p {
    color: var(--medium-text);
    line-height: 1.6;
}


/* Content Page Global Constraints */
.content-page {
    max-width: 1200px;
    padding: 80px 5%;
    margin: 0 auto;
}

/* Gallery Items */
.leather-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-premium);
}
.leather-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.leather-item:hover img {
    transform: scale(1.1);
}
.leather-item-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(15,23,42,0.9));
    color: white;
}
.leather-item-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: white !important;
}
.leather-item-content p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Nav and Dropdown Fixes */
.dropdown {
    padding: 15px 0; /* Expand hover area */
    margin: -15px 0;
}
.mobile-menu-btn {
    position: relative;
    z-index: 105; /* Must be higher than nav-links (100) */
}

/* Auth Portal Selector Tabs */
.auth-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--medium-text);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}
.auth-tab-btn.active {
    color: var(--logo-red) !important;
    border-bottom: 3px solid var(--logo-red) !important;
    background: transparent !important;
}
.auth-tab-btn:hover {
    color: var(--logo-red);
}

@media (max-width: 768px) {
    .crm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }
    .crm-main {
        padding: 20px 15px !important;
    }
    .data-table-container {
        padding: 20px 15px;
    }
}
