/* Modern Ahia Marketplace Styling - Premium Market Theme */
:root {
    /* Primary Colors - Black Market Theme */
    --primary-color: #000000;
    --primary-dark: #000000;
    --primary-light: #333333;
    
    /* Secondary Colors - Complementary */
    --secondary-color: #1a1a2e;
    --secondary-dark: #0d0d1a;
    --secondary-light: #2d2d4a;
    
    /* Accent Colors */
    --accent-color: #ff8c1a;
    --accent-dark: #e67300;
    --accent-light: #ffab54;
    
    /* Neutral Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-alt: #f9fafb;
    --background-dark: #1a1a2e;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Glass effect colors */
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --glass-header-bg: rgba(255, 255, 255, 0.97);
    --glass-card-bg: rgba(255, 255, 255, 0.98);
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Accent Colors for Menu */
    --gold-color: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: #FFEC8B;
    
    /* Enhanced Shadows - Softer, more modern */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 4px 24px 0 rgba(0, 0, 0, 0.06);
    
    /* Border Radius - More rounded for modern feel */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* PWA Safe Areas */
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    
    /* Typography - Enhanced font sizes for better visibility */
    --font-size-xs: 0.8125rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Bottom nav height for padding */
    --bottom-nav-height: 64px;
}

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

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #f5f5f7;
    font-size: var(--font-size-base);
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Fade-in transition for page load */
    animation: pageEnter 0.4s ease-out;
}

/* ===== PAGE ENTRANCE & EXIT ANIMATIONS ===== */
@keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* Staggered entrance for main content children */
.main-content > .container > * {
    animation: fadeSlideUp 0.5s ease-out both;
}

.main-content > .container > *:nth-child(1) { animation-delay: 0.05s; }
.main-content > .container > *:nth-child(2) { animation-delay: 0.10s; }
.main-content > .container > *:nth-child(3) { animation-delay: 0.15s; }
.main-content > .container > *:nth-child(4) { animation-delay: 0.20s; }
.main-content > .container > *:nth-child(5) { animation-delay: 0.25s; }
.main-content > .container > *:nth-child(6) { animation-delay: 0.30s; }
.main-content > .container > *:nth-child(7) { animation-delay: 0.35s; }
.main-content > .container > *:nth-child(8) { animation-delay: 0.40s; }
.main-content > .container > *:nth-child(9) { animation-delay: 0.45s; }
.main-content > .container > *:nth-child(10) { animation-delay: 0.50s; }

/* Card entrance animation */
.card,
.content-card,
.product-card,
.market-category-card {
    animation: fadeSlideUp 0.5s ease-out both;
}

.card:nth-child(1),
.content-card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2),
.content-card:nth-child(2) { animation-delay: 0.10s; }
.card:nth-child(3),
.content-card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4),
.content-card:nth-child(4) { animation-delay: 0.20s; }
.card:nth-child(5),
.content-card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6),
.content-card:nth-child(6) { animation-delay: 0.30s; }

/* Mobile bottom nav entrance */
.mobile-bottom-nav {
    animation: fadeSlideUp 0.4s ease-out;
}

/* ===== SKELETON LOADING STATES ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 936px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    width: 100%;
}

.skeleton-text.short { width: 60%; }
.skeleton-text.tiny { width: 30%; }

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-button {
    width: 120px;
    height: 40px;
    border-radius: var(--radius-md);
}

/* ===== ENHANCED INTERACTIVE ELEMENTS ===== */
/* Click feedback */
.btn:active,
.nav-link:active,
.card:active,
.product-card:active {
    transform: scale(0.98);
}

/* Smooth image loading */
img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img[src],
img[srcset] {
    opacity: 1;
}

/* Image lazy-load fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

/* Enhanced focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #0d0d0d;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ===== ENHANCED CARD VARIANTS ===== */
/* Elevation card - more prominent shadow for featured content */
.card-elevated {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: none;
}

.card-elevated:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

/* Bordered card variant */
.card-bordered {
    border: 2px solid #0d0d0d;
    box-shadow: none;
}

.card-bordered:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Interactive list items */
.list-item-interactive {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.list-item-interactive:hover {
    background: #f8f8f8;
    border-color: var(--border-color);
}

.list-item-interactive:active {
    transform: scale(0.99);
    background: #f0f0f0;
}

/* ===== NOTIFICATION BADGE PULSE ===== */
@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.badge-count,
.notification-badge,
.badge {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Badge hover pause */
.badge-count:hover,
.notification-badge:hover {
    animation-play-state: paused;
}

/* ===== ENHANCED FLASH MESSAGES ===== */
.alert {
    animation: fadeSlideDown 0.35s ease-out;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Modern Header ===== */
.main-header {
    background: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    left: 0;
    right: 0;
}

.navbar {
    padding: 6px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    font-size: 1.6rem;
    color: #FFFFFF;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #FFFFFF;
    background-clip: unset;
    filter: none;
    animation: none;
}

.brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: none;
    list-style: none;
    align-items: center;
    gap: 1px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    flex: 1;
    margin-left: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    white-space: nowrap;
}
.nav-menu::-webkit-scrollbar { display: none; }

/* Show text labels on desktop too for better UX */
.nav-link .nav-text {
    display: none;
}

@media (min-width: 1200px) {
    .nav-link .nav-text {
        display: inline;
    }
}

@media (max-width: 768px) {
    .nav-link .nav-text {
        display: inline;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
    background: transparent;
    backdrop-filter: none;
    border: 1px solid transparent;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-link:active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.admin-link {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link.seller-link {
    background: #FFFFFF;
    color: #0d0d0d;
    border: 1px solid #FFFFFF;
    font-weight: 700;
}

.nav-link.seller-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0d0d0d;
}

.nav-link.sell-link,
.nav-link.sell-cta {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.nav-link.sell-link:hover,
.nav-link.sell-cta:hover {
    background: #FFFFFF;
    color: #0d0d0d;
}

.nav-link.login-btn {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #FFFFFF;
}

.nav-link.login-btn:hover {
    background: #FFFFFF;
    color: #0d0d0d;
}

.nav-link.register-btn {
    background: #FFFFFF;
    color: #0d0d0d;
    border: 1px solid #FFFFFF;
    font-weight: 700;
}

.nav-link.register-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0d0d0d;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-radius: var(--radius-sm);
    margin: 0.25rem;
}

.dropdown-item:hover {
    background-color: var(--background-alt);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    background: transparent;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 6px;
}

.mobile-menu-toggle .menu-label {
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.mobile-menu-toggle .mobile-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2em;
    font-size: 1.05rem;
    line-height: 1;
}

.mobile-menu-toggle .mobile-icon-svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
}

.mobile-menu-toggle:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:active {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.15);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* Content Cards */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.content-card:hover {
    box-shadow: var(--shadow-md);
}

/* Enhanced Flash Messages */
.flash-messages {
    margin-bottom: var(--spacing-xl);
}

.alert {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-success {
    background: rgba(0, 0, 0, 0.05);
    color: #000000;
    border: 2px solid #000000;
    font-weight: 600;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 2px solid #dc3545;
    font-weight: 600;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
    border: 2px solid #ffc107;
    font-weight: 600;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
    border: 2px solid #17a2b8;
    font-weight: 600;
}

.alert-close {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    font-size: var(--font-size-lg);
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
    line-height: 1.5;
    position: relative;
    min-height: 40px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

.btn-primary {
    background: #0d0d0d;
    color: #ffffff;
}

.btn-primary:hover {
    background: #222222;
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a2e;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #f5f5f7;
    border-color: #0d0d0d;
}

.btn-success {
    background: var(--success-color);
    color: #ffffff;
}

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

.btn-warning {
    background: var(--warning-color);
    color: #1a1a2e;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-danger {
    background: var(--error-color);
    color: #ffffff;
}

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

.btn-info {
    background: var(--info-color);
    color: #ffffff;
}

.btn-info:hover {
    background: #2563eb;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cards */
.card {
    background: var(--background);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-alt);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--background-alt);
}

/* Enhanced Forms with Better Visibility */
.form-group {
    margin-bottom: 2rem; /* Increased spacing */
}

.form-label {
    display: block;
    margin-bottom: 0.75rem; /* Increased margin */
    font-weight: 600; /* Bolder font weight */
    font-size: var(--font-size-lg); /* Larger label text */
    color: var(--text-primary);
    letter-spacing: 0.025em; /* Better letter spacing */
}

.form-control {
    width: 100%;
    padding: 1.125rem 1.25rem; /* Increased padding for better touch targets */
    font-size: var(--font-size-lg); /* Larger input text */
    font-weight: 500; /* Slightly bolder input text */
    line-height: 1.5;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--text-primary); /* Explicit text color for mobile visibility */
    box-shadow: var(--shadow-sm); /* Subtle shadow for depth */
    -webkit-text-fill-color: var(--text-primary); /* iOS Safari fix */
    opacity: 1; /* Fix for iOS Safari */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15), var(--shadow-md); /* Enhanced focus shadow */
    /* Removed transform to fix mobile text rendering issues */
}

.form-control:hover:not(:focus) {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

/* Form Validation Styles */
.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-control.is-invalid {
    border-color: var(--error-color);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

/* Enhanced Select Dropdowns */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* Textarea Specific Styles */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Checkbox and Radio Styles */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: var(--font-size-base);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
}

/* Help Text */
.form-text {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* Required Field Indicator */
.required::after {
    content: " *";
    color: var(--error-color);
    font-weight: bold;
}

/* Form Container */
.form-container {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile Responsiveness for Forms */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .form-control {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 1rem;
        -webkit-text-size-adjust: 100%;
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
        caret-color: #000000 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .form-control:focus {
        transform: none !important;
        -webkit-transform: none !important;
    }
    
    .form-label {
        font-size: var(--font-size-base);
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-base);
        width: 100%; /* Full width buttons on mobile */
    }
}

/* Touch device input fixes */
@media (pointer: coarse) {
    .form-control,
    .form-control-xl {
        color: #000000 !important;
        -webkit-text-fill-color: #000000 !important;
        caret-color: #000000 !important;
        transform: none !important;
    }
    
    .form-control:focus,
    .form-control-xl:focus {
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* Autofill text visibility fix */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-text-fill-color: #000000 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    caret-color: #000000 !important;
}

/* Footer */
.main-footer {
    background: #0d0d0d;
    color: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0, 0.3);
    padding-top: 1rem;
    text-align: center;
    color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0d0d0d;
        flex-direction: column;
        padding: 8px;
        padding-top: 74px;
        padding-bottom: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        z-index: 999;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        animation: slideDown 0.2s ease-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-wrap: nowrap;
        overscroll-behavior: contain;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Main nav items in single-column list */
    .nav-menu .nav-item {
        width: 100%;
        margin-bottom: 2px;
    }
    
    /* All text in mobile nav must be white */
    .nav-menu .nav-link,
    .nav-menu .nav-link *,
    .nav-menu .nav-item a,
    .nav-menu a {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .nav-menu .nav-link {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        justify-content: flex-start;
        padding: 10px 12px;
        border-radius: 8px;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.82rem;
    }
    
    .nav-menu .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
    }
    
    .nav-menu .nav-link i {
        font-size: 14px;
    }
    
    .nav-menu .nav-link.icon-only {
        padding: 10px 12px;
        justify-content: flex-start;
    }
    
    .nav-menu .nav-link.icon-only::after {
        content: attr(title);
        margin-left: 6px;
    }
    
    /* Seller/sell prominent buttons - keep inverted (white bg, dark text) */
    .nav-menu .nav-link.sell-cta,
    .nav-menu .nav-link.sell-cta *,
    .nav-menu .nav-link.seller-link,
    .nav-menu .nav-link.seller-link * {
        background: #FFFFFF;
        color: #0d0d0d !important;
        -webkit-text-fill-color: #0d0d0d !important;
        border: 1px solid #FFFFFF;
        font-weight: 700;
    }

    /* User dropdown takes full width */
    .nav-menu .nav-item.dropdown {
        width: 100%;
    }
    
    /* Currency selector takes full width */
    .nav-menu .nav-item.currency-selector-nav {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.08);
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        padding: 8px 14px;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }
    
    .mobile-menu-toggle i {
        transition: transform 0.2s ease;
        color: white;
        filter: none;
        font-size: 0.9rem;
    }

    .mobile-menu-toggle .mobile-toggle-icon {
        color: white;
        font-size: 0.95rem;
    }

    .mobile-menu-toggle .mobile-icon-svg {
        width: 1rem;
        height: 1rem;
    }
    
    .mobile-menu-toggle.active {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.6);
    }
    
    .mobile-menu-toggle.active i {
        transform: rotate(90deg);
        color: #FFFFFF;
    }
    
    .nav-item {
        /* already handled above */
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 0;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        margin-top: 4px;
        border-radius: 8px;
        min-width: unset !important;
        width: 100%;
        display: block !important;
    }

    .dropdown-menu .dropdown-item {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border-radius: 8px;
        font-size: 0.82rem;
    }

    .dropdown-menu .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }

    .dropdown-menu .dropdown-header {
        color: rgba(255, 255, 255, 0.7) !important;
        -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
    }

    .dropdown-menu .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Ensure user menu labels are white on mobile dark navbar */
    .nav-menu .user-menu,
    .nav-menu .user-menu .user-info,
    .nav-menu .user-menu .username,
    .nav-menu .user-menu .active-role,
    .nav-menu .user-menu i {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .nav-menu .user-menu .active-role {
        background: rgba(255, 255, 255, 0.25);
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    /* Make role-switch items clearly white */
    .dropdown-menu .role-switch,
    .dropdown-menu .role-switch i {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    /* Make logout item prominent and visible */
    .dropdown-menu .dropdown-item[onclick*="logout"] {
        color: #ff6b6b !important;
        -webkit-text-fill-color: #ff6b6b !important;
        font-weight: 700;
        border: 1px solid rgba(255, 107, 107, 0.3);
        margin-top: 4px;
    }

    .dropdown-menu .dropdown-item[onclick*="logout"]:hover {
        background: rgba(255, 107, 107, 0.15);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .main-content {
        padding: var(--spacing-md) 0;
    }
    
    .content-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
        border-radius: var(--radius-md);
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-xs);
    }
}

/* Tablet breakpoint for better nav fit */
@media (min-width: 769px) and (max-width: 1199px) {
    .nav-menu {
        gap: 1px;
    }
    .nav-link {
        padding: 3px 5px;
        font-size: 0.7rem;
        gap: 3px;
    }
    .brand-title {
        font-size: 1.1rem;
    }
    .brand-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
    .brand-logo {
        width: 28px;
        height: 28px;
    }
    .nav-container {
        max-width: 100%;
        padding: 0 8px;
    }
    .currency-display {
        font-size: 0.7rem !important;
    }
}

/* Tablet landscape */
@media (min-width: 768px) and (max-width: 1199px) {
    .nav-link {
        padding: 4px 5px;
        font-size: 0.7rem;
        gap: 2px;
    }
    .nav-menu {
        gap: 1px;
    }
    .brand-logo {
        width: 36px;
        height: 36px;
    }
}

/* Large desktop - slightly bigger */
@media (min-width: 1200px) {
    .nav-link {
        padding: 5px 7px;
        font-size: 0.75rem;
    }
    .nav-menu {
        gap: 1px;
    }
    .brand-logo {
        width: 40px;
        height: 40px;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Glass Card Variations */
.glass-card-primary {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
}

.glass-card-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.glass-card-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

.glass-card-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Welcome banner */
.market-welcome-banner {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.market-welcome-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: #0d0d0d;
}

.market-welcome-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

/* Market category cards */
.market-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.market-category-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.market-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #0d0d0d;
}

.market-category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.market-category-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.market-category-count {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* Enhanced Form Accessibility */
.form-enhanced {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-sm);
}

/* High Contrast Labels for Better Visibility */
.form-label-enhanced {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label-enhanced::before {
    content: "📝";
    font-size: 1.1rem;
}

/* Extra Large Input Fields */
.form-control-xl {
    font-size: 1.3rem !important;
    padding: 1.5rem 1.5rem !important;
    border: 3px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: white !important;
    color: #000000 !important; /* Explicit text color for mobile visibility */
    -webkit-text-fill-color: #000000 !important; /* iOS Safari fix */
    opacity: 1 !important; /* Fix for iOS Safari */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    min-height: 60px;
    font-weight: 500;
}

.form-control-xl:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    background: #fafafa !important;
}

/* Super Visible Buttons */
.btn-super-visible {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    padding: 1.5rem 3rem !important;
    border-radius: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-super-visible::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-super-visible:hover::before {
    left: 100%;
}

.btn-super-visible:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* Enhanced Error and Success Messages */
.form-message-enhanced {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 1rem 0;
    border-left: 6px solid;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
}

.form-message-success {
    border-left-color: var(--success-color);
    color: #065f46;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.form-message-error {
    border-left-color: var(--error-color);
    color: #991b1b;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.form-message-warning {
    border-left-color: var(--warning-color);
    color: #92400e;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

/* Tooltip for Form Help */
.form-tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 0.5rem;
}

.form-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 1rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: var(--font-size-sm);
}

.form-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Progress Indicator for Multi-step Forms */
.form-progress {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
}

.form-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Dark Mode Form Styles */
@media (prefers-color-scheme: dark) {
    .form-control-xl {
        background: #374151 !important;
        color: white !important;
        border-color: #4b5563 !important;
    }
    
    .form-label-enhanced {
        color: #f9fafb !important;
    }
    
    .form-enhanced {
        background: linear-gradient(135deg, rgba(31, 41, 55, 0.98) 0%, rgba(17, 24, 39, 0.95) 100%);
        border-color: #4b5563;
    }
}

/* ========================================
   USER ACTIVITY STATUS INDICATORS
   ======================================== */

/* Status Dot - Basic Circle Indicator */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    position: relative;
}

/* Online Status - Green */
.status-online .status-dot,
.status-dot.online {
    background-color: #000000;
    animation: pulse-green 2s infinite;
}

/* Away Status - Yellow */
.status-away .status-dot,
.status-dot.away {
    background-color: #ffc107;
    animation: pulse-yellow 2s infinite;
}

/* Offline Status - Gray */
.status-offline .status-dot,
.status-dot.offline {
    background-color: #adb5bd;
    border: 2px solid white;
}

/* Pulse Animations */
@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0,0,0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(0,0,0, 0);
    }
}

@keyframes pulse-yellow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 193, 7, 0);
    }
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.online {
    background-color: rgba(0,0,0, 0.1);
    color: #000000;
    border: 1px solid #000000;
}

.status-badge.away {
    background-color: rgba(255, 193, 7, 0.1);
    color: #e0a800;
    border: 1px solid #ffc107;
}

.status-badge.offline {
    background-color: rgba(173, 181, 189, 0.1);
    color: #6c757d;
    border: 1px solid #adb5bd;
}

/* User Card Status Indicator */
.user-card-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Avatar with Status */
.user-avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar-wrapper .status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.user-avatar-wrapper .status-indicator.online {
    background-color: #000000;
}

.user-avatar-wrapper .status-indicator.away {
    background-color: #ffc107;
}

.user-avatar-wrapper .status-indicator.offline {
    background-color: #adb5bd;
    border: 2px solid white;
}

/* Status Text */
.status-text {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}

.status-text.online {
    color: #000000;
}

.status-text.away {
    color: #e0a800;
}

.status-text.offline {
    color: #6c757d;
}

/* Large Status Indicator (for profiles) */
.status-indicator-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.status-indicator-large .status-dot {
    width: 12px;
    height: 12px;
}

.status-indicator-large .status-icon {
    font-size: 16px;
}

/* Inline Status Indicator */
.inline-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.inline-status .status-dot {
    width: 8px;
    height: 8px;
}

/* Seller Card Status */
.seller-card .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Chat/Message Status */
.message-user-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .status-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .status-dot {
        width: 8px;
        height: 8px;
    }
}

/* ========================================
   MOBILE BOTTOM NAVIGATION BAR
   ======================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 0 4px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    color: #8e8e93;
    font-size: 10px;
    font-weight: 500;
    gap: 2px;
    padding: 6px 0;
    position: relative;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 20px;
    line-height: 1;
}

.bottom-nav-item span {
    line-height: 1;
}

.bottom-nav-item.active {
    color: #0d0d0d;
    font-weight: 600;
}

.bottom-nav-item .bottom-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 18px);
    background: #ef4444;
    color: #ffffff;
    border-radius: 10px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* Bottom nav padding for all screen sizes */
body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0));
}

@media (max-width: 768px) {
    .main-footer {
        display: none;
    }

    .main-content {
        padding: var(--spacing-sm) 0;
    }

    .content-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-sm);
        border-radius: var(--radius-md);
    }
}

/* Desktop bottom nav enhancements */
@media (min-width: 769px) {
    .bottom-nav-inner {
        max-width: 600px;
    }
    .bottom-nav-item i {
        font-size: 22px;
    }
    .bottom-nav-item span {
        font-size: 11px;
    }
}
