:root {
    --brand-primary: #6C006D;
    --brand-primary-hover: #530054;
    --brand-primary-light: #F4E8F4;
    --brand-accent: #C08A2E;
    --brand-accent-hover: #9E7022;
    --brand-accent-light: #F9F3E8;
    --brand-gold: #77560E;
    --brand-sand: #EAE5D9;
    --brand-sand-light: #FBF9F5;
    --brand-dark: #1E1226;
    --brand-dark-card: #281B33;
    --brand-dark-border: #3A284A;
    --brand-green: #25D366;
    --brand-green-hover: #1EBE5D;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #8E8880;
    --border-color: #E6E1D7;
    --bg-page: #FAF8F5;
    --bg-card: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-subtle: 0 2px 10px rgba(108, 0, 109, 0.04);
    --shadow-md: 0 8px 24px rgba(108, 0, 109, 0.08);
    --shadow-lg: 0 16px 36px rgba(108, 0, 109, 0.12);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header-top {
    background-color: var(--brand-dark);
    color: var(--brand-sand);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid var(--brand-dark-border);
}

.header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-link {
    color: var(--brand-accent);
    font-weight: 600;
}

.site-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-subtle);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-badge {
    background: var(--brand-primary);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.5px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--brand-primary);
}

.brand-name span {
    color: var(--brand-accent);
}

/* Search Bar */
.search-form {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    background: var(--brand-sand-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--brand-primary);
    background: #FFFFFF;
}

.search-select {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    border-right: 1px solid var(--border-color);
    outline: none;
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 18px;
    font-size: 0.95rem;
    outline: none;
    color: var(--text-primary);
}

.search-btn {
    background: var(--brand-primary);
    color: #FFFFFF;
    padding: 0 22px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: var(--brand-primary-hover);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    color: #FFFFFF;
}

.btn-accent {
    background: var(--brand-accent);
    color: #FFFFFF;
}

.btn-accent:hover {
    background: var(--brand-accent-hover);
}

.btn-outline {
    border: 1.5px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-primary-light);
}

.btn-whatsapp {
    background: var(--brand-green);
    color: #FFFFFF !important;
    font-weight: 700;
}

.btn-whatsapp:hover {
    background: var(--brand-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-call {
    background: #0284C7;
    color: #FFFFFF !important;
    font-weight: 700;
}

.btn-call:hover {
    background: #0369A1;
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

/* Market Quick Bar */
.markets-quick-bar {
    background: var(--brand-dark);
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 2px solid var(--brand-accent);
}

.quick-bar-inner {
    display: flex;
    gap: 12px;
    align-items: center;
}

.quick-label {
    color: var(--brand-accent);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-right: 4px;
}

.market-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-sand);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.market-chip:hover, .market-chip.active {
    background: var(--brand-accent);
    color: #FFFFFF;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, #FDECDC 0%, #FDF1E8 50%, #FCF5F0 100%);
    color: var(--brand-dark);
    padding: 60px 0 70px;
    position: relative;
    border-bottom: 3px solid #EAD4C2;
}

.btn-hero-outline {
    background: #FFFFFF !important;
    color: var(--brand-dark) !important;
    border: 1.5px solid #E6D5C3 !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.btn-hero-outline:hover {
    background: var(--brand-primary) !important;
    color: #FFFFFF !important;
    border-color: var(--brand-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(108, 0, 109, 0.25);
}

.btn-hero-light {
    background: #FFFFFF !important;
    color: var(--brand-dark) !important;
    border: 1.5px solid #E6D5C3 !important;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-hero-light:hover {
    background: var(--brand-sand-light) !important;
    color: var(--brand-primary) !important;
    border-color: var(--brand-sand) !important;
    transform: translateY(-1px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    border: 1.5px solid #F3D5BA;
    color: #77560E;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(192, 138, 46, 0.08);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.15;
    color: #1E1226;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: #C08A2E;
    background: linear-gradient(135deg, #A16207 0%, #C08A2E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.1rem;
    color: #57534E;
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #EAD4C2;
}

.stat-item h4 {
    font-size: 1.7rem;
    color: #92400E;
    font-family: var(--font-mono);
    font-weight: 800;
}

.stat-item p {
    font-size: 0.82rem;
    color: #6B6560;
    font-weight: 600;
}

/* Hero Card Widget */
.hero-feature-card {
    background: #FFFFFF;
    border: 1.5px solid #F0DFD0;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 16px 36px rgba(108, 0, 109, 0.06), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.hero-feature-card h3 {
    color: #1E1226;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-list {
    list-style: none;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: #44403C;
    line-height: 1.55;
}

.feature-list li strong {
    color: #1C1917;
    font-weight: 700;
}

.feature-icon {
    color: var(--brand-accent);
    font-size: 1.1rem;
}

/* Section Common */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-accent);
    font-weight: 700;
    margin-bottom: 4px;
}

.section-title {
    font-size: 1.9rem;
    color: var(--brand-dark);
}

/* Major Lagos Markets Grid */
.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.market-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.market-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.market-icon-box {
    width: 48px;
    height: 48px;
    background: var(--brand-primary-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.market-rating {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-gold);
    background: var(--brand-accent-light);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.market-name {
    font-size: 1.15rem;
    margin-bottom: 4px;
    color: var(--brand-dark);
}

.market-location {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.market-tagline {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.market-items-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.market-item-tag {
    background: var(--brand-sand-light);
    font-size: 0.74rem;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.market-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
}

.shop-badge {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Category Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: var(--brand-accent);
    background: var(--brand-accent-light);
    transform: translateX(4px);
}

.category-icon {
    font-size: 1.8rem;
}

.category-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.category-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}

.product-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 220px;
    max-height: 320px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.product-image-box img.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backface-visibility: hidden;
}

.product-card:hover .product-image-box img.product-img {
    transform: scale(1.05);
}

.product-badge-corner {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--brand-primary);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    letter-spacing: 0.3px;
    pointer-events: none;
}

.product-market-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(30, 11, 46, 0.88);
    backdrop-filter: blur(4px);
    color: var(--brand-sand);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    max-width: calc(100% - 20px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Product Detail Hero Showcase (Jumia / AliExpress Style) */
.product-hero-image-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0 auto;
    box-shadow: var(--shadow-subtle);
}

.product-hero-image-box img.product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: transform 0.35s ease;
}

.product-hero-image-box:hover img.product-hero-img {
    transform: scale(1.03);
}

.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-gallery-thumb {
    width: 68px;
    height: 68px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(108, 0, 109, 0.2);
}

.product-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-condition {
    font-size: 0.75rem;
    color: var(--brand-gold);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-primary);
    font-family: var(--font-mono);
    margin-bottom: 12px;
}

.product-seller-box {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-bottom: 14px;
}

.seller-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.seller-stall {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seller SaaS Banner */
.saas-banner-section {
    background: linear-gradient(180deg, #FDECDC 0%, #FDF1E8 50%, #FCF5F0 100%);
    color: var(--brand-dark);
    border-radius: var(--radius-xl);
    padding: 50px;
    margin: 40px 0;
    border: 2px solid #EAD4C2;
    box-shadow: 0 16px 36px rgba(108, 0, 109, 0.05);
}

.saas-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.saas-plan-card {
    background: #FFFFFF;
    border: 1.5px solid #F0DFD0;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 16px 36px rgba(108, 0, 109, 0.07), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.saas-price {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #92400E;
    margin-bottom: 6px;
}

.saas-price span {
    font-size: 0.9rem;
    color: #78716C;
    font-weight: 600;
}

.saas-features {
    list-style: none;
    margin: 16px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.saas-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #332B25;
    font-weight: 500;
}

.saas-features li span:first-child {
    color: var(--brand-accent);
    font-weight: 800;
}

/* Floating AI Chat Assistant */
.floating-assistant-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--brand-primary);
    color: #FFFFFF;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 24px rgba(108, 0, 109, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    border: 2px solid var(--brand-sand);
}

.floating-assistant-trigger:hover {
    transform: scale(1.04);
    background: var(--brand-primary-hover);
}

.chat-modal-window {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 380px;
    max-height: 540px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--brand-primary);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-modal-window.open {
    display: flex;
}

.chat-header {
    background: var(--brand-primary);
    color: #FFFFFF;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--brand-sand-light);
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.4;
    max-width: 85%;
}

.msg-bot {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    align-self: flex-start;
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
}

.msg-bot strong {
    color: var(--brand-dark);
}

.chat-assistant-response {
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.msg-user {
    background: var(--brand-primary);
    color: #FFFFFF;
    align-self: flex-end;
}

.chat-input-bar {
    padding: 12px;
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-bar input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 14px;
    font-size: 0.88rem;
    outline: none;
}

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: var(--brand-sand);
    padding: 60px 0 24px;
    border-top: 4px solid var(--brand-accent);
}

.site-footer .btn {
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all 0.2s ease;
    text-decoration: none;
}

.site-footer .footer-btn-stall {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
}
.site-footer .footer-btn-stall:hover {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
}

.site-footer .footer-btn-artisan {
    background: rgba(192, 132, 252, 0.14) !important;
    color: #F3E8FF !important;
    border: 1.5px solid #C084FC !important;
}
.site-footer .footer-btn-artisan:hover {
    background: rgba(192, 132, 252, 0.25) !important;
    color: #FFFFFF !important;
}

.site-footer .footer-btn-vacancy {
    background: rgba(250, 204, 21, 0.14) !important;
    color: #FEF08A !important;
    border: 1.5px solid #FACC15 !important;
}
.site-footer .footer-btn-vacancy:hover {
    background: rgba(250, 204, 21, 0.25) !important;
    color: #FFFFFF !important;
}

.site-footer .footer-btn-ai {
    background: rgba(56, 189, 248, 0.14) !important;
    color: #BAE6FD !important;
    border: 1.5px solid #38BDF8 !important;
}
.site-footer .footer-btn-ai:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    color: #FFFFFF !important;
}

.site-footer .footer-btn-software {
    background: rgba(52, 211, 153, 0.14) !important;
    color: #A7F3D0 !important;
    border: 1.5px solid #34D399 !important;
}
.site-footer .footer-btn-software:hover {
    background: rgba(52, 211, 153, 0.25) !important;
    color: #FFFFFF !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--brand-dark-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ADMIN PANEL STYLES */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--brand-dark);
    color: var(--brand-sand);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--brand-dark-border);
}

.admin-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--brand-dark-border);
}

.admin-nav {
    flex: 1;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--brand-sand);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--brand-primary);
    color: #FFFFFF;
}

.admin-main {
    flex: 1;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: #FFFFFF;
    padding: 16px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-content {
    padding: 32px;
    flex: 1;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-subtle);
}

.admin-stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.admin-stat-card .stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-primary);
    font-family: var(--font-mono);
    margin: 6px 0;
}

.admin-table-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    margin-bottom: 32px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.custom-table th {
    text-align: left;
    padding: 12px 14px;
    background: var(--brand-sand-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.88rem;
}

.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 700;
}

.badge-pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge-active {
    background: #D1FAE5;
    color: #065F46;
}

.badge-inactive {
    background: #FEE2E2;
    color: #991B1B;
}

/* Admin Form Controls & Utilities */
.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 6px;
}

.admin-form-label span.req {
    color: #DC2626;
}

.admin-form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.92rem;
    background: #FFFFFF;
    color: var(--text-primary);
    transition: border-color 0.2s;
    outline: none;
}

.admin-form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(108, 0, 109, 0.1);
}

.admin-form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.admin-alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-alert-success {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.admin-alert-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #FFFFFF;
    border: 1px solid var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    color: #FFFFFF;
}

.btn-accent {
    background: var(--brand-accent);
    color: #FFFFFF;
    border: 1px solid var(--brand-accent);
}

.btn-accent:hover {
    background: var(--brand-accent-hover);
    color: #FFFFFF;
}

.btn-outline {
    background: #FFFFFF;
    color: var(--brand-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--brand-sand-light);
    border-color: var(--text-muted);
}

.btn-danger {
    background: #EF4444;
    color: #FFFFFF;
    border: 1px solid #DC2626;
}

.btn-danger:hover {
    background: #DC2626;
}

.btn-success {
    background: #10B981;
    color: #FFFFFF;
    border: 1px solid #059669;
}

.btn-success:hover {
    background: #059669;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Pagination container */
.admin-pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--brand-dark);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* Mobile Drawer Overlay */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 18, 38, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FFFFFF;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--brand-dark-border);
}

.mobile-drawer-close {
    background: transparent;
    color: #FFFFFF;
    font-size: 2.2rem;
    cursor: pointer;
    border: none;
    line-height: 1;
}

.mobile-drawer-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-search-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-dark-border);
    background: var(--brand-dark-card);
    color: #FFFFFF;
    font-size: 0.95rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid var(--brand-dark-border);
    padding-bottom: 20px;
}

.mobile-nav-item {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    padding: 8px 0;
    display: block;
}

.mobile-nav-item:hover {
    color: var(--brand-accent);
}

.mobile-markets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mobile-market-chip {
    background: var(--brand-dark-card);
    border: 1px solid var(--brand-dark-border);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--brand-sand);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* Quick Bar Mobile Scrolling */
.quick-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
}

.quick-chips-scroll::-webkit-scrollbar {
    display: none;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid, .saas-grid {
        grid-template-columns: 1fr;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .search-form, .nav-actions {
        display: none;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .admin-sidebar {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .chat-modal-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        max-height: 80vh;
    }
    .floating-assistant-trigger {
        bottom: 20px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.84rem;
    }
}

/* Floating WhatsApp Channel Subscription Ribbon (Bottom-Left) */
.floating-whatsapp-ribbon {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    text-decoration: none;
    outline: none;
}

.whatsapp-ribbon-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    border: 2.5px solid #FFFFFF;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.2s ease;
    animation: whatsappRibbonBounce 2.6s infinite ease-in-out;
}

.whatsapp-ribbon-badge {
    position: absolute;
    bottom: -6px;
    background-color: #6C006D;
    color: #FFFFFF;
    font-family: 'Plus Jakarta Sans', var(--font-sans);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
    border: 1.5px solid #FFFFFF;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.floating-whatsapp-ribbon:hover .whatsapp-ribbon-circle,
.floating-whatsapp-ribbon:focus .whatsapp-ribbon-circle {
    animation-play-state: paused;
    transform: scale(1.1);
    background-color: #20BA5A;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-ribbon-tooltip {
    position: absolute;
    left: 66px;
    background-color: #1E1226;
    color: #FFFFFF;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1.5px solid #6C006D;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-ribbon-tooltip .tooltip-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 5px;
}

.whatsapp-ribbon-tooltip .tooltip-sub {
    font-size: 0.7rem;
    color: #FFFFFF;
    font-weight: 500;
}

.floating-whatsapp-ribbon:hover .whatsapp-ribbon-tooltip,
.floating-whatsapp-ribbon:focus .whatsapp-ribbon-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsappRibbonBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .floating-whatsapp-ribbon {
        bottom: 20px;
        left: 16px;
    }
    .whatsapp-ribbon-circle {
        width: 48px;
        height: 48px;
    }
    .whatsapp-ribbon-circle svg {
        width: 26px;
        height: 26px;
    }
    .whatsapp-ribbon-badge {
        font-size: 0.52rem;
        padding: 1px 5px;
        bottom: -5px;
    }
    .whatsapp-ribbon-tooltip {
        display: none;
    }
}

/* ============================================================
   MODERN PAGINATION STYLES (UNIVERSAL)
   ============================================================ */
.markets-pagination-wrapper {
    margin: 40px 0 24px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.markets-pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
    background: #FFFFFF;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.markets-pagination-info {
    font-size: 0.88rem;
    color: #64748B;
    font-weight: 500;
}

.markets-pagination-info .font-bold {
    font-weight: 700;
    color: var(--brand-dark);
}

.markets-pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.markets-page-item {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.markets-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.markets-page-link:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(108, 0, 109, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(108, 0, 109, 0.12);
}

.markets-page-link.prev-next-btn {
    padding: 0 14px;
    gap: 6px;
    font-weight: 700;
}

.markets-page-link.prev-next-btn svg {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
}

.markets-page-item.active .markets-page-link,
.markets-page-link.current-page {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #FFFFFF !important;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(108, 0, 109, 0.25);
}

.markets-page-item.disabled .markets-page-link,
.markets-page-link.disabled {
    background: #F1F5F9;
    color: #94A3B8 !important;
    border-color: #E2E8F0;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    opacity: 0.7;
}

.markets-page-link.ellipsis-item {
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: default;
    color: #94A3B8;
}

/* Hard CSS reset for any unstyled SVG pagination (Fixes giant chevron arrows) */
nav[role="navigation"] svg {
    max-width: 18px !important;
    max-height: 18px !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

nav[role="navigation"] .flex {
    display: flex;
    align-items: center;
}

nav[role="navigation"] .justify-between {
    justify-content: space-between;
}

nav[role="navigation"] .hidden {
    display: none;
}

@media (min-width: 640px) {
    nav[role="navigation"] .sm\:flex-1 {
        flex: 1 1 0%;
    }
    nav[role="navigation"] .sm\:flex {
        display: flex;
    }
    nav[role="navigation"] .sm\:items-center {
        align-items: center;
    }
    nav[role="navigation"] .sm\:justify-between {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .markets-pagination-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px;
        gap: 12px;
    }
    .markets-pagination-list {
        justify-content: center;
    }
    .markets-page-link {
        min-width: 34px;
        height: 34px;
        font-size: 0.82rem;
        padding: 0 8px;
    }
}

