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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f5;
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Panel Styles */
.left-panel {
    width: 30%;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header {
    background: #E32A36;
    color: white;
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.logo {
    max-height: 30px;
    height: auto;
    max-width: none;
}

.search-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow-y: auto;
}

.search-content {
    max-width: 400px;
    margin: auto;
    width: 100%;
    padding: 20px 0;
}

.search-intro {
    margin-bottom: 40px;
    text-align: center;
}

.search-intro h2 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}

.search-intro p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.returning-user-banner {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.banner-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.returning-user-banner span {
    font-size: 14px;
    color: #0369a1;
}

.returning-user-banner strong {
    color: #075985;
}

.plan-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-pill.basic {
    background: #9ca3af;
    color: white;
}

.plan-pill.plus {
    background: #3b82f6;
    color: white;
}

.banner-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #bae6fd 20%, #bae6fd 80%, transparent);
}

.banner-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#notYouLink {
    color: #999;
}

.banner-bottom-left {
    display: flex;
    gap: 1em;
}

.manage-subscription-link {
    font-size: 13px;
    text-decoration: none;
    color: #0369a1;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.manage-subscription-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.returning-user-banner a {
    font-size: 13px;
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.returning-user-banner a:hover {
    opacity: 0.7;
}

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

.results-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label, #zipCount {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: black;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #E32A36;
    box-shadow: 0 0 0 3px rgba(26, 26, 30, 0.1);
}

#alertsForm .form-group input:focus, #alertsForm .form-group select:focus {
    border-color: #0369a1;
}

.zip-selector-info {
    display: flex;
    justify-content: space-between;
}

.searches-remaining {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #666;
}

.searches-remaining.warning {
    color: #d97706;
    font-weight: 500;
}

.searches-remaining.error {
    color: #dc2626;
    font-weight: 500;
}

.reload-search-link {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
}

.reload-search-link a {
    color: #0066cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.reload-search-link a:hover {
    color: #004999;
    text-decoration: underline;
}

/* Subscription Box Styles */
.subscription-box {
    margin-top: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.subscription-header {
    text-align: center;
    margin-bottom: 24px;
}

.subscription-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.subscription-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.subscription-plans {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.plan-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
}

.plan-card {
    flex: 1;
    min-width: 280px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    margin-top: 14px;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #E32A36;
}

.plan-plus {
    border-color: #E32A36;
    background: linear-gradient(135deg, #fff 0%, #fff5f6 100%);
}

.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #E32A36;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-align: center;
}

.plan-price {
    text-align: center;
    padding-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #055faa;
    line-height: 1;
}

.price-period {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.plan-features {
    flex: 1;
    margin: 16px 0 16px 0;
}

.feature {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.4;
}

.feature-restockiq {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.restock-brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #1e3a8a;
}

.restock-brand-inline svg {
    color: #1e3a8a;
    flex-shrink: 0;
}

.feature-detail {
    font-size: 11px;
    color: #888;
    margin-left: 16px;
    margin-top: -4px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.subscribe-btn {
    width: 100%;
    padding: 12px;
    background: #E32A36;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
}

.subscribe-btn:hover {
    background: #c21e2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 42, 54, 0.3);
}

.subscribe-btn-plus {
    background: linear-gradient(135deg, #E32A36 0%, #c21e2a 100%);
}

.subscribe-btn-plus:hover {
    background: linear-gradient(135deg, #c21e2a 0%, #a01820 100%);
}

.search-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.search-btn:disabled:hover {
    background: #d1d5db;
    transform: none;
}

#searchOptions {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

.slider-container {
    margin-top: 10px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
}


.slider-value span {
    font-size: 14px;
    font-weight: 600;
    color: #E32A36;
}

#alertsForm .slider-value span {
    color: #0369a1
}
.radius-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E32A36;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    margin-top: -6px;
}

.radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E32A36;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.radius-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.radius-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, #E32A36 0%, #E32A36 var(--slider-percent), #e0e0e0 var(--slider-percent), #e0e0e0 100%);
}

.radius-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
}

.search-btn {
    width: 100%;
    padding: 14px;
    background: #E32A36;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 30, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.results-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
}

.header-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.results-header h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.back-btn {
    background: none;
    border: none;
    color: #E32A36;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
}

.back-btn:hover {
    opacity: 0.7;
}

.warehouses-list {
    padding: 30px;
}

.summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Pricing Box */
.pricing-box {
    background: linear-gradient(135deg, #e8eef5 0%, #dde5f0 100%);
    border: 1px solid #c5d4e6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a8a;
}

.pricing-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
}

.pricing-meta {
    font-size: 12px;
    color: #1e3a8a;
    opacity: 0.8;
}

.pricing-report-btn {
    background: #1e40af;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pricing-report-btn:hover {
    background: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.pricing-report-btn:active {
    transform: translateY(0);
}

/* Saved Search Notification */
.saved-search-notification {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    font-size: 14px;
}

.saved-search-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #92400E;
    font-weight: 600;
}

.saved-search-info i {
    color: #F59E0B;
}

.search-again-btn {
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.search-again-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.search-again-btn:active {
    transform: translateY(0);
}

/* Hide tabs on desktop */
@media (min-width: 1025px) {
    .mobile-tabs {
        display: none !important;
    }
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.no-results .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.no-results h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.no-results p {
    font-size: 14px;
    color: #666;
}

.warehouses-list > .warehouse-card {
    margin-bottom: 16px;
}

.warehouse-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.warehouse-card:hover {
    border-color: #E32A36;
    box-shadow: 0 4px 12px rgba(26, 26, 30, 0.15);
    transform: translateY(-2px);
}

.warehouse-card.active {
    border-color: #E32A36;
    background: #f5f5f5;
}

.warehouse-card.out-of-stock-card {
    opacity: 0.75;
    border-color: #d1d5db;
}

.warehouse-card.out-of-stock-card:hover {
    opacity: 1;
    border-color: #dc2626;
}

.warehouse-divider {
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.warehouse-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db 20%, #d1d5db 80%, transparent);
}

.warehouse-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RestockIQ Widget Styles */
.restock-iq-widget {
    margin: 16px 0;
    padding: 16px;
    background: linear-gradient(135deg, #e8eef5 0%, #dde5f0 100%);
    border-radius: 12px;
    border: 1px solid #c5d4e6;
}

.restock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.restock-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #1e3a8a;
}

.restock-brand svg {
    color: #1e3a8a;
}

.restock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-highly-competitive {
    background: #dc2626;
    color: white;
}

.badge-competitive {
    background: #f59e0b;
    color: white;
}

.badge-less-competitive {
    background: #84cc16;
    color: white;
}

.restock-content {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    gap: 8px;
}

.restock-content::before {
    content: '';
    position: absolute;
    left: 15%;
    right: 0;
    top: 35%;
    height: 3px;
    width: 70%;
    background: #1e40af;
    z-index: 0;
}

/* Hide line for in-stock widgets */
.in-stock-widget .restock-content::before {
    display: none;
}

.restock-section {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.restock-circle {
    width: 16px;
    height: 16px;
    background: #1e40af;
    border: 3px solid #e8eef5;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 4px 0;
}

.restock-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: #1e3a8a;
}

.restock-date {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    margin-top: 4px;
}

.restock-time {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.restock-duration {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.restock-timeline-duration {
    flex: 1.5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8px;
    position: relative;
    z-index: 1;
}

.timeline-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.timeline-value {
    font-size: 12px;
    font-weight: 700;
}

.out-section {
    color: #dc2626 !important;
}

.restock-section {
    color: #000000;
}

.duration-section .restock-circle {
    display: none;
}

/* Hide circles for in-stock widgets */
.in-stock-widget .restock-circle {
    display: none;
}

.historic-info {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #dc2626;
}

.historic-item {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.historic-item:last-child {
    margin-bottom: 0;
}

.no-stock-inline {
    margin-bottom: 4em;
}

.no-stock-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
}

.no-stock-content .icon {
    font-size: 48px;
    flex-shrink: 0;
}

.no-stock-text h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.no-stock-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.warehouse-distance-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.warehouse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.warehouse-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.warehouse-actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s ease;
    border-width: 0;
}

.icon-btn:hover {
    background: #d1d5db;
    transform: scale(1.05);
}

.icon-btn i {
    font-size: 14px;
}

.warehouse-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.warehouse-distance {
    font-weight: 600;
    color: #E32A36;
}

.warehouse-phone {
    color: #666;
}

.maps-link-header {
    color: #E32A36;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.maps-link-header:hover {
    opacity: 0.7;
}

.warehouse-status-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.warehouse-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.warehouse-status.in-stock {
    color: #059669;
}

.warehouse-status.low-stock {
    color: #d97706;
}

.warehouse-status::before {
    content: '●';
    font-size: 16px;
}

.nav-icon {
    color: #E32A36;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s ease;
    display: inline-flex;
}

.nav-icon:hover {
    transform: scale(1.2);
}


.products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.product-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-number {
    font-size: 12px;
    color: #666;
}

.stock-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background: #d1fae5;
    color: #059669;
}

.stock-badge.low-stock {
    background: #fef3c7;
    color: #d97706;
}

.stock-badge.out-of-stock {
    background: #fee2e2;
    color: #dc2626;
}

/* Right Panel - Map */
.right-panel {
    width: 70%;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 16px;
    font-family: inherit;
}

.popup-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.popup-content p {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
}

.popup-content .popup-products {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.popup-content .popup-product {
    font-size: 12px;
    color: #555;
    margin: 4px 0;
}

/* Mobile Tab Navigation */
.mobile-tabs {
    display: none;
    background: #e0e0e0;
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
}

.mobile-tabs .tab-btn {
    flex: 1;
    padding: 6px 12px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.mobile-tabs .tab-btn.active {
    background: white;
    color: #333;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-tabs .tab-btn:hover:not(.active) {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .restock-iq-widget {
        padding: 12px;
    }
    
    .restock-brand {
        font-size: 12px;
    }
    
    .restock-badge {
        padding: 4px 8px;
        font-size: 8px;
    }
    
    .restock-content {
        gap: 4px;
    }
    
    .restock-label {
        font-size: 8px;
    }
    
    .restock-date {
        font-size: 18px;
    }
    
    .restock-time {
        font-size: 9px;
    }
    
    .restock-duration {
        font-size: 14px;
    }
    
    .timeline-label {
        font-size: 8px;
    }
    
    .timeline-value {
        font-size: 10px;
    }
    
    .restock-circle {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }
    
    .restock-content::before {
        height: 2px;
    }
}

@media (max-width: 768px) {
    .subscription-box {
        padding: 16px;
        margin-top: 32px;
    }
    
    .subscription-header h3 {
        font-size: 18px;
    }
    
    .subscription-header p {
        font-size: 13px;
    }
    
    .subscription-plans {
        flex-direction: column;
    }
    
    .plan-card {
        min-width: unset;
    }
    
    .plan-name {
        font-size: 14px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .price-period {
        font-size: 12px;
    }
    
    .feature {
        font-size: 12px;
    }
    
    .feature-detail {
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }

    /* Show mobile tabs */
    .mobile-tabs {
        display: flex;
    }

    .left-panel {
        width: 100%;
        height: 100vh;
    }

    .right-panel {
        width: 100%;
        height: 100vh;
        position: absolute;
        top: 0;
        left: 0;
        display: none; /* Hidden by default, shown when map tab is active */
    }

    /* When map tab is active */
    body.map-active .left-panel .search-screen {
        display: none;
    }

    body.map-active .left-panel .warehouses-list {
        display: none !important;
    }

    body.map-active .left-panel .no-results {
        display: none !important;
    }

    body.map-active .right-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 50;
    }

    body.map-active .left-panel {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        background: transparent;
        pointer-events: none;
        height: auto;
    }

    body.map-active .left-panel .header,
    body.map-active .left-panel .results-header {
        pointer-events: auto;
    }

    body.map-active .left-panel .results-screen {
        background: transparent;
    }

    /* When list tab is active (default), show list */
    body.list-active .left-panel {
        display: flex;
    }

    body.list-active .right-panel {
        display: none;
    }
}

/* Scrollbar Styling */
.results-section::-webkit-scrollbar {
    width: 8px;
}

.results-section::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.results-section::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.results-section::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

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

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 22px;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-intro {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.alert-btn {
    width: 100%;
    padding: 14px;
    background: #0369a1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.alert-btn:hover {
    background: #075985;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

.alert-btn:active {
    transform: translateY(0);
}

.alert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.alert-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #0369a1 0%, #0369a1 var(--slider-percent), #e0e0e0 var(--slider-percent), #e0e0e0 100%);
}

.alert-slider::-webkit-slider-thumb {
    background: #0369a1;
}

.alert-slider::-moz-range-thumb {
    background: #0369a1;
}

.alerts-message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.alerts-message.success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.alerts-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Upgrade Modal Styles */
.upgrade-modal-content {
    text-align: center;
}

.upgrade-feature-locked {
    margin-bottom: 32px;
}

.upgrade-benefits {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.upgrade-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.upgrade-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #333;
}

.upgrade-feature-item i {
    flex-shrink: 0;
}

.upgrade-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-btn {
    background: #E32A36;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(227, 42, 54, 0.2);
}

.upgrade-btn:hover {
    background: #c81f29;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(227, 42, 54, 0.3);
}

.upgrade-later-btn {
    background: none;
    border: 1px solid #ddd;
    color: #666;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upgrade-later-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

/* Still Thinking Section Styles */
.section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.faq-btn {
    background: #059669;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.faq-btn:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.faq-btn:active {
    transform: translateY(0);
}

.contact-discord {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.contact-discord a {
    color: #5865F2;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.contact-discord a:hover {
    color: #4752C4;
    text-decoration: underline;
}

/* FAQ Modal Styles */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    text-align: left;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-item.active .faq-question {
    background: #f3f4f6;
}

.faq-question i {
    color: #6b7280;
    transition: transform 0.2s ease;
    font-size: 12px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

/* Footer Styles */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 24px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright {
    font-size: 14px;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #e5e7eb;
    text-decoration: underline;
}

.footer-separator {
    color: #4b5563;
}

/* Pricing Modal Styles */
.pricing-modal-content {
    text-align: center;
}

.pricing-modal-icon {
    font-size: 64px;
    margin-bottom: 8px;
}

.pricing-instructions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
    text-align: left;
}

.pricing-instruction-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pricing-step-number {
    width: 32px;
    height: 32px;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.pricing-step-content {
    flex: 1;
}

.pricing-step-content strong {
    display: block;
    color: #333;
    font-size: 15px;
    margin-bottom: 8px;
}

.pricing-step-content p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.discord-channel {
    background: #5865F2;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
}

.points-highlight {
    background: #e8eef5;
    color: #1e3a8a;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
}

.discord-join-btn {
    width: 100%;
    padding: 14px 24px;
    background: #5865F2;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.discord-join-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-join-btn:active {
    transform: translateY(0);
}

.discord-join-btn i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .site-footer {
        position: relative;
    }
    
    .container {
        height: 100vh;
    }
    
    .pricing-modal-icon {
        font-size: 48px;
    }
    
    .pricing-step-number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .pricing-step-content strong {
        font-size: 14px;
    }
    
    .pricing-step-content p {
        font-size: 13px;
    }
}

