@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Escrow Gateway Integration Variables */
    --gateway-accent: #3bb75e;
    --gateway-accent-dark: #011b33;
    --gateway-accent-light: rgba(59, 183, 94, 0.08);

    /* Color Palette - Vibrant High-Contrast Light Mode */
    --primary: #FF5C00;        /* Screenshot Vibrant Orange Match */
    --primary-hover: #E05200;
    --primary-glow: rgba(255, 92, 0, 0.15);
    
    --secondary: #F1F5F9;      /* Slate 100 */
    --secondary-light: #E2E8F0;/* Slate 200 */
    --dark-bg: #F8FAFC;        /* Slate 50 - Off-White Showroom background */
    --card-bg: rgba(255, 255, 255, 0.85); /* Pure White Translucent Glass */
    --card-bg-solid: #FFFFFF;  /* Solid White */
    
    --border-glass: rgba(0, 0, 0, 0.08); /* Delicate grey border edge */
    --border-gold: rgba(255, 92, 0, 0.2);
    
    /* Semantic Colors */
    --success: #10B981;        /* Emerald Green 500 */
    --success-glow: rgba(16, 185, 129, 0.15);
    --warning: #F59E0B;        /* Amber 500 */
    --warning-glow: rgba(245, 158, 11, 0.15);
    --danger: #EF4444;         /* Red 500 */
    --danger-glow: rgba(239, 68, 68, 0.15);
    --info: #3B82F6;           /* Blue 500 */
    
    /* Text Colors - Deep high-contrast dark slates */
    --text-main: #0F172A;      /* Slate 900 - readable dark ink */
    --text-muted: #475569;     /* Slate 600 - muted readable grey */
    --text-dark: #0F172A;      /* Slate 900 */
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 10px 30px rgba(255, 92, 0, 0.1);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(245, 166, 35, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.05) 0%, transparent 60%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ─── Perspective Banner & Payment Key Input ─────────────────────────────── */
.perspective-banner {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 0.02em;
    position: sticky;
    top: 76px;
    z-index: 99;
}

.gateway-dev-key-input {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    font-family: 'Inter', monospace;
    padding: 4px 10px;
    width: 220px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.gateway-dev-key-input::placeholder {
    color: rgba(255,255,255,0.35);
    font-size: 10px;
}

.gateway-dev-key-input:focus {
    border-color: rgba(255,92,0,0.5);
    background: rgba(255,255,255,0.1);
}

.demo-mode-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    transition: all 0.3s;
}

.demo-mode-badge.live {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3); }
    50%       { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}


.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.7);
}

.glass-card.gold-glow {
    border: 1px solid var(--border-gold);
    background: linear-gradient(135deg, #ffffff, rgba(255, 92, 0, 0.04)) !important;
    box-shadow: var(--glow-shadow), var(--card-shadow);
}

.glass-card.gold-glow:hover {
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(255, 92, 0, 0.25), var(--card-shadow);
}

.glass-card.purple-glow {
    border: 1px solid rgba(193, 53, 132, 0.4);
    background: linear-gradient(135deg, #ffffff, rgba(193, 53, 132, 0.04)) !important;
    box-shadow: 0 0 20px rgba(193, 53, 132, 0.15), var(--card-shadow);
}

.glass-card.purple-glow:hover {
    border-color: rgba(193, 53, 132, 0.8);
    box-shadow: 0 0 25px rgba(193, 53, 132, 0.35), var(--card-shadow);
}

.glass-card.blue-glow {
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #ffffff, rgba(59, 130, 246, 0.04)) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15), var(--card-shadow);
}

.glass-card.blue-glow:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.35), var(--card-shadow);
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--secondary-light) !important;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Space out nav links and right items */
    align-items: center;
    padding: 16px 24px;
    position: relative;
    height: 76px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Badge Switcher */
.role-badge-container {
    background: var(--secondary) !important;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--secondary-light) !important;
    display: flex;
    gap: 4px;
}

.role-tab {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    border: none;
    background: transparent;
}

.role-tab:hover {
    color: var(--text-main);
}

.role-tab.active[data-role="buyer"] {
    background: var(--primary);
    color: var(--text-dark);
}

.role-tab.active[data-role="seller"] {
    background: var(--info) !important;
    color: #ffffff !important;
}

.role-tab.active[data-role="mediator"] {
    background: var(--danger) !important;
    color: #ffffff !important;
}

/* Sign In Link and Text (Underlined Person Icon control) */
.auth-signin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.auth-signin-link:hover .auth-signin-text {
    color: var(--primary);
}

.auth-signin-link:hover .auth-signin-icon {
    color: var(--primary);
    transform: translateY(-1px);
}

.auth-signin-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.auth-signin-icon {
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Vibrant Orange Pill Create Account Button matching screenshot exactly */
.auth-btn-create {
    background: #FF5C00; /* Screenshot Vibrant Orange Match */
    border: none;
    border-radius: 30px;
    padding: 10px 24px;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(255, 92, 0, 0.25);
    font-family: 'Inter', sans-serif;
}

.auth-btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 92, 0, 0.4);
    background: #FF6A1A;
}

.auth-btn-create:active {
    transform: translateY(0);
}

/* Floating Switcher Notification */
.perspective-banner {
    background: linear-gradient(90deg, var(--secondary), var(--secondary-light)) !important;
    padding: 10px 24px;
    text-align: center;
    border-bottom: 1px solid var(--secondary-light) !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main) !important;
}

.perspective-banner .role-indicator {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.role-indicator.buyer { background: var(--primary); color: var(--text-dark); }
.role-indicator.seller { background: var(--info); color: white; }
.role-indicator.mediator { background: var(--danger); color: white; }

/* Main Container */
main {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid var(--secondary-light) !important;
    box-shadow: var(--card-shadow) !important;
}

.hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-left h1 span {
    color: var(--primary);
}

.hero-left p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-value.gold {
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero-right {
    display: flex;
    justify-content: center;
}

.hero-seal {
    width: 200px;
    height: 200px;
    object-fit: contain;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 10px 25px rgba(245, 166, 35, 0.2));
}

/* Verified Marketplace */
.section-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title span {
    color: var(--primary);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(11, 19, 43, 0.85);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-img-wrapper {
    height: 220px;
    overflow: hidden;
    border-radius: 12px;
    background: #0d1222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-details {
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-supplier {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.supplier-shield {
    width: 12px;
    height: 12px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--text-main);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-glass);
}

.product-price {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.product-moq {
    font-size: 12px;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Unified Escrow Dashboard layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
}

/* Sidebar List */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: fit-content;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.order-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.order-item.active {
    border-color: var(--primary);
    background: rgba(245, 166, 35, 0.06);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.1);
}

.order-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-id {
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
}

.status-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
}

.status-tag.draft { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-tag.deposited { background: var(--warning-glow); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-tag.shipped { background: rgba(59, 130, 246, 0.15); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.status-tag.delivered { background: var(--success-glow); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-tag.completed { background: rgba(16, 185, 129, 0.25); color: var(--success); }
.status-tag.disputed { background: var(--danger-glow); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

.order-item-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.order-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.order-item-price {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

/* Detail Panel Container */
.detail-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Active Escrow Detail Header */
.escrow-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.escrow-title-area h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.escrow-meta {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 16px;
}

.escrow-price-area {
    text-align: right;
}

.escrow-price-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.escrow-price-val {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 2px;
}

/* Timeline visualizer */
.timeline-card {
    padding: 30px 20px;
}

.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 10px;
}

.timeline-line {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: var(--secondary-light);
    z-index: 1;
    border-radius: 2px;
}

.timeline-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.timeline-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--secondary-light);
    border: 3px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.timeline-step.active .timeline-dot {
    background: var(--primary);
    color: var(--text-dark);
    border-color: var(--secondary);
    animation: pulse-gold 2s infinite;
    transform: scale(1.1);
}

.timeline-step.completed .timeline-dot {
    background: var(--success);
    color: white;
    border-color: var(--secondary);
}

.timeline-dot-icon {
    font-size: 18px;
}

.timeline-label {
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.timeline-step.active .timeline-label {
    color: var(--primary);
}

.timeline-step.completed .timeline-label {
    color: var(--success);
}

/* Detail Section Grid */
.detail-sec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    font-weight: 600;
}

.info-value.verified {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-value.verified::before {
    content: "✓";
    font-weight: 900;
}

/* Actions Section */
.actions-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.actions-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.actions-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-tip {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* Custom Waybill Uploder styling */
.waybill-uploader {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.waybill-uploader:hover {
    border-color: var(--primary);
    background: rgba(245, 166, 35, 0.02);
}

.waybill-uploader-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 6, 12, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 100%;
    max-width: 460px;
    border-radius: 20px;
    border: 1px solid var(--border-gold);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 166, 35, 0.1);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    background: var(--card-bg-solid);
}

/* Payment Gateway Mock Sandbox Styling */
.payment-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.pay-provider-btn {
    border: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 12px 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.pay-provider-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.pay-provider-btn.active {
    border-color: var(--primary);
    background: rgba(245, 166, 35, 0.08);
}

.pay-provider-logo {
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.pay-provider-lbl {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.pay-provider-btn.active .pay-provider-lbl {
    color: var(--primary);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}

.form-input {
    width: 100%;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-main) !important;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-input.has-prefix {
    padding-left: 54px;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 10px rgba(255, 92, 0, 0.15) !important;
    background: #ffffff !important;
}

.payment-summary {
    background: #f8fafc !important;
    border-radius: 10px;
    padding: 14px;
    border: 1px dashed #cbd5e1 !important;
    margin-bottom: 24px;
}

/* MoMo Sim Interface Dialogs (USSD & OTP) */
.momo-sim-window {
    background: #ffffff !important;
    border-radius: 12px;
    border: 2px solid #cbd5e1 !important;
    padding: 16px;
    margin-bottom: 20px;
    display: none;
    color: #0f172a !important;
    box-shadow: var(--card-shadow) !important;
}

.momo-sim-window.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.momo-sim-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #666;
}

.momo-sim-title {
    font-weight: 700;
    color: var(--primary);
}

.momo-sim-content {
    font-family: monospace;
    font-size: 13px;
    color: #00FF00;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* Dispute Chat/Timeline */
.dispute-card {
    border: 1px solid var(--danger-glow);
    background: rgba(239, 68, 68, 0.03);
    box-shadow: 0 8px 32px 0 rgba(239, 68, 68, 0.05);
}

.dispute-card:hover {
    border-color: rgba(239, 68, 68, 0.2);
}

.dispute-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
}

.dispute-badge {
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.dispute-title {
    font-size: 16px;
    font-weight: 700;
}

.dispute-chat {
    background: var(--secondary) !important;
    border: 1px solid var(--secondary-light) !important;
    border-radius: 12px;
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.5;
}

.chat-bubble.buyer {
    background: rgba(245, 166, 35, 0.15);
    border: 1px solid rgba(245, 166, 35, 0.2);
    align-self: flex-start;
}

.chat-bubble.seller {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.2);
    align-self: flex-end;
}

.chat-bubble.mediator {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.2);
    align-self: center;
    text-align: center;
    max-width: 90%;
    color: var(--success);
    font-weight: 500;
}

.chat-sender {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
    color: var(--text-muted);
}

.dispute-input-row {
    display: flex;
    gap: 12px;
}

/* Floating Actions Alert */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2000;
}

.toast {
    background: var(--card-bg-solid);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    min-width: 300px;
    max-width: 450px;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-glass);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
    font-size: 18px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(245, 166, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive adjustments */
@grid-media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }
    
    .hero-left p {
        margin: 0 auto 24px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .logo-wrapper {
        position: relative;
        left: 0;
        transform: none;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        gap: 16px;
        padding: 16px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .detail-sec-grid {
        grid-template-columns: 1fr;
    }
    .hero-left h1 {
        font-size: 32px;
    }
}

/* Staff Admin Portal Styling Rules */
.btn-secondary.admin-sub-tab.active {
    background: linear-gradient(135deg, var(--primary), #8a3ab9) !important;
    border-color: rgba(255,255,255,0.15) !important;
    color: var(--text-main) !important;
}

.admin-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: #ffffff;
    border: 1px solid var(--secondary-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
}

.admin-user-card {
    background: #ffffff;
    border: 1px solid var(--secondary-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.admin-user-card:hover {
    border-color: var(--primary);
    background: var(--dark-bg);
}

.admin-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary-light);
    padding-bottom: 8px;
}

.admin-user-details {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--text-muted);
}

.admin-user-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.admin-mediation-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.admin-mediation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-case-item {
    background: var(--dark-bg);
    border: 1px solid var(--secondary-light);
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-case-item:hover {
    background: var(--secondary);
}

.admin-case-item.active {
    border-color: var(--primary) !important;
    background: rgba(255, 92, 0, 0.05) !important;
}

.split-slider-container {
    background: var(--secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--secondary-light);
    margin-top: 16px;
}

.split-percentage-display {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
}

/* B2B Wholesale & Closeout Stock Styling */
.ware-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.ware-a {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.3);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}
.ware-b {
    background: rgba(245, 166, 35, 0.15);
    color: var(--primary);
    border: 1px solid rgba(245, 166, 35, 0.3);
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.1);
}
.ware-c {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.tier-pricing-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
    font-size: 11px;
    color: var(--text-muted);
}
.tier-pricing-table th, .tier-pricing-table td {
    padding: 6px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.tier-pricing-table th {
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.05em;
}
.tier-pricing-table tr.active td {
    color: var(--primary);
    font-weight: 700;
    background: rgba(245, 166, 35, 0.05);
}
.bulk-spec-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10.5px;
    color: var(--text-muted);
    display: inline-block;
    margin-top: 4px;
}

/* Dynamic Role Active Borders */
.order-item.role-buyer.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.25) !important;
}

.order-item.role-seller.active {
    border-color: var(--info) !important;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.25) !important;
}

.order-item.role-mediator.active {
    border-color: var(--danger) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.25) !important;
}

/* ==========================================================================
   Stunning Premium Landing Page Styles
   ========================================================================== */
.landing-page-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 24px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 60px;
}

.landing-hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.25);
    padding: 8px 18px;
    border-radius: 30px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.05);
    backdrop-filter: blur(8px);
}

.landing-hero-left h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.landing-hero-left h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, #ffd54f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero-left p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 620px;
}

/* Interactive Compact CTA Portal Layout */
.cta-portal-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 580px;
}

.cta-portal-btn {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 24px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.cta-portal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-portal-btn:hover::before {
    opacity: 1;
}

.cta-portal-btn:hover {
    transform: translateY(-3px) scale(1.01);
}

/* Glow Borders and Ambient Shadow Highlights */
.cta-portal-btn.buyer-glow {
    border-color: rgba(245, 166, 35, 0.25);
}
.cta-portal-btn.buyer-glow:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.18), 0 0 15px rgba(245, 166, 35, 0.1) inset;
}

.cta-portal-btn.seller-glow {
    border-color: rgba(96, 165, 250, 0.25);
}
.cta-portal-btn.seller-glow:hover {
    border-color: var(--info);
    box-shadow: 0 8px 30px rgba(96, 165, 250, 0.18), 0 0 15px rgba(96, 165, 250, 0.1) inset;
}

.cta-portal-btn.admin-glow {
    border-color: rgba(248, 113, 113, 0.25);
}
.cta-portal-btn.admin-glow:hover {
    border-color: var(--danger);
    box-shadow: 0 8px 30px rgba(248, 113, 113, 0.18), 0 0 15px rgba(248, 113, 113, 0.1) inset;
}

.btn-portal-icon {
    font-size: 24px;
    margin-right: 18px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.cta-portal-btn:hover .btn-portal-icon {
    transform: scale(1.2);
}

.btn-portal-txt {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.btn-portal-txt strong {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.btn-portal-txt span {
    font-size: 11.5px;
    color: var(--text-muted);
}

.btn-portal-arrow {
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.cta-portal-btn:hover .btn-portal-arrow {
    transform: translateX(6px);
    color: var(--text-main);
}

/* Smartphone Escrow Vault Simulator */
.landing-hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.phone-mockup-wrapper {
    width: 100%;
    max-width: 360px;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08), 0 0 40px rgba(0, 0, 0, 0.03) !important;
    border-radius: 36px !important;
    padding: 28px 20px 20px 20px !important;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%) !important;
    transform: rotateY(-12deg) rotateX(8deg) rotateZ(-2deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(-4deg) rotateX(4deg) rotateZ(0deg) translateY(-5px);
    border-color: var(--primary) !important;
}

.phone-notch {
    width: 120px;
    height: 18px;
    background: #e2e8f0;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: none;
}

.phone-screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 24px;
    padding: 0 4px;
    letter-spacing: 0.02em;
}

.phone-vault-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.vault-lock-icon {
    font-size: 40px;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    user-select: none;
}

.status-pill {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: inline-block;
    transition: all 0.4s ease;
}

.status-pill.status-locked {
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary);
    border: 1px solid rgba(245, 166, 35, 0.3);
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.05);
}

.status-pill.status-success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.05);
}

.status-pill.status-refunded {
    background: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.3);
    box-shadow: 0 2px 10px rgba(248, 113, 113, 0.05);
}

.phone-tx-card {
    background: var(--secondary);
    border: 1px solid var(--secondary-light);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
}

.tx-lbl {
    color: var(--text-muted);
}

.tx-val {
    color: var(--text-main);
}

.phone-interactive-prompt {
    background: rgba(245, 166, 35, 0.04);
    border: 1px dashed rgba(245, 166, 35, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sim-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sim-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.sim-btn.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.sim-btn.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Glassmorphic Stats Counter Bar */
.landing-stats-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    padding: 24px 32px;
    margin-bottom: 64px;
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 92, 0, 0.15) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.03), 0 0 20px rgba(255, 92, 0, 0.03) !important;
    border-radius: 20px !important;
}

.lstat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lstat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.landing-stats-bar .lstat-item:first-child .lstat-value {
    background: linear-gradient(135deg, var(--primary) 0%, #ffd54f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lstat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lstat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
}

/* Platform Value Pillars Section */
.landing-pillars-section {
    margin-bottom: 64px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.pillar-card {
    background: rgba(30, 41, 59, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 20px !important;
    padding: 32px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: var(--card-shadow) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6) !important;
}

.pillar-card.gold-glow {
    border-color: rgba(245, 166, 35, 0.25) !important;
}

.pillar-card.gold-glow:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 15px 35px rgba(245, 166, 35, 0.15), var(--card-shadow) !important;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pillar-icon {
    font-size: 28px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.pillar-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.pillar-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Roadmap Grid */
.landing-roadmap-panel {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 92, 0, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: var(--glow-shadow), var(--card-shadow) !important;
    margin-bottom: 40px;
}

.landing-roadmap-panel .roadmap-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.roadmap-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 14px;
    padding: 20px 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.roadmap-card:hover {
    border-color: var(--primary);
    background: rgba(255, 92, 0, 0.04);
}

.roadmap-num {
    font-size: 28px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: rgba(245, 166, 35, 0.08);
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.roadmap-card:hover .roadmap-num {
    color: rgba(245, 166, 35, 0.25);
}

.roadmap-card h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.roadmap-card p {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Responsive Landing Page */
@media (max-width: 1024px) {
    .landing-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .landing-hero-left {
        align-items: center;
        text-align: center;
    }
    
    .landing-hero-left h1 {
        font-size: 38px;
    }
    
    .cta-portal-grid-compact {
        max-width: 100%;
    }
    
    .phone-mockup-wrapper {
        max-width: 320px;
    }
    
    .phone-mockup {
        transform: none !important;
    }
    
    .landing-stats-bar {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }
    
    .lstat-divider {
        width: 80%;
        height: 1px;
        margin: 0 auto;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .landing-roadmap-panel .roadmap-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================================================
   WORKSPACE TABS & SOCIAL FEED (TRADEFEED) UPGRADES
   ========================================================================== */

/* Workspace Selector Pills Nav */
.workspace-tabs-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 20px auto 30px auto;
    padding: 6px;
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    width: max-content;
    max-width: 90%;
    z-index: 10;
}

.workspace-tab {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 13.5px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
}

.workspace-tab:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.workspace-tab.active {
    color: var(--text-main);
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(245, 166, 35, 0.02));
    border-color: rgba(245, 166, 35, 0.25);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.08);
}

.workspace-tab[data-wtab="market"].active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.02));
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.08);
}

.workspace-tab[data-wtab="escrow"].active {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.15), rgba(0, 230, 118, 0.02));
    border-color: rgba(0, 230, 118, 0.25);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.08);
}

/* Social Grid Layout */
.social-feed-container {
    animation: fadeIn 0.4s ease-out;
    padding: 0 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.social-feed-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1.2fr;
    gap: 24px;
    align-items: start;
}

/* Left Panel Stats & Bio-Sync */
.social-left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-profile-card {
    text-align: center;
    padding: 24px 20px;
}

.profile-avatar-large {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-light), var(--card-bg-hover));
    border: 2px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.15);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-stat-box {
    background: var(--dark-bg);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--secondary-light);
}

.pstat-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.pstat-lbl {
    display: block;
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Composer Style */
.social-composer-card {
    padding: 20px;
    margin-bottom: 24px;
}

.composer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.composer-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

.composer-select {
    background: var(--secondary);
    border: 1px solid var(--secondary-light);
    color: var(--text-main);
    font-size: 11.5px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: var(--transition);
}

.composer-select:focus {
    border-color: var(--primary);
    outline: none;
}

.composer-textarea {
    width: 100%;
    min-height: 80px;
    background: var(--dark-bg);
    border: 1px solid var(--secondary-light);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: var(--transition);
}

.composer-textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 10px var(--primary-glow);
}

.composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.composer-hint {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* Timeline Cards */
.social-posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-card {
    animation: fadeIn 0.3s ease-out;
    padding: 20px;
}

.sc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sc-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
}

.sc-author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sc-author-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-author-role {
    font-size: 10.5px;
    color: var(--text-muted);
}

.sc-badge {
    font-size: 9px;
    background: rgba(245, 166, 35, 0.06);
    border: 1px solid rgba(245, 166, 35, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
}

.sc-badge.buying {
    background: rgba(96, 165, 250, 0.06);
    border-color: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.sc-badge.logistics {
    background: rgba(167, 139, 250, 0.06);
    border-color: rgba(167, 139, 250, 0.15);
    color: #c084fc;
}

.sc-badge.escrow {
    background: rgba(52, 211, 153, 0.06);
    border-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.sc-body {
    text-align: left;
    font-size: 13.5px;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 14px;
    white-space: pre-wrap;
}

.sc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 10px;
    margin-top: 10px;
}

.sc-actions-left {
    display: flex;
    gap: 16px;
}

.sc-action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.sc-action-btn:hover {
    color: var(--primary);
}

.sc-action-btn.liked {
    color: #ef4444;
}

.sc-action-btn.liked:hover {
    color: #f87171;
}

/* Comment Thread Styles */
.comment-wrapper {
    margin-top: 14px;
    background: var(--secondary);
    border-top: 1px solid var(--secondary-light);
    padding: 12px;
    border-radius: 8px;
    display: none; /* Toggled in JS */
}

.comment-wrapper.active {
    display: block;
}

.comment-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 4px;
}

.comment-item {
    display: flex;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    text-align: left;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05) !important;
    padding-bottom: 6px;
}

.comment-item-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 9.5px;
    color: var(--text-muted) !important;
}

.comment-item-body {
    flex: 1;
}

.comment-item-user {
    font-weight: 700;
    color: var(--text-main);
    margin-right: 6px;
}

.comment-item-text {
    color: var(--text-muted) !important;
}

.comment-item-time {
    font-size: 9px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.comment-input-bar {
    display: flex;
    gap: 8px;
}

.comment-input {
    flex: 1;
    background: #000;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text-main);
    height: 30px;
    box-sizing: border-box;
}

.comment-input:focus {
    border-color: var(--primary);
    outline: none;
}

.comment-submit-btn {
    padding: 6px 12px;
    font-size: 11px;
    width: auto;
    border-radius: 6px;
    height: 30px;
}

/* Right Panel: Tickers & Online directory */
.social-ticker-card {
    padding: 16px;
    margin-bottom: 20px;
}

.ticker-scroll-area {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

.ticker-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticker-item {
    font-size: 11.5px;
    line-height: 1.4;
    padding: 8px;
    background: var(--secondary);
    border-radius: 6px;
    border-left: 2px solid var(--primary);
    animation: fadeIn 0.4s ease-out;
    text-align: left;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid var(--secondary-light);
    border-left: 3px solid var(--primary);
}

.ticker-pulse-container {
    margin-top: 3px;
}

.ticker-content {
    flex: 1;
}

.ticker-time {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Pulse Dot Animation for Ticker activity */
.pulse-dot {
    width: 6px;
    height: 6px;
    background: #00e676;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

/* Online Active Traders Directory styling */
.social-active-traders-card {
    padding: 16px;
}

.active-traders-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.active-trader-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    padding: 6px;
    border-radius: 6px;
    transition: var(--transition);
}

.active-trader-item:hover {
    background: var(--secondary) !important;
}

.trader-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary-light) !important;
    border: 1px solid var(--border-glass) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    position: relative;
}

.trader-avatar-small.online::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00e676;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    border: 1px solid var(--secondary);
}

.trader-info {
    display: flex;
    flex-direction: column;
}

.trader-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
}

.trader-role {
    font-size: 9.5px;
    color: var(--text-muted);
}

/* Responsive Social Feed */
@media (max-width: 1024px) {
    .social-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* Ambient Glow Highlights for Premium Sleek Aesthetics */
.ambient-glow {
    position: fixed;
    width: 30vw;
    height: 30vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: -2;
    transition: all 0.5s ease;
}

.glow-1 {
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    animation: glowFloat 12s infinite ease-in-out alternate;
}

.glow-2 {
    bottom: 15%;
    right: 5%;
    background: radial-gradient(circle, var(--info), transparent 70%);
    animation: glowFloat 15s infinite ease-in-out alternate-reverse;
}

.glow-3 {
    top: 50%;
    left: 45%;
    background: radial-gradient(circle, #a78bfa, transparent 70%);
    animation: glowFloat 18s infinite ease-in-out alternate;
}

@keyframes glowFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-40px) scale(1.1); }
    100% { transform: translateY(20px) scale(0.9); }
}

/* Landing Commerce Showcase Layout */
.landing-commerce-showcase {
    animation: fadeIn 0.4s ease-out;
}

.commerce-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px auto 0 auto;
    max-width: 1000px; /* Center-bounds and scales down the cards width */
    width: 100%;
}

.commerce-spotlight-card {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    display: flex;
    flex-direction: column;
    height: 100%;
}

.commerce-spotlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 166, 35, 0.15);
}

.spotlight-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.spotlight-img-container {
    width: 100%;
    height: 130px; /* Compact image height */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spotlight-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.commerce-spotlight-card:hover .spotlight-img {
    transform: scale(1.08);
}

.spotlight-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spotlight-supplier {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.spotlight-specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}

.spotlight-calc-box {
    margin-top: auto;
}

/* Pulse highlight overlay animations for commerce grids */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 166, 35, 0.1);
}

/* Light up card borders */
.glass-card.gold-glow {
    border-color: rgba(245, 166, 35, 0.4);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(245, 166, 35, 0.02));
}

.glass-card.gold-glow:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(245, 166, 35, 0.25), var(--card-shadow);
}

.social-composer-card.gold-glow:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.15);
}

@media (max-width: 768px) {
    .commerce-showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Verified Supplier Showrooms & Pallet Shops Grid */
.landing-shops-showcase {
    animation: fadeIn 0.4s ease-out;
}

.shops-showrooms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Displays 4 shops at the same time */
    gap: 16px;
    margin: 32px auto 0 auto;
    max-width: 1000px;
    width: 100%;
}

.shop-showroom-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shop-showroom-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 166, 35, 0.12);
}

.shop-showroom-card[style*="rgba(96, 165, 250"]:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(96, 165, 250, 0.12);
}

.shop-showroom-card[style*="rgba(52, 211, 153"]:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(52, 211, 153, 0.12);
}

.shop-showroom-card[style*="rgba(248, 113, 113"]:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(248, 113, 113, 0.12);
}

@media (max-width: 1024px) {
    .shops-showrooms-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .shops-showrooms-grid {
        grid-template-columns: 1fr; /* Full-width stack on mobile phones */
        gap: 16px;
    }
}

/* Premium CTA Grid & Cards Styles */
.landing-hero-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
    width: 100%;
    max-width: 900px;
}

.landing-cta-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 28px 24px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--card-bg);
}

.landing-cta-card:hover {
    transform: translateY(-6px);
}

.buyer-card-glow:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 0 35px rgba(245, 166, 35, 0.3), var(--card-shadow) !important;
}

.seller-card-glow:hover {
    border-color: var(--info) !important;
    box-shadow: 0 0 35px rgba(96, 165, 250, 0.3), var(--card-shadow) !important;
}

.card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.buyer-card-glow .card-glow-overlay {
    background: radial-gradient(circle at 10% 10%, rgba(245, 166, 35, 0.08), transparent 60%);
}

.seller-card-glow .card-glow-overlay {
    background: radial-gradient(circle at 10% 10%, rgba(96, 165, 250, 0.08), transparent 60%);
}

.landing-cta-header {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    text-align: left;
}

.cta-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    backdrop-filter: blur(8px);
}

.cta-badge.gold {
    background: rgba(245, 166, 35, 0.1);
    color: var(--primary);
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.cta-badge.blue {
    background: rgba(96, 165, 250, 0.1);
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.25);
}

.landing-cta-title {
    position: relative;
    z-index: 1;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-main);
    margin-bottom: 12px;
    text-align: left;
}

.landing-cta-desc {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: left;
}

.landing-cta-bullets {
    position: relative;
    z-index: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    padding-left: 0;
    text-align: left;
    flex-grow: 1;
}

.landing-cta-bullets li {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.bullet-check {
    font-weight: 700;
    font-size: 13px;
    user-select: none;
}

.buyer-card-glow .bullet-check {
    color: var(--primary);
}

.seller-card-glow .bullet-check {
    color: var(--info);
}

.btn-cta {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-buyer {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 15px rgba(245, 166, 35, 0.05);
}

.btn-buyer:hover {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 25px rgba(245, 166, 35, 0.35);
}

.btn-seller {
    background: transparent;
    color: var(--info);
    border: 1px solid rgba(96, 165, 250, 0.3);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.05);
}

.btn-seller:hover {
    background: var(--info);
    color: var(--text-dark);
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.35);
}

.btn-arrow {
    font-size: 14px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta:hover .btn-arrow {
    transform: translateX(4px);
}

/* Tablet & Mobile responsive overrides */
@media (max-width: 1024px) {
    .landing-hero-cta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin-left: 0;
    }
}

/* ==========================================================================
   Toyota HiLux Screenshot-Matched Premium Grid Card Styles
   ========================================================================== */
.premium-grid-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--border-glass);
}

.premium-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 166, 35, 0.15);
}

.premium-grid-card.blue-glow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(96, 165, 250, 0.15);
}

.premium-grid-card.red-glow:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(248, 113, 113, 0.15);
}

.card-img-container {
    width: 100%;
    height: 180px; /* Compact image height */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-grid-card:hover .card-img {
    transform: scale(1.06);
}

/* Absolute Star Button in Top Right of image */
.card-star-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-star-btn:hover {
    background: rgba(15, 23, 42, 0.85);
    transform: scale(1.1);
    color: #fff;
}

.card-star-btn.favorited {
    color: #f5a623 !important;
    background: rgba(245, 166, 35, 0.15) !important;
    border-color: rgba(245, 166, 35, 0.4) !important;
}

/* Absolute Brand Tag in Top Left of image */
.card-brand-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(245, 166, 35, 0.2);
    border: 1px solid rgba(245, 166, 35, 0.4);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8.5px;
    font-weight: 800;
}

.card-brand-badge.blue .brand-avatar {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
    color: var(--info);
}

.card-brand-badge.red .brand-avatar {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    color: var(--danger);
}

.brand-name {
    font-size: 10px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
}

/* Absolute Pill Tag in Top Left of image (below brand) */
.card-pill-tag {
    position: absolute;
    top: 46px;
    left: 12px;
    z-index: 10;
    font-size: 8.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.card-pill-tag.surplus {
    background: #10b981;
    color: #fff;
}

.card-pill-tag.limited {
    background: #3b82f6;
    color: #fff;
}

.card-pill-tag.liquidation {
    background: #ef4444;
    color: #fff;
}

/* Card details body layout */
.card-info-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.card-title-main {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 4px;
    color: var(--text-main);
}

.card-subtitle-spec {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
    min-height: 35px; /* Ensures text aligns neatly across grids */
}

/* Meta horizontal row exactly matching mileage, year, location icons */
.card-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.card-meta-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    opacity: 0.75;
}

/* Dynamic Pricing Block */
.card-price-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    flex-grow: 1;
    justify-content: flex-end; /* Pushes price to the bottom if content is short */
}

.card-price-original {
    font-size: 11px;
    color: #cbd5e1;
    text-decoration: line-through;
    margin-bottom: 2px;
    opacity: 0.6;
}

.card-price-active {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.card-price-unit {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: normal;
}

/* ==========================================================================
   Toyota HiLux Screenshot-Matched Showroom & White Grid Card Styles
   ========================================================================== */

/* Showroom floor container matching screenshot background */
.showroom-floor {
    background-color: #ffffff !important;
    border-radius: 20px;
    padding: 32px 24px;
    margin: 24px 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02), var(--card-shadow) !important;
    border: 1px solid var(--secondary-light) !important;
    color: #1f2937 !important; /* Dark text for light mode section */
}

/* Light header override inside showroom floor */
.showroom-floor h2 {
    color: #111827 !important;
    font-weight: 800;
}
.showroom-floor p {
    color: #4b5563 !important;
}

/* The grid itself: 4 columns on desktop, 3 on tablet, 2 on mobile to always show multiple cards on the same line */
.hilux-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

@media (max-width: 1024px) {
    .hilux-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .hilux-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    /* Highly compact mobile visual scaling to prevent overflow and maintain high visual excellence */
    .hilux-card-img-wrapper {
        height: 110px !important;
    }
    .hilux-title {
        font-size: 12.5px !important;
    }
    .hilux-subtitle {
        font-size: 9.5px !important;
        min-height: 28px !important;
        margin-bottom: 8px !important;
    }
    .hilux-meta-row {
        gap: 6px !important;
        margin-bottom: 8px !important;
        padding-bottom: 6px !important;
    }
    .hilux-meta-item {
        font-size: 9px !important;
        gap: 2px !important;
    }
    .hilux-meta-icon svg {
        width: 11px !important;
        height: 11px !important;
    }
    .hilux-price-active {
        font-size: 14.5px !important;
    }
    .hilux-price-original {
        font-size: 9.5px !important;
    }
    .hilux-btn-secure {
        padding: 6px !important;
        font-size: 9.5px !important;
    }
    .hilux-details {
        padding: 10px !important;
    }
    .hilux-star-btn {
        width: 26px !important;
        height: 26px !important;
        top: 6px !important;
        right: 6px !important;
    }
    .hilux-star-btn svg {
        width: 13px !important;
        height: 13px !important;
    }
    .hilux-badge-wrapper {
        top: 6px !important;
        left: 6px !important;
    }
    .hilux-brand-overlay {
        padding: 2px 5px !important;
        border-radius: 4px !important;
    }
    .hilux-brand-avatar {
        width: 13px !important;
        height: 13px !important;
        font-size: 6.5px !important;
    }
    .hilux-brand-name {
        font-size: 7.5px !important;
    }
    .hilux-pill-tag {
        font-size: 7px !important;
        padding: 1px 4px !important;
        border-radius: 2px !important;
    }
    .hilux-watermark {
        font-size: 7px !important;
        padding: 1px 4px !important;
        bottom: 6px !important;
        right: 6px !important;
    }
}


/* White Hilux-style card matching screenshot */
.hilux-card {
    background: #ffffff !important;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    position: relative;
}

.hilux-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Image Container */
.hilux-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    background-color: #f9fafb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
}

.hilux-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hilux-card:hover .hilux-card-img {
    transform: scale(1.04);
}

/* Star Button - Top Right Overlay */
.hilux-star-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.hilux-star-btn:hover {
    transform: scale(1.1);
    background: #f9fafb;
    color: #111827;
}

.hilux-star-btn.favorited {
    color: #eab308 !important; /* Gold star */
}

/* Badge Top Left Overlay */
.hilux-badge-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Supplier avatar / name overlay */
.hilux-brand-overlay {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(4px);
}

.hilux-brand-avatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 800;
}

.hilux-brand-name {
    font-size: 9px;
    font-weight: 700;
    color: #1f2937;
}

/* FOKUS green pill overlay */
.hilux-pill-tag {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: max-content;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hilux-pill-tag.fokus {
    background: #15803d; /* Dark green matching FOKUS tag in screenshot */
    color: #ffffff;
}

.hilux-pill-tag.inkl-moms {
    background: #4b5563; /* Gray matching INKL. MOMS tag in screenshot */
    color: #ffffff;
}

.hilux-pill-tag.surplus {
    background: #15803d;
    color: #ffffff;
}

.hilux-pill-tag.limited {
    background: #2563eb;
    color: #ffffff;
}

.hilux-pill-tag.liquidation {
    background: #dc2626;
    color: #ffffff;
}

/* Watermark logo overlay on card image bottom-right */
.hilux-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 800;
    color: #4b5563;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Details Body */
.hilux-details {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.hilux-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827 !important;
    margin-bottom: 2px;
    line-height: 1.3;
}

.hilux-subtitle {
    font-size: 11px;
    color: #6b7280 !important;
    line-height: 1.4;
    margin-bottom: 12px;
    min-height: 32px; /* standard height to align spec row */
}

/* Meta spec row */
.hilux-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

.hilux-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: #6b7280 !important;
    font-weight: 500;
}

.hilux-meta-icon {
    color: #9ca3af !important;
    display: flex;
    align-items: center;
}

/* Price block */
.hilux-price-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    flex-grow: 1;
    justify-content: flex-end;
}

.hilux-price-original {
    font-size: 11px;
    color: #9ca3af !important;
    text-decoration: line-through;
    margin-bottom: 1px;
}

.hilux-price-active {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #111827 !important;
}

.hilux-price-unit {
    font-size: 10.5px;
    color: #6b7280 !important;
    font-weight: 500;
}

.hilux-btn-secure {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    background: #111827;
    color: #ffffff;
    transition: background 0.2s ease;
    margin-top: auto;
}

.hilux-btn-secure:hover {
    background: #374151;
}

/* ==========================================================================
   ECOSYSTEM TAILORED UPGRADES (Dialer, Split Escrow, Timers & Badging)
   ========================================================================== */

/* FDA/GSA Standards badge */
.standards-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.1), rgba(245, 166, 35, 0.03));
    border: 1px solid rgba(245, 166, 35, 0.35);
    color: var(--primary);
    font-size: 8.5px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    width: max-content;
}

.standards-badge-pill.verified {
    border-color: rgba(0, 230, 118, 0.35);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 230, 118, 0.03));
    color: #00e676;
}

/* Split Escrow Progress Meter */
.split-payout-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    margin-top: 14px;
}

.split-meter-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.split-meter-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.split-meter-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.split-meter-segment.courier {
    background: #60a5fa; /* Blue */
}

.split-meter-segment.broker {
    background: #c084fc; /* Purple */
}

.split-meter-segment.supplier {
    background: #00e676; /* Green */
}

.split-meter-segment.locked {
    background: rgba(255, 255, 255, 0.1);
}

.split-labels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.split-label-item {
    font-size: 9.5px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.split-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

/* USSD Interactive Dialer Modal Overlay */
.ussd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ussd-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ussd-phone-mock {
    width: 320px;
    background: #1e1e24;
    border: 8px solid #2d2d35;
    border-radius: 36px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.ussd-screen {
    width: 100%;
    height: 240px;
    background: #efeae2; /* WhatsApp light gray / paper style */
    border-radius: 20px;
    border: 4px solid #111;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: monospace;
    font-size: 11px;
    color: #111;
    text-align: left;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.ussd-screen-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: bold;
    color: #666;
}

.ussd-screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    white-space: pre-wrap;
    line-height: 1.4;
}

.ussd-screen-input-row {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 4px;
    display: flex;
    gap: 6px;
}

.ussd-screen-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #111;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    outline: none;
}

.ussd-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
    width: 100%;
}

.ussd-key-btn {
    background: #2d2d35;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background 0.2s ease;
}

.ussd-key-btn:hover {
    background: #3e3e48;
}

.ussd-key-btn:active {
    background: var(--primary);
}

.ussd-key-subtext {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

/* Handover Inspection timer badge */
.handover-countdown-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    animation: pulseRed 2s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Floating USSD simulator trigger */
.ussd-float-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: #ffffff;
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.ussd-float-trigger:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}

.ussd-float-trigger:active {
    transform: translateY(-1px) scale(0.98);
}

/* ==========================================================================
   PERFORMANCE & DEVICE OPTIMIZATIONS (LOW BANDWIDTH & MOBILE SCALING)
   ========================================================================== */

/* Fallback local system font stack configuration */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Low-Bandwidth Mode styles: suspends high-GPU and high-cellular actions */
body.low-bandwidth {
    background: #0b0f19 !important; /* Flat dark background */
}

body.low-bandwidth .ambient-glow {
    display: none !important; /* Hide dynamic GPU glow effects */
}

body.low-bandwidth * {
    animation: none !important; /* Suspend ticking/pulsing animations */
    transition: none !important; /* Disable transition timing computations */
    box-shadow: none !important; /* Disable rendering shadows */
}

body.low-bandwidth .glass-card, 
body.low-bandwidth .modal-content, 
body.low-bandwidth .ussd-phone-mock {
    backdrop-filter: none !important; /* Suspend CPU-intensive blur effects */
    background: #1e293b !important; /* Use flat solid color instead */
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Touch targets and mobile scaling optimizations */
@media (max-width: 640px) {
    .btn, 
    .ussd-key-btn, 
    .hilux-btn-secure, 
    .modal-close,
    .pay-provider-btn {
        min-height: 46px !important; /* 44px+ touch targets for fat-finger safety */
    }
    
    .filter-controls-grid {
        grid-template-columns: 1fr !important; /* Linear grid stacking on mobiles */
        gap: 12px !important;
    }
    
    .social-feed-grid {
        grid-template-columns: 1fr !important;
    }
    
    .detail-sec-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Escrow Gateway Payment Portal Simulation Styles */
.gateway-dev-key-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
    font-size: 10.5px;
    padding: 4px 8px;
    border-radius: 4px;
    width: 200px;
    transition: var(--transition);
    outline: none;
}
.gateway-dev-key-input:focus {
    border-color: var(--gateway-accent);
    background: rgba(255,255,255,0.1);
}
.secured-by-gateway-tag {
    color: var(--gateway-accent) !important;
    font-weight: 800;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gateway-loading-pulse {
    width: 100%;
    height: 4px;
    background-color: rgba(59, 183, 94, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 15px;
    border-radius: 2px;
}
.gateway-loading-pulse::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background-color: var(--gateway-accent);
    position: absolute;
    left: -40%;
    animation: gateway-pulse-anim 1.5s infinite linear;
}
@keyframes gateway-pulse-anim {
    0% { left: -40%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Category Bar styling matching the screenshot exactly */
.category-bar-wrapper {
    position: relative;
    margin-bottom: 24px;
    padding: 12px 0;
    display: flex;
    align-items: center;
    background: transparent;
}

.category-list-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 32px;
    width: 100%;
    padding: 8px 48px 12px 16px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-list-container::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.category-list-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    min-width: 90px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.category-item svg {
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item span {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-item:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.category-item:hover svg {
    stroke: var(--primary);
}

.category-item:hover span {
    color: var(--text-main);
    font-weight: 600;
}

.category-item.active {
    color: var(--primary);
}

.category-item.active svg {
    stroke: var(--primary);
    stroke-width: 2;
    transform: scale(1.1);
}

.category-item.active span {
    color: var(--primary);
    font-weight: 700;
}

.category-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Scroll Arrow Button */
.category-scroll-btn {
    position: absolute;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--secondary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.category-scroll-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(255, 92, 0, 0.15);
}

/* Main Header Navigation Link styles */
.main-nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav-tab {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.main-nav-tab:hover {
    color: var(--primary);
    background: rgba(255, 92, 0, 0.04);
}

.main-nav-tab.active {
    color: var(--primary);
    background: rgba(255, 92, 0, 0.08);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 92, 0, 0.15);
}

/* Mobile Responsiveness for Header links */
@media (max-width: 1024px) {
    .main-nav-links {
        gap: 8px;
    }
    .main-nav-tab {
        padding: 6px 10px;
        font-size: 12.5px;
    }
}

@media (max-width: 900px) {
    .main-nav-links {
        display: none; /* Hide in header, can be toggled or accessed in workspace selector */
    }
}

/* ==========================================
   EURO-AFRICAN CROSS-BORDER TRADE CUSTOM STYLES
   ========================================== */
.wholesale-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 11px;
}

.wholesale-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.wholesale-badge.origin-africa {
    background: rgba(16, 185, 129, 0.15) !important;
    color: var(--success) !important;
}

.wholesale-badge.origin-europe {
    background: rgba(59, 130, 246, 0.15) !important;
    color: var(--info) !important;
}

.wholesale-profit-tag {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--success);
    background: var(--success-glow);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.wholesale-msrp {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
}

.webhook-log-pre {
    background: #020813 !important;
    color: #b9fbc0 !important;
    border-color: #112a14 !important;
    font-family: monospace;
    font-size: 10.5px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 145px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.sync-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.sync-btn {
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    width: auto !important;
}

.timeline-step.active .timeline-dot.pegged-pulse {
    animation: pulse-blue 2s infinite !important;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* ── Shop Application System ─────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Modal overlay base for shop modals */
#shop-application-modal,
#shop-reject-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1200;
}

#shop-application-modal .modal-box,
#shop-reject-modal .modal-box {
    animation: fadeIn 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* ── Firebase Loading Overlay Spinner ─────────────────────────────────── */
@keyframes tt-spin {
    to { transform: rotate(360deg); }
}











