/* =========================================
   TractorLab Mobile App V2 (Standalone)
   ========================================= */

:root {
    --primary: #1e40af;
    /* Deep Blue from Logo */
    --primary-light: #eff6ff;
    /* Light Blue bg */
    --text-main: #0f172a;
    --text-sub: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Safe Area */
    --sat: env(safe-area-inset-top);
    --sab: env(safe-area-inset-bottom);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    padding-top: var(--sat);
    padding-bottom: calc(80px + var(--sab));
    /* Space for bottom nav */
}

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

button {
    font-family: inherit;
}

/* =========================================
   1. Header (App Bar)
   ========================================= */
/* Adjusted Header Layout */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Revert widths to auto for flexible layout */

/* ... (Search Section) ... */


/* Increased Logo Size */
.header-logo {
    height: 56px;
    /* Increased from 42px */
    object-fit: contain;
}

/* ... */

/* Reduced Sidebar Spacing */
.sidebar-section {
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
    /* Reduced */
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: var(--text-main);
    font-weight: 500;
    transition: background 0.2s;
}

/* Location Selector Pill */
.location-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    margin-right: 0.5rem;
    transition: background 0.2s;
}

.location-selector:active {
    background: #e2e8f0;
}

.location-selector svg {
    stroke-width: 2.5;
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* App Footer */
.app-footer {
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    color: var(--text-sub);
    font-size: 0.8rem;
    background: #f8fafc;
}

.sidebar-login-link {
    display: inline-block;
    color: white;
    /* On primary bg */
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: underline;
    margin-top: 0.25rem;
}

/* =========================================
   7. Forms (Sell Page)
   ========================================= */
.form-container {
    padding: 1rem;
    padding-bottom: 80px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: white;
    appearance: none;
    /* Mobile native feel */
    color: var(--text-main);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(30, 64, 175, 0.1);
}

.form-submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Image Upload Grid */
.upload-grid {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.upload-box {
    width: 80px;
    height: 80px;
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.upload-box span {
    font-size: 1.5rem;
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.icon-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================
   2. Search Section
   ========================================= */
.search-section {
    background: var(--white);
    padding: 0.5rem 1rem 1rem 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: #f8fafc;
    outline: none;
    color: var(--text-main);
}

.filter-btn {
    width: 48px;
    height: 46px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* =========================================
   3. Hero Grid (Compact)
   ========================================= */
.hero-section {
    background: var(--primary-light);
    padding: 1.5rem 1rem;
    border-radius: 0 0 24px 24px;
    margin-bottom: 1.5rem;
}

.hero-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.hero-card {
    background: var(--white);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    height: 90px;
    /* Compact Fixed Height */
}

.hero-card-icon {
    font-size: 1.75rem;
}

.hero-card-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

/* =========================================
   4. Horizontal Sections
   ========================================= */
.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.view-all {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 0 1rem 1rem 1rem;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

/* Product Card V2 */
.product-card {
    flex: 0 0 200px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.card-img-wrapper {
    background: #f1f5f9;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.price-pill {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 20px;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-sub);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
    cursor: pointer;
}

.wishlist-btn.active {
    color: #ef4444;
    background: #fef2f2;
    border-color: #fecaca;
    fill: #ef4444;
}

.card-content {
    padding: 0.75rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--text-sub);
    margin-bottom: 0.75rem;
}


/* =========================================
   RICH PRODUCT CARD (Mobile Compact)
   ========================================= */
.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    display: flex;
    /* Flex layout */
    flex-direction: column;
    height: 100%;
}

.card-img-wrapper {
    position: relative;
    height: 110px;
    /* Reduced fixed height */
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-certified {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #10b981;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
    z-index: 5;
}

/* Content Area */
.card-content {
    padding: 0.4rem;
    /* Tighter padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 0.75rem;
    /* Reduced from 0.85 */
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Specs Rows */
.card-specs-row,
.card-specs-pipe {
    font-size: 0.6rem;
    /* Reduced from 0.7 */
    color: var(--text-sub);
    margin-bottom: 0.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.card-loc-row {
    font-size: 0.6rem;
    /* Reduced */
    color: var(--text-sub);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Price & EMI */
.price-emi-block {
    margin-top: auto;
    margin-bottom: 0.2rem;
    display: flex;
    /* Flex row */
    justify-content: space-between;
    align-items: center;
}

.card-price {
    font-size: 0.8rem;
    /* Reduced from 0.9 */
    font-weight: 700;
    color: #111827;
}

.card-emi {
    font-size: 0.6rem;
    /* Reduced */
    color: var(--primary);
    font-weight: 600;
    text-align: right;
}

/* Brand Bubbles */
.price-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cols like web */
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-chip {
    padding: 0.5rem 0.2rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.price-chip.selected {
    background: #fff7ed;
    border-color: #f97316;
    color: #f97316;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.2);
}

.price-sub {
    font-size: 0.55rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

/* Sliding Filter Bar */
.filter-scroll-container {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 57px;
    z-index: 90;
    width: 100%;
}

.filter-static-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    flex-shrink: 0;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
    padding-right: 0.8rem;
}

.filter-chips-scroll {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    white-space: nowrap;
    /* Hide Scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
    padding-right: 1rem;
}

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

.filter-chip-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f1f5f9;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #1e293b;
    font-weight: 600;
    cursor: pointer;
    background-image: none;
    white-space: nowrap;
}

.filter-chip-select:focus {
    outline: none;
    background: #e2e8f0;
}

/* Buttons */
.btn-action,
.btn-action-outline {
    width: 100%;
    padding: 0.35rem;
    /* Smaller padding */
    border-radius: 4px;
    font-size: 0.7rem;
    /* Reduced from 0.75 */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-action {
    background: white;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-action-outline {
    background: white;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-group {
    display: flex;
    gap: 0.2rem;
    margin-top: 0.2rem;
}

.btn-group button {
    flex: 1;
    padding: 0.3rem;
}

/* Wishlist Button Override */
.wishlist-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    /* Smaller */
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    border: none;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =========================================
   MODALS (Mobile)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    display: flex;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
}

/* Modal Elements */
.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.modal-divider {
    border: 0;
    border-top: 1px dashed #cbd5e1;
    margin: 1rem 0;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.mb-2 {
    margin-bottom: 0.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.terms-text {
    font-size: 0.7rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.75rem;
}

/* Offer Modal Specifics */
.offer-stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.text-orange {
    color: #f97316;
}

.fair-price-box {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.fp-icon {
    width: 20px;
    height: 20px;
    border: 1.5px solid #334155;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.btn-submit-offer {
    width: 100%;
    background: #fb923c;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
}

/* Success Modal */
.success-title {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.success-sub {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Why Choose TractorLab */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    /* Reduced gap */
    margin-top: 1rem;
}

.feature-card {
    background: white;
    padding: 0.75rem 0.5rem;
    /* Reduced padding */
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 1.5rem;
    /* Reduced icon */
    margin-bottom: 0.4rem;
    display: block;
}

.feature-content h3 {
    font-size: 0.7rem;
    /* Reduced title */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.feature-content p {
    font-size: 0.6rem;
    /* Very small text to fit */
    color: #64748b;
    line-height: 1.3;
}

@media (max-width: 400px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
        /* Stack on tiny screens */
    }

    .feature-content p {
        font-size: 0.75rem;
        /* Larger when stacked */
    }
}

.success-prod {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
}

.seller-info-block {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
}

.seller-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    align-items: flex-start;
}

.seller-row .icon {
    font-size: 1.1rem;
}

.seller-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.seller-addr {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

.seller-mobile {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Brand Bubbles */
.brand-item {
    flex: 0 0 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.brand-bubble {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border);
    padding: 2px;
    /* Ring effect */
    display: block;
}

.brand-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: white;
}

.brand-name {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   5. Bottom Navigation
   ========================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + var(--sab));
    z-index: 999;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-sub);
    font-size: 0.7rem;
    font-weight: 500;
    width: 25%;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 1.4rem;
}

/* =========================================
   6. Sidebar (Hamburger Menu)
   ========================================= */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 1rem 1rem;
    /* Reduced padding */
    background: var(--primary);
    color: white;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.sidebar-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid white;
}

.sidebar-user-name {
    font-size: 0.95rem;
    /* Reduced font */
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.sidebar-user-sub {
    font-size: 0.75rem;
    /* Reduced font */
    opacity: 0.9;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
    /* Reduced padding */
}

.sidebar-section {
    margin-bottom: 1rem;
    /* Reduced margin */
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section-title {
    padding: 0 1rem;
    /* Reduced padding */
    font-size: 0.7rem;
    /* Reduced font */
    font-weight: 700;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    /* Reduced padding */
    color: var(--text-main);
    font-weight: 500;
    transition: background 0.2s;
    font-size: 0.85rem;
    /* Reduced font */
    line-height: 1.2;
}

.sidebar-item:active {
    background: #f8fafc;
}

.sidebar-icon {
    width: 20px;
    /* Reduced width */
    margin-right: 0.6rem;
    text-align: center;
    font-size: 1rem;
    /* Reduced icon */
}

/* --- Explore More Popup (Grid) --- */
.more-modal-container {
    padding: 1rem;
    padding-top: 1.5rem;
}

.more-modal-container.active {
    display: block;
    transform: translateY(0);
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 1rem 0;
    max-height: 70vh;
    overflow-y: auto;
}

.explore-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    /* Square */
    border-radius: 12px;
    text-decoration: none;
    color: white;
    padding: 0.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s, opacity 0.1s;
}

.explore-item:active {
    transform: scale(0.96);
    opacity: 0.9;
}

.explore-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.explore-label {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-explore-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 0 0.5rem;
}