/* =============================================
   PETROLMATE USER DASHBOARD STYLES
   Phase 4.5 - User Experience Enhancement
   ============================================= */

/* =============================================
   DASHBOARD LAYOUT
   ============================================= */

.dashboard-container {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    padding-bottom: 48px; /* Extra padding to ensure content clears footer */
}

.dashboard-container.active {
    display: block;
}

/* Hide main search when dashboard is active */
body.dashboard-active .desktop-main {
    display: none !important;
}

/* When dashboard is active, allow page to scroll naturally */
body.dashboard-active {
    overflow-y: auto !important;
}

body.dashboard-active .app {
    min-height: auto !important;
    height: auto !important;
}

/* Footer flows naturally below content */
body.dashboard-active .desktop-footer {
    display: flex !important;
    position: relative !important;
    margin-top: auto;
}

/* =============================================
   DASHBOARD NAVIGATION TABS
   ============================================= */

.dashboard-nav {
    display: flex;
    background: var(--surface, #F7F7F7);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 24px;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-nav-item {
    flex: 1;
    min-width: 140px;
    padding: 16px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #6B6B6B);
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dashboard-nav-item:hover {
    color: var(--text-primary, #1F1F1F);
    background: var(--background, #FFFFFF);
}

.dashboard-nav-item.active {
    background: var(--background, #FFFFFF);
    color: var(--text-primary, #1F1F1F);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-nav-item svg {
    width: 22px;
    height: 22px;
}

/* =============================================
   DASHBOARD SECTIONS
   ============================================= */

.dashboard-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
}

/* =============================================
   DASHBOARD OVERVIEW CARDS
   ============================================= */

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.overview-card {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 18px;
    padding: 24px;
    transition: all 0.2s ease;
}

.overview-card:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.15);
}

.overview-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-light, #FFD54F) 0%, var(--primary, #FFB700) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-primary, #1F1F1F);
}

.overview-card-icon svg {
    width: 28px;
    height: 28px;
}

.overview-card-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary, #6B6B6B);
    margin-bottom: 6px;
}

.overview-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.overview-card-value.savings {
    color: #10B981;
}

.overview-card-subtext {
    font-size: 12px;
    color: var(--text-tertiary, #A0A0A0);
    margin-top: 4px;
}

/* =============================================
   VEHICLES SECTION
   ============================================= */

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.vehicle-card {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
}

.vehicle-card:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.15);
}

.vehicle-card.primary {
    border-color: var(--primary, #FFB700);
    background: linear-gradient(to bottom, rgba(255, 183, 0, 0.05), transparent);
}

.vehicle-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.vehicle-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--surface, #F7F7F7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.vehicle-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vehicle-badge.primary {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, var(--primary-dark, #F59E0B) 100%);
    color: var(--text-primary, #1F1F1F);
}

.vehicle-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 4px;
}

.vehicle-details {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    margin-bottom: 16px;
}

.vehicle-specs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.vehicle-spec {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
}

.vehicle-spec svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary, #A0A0A0);
}

.vehicle-fuel-types {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.fuel-type-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
}

.fuel-type-tag.preferred {
    background: linear-gradient(135deg, var(--primary-light, #FFD54F) 0%, var(--primary, #FFB700) 100%);
    color: var(--text-primary, #1F1F1F);
}

.vehicle-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border, #E5E5E5);
}

.vehicle-action-btn {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #6B6B6B);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vehicle-action-btn:hover {
    background: var(--surface, #F7F7F7);
    color: var(--text-primary, #1F1F1F);
}

.vehicle-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error, #EF4444);
    border-color: var(--error, #EF4444);
}

/* Add Vehicle Card */
.vehicle-card.add-new {
    border-style: dashed;
    border-width: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    cursor: pointer;
}

.vehicle-card.add-new:hover {
    background: var(--surface, #F7F7F7);
}

.add-vehicle-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface, #F7F7F7);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-secondary, #6B6B6B);
    font-size: 28px;
}

.add-vehicle-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary, #6B6B6B);
}

/* =============================================
   SUBSCRIPTIONS SECTION
   ============================================= */

.subscriptions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.subscription-card {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.subscription-card:hover {
    border-color: var(--primary, #FFB700);
}

.subscription-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--surface, #F7F7F7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.subscription-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.subscription-icon.suburb {
    background: linear-gradient(135deg, var(--primary-light, #FFD54F) 0%, var(--primary, #FFB700) 100%);
    font-size: 20px;
}

.subscription-info {
    flex: 1;
    min-width: 0;
}

.subscription-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 2px;
}

.subscription-address {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subscription-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.subscription-fuel {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
}

.subscription-toggle {
    position: relative;
    width: 48px;
    height: 28px;
}

.subscription-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.subscription-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border, #E5E5E5);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.subscription-toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--background, #FFFFFF);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subscription-toggle input:checked + .subscription-toggle-slider {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, var(--primary-dark, #F59E0B) 100%);
}

.subscription-toggle input:checked + .subscription-toggle-slider::before {
    transform: translateX(20px);
}

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

.subscription-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary, #6B6B6B);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.subscription-action-btn:hover {
    background: var(--surface, #F7F7F7);
    color: var(--text-primary, #1F1F1F);
}

.subscription-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error, #EF4444);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--surface, #F7F7F7);
    border-radius: 16px;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--background, #FFFFFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, var(--primary-dark, #F59E0B) 100%);
    color: var(--text-primary, #1F1F1F);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

.empty-state-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 183, 0, 0.4);
}

/* =============================================
   SETTINGS SECTION
   ============================================= */

.settings-group {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
}

.settings-group-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-group-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary, #FFB700);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light, #F0F0F0);
}

.settings-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.settings-row:first-of-type {
    padding-top: 0;
}

.settings-label {
    flex: 1;
}

.settings-label-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 4px;
}

.settings-label-desc {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
}

.settings-control {
    flex-shrink: 0;
    margin-left: 24px;
}

/* Settings Select */
.settings-select {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 10px;
    background: var(--background, #FFFFFF);
    color: var(--text-primary, #1F1F1F);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 160px;
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary, #FFB700);
}

/* Settings Toggle */
.settings-toggle {
    position: relative;
    width: 52px;
    height: 30px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.settings-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--border, #E5E5E5);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.settings-toggle-slider::before {
    content: '';
    position: absolute;
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: var(--background, #FFFFFF);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.settings-toggle input:checked + .settings-toggle-slider {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, var(--primary-dark, #F59E0B) 100%);
}

.settings-toggle input:checked + .settings-toggle-slider::before {
    transform: translateX(22px);
}

/* Time Picker */
.settings-time-input {
    padding: 10px 14px;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 10px;
    background: var(--background, #FFFFFF);
    color: var(--text-primary, #1F1F1F);
    font-size: 14px;
    font-weight: 500;
}

.settings-time-input:focus {
    outline: none;
    border-color: var(--primary, #FFB700);
}

/* Quiet Hours Row */
.quiet-hours-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quiet-hours-inputs span {
    color: var(--text-secondary, #6B6B6B);
    font-size: 14px;
}

/* =============================================
   RECENT ALERTS
   ============================================= */

.recent-alerts {
    margin-top: 32px;
}

.recent-alerts-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 16px;
}

.alert-card {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}

.alert-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.alert-icon.optimal {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.alert-icon.good {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, var(--primary-dark, #F59E0B) 100%);
    color: var(--text-primary, #1F1F1F);
}

.alert-icon.watch {
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
}

.alert-content {
    flex: 1;
    min-width: 0;
}

.alert-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 2px;
}

.alert-details {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    margin-bottom: 4px;
}

.alert-time {
    font-size: 12px;
    color: var(--text-tertiary, #A0A0A0);
}

/* =============================================
   MODALS
   ============================================= */

.dashboard-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dashboard-modal.open {
    opacity: 1;
    visibility: visible;
}

.dashboard-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.dashboard-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--background, #FFFFFF);
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    padding: 28px;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s ease;
    margin: 16px;
}

.dashboard-modal.open .dashboard-modal-content {
    transform: scale(1) translateY(0);
}

.dashboard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.dashboard-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.dashboard-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dashboard-modal-close:hover {
    background: var(--border, #E5E5E5);
    color: var(--text-primary, #1F1F1F);
}

/* Form Fields in Modal */
.modal-field {
    margin-bottom: 20px;
}

.modal-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
}

.modal-field input,
.modal-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary, #1F1F1F);
    background: var(--background, #FFFFFF);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.modal-field input:focus,
.modal-field select:focus {
    outline: none;
    border-color: var(--primary, #FFB700);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

.modal-field-hint {
    font-size: 12px;
    color: var(--text-tertiary, #A0A0A0);
    margin-top: 6px;
}

.modal-field-row {
    display: flex;
    gap: 16px;
}

.modal-field-row .modal-field {
    flex: 1;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    background: var(--surface, #F7F7F7);
}

.checkbox-item.selected {
    background: rgba(255, 183, 0, 0.1);
    border-color: var(--primary, #FFB700);
}

.checkbox-item input {
    display: none;
}

.checkbox-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1F1F1F);
}

/* Icon Select */
.icon-select {
    display: flex;
    gap: 12px;
}

.icon-option {
    width: 56px;
    height: 56px;
    border: 2px solid var(--border, #E5E5E5);
    border-radius: 12px;
    background: var(--surface, #F7F7F7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.2s ease;
}

.icon-option:hover {
    border-color: var(--text-secondary, #6B6B6B);
}

.icon-option.selected {
    border-color: var(--primary, #FFB700);
    background: rgba(255, 183, 0, 0.1);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.modal-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn-secondary {
    background: transparent;
    border: 1px solid var(--border, #E5E5E5);
    color: var(--text-secondary, #6B6B6B);
}

.modal-btn-secondary:hover {
    background: var(--surface, #F7F7F7);
    color: var(--text-primary, #1F1F1F);
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, var(--primary-dark, #F59E0B) 100%);
    border: none;
    color: var(--text-primary, #1F1F1F);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.3);
}

.modal-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 183, 0, 0.4);
}

.modal-btn-danger {
    background: var(--error, #EF4444);
    border: none;
    color: white;
}

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

/* =============================================
   LOADING STATES
   ============================================= */

.dashboard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
}

.dashboard-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border, #E5E5E5);
    border-top-color: var(--primary, #FFB700);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

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

.dashboard-loading-text {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
}

/* Button Loading Spinner */
.btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.btn-primary .btn-loader {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: #1f1f1f;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* =============================================
   DARK MODE
   ============================================= */

:root[data-theme="dark"] .dashboard-nav {
    background: var(--surface, #1F1F1F);
}

:root[data-theme="dark"] .dashboard-nav-item.active {
    background: var(--surface-card, #2D2D2D);
}

:root[data-theme="dark"] .overview-card,
:root[data-theme="dark"] .vehicle-card,
:root[data-theme="dark"] .subscription-card,
:root[data-theme="dark"] .settings-group,
:root[data-theme="dark"] .alert-card {
    background: var(--surface-card, #2D2D2D);
    border-color: var(--border, #404040);
}

:root[data-theme="dark"] .empty-state {
    background: var(--surface, #1F1F1F);
}

:root[data-theme="dark"] .empty-state-icon {
    background: var(--surface-card, #2D2D2D);
}

:root[data-theme="dark"] .vehicle-icon,
:root[data-theme="dark"] .subscription-icon {
    background: var(--surface, #1F1F1F);
}

:root[data-theme="dark"] .settings-select,
:root[data-theme="dark"] .settings-time-input {
    background: var(--surface, #1F1F1F);
    border-color: var(--border, #404040);
}

:root[data-theme="dark"] .dashboard-modal-content {
    background: var(--surface-card, #2D2D2D);
}

:root[data-theme="dark"] .modal-field input,
:root[data-theme="dark"] .modal-field select {
    background: var(--surface, #1F1F1F);
    border-color: var(--border, #404040);
}

/* =============================================
   TOUCH-FRIENDLY TARGETS
   ============================================= */

/* Minimum 44px touch targets for mobile accessibility */
.vehicle-action-btn,
.watchlist-toggle,
.watchlist-delete {
    min-height: 44px;
    min-width: 44px;
}

/* Tap feedback for interactive cards */
.vehicle-card:active,
.watchlist-card:active,
.overview-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Ensure buttons have adequate touch area */
.dashboard-nav-item {
    min-height: 44px;
    min-width: 44px;
}

/* =============================================
   ONBOARDING WIZARD
   ============================================= */

.onboarding-modal .onboarding-content {
    max-width: 440px;
    text-align: center;
    padding: 40px 32px;
}

.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.progress-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border, #E5E5E5);
    color: var(--text-secondary, #6B6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: var(--primary-color, #FFB700);
    color: #1f1f1f;
    transform: scale(1.1);
}

.progress-step.completed {
    background: var(--success, #10B981);
    color: #fff;
}

.progress-line {
    width: 40px;
    height: 2px;
    background: var(--border, #E5E5E5);
    transition: background 0.3s ease;
}

.progress-line.completed {
    background: var(--success, #10B981);
}

.onboarding-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.onboarding-step.active {
    display: block;
}

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

.onboarding-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 183, 0, 0.1);
    border-radius: 50%;
    color: var(--primary-color, #FFB700);
}

.onboarding-icon.onboarding-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success, #10B981);
}

.onboarding-step h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0 0 12px;
}

.onboarding-text {
    font-size: 15px;
    color: var(--text-secondary, #6B6B6B);
    line-height: 1.6;
    margin-bottom: 28px;
}

.onboarding-btn {
    min-width: 200px;
    padding: 14px 32px;
    font-size: 16px;
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.onboarding-skip {
    background: none;
    border: none;
    color: var(--text-secondary, #6B6B6B);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.onboarding-skip:hover {
    color: var(--text-primary, #1F1F1F);
}

/* Dark mode support */
:root[data-theme="dark"] .onboarding-icon {
    background: rgba(255, 183, 0, 0.15);
}

:root[data-theme="dark"] .onboarding-icon.onboarding-success {
    background: rgba(16, 185, 129, 0.15);
}

:root[data-theme="dark"] .onboarding-step h2 {
    color: var(--text-primary, #FFFFFF);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
        padding-bottom: 100px; /* Space for fixed bottom nav */
    }

    /* Fixed bottom navigation bar */
    .dashboard-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 8px 0;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        background: var(--card-bg, #fff);
        border-top: 1px solid var(--border, #e5e5e5);
        border-radius: 0;
        justify-content: space-around;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        gap: 0;
    }

    .dashboard-nav-item {
        flex-direction: column;
        align-items: center;
        padding: 8px 6px;
        font-size: 10px;
        min-width: 0;
        flex: 1;
        gap: 4px;
        border-radius: 8px;
    }

    .dashboard-nav-item svg {
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }

    .dashboard-nav-item span {
        display: block;
        margin-top: 2px;
        text-align: center;
        white-space: nowrap;
        font-size: 10px;
    }

    .dashboard-nav-item.active {
        background: rgba(255, 183, 0, 0.15);
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-card {
        padding: 16px;
    }

    .overview-card-value {
        font-size: 22px;
    }

    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .subscription-card {
        flex-wrap: wrap;
    }

    .subscription-meta {
        width: 100%;
        margin-top: 12px;
        justify-content: space-between;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .settings-control {
        margin-left: 0;
        width: 100%;
    }

    .settings-select {
        width: 100%;
    }

    .quiet-hours-inputs {
        width: 100%;
        justify-content: space-between;
    }

    .modal-field-row {
        flex-direction: column;
        gap: 0;
    }

    /* Mobile bottom-sheet modal */
    .dashboard-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 90vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        animation: none;
    }

    .dashboard-modal.open .dashboard-modal-content {
        transform: translateY(0);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .modal-field input,
    .modal-field select {
        font-size: 16px; /* Prevent iOS zoom */
        padding: 14px;
    }

    /* Watchlist card responsive */
    .watchlist-card-header {
        padding: 12px 16px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .watchlist-icon-wrapper {
        width: 44px;
        height: 44px;
    }

    .watchlist-logo {
        width: 30px;
        height: 30px;
    }

    .watchlist-name {
        font-size: 15px;
    }

    .watchlist-location {
        font-size: 13px;
    }

    .watchlist-rec-badge {
        padding: 6px 10px;
        font-size: 10px;
        order: -1;
        margin-left: auto;
    }

    .watchlist-station-info {
        flex: 0 0 100%;
        order: 1;
    }

    .watchlist-card-actions {
        order: 0;
    }

    .watchlist-card-body {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }

    .watchlist-price-section {
        display: flex;
        align-items: center;
        gap: 16px;
        width: 100%;
    }

    .watchlist-price-main .price-value {
        font-size: 36px;
    }

    .watchlist-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .watchlist-stat {
        padding: 12px;
    }

    .watchlist-stat-label {
        font-size: 10px;
    }

    .watchlist-stat-value {
        font-size: 14px;
    }
}

/* =============================================
   LOGIN PROMPT (For unauthenticated users)
   ============================================= */

.dashboard-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 24px;
}

.login-prompt-content {
    text-align: center;
    max-width: 400px;
    padding: 48px 32px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
    background: var(--surface, #F7F7F7);
    border-radius: 50%;
    color: var(--brand-yellow, #FFB700);
}

.login-prompt-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.login-prompt-content p {
    margin: 0 0 32px;
    font-size: 15px;
    color: var(--text-secondary, #6B6B6B);
    line-height: 1.5;
}

.login-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.login-prompt-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.login-prompt-btn.primary {
    background: var(--brand-yellow, #FFB700);
    color: #1F1F1F;
}

.login-prompt-btn.primary:hover {
    background: #E5A500;
    transform: translateY(-1px);
}

.login-prompt-btn.secondary {
    background: var(--surface, #F7F7F7);
    color: var(--text-primary, #1F1F1F);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.login-prompt-btn.secondary:hover {
    background: #EEEEEE;
}

.login-prompt-back {
    background: none;
    border: none;
    color: var(--text-secondary, #6B6B6B);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.2s ease;
}

.login-prompt-back:hover {
    color: var(--text-primary, #1F1F1F);
}

/* Dark mode for login prompt */
[data-theme="dark"] .login-prompt-content {
    background: var(--card-bg);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .login-prompt-icon {
    background: var(--surface);
}

[data-theme="dark"] .login-prompt-btn.secondary {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .login-prompt-btn.secondary:hover {
    background: var(--hover);
}

/* =============================================
   PRICE ALERTS - SEARCH COMPONENT
   ============================================= */

.price-alerts-search {
    margin-bottom: 24px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary, #6B6B6B);
    pointer-events: none;
    z-index: 1;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.price-alert-search-input,
#priceAlertSearch {
    width: 100%;
    padding: 16px 16px 16px 52px !important;
    font-size: 16px;
    border: 2px solid var(--border, #E5E5E5);
    border-radius: 12px;
    background: var(--card-bg, #FFFFFF);
    color: var(--text-primary, #1F1F1F);
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: auto !important;
}

.price-alert-search-input:focus {
    outline: none;
    border-color: var(--primary-color, #FFB700);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

.price-alert-search-input::placeholder {
    color: var(--text-secondary, #6B6B6B);
}

/* Search Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #FFFFFF;
    background-color: #FFFFFF !important;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.search-results-dropdown.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--border, #E5E5E5);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--hover, #F7F7F7);
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    background: var(--surface, #F7F7F7);
}

.search-result-icon.station img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.search-result-icon.suburb {
    color: var(--primary-color, #FFB700);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary, #1F1F1F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    margin-top: 2px;
}

.search-result-action {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color, #FFB700);
    color: #1F1F1F;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.search-result-item:hover .search-result-action {
    transform: scale(1.1);
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary, #6B6B6B);
    font-size: 14px;
}

/* =============================================
   PRICE ALERTS - WATCHLIST
   ============================================= */

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

.watchlist-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin: 0;
}

.watchlist-count {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    background: var(--surface, #F7F7F7);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Full-width stacked watchlist layout */
.watchlist-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.watchlist-card {
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 16px;
    padding: 0;
    position: relative;
    transition: all 0.2s ease;
    width: 100%;
    overflow: hidden;
}

.watchlist-card:hover {
    border-color: var(--primary-color, #FFB700);
    box-shadow: 0 4px 16px rgba(255, 183, 0, 0.1);
}

.watchlist-card.paused {
    opacity: 0.7;
}

/* Card Header - Station info row */
.watchlist-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--surface, #F7F7F7);
    border-bottom: 1px solid var(--border, #E5E5E5);
}

.watchlist-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--card-bg, #FFFFFF);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.watchlist-icon-wrapper.suburb {
    background: linear-gradient(135deg, var(--primary-color, #FFB700), #E5A500);
}

.watchlist-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.watchlist-suburb-icon {
    color: white;
}

.watchlist-station-info {
    flex: 1;
    min-width: 0;
}

.watchlist-name {
    font-weight: 700;
    font-size: 17px;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 4px;
    line-height: 1.3;
}

.watchlist-location {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    line-height: 1.3;
}

.watchlist-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.watchlist-toggle,
.watchlist-delete {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--card-bg, #FFFFFF);
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-toggle:hover {
    background: var(--primary-color, #FFB700);
    color: #1F1F1F;
}

.watchlist-toggle.active {
    color: var(--primary-color, #FFB700);
}

.watchlist-delete:hover {
    background: #FFE5E5;
    color: #DC3545;
}

/* Card Body - Main price and recommendation */
.watchlist-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

/* Price Section - Left side of body */
.watchlist-price-section {
    flex-shrink: 0;
    min-width: 140px;
}

.watchlist-price-main {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
}

.watchlist-price-main .price-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary, #1F1F1F);
    line-height: 1;
}

.watchlist-price-main .price-unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-price-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.watchlist-price-change.down {
    color: #10B981;
}

.watchlist-price-change.up {
    color: #EF4444;
}

.watchlist-price-change.neutral {
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-fuel-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
    border-radius: 6px;
    margin-top: 8px;
}

/* Suburb rank badge */
.suburb-rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 6px;
    margin-left: 6px;
}

.suburb-rank-badge.cheapest {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.suburb-rank-badge.top3 {
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
    border: 1px solid var(--border, #E5E5E5);
}

/* Recommendation Section - Right side of body */
.watchlist-recommendation-section {
    flex: 1;
    min-width: 0;
}

.watchlist-recommendation-text {
    font-size: 15px;
    color: var(--text-primary, #1F1F1F);
    line-height: 1.5;
    margin-bottom: 8px;
}

.watchlist-recommendation-subtext {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    line-height: 1.4;
}

/* Stats Grid - Bottom row */
.watchlist-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border, #E5E5E5);
    border-top: 1px solid var(--border, #E5E5E5);
}

.watchlist-stat {
    background: var(--card-bg, #FFFFFF);
    padding: 14px 16px;
    text-align: center;
}

.watchlist-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.watchlist-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.watchlist-stat-value.positive {
    color: #10B981;
}

.watchlist-stat-value.negative {
    color: #EF4444;
}

.watchlist-stat-value.highlight {
    color: var(--primary-color, #FFB700);
}

/* Paused Badge */
.watchlist-paused-badge {
    position: absolute;
    top: 16px;
    right: 80px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary, #6B6B6B);
    background: var(--surface, #F7F7F7);
    padding: 6px 12px;
    border-radius: 6px;
}

/* Legacy compatibility */
.watchlist-fuels {
    display: none;
}

.fuel-tag {
    display: none;
}

/* =============================================
   WATCHLIST CARD - ENHANCED ML DESIGN
   ============================================= */

/* Card with ML recommendation styling */
.watchlist-card.fill-now {
    border-left: 3px solid #10B981;
    --spark-start: #059669;
    --spark-end: #10B981;
}

.watchlist-card.wait {
    border-left: 3px solid #F59E0B;
    --spark-start: #D97706;
    --spark-end: #F59E0B;
}

.watchlist-card.neutral {
    border-left: 3px solid var(--text-secondary, #6B6B6B);
    --spark-start: #9CA3AF;
    --spark-end: #6B7280;
}

/* ML Recommendation Badge - Prominent in header */
.watchlist-rec-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    flex-shrink: 0;
}

.watchlist-rec-badge.fill-now {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.watchlist-rec-badge.wait {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.watchlist-rec-badge.neutral {
    background: var(--surface, #E8E8E8);
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-rec-badge.suburb-watch {
    background: linear-gradient(135deg, var(--primary-color, #FFB700), #E5A500);
    color: #1F1F1F;
    box-shadow: 0 2px 8px rgba(255, 183, 0, 0.35);
}

/* Recommendation Reason (ML insight explanation) */
.watchlist-reason {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    margin: 6px 0 2px 0;
    padding: 6px 10px;
    background: var(--surface, #F7F7F7);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color, #FFB700);
    line-height: 1.3;
}

.watchlist-card.wait .watchlist-reason {
    border-left-color: #EF4444;
}

.watchlist-card.fill-now .watchlist-reason {
    border-left-color: #10B981;
}

/* Price Display */
.watchlist-price-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin: 4px 0;
}

.watchlist-price-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    line-height: 1;
}

.watchlist-price-unit {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-price-display.suburb-mode {
    margin: 6px 0;
}

.watchlist-suburb-note {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    font-style: italic;
}

/* Price Trend Indicator */
.price-trend {
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
}

.price-trend.rising {
    color: #EF4444;
}

.price-trend.falling {
    color: #10B981;
}

/* Meta Row (fuel badge, cycle, forecast) */
.watchlist-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 6px 0 4px;
}

/* Fuel Badge */
.fuel-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
    border-radius: 3px;
}

/* Cycle Phase Indicator */
.watchlist-cycle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-cycle .cycle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-secondary, #6B6B6B);
}

.watchlist-cycle.trough .cycle-dot {
    background: #10B981;
}

.watchlist-cycle.rising .cycle-dot {
    background: #F59E0B;
}

.watchlist-cycle.peak .cycle-dot {
    background: #EF4444;
}

.watchlist-cycle.falling .cycle-dot {
    background: #3B82F6;
}

.watchlist-cycle .cycle-text {
    text-transform: capitalize;
}

/* Forecast Indicator */
.watchlist-forecast {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
}

.watchlist-forecast.rising {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.watchlist-forecast.falling {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.watchlist-forecast.stable {
    background: var(--surface, #F7F7F7);
    color: var(--text-secondary, #6B6B6B);
}

.watchlist-forecast .forecast-arrow {
    font-weight: 700;
}

/* Enhanced Sparkline */
.watchlist-sparkline {
    margin-top: 6px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.02) 100%);
    padding: 2px 4px;
}

.sparkline-svg {
    width: 100%;
    height: 100%;
}

.sparkline-path {
    transition: d 0.3s ease;
}

.sparkline-dot {
    transition: all 0.3s ease;
}

/* Dark mode overrides for new elements */
[data-theme="dark"] .watchlist-price-value {
    color: var(--text-primary, #FFFFFF);
}

[data-theme="dark"] .watchlist-rec-badge.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #A0A0A0);
}

[data-theme="dark"] .fuel-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #A0A0A0);
}

[data-theme="dark"] .watchlist-sparkline {
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.02) 100%);
}

[data-theme="dark"] .watchlist-forecast.rising {
    background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .watchlist-forecast.falling {
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .watchlist-forecast.stable {
    background: rgba(255, 255, 255, 0.08);
}

/* =============================================
   FUEL TYPE SELECTOR MODAL
   ============================================= */

.fuel-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fuel-selector-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.fuel-selector-content {
    position: relative;
    background: #FFFFFF;
    background-color: #FFFFFF !important;
    border-radius: 20px;
    padding: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
    z-index: 10001;
}

.fuel-selector-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
}

.fuel-selector-subtitle {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    margin: 0 0 20px 0;
}

.fuel-selector-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.fuel-selector-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--border, #E5E5E5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--card-bg, #FFFFFF);
}

.fuel-selector-option:hover {
    border-color: var(--primary-color, #FFB700);
}

.fuel-selector-option.selected {
    border-color: var(--primary-color, #FFB700);
    background: rgba(255, 183, 0, 0.08);
}

.fuel-selector-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color, #FFB700);
}

.fuel-selector-option span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1F1F1F);
}

.fuel-selector-actions {
    display: flex;
    gap: 12px;
}

.fuel-selector-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fuel-selector-btn.primary {
    background: var(--primary-color, #FFB700);
    color: #1F1F1F;
}

.fuel-selector-btn.primary:hover {
    background: #E5A500;
}

.fuel-selector-btn.secondary {
    background: var(--surface, #F7F7F7);
    color: var(--text-primary, #1F1F1F);
}

.fuel-selector-btn.secondary:hover {
    background: #EEEEEE;
}

/* =============================================
   DARK MODE FOR PRICE ALERTS
   ============================================= */

[data-theme="dark"] .price-alert-search-input,
[data-theme="dark"] #priceAlertSearch {
    background: var(--card-bg, #2A2A2A) !important;
    border-color: var(--border, #3A3A3A);
    color: var(--text-primary, #F0F0F0);
}

[data-theme="dark"] .price-alert-search-input::placeholder {
    color: var(--text-secondary, #888888);
}

[data-theme="dark"] .price-alert-search-input:focus {
    border-color: var(--primary-color, #FFB700);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.2);
}

[data-theme="dark"] .search-icon {
    color: var(--text-secondary, #888888);
}

[data-theme="dark"] .search-results-dropdown {
    background: #2A2A2A !important;
    background-color: #2A2A2A !important;
    border-color: var(--border, #3A3A3A);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .search-result-item:hover {
    background: var(--hover);
}

[data-theme="dark"] .watchlist-card {
    background: var(--card-bg);
    border-color: var(--border);
}

[data-theme="dark"] .watchlist-card:hover {
    box-shadow: 0 4px 16px rgba(255, 183, 0, 0.15);
}

[data-theme="dark"] .watchlist-reason {
    background: var(--surface, #2A2A2A);
    color: var(--text-secondary, #AAAAAA);
}

[data-theme="dark"] .fuel-selector-content {
    background: #2A2A2A !important;
    background-color: #2A2A2A !important;
}

[data-theme="dark"] .fuel-selector-option {
    border-color: var(--border);
    background: var(--card-bg);
}

[data-theme="dark"] .fuel-selector-btn.secondary {
    background: var(--surface);
}

[data-theme="dark"] .fuel-selector-btn.secondary:hover {
    background: var(--hover);
}

/* =============================================
   MORNING FUEL BRIEFING
   ML-powered daily fuel advice card
   ============================================= */

.morning-briefing {
    background: linear-gradient(135deg, rgba(255, 183, 0, 0.12) 0%, rgba(255, 183, 0, 0.04) 100%);
    border: 2px solid var(--primary, #FFB700);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.morning-briefing::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 183, 0, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.briefing-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.briefing-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, #F59E0B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.briefing-icon svg {
    width: 26px;
    height: 26px;
    color: #1F1F1F;
}

.briefing-title-section {
    flex: 1;
}

.briefing-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0 0 4px 0;
}

.briefing-time {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
}

.briefing-badge {
    padding: 8px 16px;
    border-radius: 24px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.briefing-badge.fill-today {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.briefing-badge.wait {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #1F1F1F;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.briefing-badge.check-prices {
    background: var(--surface, #F7F7F7);
    color: var(--text-primary, #1F1F1F);
    border: 1px solid var(--border, #E5E5E5);
}

.briefing-content {
    margin-bottom: 20px;
}

.briefing-headline {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.briefing-advice {
    font-size: 15px;
    color: var(--text-secondary, #6B6B6B);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.briefing-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
}

.confidence-dots {
    font-size: 16px;
    letter-spacing: 2px;
}

.briefing-summary {
    display: flex;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    min-width: 80px;
}

.summary-item.fill-now {
    background: rgba(16, 185, 129, 0.15);
}

.summary-item.wait {
    background: rgba(245, 158, 11, 0.15);
}

.summary-item.neutral {
    background: rgba(107, 114, 128, 0.1);
}

.summary-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.summary-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* =============================================
   WATCHED STATION INSIGHTS
   Grid of insight cards with ML recommendations
   ============================================= */

.watched-insights {
    margin-bottom: 32px;
}

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

.watched-insights-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0;
}

.watched-insights-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary, #FFB700);
}

.watched-count {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    background: var(--surface, #F7F7F7);
    padding: 6px 14px;
    border-radius: 20px;
}

/* =============================================
   INSIGHT CARDS - PROFESSIONAL DESIGN v21
   ============================================= */

/* Grid container - 3 cards per row on desktop, responsive */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* Individual card */
.insight-card {
    background: var(--surface, #262626);
    border: 1px solid var(--border, #3a3a3a);
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0; /* Prevents overflow */
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Recommendation variants - subtle background tint */
.insight-card.fill-now {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, var(--surface, #262626) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.insight-card.wait {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, var(--surface, #262626) 100%);
    border-color: rgba(245, 158, 11, 0.35);
}

.insight-card.neutral {
    border-color: var(--border, #3a3a3a);
}

/* Card header - logo and badge */
.insight-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.insight-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--background, #1a1a1a);
    padding: 6px;
    flex-shrink: 0;
}

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

.insight-badge.fill-now {
    background: #10B981;
    color: white;
}

.insight-badge.wait {
    background: #F59E0B;
    color: #1a1a1a;
}

.insight-badge.neutral {
    background: #4B5563;
    color: #E5E7EB;
}

/* Station info */
.insight-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
    line-height: 1.3;
    /* Allow wrapping but limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insight-location {
    font-size: 13px;
    color: var(--text-secondary, #9CA3AF);
    margin-bottom: 16px;
}

/* Price display - prominent */
.insight-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.insight-price-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary, #fff);
    line-height: 1;
}

.insight-price-unit {
    font-size: 14px;
    color: var(--text-secondary, #9CA3AF);
    font-weight: 500;
}

.insight-fuel {
    font-size: 12px;
    color: var(--text-secondary, #9CA3AF);
    background: var(--background, #1a1a1a);
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: auto;
    font-weight: 500;
}

/* Reason/insight text */
.insight-reason {
    font-size: 13px;
    color: var(--text-secondary, #9CA3AF);
    padding: 10px 12px;
    background: var(--background, #1a1a1a);
    border-radius: 8px;
    line-height: 1.4;
    margin-top: auto;
    /* Allow wrapping but limit */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   SUBURB CARDS - AGGREGATED SUBURB DATA v22
   ============================================= */

.watched-suburbs-section {
    margin-top: 32px;
    margin-bottom: 32px;
}

.watched-suburbs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.watched-suburbs-header .watched-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0;
}

.suburb-count {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    background: var(--surface, #F7F7F7);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Suburb grid - full width cards */
.suburbs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

/* Suburb card - wider layout for aggregate data */
.suburb-card {
    background: var(--surface-card, #2D2D2D);
    border: 1px solid var(--border, #404040);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.suburb-card.fill-now {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, var(--surface-card, #2D2D2D) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

.suburb-card.wait {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, var(--surface-card, #2D2D2D) 100%);
    border-color: rgba(245, 158, 11, 0.35);
}

/* Suburb header */
.suburb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.suburb-location {
    display: flex;
    align-items: center;
    gap: 8px;
}

.suburb-location svg {
    color: var(--primary, #FFB700);
    flex-shrink: 0;
}

.suburb-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.suburb-state {
    font-size: 14px;
    color: var(--text-secondary, #9CA3AF);
    background: var(--background, #1a1a1a);
    padding: 2px 8px;
    border-radius: 4px;
}

.suburb-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suburb-badge.fill-now { background: #10B981; color: white; }
.suburb-badge.wait { background: #F59E0B; color: #1a1a1a; }
.suburb-badge.neutral { background: #4B5563; color: #E5E7EB; }

/* Stats row */
.suburb-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--background, #1a1a1a);
    border-radius: 12px;
}

@media (max-width: 500px) {
    .suburb-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.suburb-stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary, #9CA3AF);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.stat-value.price {
    color: #10B981;
}

/* Cheapest station highlight */
.suburb-cheapest {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    margin-bottom: 12px;
}

.cheapest-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--background, #1a1a1a);
    padding: 4px;
    flex-shrink: 0;
}

.cheapest-info {
    flex: 1;
    min-width: 0;
}

.cheapest-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary, #9CA3AF);
}

.cheapest-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cheapest-price {
    font-size: 24px;
    font-weight: 800;
    color: #10B981;
    flex-shrink: 0;
}

.cheapest-price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #9CA3AF);
}

/* Reasons */
.suburb-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suburb-reason {
    font-size: 12px;
    color: var(--text-secondary, #9CA3AF);
    background: var(--background, #1a1a1a);
    padding: 6px 10px;
    border-radius: 6px;
}

/* Dark mode overrides */
:root[data-theme="dark"] .suburb-card {
    background: var(--surface-card, #2D2D2D);
}

:root[data-theme="dark"] .suburb-card.fill-now {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, var(--surface-card, #2D2D2D) 100%);
}

:root[data-theme="dark"] .suburb-card.wait {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, var(--surface-card, #2D2D2D) 100%);
}

/* =============================================
   RICH SUBURB CARDS - Premium SEO-like design
   ============================================= */

/* Grid for rich suburb cards */
.suburbs-section {
    margin-top: 24px;
}

.suburbs-section .suburbs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Rich suburb card - premium design */
.suburb-card-rich {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.suburb-card-rich:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: var(--primary, #FFB700);
}

.suburb-card-rich.fill-now {
    background: linear-gradient(145deg, #ecfdf5 0%, #f0fdf4 50%, #ffffff 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.suburb-card-rich.fill-now:hover {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.suburb-card-rich.wait {
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 30%, #ffffff 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

/* Card header */
.suburb-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.suburb-location-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suburb-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFB700 0%, #F59E0B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(255, 183, 0, 0.3);
}

.suburb-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suburb-name-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1f1f1f);
}

.suburb-state-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
    letter-spacing: 0.5px;
}

.suburb-badge-rich {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suburb-badge-rich.fill-now {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.suburb-badge-rich.wait {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #1f1f1f;
}

.suburb-badge-rich.neutral {
    background: linear-gradient(135deg, #6B7280 0%, #4B5563 100%);
    color: white;
}

/* Price overview grid */
.suburb-price-overview {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
    background: linear-gradient(145deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.04) 100%);
    border-radius: 14px;
}

.price-main,
.price-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-main {
    padding-right: 12px;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.price-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary, #1f1f1f);
}

.price-value.highlight {
    font-size: 26px;
    color: #10B981;
}

.price-value.muted {
    color: var(--text-secondary, #6B7280);
}

/* Insight chips row */
.suburb-insights-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.insight-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary, #4B5563);
}

.insight-chip i {
    font-size: 12px;
}

.insight-chip.stations {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1D4ED8;
}

.insight-chip.savings {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.insight-chip.trend {
    padding: 8px 12px;
}

.insight-chip.trend.up {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

.insight-chip.trend.down {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.insight-chip.trend.stable {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary, #6B7280);
}

/* Best station highlight */
.suburb-best-station {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    margin-bottom: 12px;
}

.best-station-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: white;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.best-station-info {
    flex: 1;
    min-width: 0;
}

.best-station-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.best-station-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #1f1f1f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.best-station-price {
    font-size: 24px;
    font-weight: 800;
    color: #10B981;
    flex-shrink: 0;
}

/* Reasons row */
.suburb-reasons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reason-chip {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary, #4B5563);
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 12px;
    border-radius: 8px;
}

/* DARK MODE - Rich Suburb Cards */
[data-theme="dark"] .suburb-card-rich {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .suburb-card-rich:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--primary, #FFB700);
}

[data-theme="dark"] .suburb-card-rich.fill-now {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.15) 0%, #252525 50%, #1e1e1e 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .suburb-card-rich.wait {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.12) 0%, #252525 50%, #1e1e1e 100%);
    border-color: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .suburb-icon {
    background: linear-gradient(135deg, #FFB700 0%, #D97706 100%);
}

[data-theme="dark"] .suburb-name-text {
    color: #ffffff;
}

[data-theme="dark"] .suburb-state-text {
    color: #9CA3AF;
}

[data-theme="dark"] .suburb-price-overview {
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.05) 100%);
}

[data-theme="dark"] .price-main {
    border-right-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .price-value {
    color: #ffffff;
}

[data-theme="dark"] .price-value.muted {
    color: #9CA3AF;
}

[data-theme="dark"] .insight-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #E5E7EB;
}

[data-theme="dark"] .insight-chip.stations {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: #93C5FD;
}

[data-theme="dark"] .insight-chip.savings {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #6EE7B7;
}

[data-theme="dark"] .insight-chip.trend.up {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.15) 100%);
    color: #FCA5A5;
}

[data-theme="dark"] .insight-chip.trend.down {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #6EE7B7;
}

[data-theme="dark"] .insight-chip.trend.stable {
    background: rgba(255, 255, 255, 0.08);
    color: #9CA3AF;
}

[data-theme="dark"] .suburb-best-station {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .best-station-logo {
    background: #1a1a1a;
}

[data-theme="dark"] .best-station-label {
    color: #6EE7B7;
}

[data-theme="dark"] .best-station-name {
    color: #ffffff;
}

[data-theme="dark"] .reason-chip {
    background: rgba(255, 255, 255, 0.08);
    color: #9CA3AF;
}

/* Mobile responsive for rich suburb cards */
@media (max-width: 500px) {
    .suburb-price-overview {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .price-main {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-right: 0;
        padding-bottom: 12px;
    }

    [data-theme="dark"] .price-main {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .suburb-insights-row {
        flex-wrap: wrap;
    }

    .insight-chip {
        font-size: 12px;
        padding: 6px 10px;
    }

    .suburb-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   PRICE SIGNALS SECTION
   Active price signals for watched stations
   ============================================= */

.price-signals-section {
    margin-bottom: 32px;
}

.signals-header {
    margin-bottom: 16px;
}

.signals-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0;
}

.signals-title svg {
    width: 22px;
    height: 22px;
    color: #F59E0B;
}

.signals-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signal-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.signal-card:hover {
    border-color: var(--primary, #FFB700);
}

.signal-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.signal-icon.drop {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.signal-icon.rise {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
}

.signal-icon.cycle {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
}

.signal-icon.cheapest {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, #F59E0B 100%);
    color: #1F1F1F;
}

.signal-content {
    flex: 1;
    min-width: 0;
}

.signal-headline {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 2px;
}

.signal-details {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
}

.signal-price {
    font-weight: 600;
    color: var(--primary, #FFB700);
}

.signal-time {
    font-size: 12px;
    color: var(--text-tertiary, #A0A0A0);
    flex-shrink: 0;
}

/* =============================================
   DARK MODE - INSIGHTS
   ============================================= */

:root[data-theme="dark"] .morning-briefing {
    background: linear-gradient(135deg, rgba(255, 183, 0, 0.08) 0%, rgba(255, 183, 0, 0.02) 100%);
    border-color: rgba(255, 183, 0, 0.4);
}

:root[data-theme="dark"] .morning-briefing::before {
    background: radial-gradient(circle, rgba(255, 183, 0, 0.1) 0%, transparent 70%);
}

:root[data-theme="dark"] .summary-item {
    background: rgba(255, 255, 255, 0.05);
}

/* Dark mode insight cards - v21 design */
:root[data-theme="dark"] .insight-card {
    background: var(--surface-card, #2D2D2D);
    border-color: var(--border, #404040);
}

:root[data-theme="dark"] .insight-card.fill-now {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, var(--surface-card, #2D2D2D) 100%);
    border-color: rgba(16, 185, 129, 0.5);
}

:root[data-theme="dark"] .insight-card.wait {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, var(--surface-card, #2D2D2D) 100%);
    border-color: rgba(245, 158, 11, 0.45);
}

:root[data-theme="dark"] .signal-card {
    background: var(--surface-card, #2D2D2D);
    border-color: var(--border, #404040);
}

/* =============================================
   RESPONSIVE - INSIGHTS
   ============================================= */

@media (max-width: 768px) {
    .morning-briefing {
        padding: 18px;
    }

    .briefing-header {
        flex-wrap: wrap;
    }

    .briefing-badge {
        order: -1;
        margin-left: auto;
    }

    .briefing-headline {
        font-size: 18px;
    }

    .briefing-summary {
        flex-wrap: wrap;
        gap: 10px;
    }

    .summary-item {
        flex: 1;
        min-width: 70px;
        padding: 10px 14px;
    }

    /* insight-grid responsive handled in main definition */

    .insight-price-num {
        font-size: 26px;
    }

    .watched-insights-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =============================================
   PRICE INSIGHTS SECTION
   ============================================= */

.insights-controls {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.control-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.insights-select {
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1F1F1F);
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.insights-select:hover {
    border-color: var(--primary, #FFB700);
}

.insights-select:focus {
    outline: none;
    border-color: var(--primary, #FFB700);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

/* Fuel Type Multi-Select Checkboxes */
.fuel-type-group {
    min-width: 200px;
}

.fuel-type-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fuel-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #6B6B6B);
}

.fuel-checkbox:hover {
    border-color: var(--primary, #FFB700);
    background: rgba(255, 183, 0, 0.05);
}

.fuel-checkbox input[type="checkbox"] {
    display: none;
}

.fuel-checkbox input[type="checkbox"]:checked + span {
    color: var(--text-primary, #1F1F1F);
}

.fuel-checkbox:has(input:checked) {
    background: rgba(255, 183, 0, 0.15);
    border-color: var(--primary, #FFB700);
    color: var(--text-primary, #1F1F1F);
}

@media (max-width: 768px) {
    .fuel-type-checkboxes {
        gap: 6px;
    }

    .fuel-checkbox {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.insights-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insights-refresh-btn:hover {
    border-color: var(--primary, #FFB700);
    background: rgba(255, 183, 0, 0.05);
}

.insights-refresh-btn svg {
    width: 16px;
    height: 16px;
}

.insights-refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

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

.insights-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.summary-card {
    padding: 18px;
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 14px;
    text-align: center;
}

.summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.summary-value.low {
    color: #10B981;
}

.summary-value.high {
    color: #EF4444;
}

.chart-container {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    min-height: 350px;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 300px !important;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: var(--surface, #F5F5F5);
    border-radius: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--background, #FFFFFF);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #1F1F1F);
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item:hover {
    transform: translateY(-1px);
}

.legend-item.hidden {
    opacity: 0.4;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.legend-station {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-fuel {
    font-size: 11px;
    color: var(--text-secondary, #6B6B6B);
}

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

.insights-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border, #E5E5E5);
    border-top-color: var(--primary, #FFB700);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

.insights-loading p {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
}

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

.insights-empty svg {
    width: 64px;
    height: 64px;
    color: var(--border, #E5E5E5);
    margin-bottom: 20px;
}

.insights-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 8px;
}

.insights-empty p {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    max-width: 280px;
}

/* Dark Mode - Price Insights */
:root[data-theme="dark"] .insights-select {
    background-color: var(--surface-card, #2D2D2D);
    color: var(--text-primary, #FFFFFF);
    border-color: var(--border, #404040);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A0A0A0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .insights-refresh-btn {
    background-color: var(--surface-card, #2D2D2D);
    border-color: var(--border, #404040);
}

:root[data-theme="dark"] .summary-card {
    background: var(--surface-card, #2D2D2D);
    border-color: var(--border, #404040);
}

:root[data-theme="dark"] .chart-container {
    background: var(--surface-card, #2D2D2D);
    border-color: var(--border, #404040);
}

:root[data-theme="dark"] .chart-legend {
    background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .legend-item {
    background: var(--surface-card, #2D2D2D);
}

/* Responsive - Price Insights */
@media (max-width: 768px) {
    .insights-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .control-group {
        width: 100%;
    }

    .insights-select {
        width: 100%;
    }

    .insights-refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .insights-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-value {
        font-size: 22px;
    }

    .chart-container {
        padding: 16px;
    }

    .chart-container canvas {
        height: 250px !important;
    }

    .chart-legend {
        gap: 8px;
    }

    .legend-item {
        padding: 5px 10px;
        font-size: 12px;
    }

    .legend-station {
        max-width: 120px;
    }
}

/* Responsive sparklines */
@media (max-width: 768px) {
    .watchlist-sparkline {
        height: 22px;
        margin-top: 4px;
    }
}

/* =============================================
   AUTOPILOT CARD
   ============================================= */

.autopilot-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.autopilot-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.autopilot-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.autopilot-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.autopilot-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.autopilot-title {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.autopilot-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
}

.autopilot-status {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
}

.autopilot-toggle {
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border, #E5E5E5);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #6366F1;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.autopilot-content {
    position: relative;
}

.autopilot-prediction {
    margin-bottom: 16px;
}

.prediction-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.prediction-action {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.prediction-action.fill-now {
    color: #10B981;
}

.prediction-action.wait {
    color: #F59E0B;
}

.prediction-action.no-action {
    color: var(--text-secondary, #6B6B6B);
}

.prediction-days {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
}

.prediction-reason {
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
    line-height: 1.5;
    margin: 0;
}

.autopilot-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
}

.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
}

/* Dark mode Autopilot */
:root[data-theme="dark"] .autopilot-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-color: rgba(99, 102, 241, 0.4);
}

:root[data-theme="dark"] .autopilot-card::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

:root[data-theme="dark"] .toggle-slider {
    background-color: var(--surface-card, #2D2D2D);
}

:root[data-theme="dark"] .autopilot-details {
    border-top-color: rgba(99, 102, 241, 0.25);
}

/* Responsive Autopilot */
@media (max-width: 768px) {
    .autopilot-card {
        padding: 16px 18px;
    }

    .autopilot-header {
        flex-wrap: wrap;
    }

    .autopilot-toggle {
        order: -1;
        margin-left: auto;
    }

    .prediction-action {
        font-size: 20px;
    }

    .autopilot-details {
        flex-direction: column;
        gap: 10px;
    }

    .detail-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }
}

/* =============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================= */

/* Small tablets and large phones */
@media (max-width: 640px) {
    /* Dashboard container */
    .dashboard-container {
        padding: 12px;
        padding-bottom: 80px;
    }

    /* Navigation - horizontal scroll on small screens */
    .dashboard-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 4px;
        gap: 4px;
        margin-bottom: 16px;
    }

    .dashboard-nav::-webkit-scrollbar {
        display: none;
    }

    .dashboard-nav-item {
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 14px;
        font-size: 12px;
        gap: 6px;
        white-space: nowrap;
    }

    .dashboard-nav-item svg {
        width: 16px;
        height: 16px;
    }

    .dashboard-nav-item span {
        display: inline;
        font-size: 12px;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 16px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* Overview grid - single column on mobile */
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .overview-card {
        padding: 14px;
    }

    .overview-card-value {
        font-size: 20px;
    }

    .overview-card-label {
        font-size: 12px;
    }

    /* Vehicle cards */
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .vehicle-card {
        padding: 14px;
    }

    .vehicle-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vehicle-icon {
        width: 40px;
        height: 40px;
    }

    .vehicle-name {
        font-size: 15px;
    }

    .vehicle-fuel-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .fuel-tag {
        font-size: 11px;
        padding: 4px 8px;
    }

    /* Subscription cards */
    .subscriptions-list {
        gap: 12px;
    }

    .subscription-card {
        flex-direction: column;
        padding: 14px;
        gap: 12px;
    }

    .subscription-icon {
        width: 36px;
        height: 36px;
    }

    .subscription-station {
        font-size: 14px;
    }

    .subscription-address {
        font-size: 12px;
    }

    .subscription-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border, #E5E5E5);
    }

    /* Empty states */
    .empty-state {
        padding: 32px 16px;
    }

    .empty-state-icon {
        width: 56px;
        height: 56px;
    }

    .empty-state h3 {
        font-size: 16px;
    }

    .empty-state p {
        font-size: 13px;
    }

    /* Morning briefing */
    .morning-briefing {
        padding: 14px;
        margin-bottom: 20px;
    }

    .briefing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .briefing-header h3 {
        font-size: 15px;
    }

    .briefing-date {
        font-size: 11px;
    }

    .briefing-summary {
        flex-direction: column;
        gap: 8px;
    }

    .summary-item {
        padding: 10px 12px;
        min-width: auto;
    }

    .summary-value {
        font-size: 18px;
    }

    .summary-label {
        font-size: 11px;
    }

    /* Insights grid */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .insight-card {
        padding: 14px;
    }

    .insight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Watchlist */
    .watchlist-section {
        margin-top: 20px;
    }

    .watchlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }

    .watchlist-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .watchlist-station-info {
        width: 100%;
    }

    .watchlist-station-name {
        font-size: 14px;
    }

    .watchlist-station-address {
        font-size: 11px;
    }

    .watchlist-price-info {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .watchlist-sparkline {
        width: 60px;
        height: 20px;
    }

    /* Alerts */
    .alerts-list {
        gap: 10px;
    }

    .alert-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .alert-icon {
        width: 32px;
        height: 32px;
    }

    .alert-title {
        font-size: 13px;
    }

    .alert-message {
        font-size: 12px;
    }

    .alert-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Settings */
    .settings-card {
        padding: 14px;
    }

    .settings-card h3 {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }

    .settings-label {
        font-size: 13px;
    }

    .settings-description {
        font-size: 11px;
    }

    .settings-control {
        width: 100%;
        margin-left: 0;
    }

    .settings-select {
        width: 100%;
        font-size: 14px;
    }

    .quiet-hours-inputs {
        width: 100%;
    }

    .quiet-hours-inputs input {
        flex: 1;
        font-size: 14px;
    }

    /* Toggle switches - make more touch-friendly */
    .toggle-switch {
        width: 48px;
        height: 28px;
    }

    .toggle-slider:before {
        width: 22px;
        height: 22px;
    }

    input:checked + .toggle-slider:before {
        transform: translateX(20px);
    }

    /* Modals - full screen on mobile */
    .dashboard-modal-content {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .dashboard-modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
    }

    .dashboard-modal-title {
        font-size: 18px;
    }

    .dashboard-modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-field {
        margin-bottom: 16px;
    }

    .modal-field label {
        font-size: 13px;
    }

    .modal-field input,
    .modal-field select {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .modal-actions {
        padding: 16px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid var(--border, #E5E5E5);
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions button {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    /* Price insights chart section */
    .insights-controls {
        flex-direction: column;
        gap: 10px;
    }

    .station-search-container {
        width: 100%;
    }

    .station-search-input {
        font-size: 16px;
        padding: 12px;
    }

    .fuel-selector-compact {
        width: 100%;
    }

    .fuel-btn-compact {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
    }

    .chart-container {
        height: 200px;
        margin: 12px 0;
    }

    .chart-legend {
        flex-direction: column;
        gap: 8px;
    }

    .legend-item {
        font-size: 11px;
    }

    /* Autopilot card */
    .autopilot-card {
        padding: 14px;
    }

    .autopilot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .autopilot-title {
        font-size: 15px;
    }

    .prediction-box {
        padding: 14px;
    }

    .prediction-action {
        font-size: 18px;
    }

    .prediction-reason {
        font-size: 12px;
    }

    .autopilot-details {
        flex-direction: column;
        gap: 8px;
    }

    .detail-row {
        padding: 8px 10px;
    }

    /* Suburb insights */
    .suburb-insights {
        padding: 14px;
    }

    .suburb-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Cheapest station card */
    .cheapest-card {
        padding: 12px;
    }

    .cheapest-station-info {
        flex-direction: column;
        gap: 10px;
    }

    .cheapest-price {
        font-size: 22px;
    }

    /* Price signals */
    .signals-list {
        gap: 10px;
    }

    .signal-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .signal-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .signal-station {
        font-size: 13px;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
    }

    .btn-add-vehicle,
    .btn-add-alert {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }

    /* Search modal on mobile */
    .search-modal-content {
        max-width: 100%;
        max-height: 80vh;
    }

    .search-results {
        max-height: 50vh;
    }

    .search-result-item {
        padding: 12px;
    }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .dashboard-container {
        padding: 10px;
    }

    .dashboard-nav-item {
        padding: 8px 10px;
        font-size: 11px;
    }

    .dashboard-nav-item svg {
        width: 14px;
        height: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .overview-card-value {
        font-size: 18px;
    }

    .summary-value {
        font-size: 16px;
    }

    .modal-field input,
    .modal-field select {
        padding: 10px;
    }

    .suburb-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-value {
        font-size: 16px;
    }
}

/* Landscape mode on phones */
@media (max-width: 896px) and (orientation: landscape) {
    .dashboard-modal-content {
        max-height: 100vh;
        overflow-y: auto;
    }

    .modal-body {
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .dashboard-nav-item {
        min-height: 44px;
    }

    .subscription-card,
    .vehicle-card,
    .alert-item,
    .watchlist-item {
        min-height: 44px;
    }

    .settings-row {
        min-height: 48px;
    }

    /* Remove hover effects on touch devices */
    .overview-card:hover,
    .vehicle-card:hover,
    .subscription-card:hover {
        transform: none;
        box-shadow: none;
    }

    /* Better tap feedback */
    .dashboard-nav-item:active,
    .btn-primary:active,
    .btn-secondary:active {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* =============================================
   SAVINGS DETAIL CARD & FILLUP MODAL
   ============================================= */

/* Savings Detail Card */
.savings-detail-card {
    background: var(--surface-card, #fff);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: background-color 0.3s ease;
}

.savings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.savings-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.savings-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.period-tabs {
    display: flex;
    background: var(--surface, #F7F7F7);
    border-radius: 8px;
    padding: 4px;
}

.period-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #6B6B6B);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.period-tab.active {
    background: white;
    color: var(--text-primary, #1F1F1F);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.savings-stats {
    margin-bottom: 24px;
}

.savings-stat-main {
    text-align: center;
    margin-bottom: 20px;
}

.savings-stat-value {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #22C55E;
    line-height: 1;
}

.savings-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary, #6B6B6B);
}

.savings-stat-secondary {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.savings-stat-item {
    text-align: center;
}

.savings-stat-item .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.savings-stat-item .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    margin-top: 2px;
}

.savings-chart-container {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--surface, #F7F7F7);
    border-radius: 12px;
}

.recent-fillups {
    border-top: 1px solid var(--border, #E5E5E5);
    padding-top: 20px;
}

.recent-fillups h4 {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
}

.fillups-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fillup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface, #F7F7F7);
    border-radius: 10px;
    gap: 16px;
}

.fillup-info {
    flex: 1;
    min-width: 0;
}

.fillup-station {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #1F1F1F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fillup-details {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    margin-top: 2px;
}

.fillup-savings {
    text-align: right;
}

.fillup-savings-value {
    font-weight: 700;
    font-size: 15px;
    color: #22C55E;
}

.fillup-savings-value.negative {
    color: #EF4444;
}

.fillup-total {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    margin-top: 2px;
}

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

.fillup-delete {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary, #6B6B6B);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.fillup-delete:hover {
    background: #FEE2E2;
    color: #EF4444;
}

.no-fillups {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary, #6B6B6B);
    font-size: 14px;
}

/* Autocomplete Dropdown */
.autocomplete-container {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border, #E5E5E5);
    transition: background 0.15s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--surface, #F7F7F7);
}

.autocomplete-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary, #1F1F1F);
}

.autocomplete-item-address {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
    margin-top: 2px;
}

/* Savings Preview in Fillup Modal */
.savings-preview {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.savings-preview.hidden {
    display: none;
}

.savings-preview-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.savings-preview .savings-label {
    font-size: 14px;
    color: #166534;
    font-weight: 500;
}

.savings-preview .savings-value {
    font-size: 20px;
    font-weight: 700;
    color: #22C55E;
}

/* Mobile Responsive for Savings Card */
@media (max-width: 768px) {
    .savings-detail-card {
        padding: 16px;
        margin-top: 16px;
    }

    .savings-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .savings-actions {
        justify-content: space-between;
    }

    .savings-stat-value {
        font-size: 36px;
    }

    .savings-stat-secondary {
        gap: 20px;
    }

    .savings-stat-item .stat-value {
        font-size: 18px;
    }

    .fillup-item {
        flex-wrap: wrap;
    }

    .fillup-savings {
        order: -1;
        margin-left: auto;
    }

    .fillup-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

/* =============================================
   DARK MODE OVERRIDES
   ============================================= */

[data-theme="dark"] .savings-detail-card {
    background: var(--surface-card, #1E1E1E);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* =============================================
   NEW DASHBOARD DESIGN SYSTEM - V2
   Modern, streamlined dashboard components
   ============================================= */

/* Hero Intelligence Card - PREMIUM DESIGN */
.intelligence-card {
    background: linear-gradient(135deg, #FFB700 0%, #F59E0B 50%, #D97706 100%);
    border-radius: 24px;
    padding: 28px;
    color: #1f1f1f;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(255, 183, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.intelligence-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    pointer-events: none;
}

.intelligence-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.intel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.intel-badge.fill-now {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.intel-badge.fill-soon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.intel-badge.wait {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    color: #4B5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intel-badge.check, .intel-badge.checking {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
    color: #1f1f1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intel-headline {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.intel-advice {
    font-size: 15px;
    opacity: 0.85;
    margin: 0 0 20px 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.intel-details {
    display: flex;
    gap: 24px;
    position: relative;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.intel-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.intel-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.intel-detail-value {
    font-size: 20px;
    font-weight: 700;
}

/* Featured Station Block (FILL states) */
.intel-featured-station {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px 20px;
    margin: 16px 0;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.featured-station-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.featured-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.featured-station-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.featured-station-name {
    font-size: 17px;
    font-weight: 700;
    color: #1f1f1f;
}

.featured-station-suburb {
    font-size: 13px;
    opacity: 0.8;
    color: #1f1f1f;
}

.featured-station-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.featured-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #1f1f1f;
    line-height: 1;
}

.featured-price-unit {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    color: #1f1f1f;
}

/* Reasoning Items (FILL states) */
.intel-reasoning {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 16px 0;
    position: relative;
    z-index: 1;
}

.reasoning-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1f1f1f;
    opacity: 0.9;
}

.reasoning-item .reason-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Wait Info (WAIT state) */
.intel-wait-info {
    position: relative;
    z-index: 1;
    margin: 12px 0 16px 0;
}

.intel-wait-info .intel-advice {
    margin-bottom: 16px;
}

.wait-forecast {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
}

.forecast-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.forecast-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    color: #1f1f1f;
}

.forecast-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f1f1f;
}

/* Backup Option (WAIT state) */
.intel-backup-option {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.backup-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 10px;
    color: #1f1f1f;
}

.backup-station {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    transition: background 0.2s ease;
}

.backup-station:hover {
    background: rgba(255, 255, 255, 0.35);
}

.backup-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 3px;
}

.backup-name {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1f1f1f;
}

.backup-price {
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
}

/* Metrics Row (always shown) */
.intel-metrics {
    display: flex;
    gap: 16px;
    position: relative;
    z-index: 1;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.intel-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.intel-metric-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    color: #1f1f1f;
}

.intel-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f1f1f;
}

.intel-metric-value.positive {
    color: #047857;
}

.intel-metric-value.negative {
    color: #b91c1c;
}

/* CTA Button */
.intel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.intel-cta:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-1px);
}

.intel-cta svg {
    transition: transform 0.2s ease;
}

.intel-cta:hover svg {
    transform: translateX(3px);
}

/* Dark mode intelligence card - slightly muted yellow with light text */
[data-theme="dark"] .intelligence-card {
    background: linear-gradient(135deg, #E8A800 0%, #D99500 50%, #C28200 100%);
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .intelligence-card::before {
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

[data-theme="dark"] .intelligence-card::after {
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, transparent 50%);
}

[data-theme="dark"] .intel-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

[data-theme="dark"] .intel-badge.fill-now {
    background: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

[data-theme="dark"] .intel-badge.fill-soon {
    background: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

[data-theme="dark"] .intel-badge.wait {
    background: rgba(255, 255, 255, 0.2);
    color: #fef3c7;
}

[data-theme="dark"] .intel-headline {
    color: #ffffff;
}

[data-theme="dark"] .intel-advice {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .intel-featured-station {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .featured-station-name {
    color: #ffffff;
}

[data-theme="dark"] .featured-station-suburb {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .featured-price-value {
    color: #ffffff;
}

[data-theme="dark"] .featured-price-unit {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .featured-brand-logo {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .intel-reasoning {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .reasoning-item {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .wait-forecast {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .forecast-label {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .forecast-value {
    color: #ffffff;
}

[data-theme="dark"] .backup-label {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .backup-station {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .backup-station:hover {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .backup-name {
    color: #ffffff;
}

[data-theme="dark"] .backup-price {
    color: #ffffff;
}

[data-theme="dark"] .backup-logo {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .intel-metrics {
    border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .intel-metric-label {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .intel-metric-value {
    color: #ffffff;
}

[data-theme="dark"] .intel-metric-value.positive {
    color: #86efac;
}

[data-theme="dark"] .intel-metric-value.negative {
    color: #fca5a5;
}

[data-theme="dark"] .intel-cta {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .intel-cta:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Compact Stats Row - PREMIUM DESIGN */
.stats-row {
    display: flex;
    gap: 14px;
    margin: 0 0 28px 0;
}

.stat-pill {
    flex: 1;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.stat-pill:hover {
    border-color: var(--primary, #FFB700);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 183, 0, 0.18), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.stat-pill:active {
    transform: translateY(-1px);
}

.stat-pill-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Vibrant icon backgrounds with icon colors */
.stat-pill-icon.vehicles {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #B45309;
}

.stat-pill-icon.watching {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    color: #1D4ED8;
}

.stat-pill-icon.saved {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    color: #059669;
}

.stat-pill-icon.fillups {
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    color: #DC2626;
}

.stat-pill-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.stat-pill-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary, #1f1f1f);
    line-height: 1.1;
}

.stat-pill-value.savings {
    color: #059669;
}

.stat-pill-label {
    font-size: 11px;
    color: var(--text-secondary, #6B7280);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* Dark mode stat pills */
[data-theme="dark"] .stat-pill {
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .stat-pill:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 8px 24px rgba(255, 183, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .stat-pill-value {
    color: #F5F5F5;
}

[data-theme="dark"] .stat-pill-icon.vehicles {
    background: linear-gradient(135deg, #78350F 0%, #92400E 100%);
    color: #FDE68A;
}

[data-theme="dark"] .stat-pill-icon.watching {
    background: linear-gradient(135deg, #1E3A5F 0%, #1E40AF 100%);
    color: #93C5FD;
}

[data-theme="dark"] .stat-pill-icon.saved {
    background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
    color: #6EE7B7;
}

[data-theme="dark"] .stat-pill-icon.fillups {
    background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
    color: #FCA5A5;
}

/* Section Headers - Compact */
.section-header.compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0;
}

.section-header.compact h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #1f1f1f);
    margin: 0;
}

[data-theme="dark"] .section-header.compact h3 {
    color: var(--text-primary, #F0F0F0);
}

/* Watch Grid */
.watch-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

/* Streamlined Watch Card - PREMIUM DESIGN */
.watch-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.watch-card:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 12px 32px rgba(255, 183, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.watch-card:active {
    transform: translateY(-1px);
}

[data-theme="dark"] .watch-card {
    background: linear-gradient(145deg, #252525 0%, #1a1a1a 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .watch-card:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 12px 32px rgba(255, 183, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.5);
}

.watch-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: contain;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .watch-card-logo {
    background: linear-gradient(145deg, #333 0%, #252525 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.watch-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.watch-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1f1f1f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .watch-card-name {
    color: var(--text-primary, #F0F0F0);
}

.watch-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.watch-card-fuel {
    color: var(--text-secondary, #6B7280);
}

.watch-card-trend {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

.watch-card-trend.up {
    color: #EF4444;
}

.watch-card-trend.down {
    color: #10B981;
}

.watch-card-trend.neutral {
    color: var(--text-secondary, #6B7280);
}

.watch-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.watch-card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1f1f1f);
}

[data-theme="dark"] .watch-card-price {
    color: var(--text-primary, #F0F0F0);
}

/* Recommendation Badges - Refined */
.rec-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.rec-badge.fill-now, .rec-badge.fill_now {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.rec-badge.wait {
    background: var(--surface, #F5F5F5);
    color: var(--text-secondary, #6B7280);
}

.rec-badge.check {
    background: linear-gradient(135deg, var(--primary, #FFB700) 0%, #E5A500 100%);
    color: #1f1f1f;
}

.rec-badge.neutral {
    background: var(--surface, #F5F5F5);
    color: var(--text-secondary, #6B7280);
}

[data-theme="dark"] .rec-badge.wait,
[data-theme="dark"] .rec-badge.neutral {
    background: var(--surface, #2A2A2A);
    color: var(--text-secondary, #9CA3AF);
}

/* =============================================
   WATCH CARDS V2 - COMPACT DESIGN
   ============================================= */

/* Watch Grid - 2 columns on desktop */
.watch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

/* Watch Card V2 */
.watch-card-v2 {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.watch-card-v2:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .watch-card-v2 {
    background: var(--surface, #1F1F1F);
    border-color: var(--border, #333);
}

[data-theme="dark"] .watch-card-v2:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.2);
}

/* Main row: logo + details + price */
.wc-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wc-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 4px;
    flex-shrink: 0;
}

[data-theme="dark"] .wc-logo {
    background: #2a2a2a;
}

.wc-details {
    flex: 1;
    min-width: 0;
}

.wc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

[data-theme="dark"] .wc-name {
    color: var(--text-primary, #F0F0F0);
}

.wc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.wc-fuel {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
    background: var(--surface, #F3F4F6);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="dark"] .wc-fuel {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary, #9CA3AF);
}

.wc-rank {
    font-size: 11px;
    color: var(--text-tertiary, #9CA3AF);
}

/* Price section */
.wc-price-section {
    text-align: right;
    flex-shrink: 0;
}

.wc-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    line-height: 1;
}

[data-theme="dark"] .wc-price {
    color: var(--text-primary, #F0F0F0);
}

.wc-cents {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.7;
}

.wc-trend {
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.wc-trend.up {
    color: #EF4444;
}

.wc-trend.down {
    color: #10B981;
}

.wc-trend.neutral {
    color: var(--text-tertiary, #9CA3AF);
}

/* Insight line */
.wc-insight {
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--surface, #F9FAFB);
}

[data-theme="dark"] .wc-insight {
    background: rgba(255,255,255,0.05);
}

.wc-insight.positive {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

.wc-insight.negative {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.08);
}

.wc-insight.warning {
    color: #D97706;
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="dark"] .wc-insight.positive {
    color: #34D399;
    background: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .wc-insight.negative {
    color: #F87171;
    background: rgba(239, 68, 68, 0.15);
}

[data-theme="dark"] .wc-insight.warning {
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.15);
}

/* Action row */
.wc-action {
    display: flex;
    justify-content: flex-end;
}

.wc-rec {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 12px;
}

.wc-rec.fill-now {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
}

.wc-rec.wait {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
}

.wc-rec.neutral, .wc-rec.check {
    background: var(--surface, #E5E7EB);
    color: var(--text-secondary, #6B7280);
}

[data-theme="dark"] .wc-rec.neutral,
[data-theme="dark"] .wc-rec.check {
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary, #9CA3AF);
}

/* Mobile: single column */
@media (max-width: 768px) {
    .watch-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .watch-card-v2 {
        padding: 12px;
    }

    .wc-logo {
        width: 36px;
        height: 36px;
    }

    .wc-name {
        font-size: 13px;
    }

    .wc-price {
        font-size: 20px;
    }

    .wc-insight {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* Large screens: more spacing */
@media (min-width: 1200px) {
    .watch-grid {
        gap: 16px;
    }

    .watch-card-v2 {
        padding: 16px;
    }
}

/* ============================================
   WATCH CARD V3 - Multi-Fuel Per Station
   ============================================ */
.watch-card-v3 {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E7EB);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-card-v3:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .watch-card-v3 {
    background: var(--surface, #1F1F1F);
    border-color: var(--border, #333);
}

/* Card Header: Logo + Station Name */
.watch-card-v3 .wc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border, #E5E7EB);
}

[data-theme="dark"] .watch-card-v3 .wc-header {
    border-color: var(--border, #333);
}

.watch-card-v3 .wc-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 4px;
    flex-shrink: 0;
}

[data-theme="dark"] .watch-card-v3 .wc-logo {
    background: #2a2a2a;
}

.watch-card-v3 .wc-station {
    flex: 1;
    min-width: 0;
}

.watch-card-v3 .wc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-card-v3 .wc-suburb {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
}

/* Fuel Rows Container */
.watch-card-v3 .wc-fuels {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Fuel Row */
.fuel-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--surface-alt, #F9FAFB);
    border-radius: 8px;
    font-size: 13px;
}

[data-theme="dark"] .fuel-row {
    background: rgba(255, 255, 255, 0.05);
}

.fuel-type {
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    min-width: 50px;
}

.fuel-price {
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    font-size: 15px;
    min-width: 58px;
}

.fuel-trend {
    font-size: 14px;
    min-width: 16px;
}

.fuel-trend.down { color: #22C55E; }
.fuel-trend.up { color: #EF4444; }
.fuel-trend.neutral { color: var(--text-secondary, #6B6B6B); }

.fuel-rank {
    font-size: 11px;
    color: var(--text-secondary, #6B6B6B);
    background: var(--background, #FFFFFF);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

[data-theme="dark"] .fuel-rank {
    background: rgba(255, 255, 255, 0.1);
}

.fuel-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.fuel-status.good {
    background: rgba(34, 197, 94, 0.15);
    color: #16A34A;
}

.fuel-status.bad {
    background: rgba(239, 68, 68, 0.15);
    color: #DC2626;
}

.fuel-rec {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.fuel-rec.fill-now, .fuel-rec.fill_now {
    background: #22C55E;
    color: white;
}

.fuel-rec.wait {
    background: #F59E0B;
    color: white;
}

.fuel-rec.neutral, .fuel-rec.check {
    background: var(--surface-alt, #E5E7EB);
    color: var(--text-secondary, #6B6B6B);
}

[data-theme="dark"] .fuel-rec.neutral,
[data-theme="dark"] .fuel-rec.check {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary, #9CA3AF);
}

/* Summary Line */
.watch-card-v3 .wc-summary {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border, #E5E7EB);
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    font-style: italic;
}

[data-theme="dark"] .watch-card-v3 .wc-summary {
    border-color: var(--border, #333);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
    .watch-card-v3 {
        padding: 12px;
    }

    .watch-card-v3 .wc-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .watch-card-v3 .wc-logo {
        width: 36px;
        height: 36px;
    }

    .watch-card-v3 .wc-name {
        font-size: 13px;
    }

    .fuel-row {
        padding: 6px 8px;
        gap: 6px;
    }

    .fuel-type {
        min-width: 44px;
        font-size: 12px;
    }

    .fuel-price {
        font-size: 14px;
        min-width: 52px;
    }

    .fuel-rank {
        display: none; /* Hide on mobile to save space */
    }
}

/* Collapsible Sections */
.collapsible-section {
    border-top: 1px solid var(--border, #E5E7EB);
    margin-top: 8px;
}

[data-theme="dark"] .collapsible-section {
    border-color: var(--border, #333);
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.collapsible-header:hover {
    opacity: 0.8;
}

.collapsible-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary, #6B7280);
    margin: 0;
}

.collapsible-icon {
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
    transition: transform 0.3s ease;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.open {
    max-height: 1000px;
}

/* Activity Item (for Recent Activity) */
.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border, #E5E7EB);
}

.activity-item:last-child {
    border-bottom: none;
}

[data-theme="dark"] .activity-item {
    border-color: var(--border, #333);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.fillup {
    background: #FEF3C7;
}

.activity-icon.alert {
    background: #DBEAFE;
}

[data-theme="dark"] .activity-icon.fillup {
    background: rgba(254, 243, 199, 0.2);
}

[data-theme="dark"] .activity-icon.alert {
    background: rgba(219, 234, 254, 0.2);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #1f1f1f);
}

[data-theme="dark"] .activity-title {
    color: var(--text-primary, #F0F0F0);
}

.activity-subtitle {
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
}

.activity-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #1f1f1f);
}

[data-theme="dark"] .activity-value {
    color: var(--text-primary, #F0F0F0);
}

.activity-value.savings {
    color: #10B981;
}

/* Empty State - Compact */
.empty-state.compact {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary, #6B7280);
}

.empty-state.compact p {
    margin: 0 0 16px 0;
    font-size: 14px;
}

/* Mobile Responsive for New Design System */
@media (max-width: 768px) {
    .intelligence-card {
        padding: 20px;
        border-radius: 16px;
    }

    .intel-headline {
        font-size: 22px;
    }

    .intel-details {
        gap: 16px;
        flex-wrap: wrap;
    }

    .intel-detail-value {
        font-size: 18px;
    }

    /* Enhanced Intelligence Card - Tablet */
    .featured-brand-logo {
        width: 44px;
        height: 44px;
    }

    .featured-price-value {
        font-size: 28px;
    }

    .intel-metrics {
        gap: 12px;
    }

    .intel-metric-value {
        font-size: 16px;
    }

    .stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-pill {
        padding: 12px;
    }

    .stat-pill-value {
        font-size: 18px;
    }

    .watch-card {
        padding: 14px;
        gap: 12px;
    }

    .watch-card-logo {
        width: 40px;
        height: 40px;
    }

    .watch-card-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .intelligence-card {
        padding: 16px;
    }

    .intel-headline {
        font-size: 20px;
    }

    .intel-advice {
        font-size: 14px;
    }

    .intel-details {
        gap: 12px;
    }

    .stat-pill-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .stat-pill-value {
        font-size: 16px;
    }

    .stat-pill-label {
        font-size: 10px;
    }

    /* Enhanced Intelligence Card - Mobile */
    .intel-featured-station {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .featured-station-info {
        width: 100%;
    }

    .featured-brand-logo {
        width: 40px;
        height: 40px;
    }

    .featured-station-name {
        font-size: 15px;
    }

    .featured-station-suburb {
        font-size: 12px;
    }

    .featured-station-price {
        width: 100%;
        justify-content: flex-end;
    }

    .featured-price-value {
        font-size: 28px;
    }

    .intel-reasoning {
        gap: 6px;
        margin: 10px 0 12px 0;
    }

    .reasoning-item {
        font-size: 13px;
    }

    .wait-forecast {
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }

    .forecast-value {
        font-size: 18px;
    }

    .intel-backup-option {
        margin-top: 12px;
        padding-top: 12px;
    }

    .backup-station {
        padding: 10px 12px;
    }

    .backup-logo {
        width: 28px;
        height: 28px;
    }

    .backup-name {
        font-size: 13px;
    }

    .backup-price {
        font-size: 14px;
    }

    .intel-metrics {
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
    }

    .intel-metric {
        min-width: calc(50% - 6px);
    }

    .intel-metric-value {
        font-size: 16px;
    }

    .intel-cta {
        padding: 12px 16px;
        font-size: 14px;
        margin-top: 12px;
    }
}

/* =============================================
   INFO TOOLTIPS - Price Alerts Page
   ============================================= */

.info-tooltip {
    display: inline-flex;
    align-items: center;
    margin-left: 4px;
    cursor: help;
    color: var(--text-tertiary, #999);
    font-size: 11px;
    position: relative;
}

.info-tooltip:hover {
    color: var(--primary, #FFB700);
}

.info-tooltip[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f1f1f;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 400;
    max-width: 220px;
    min-width: 180px;
    white-space: normal;
    line-height: 1.5;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.info-tooltip[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f1f1f;
    z-index: 1001;
}

[data-theme="dark"] .info-tooltip[data-tooltip]:hover::after {
    background: var(--surface, #2d2d2d);
    border: 1px solid var(--border, #404040);
}

[data-theme="dark"] .info-tooltip[data-tooltip]:hover::before {
    border-top-color: var(--surface, #2d2d2d);
}

/* =============================================
   CONFIDENCE DOTS
   ============================================= */

.stat-confidence {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--primary, #FFB700);
    margin-top: 4px;
}

/* =============================================
   CYCLE INDICATOR
   ============================================= */

.cycle-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 0;
}

.cycle-indicator .cycle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cycle-indicator.trough .cycle-dot {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.cycle-indicator.rising .cycle-dot {
    background: #F59E0B;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.cycle-indicator.peak .cycle-dot {
    background: #EF4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.cycle-indicator.falling .cycle-dot {
    background: #3B82F6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* =============================================
   PRICE ALERTS EXPLAINER SECTION
   ============================================= */

.price-alerts-explainer {
    margin-bottom: 24px;
    background: var(--surface, #f5f5f5);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border, #e5e5e5);
}

[data-theme="dark"] .price-alerts-explainer {
    background: var(--card-bg, #1f1f1f);
    border-color: var(--border, #333);
}

.explainer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary, #666);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.explainer-toggle:hover {
    color: var(--primary, #FFB700);
    background: rgba(255, 183, 0, 0.05);
}

.explainer-toggle i {
    font-size: 14px;
}

.explainer-toggle i:first-child {
    color: var(--primary, #FFB700);
}

.explainer-chevron {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.explainer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.explainer-content.open {
    max-height: 500px;
}

.explainer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 18px 20px;
}

@media (max-width: 600px) {
    .explainer-grid {
        grid-template-columns: 1fr;
    }
}

.explainer-item {
    background: var(--background, #fff);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border, #e5e5e5);
}

[data-theme="dark"] .explainer-item {
    background: var(--surface, #262626);
    border-color: var(--border, #404040);
}

.explainer-item h4 {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary, #1f1f1f);
}

[data-theme="dark"] .explainer-item h4 {
    color: var(--text-primary, #fff);
}

.explainer-item h4 i {
    color: var(--primary, #FFB700);
    font-size: 14px;
}

.explainer-item p {
    font-size: 12px;
    color: var(--text-secondary, #666);
    line-height: 1.6;
    margin: 0;
}

[data-theme="dark"] .explainer-item p {
    color: var(--text-secondary, #aaa);
}

.confidence-preview {
    color: var(--primary, #FFB700);
    letter-spacing: 2px;
    font-size: 11px;
}

/* =============================================
   DARK MODE FIXES - Price Alerts
   ============================================= */

[data-theme="dark"] .watchlist-stats-grid {
    background: var(--surface, #1a1a1a);
}

[data-theme="dark"] .watchlist-stat {
    background: transparent;
}

[data-theme="dark"] .watchlist-stat-label {
    color: var(--text-tertiary, #888);
}

[data-theme="dark"] .watchlist-stat-value {
    color: var(--text-primary, #fff);
}

[data-theme="dark"] .watchlist-stat-value.positive {
    color: #10B981;
}

[data-theme="dark"] .watchlist-stat-value.negative {
    color: #EF4444;
}

[data-theme="dark"] .watchlist-stat-value.highlight {
    color: var(--primary, #FFB700);
}

/* Price Alert Search Dark Mode */
[data-theme="dark"] #priceAlertSearch {
    background: var(--surface, #1f1f1f);
    border-color: var(--border, #404040);
    color: var(--text-primary, #fff);
}

[data-theme="dark"] #priceAlertSearch::placeholder {
    color: var(--text-tertiary, #666);
}

[data-theme="dark"] #priceAlertSearch:focus {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

/* Watchlist Card Body Dark Mode */
[data-theme="dark"] .watchlist-card-body {
    background: transparent;
}

[data-theme="dark"] .watchlist-price-section {
    border-color: var(--border, #333);
}

[data-theme="dark"] .watchlist-recommendation-text {
    color: var(--text-secondary, #aaa);
}

[data-theme="dark"] .watchlist-recommendation-subtext {
    color: var(--text-tertiary, #777);
}

/* Badge Dark Mode Readability */
[data-theme="dark"] .watchlist-rec-badge {
    background: var(--surface, #2a2a2a);
    border: 1px solid var(--border, #404040);
}

[data-theme="dark"] .watchlist-rec-badge.fill-now {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .watchlist-rec-badge.wait {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .watchlist-rec-badge.monitor {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #60A5FA;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Price display dark mode */
[data-theme="dark"] .watchlist-price-main .price-value {
    color: var(--text-primary, #fff);
}

[data-theme="dark"] .watchlist-price-main .price-unit {
    color: var(--text-secondary, #888);
}

[data-theme="dark"] .watchlist-price-change.down {
    color: #34D399;
}

[data-theme="dark"] .watchlist-price-change.up {
    color: #F87171;
}

[data-theme="dark"] .watchlist-fuel-badge {
    background: var(--surface, #262626);
    color: var(--text-secondary, #999);
    border: 1px solid var(--border, #404040);
}

/* Suburb rank badge dark mode */
[data-theme="dark"] .suburb-rank-badge.cheapest {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

[data-theme="dark"] .suburb-rank-badge.top3 {
    background: var(--surface, #262626);
    color: var(--text-secondary, #999);
    border: 1px solid var(--border, #404040);
}

/* =============================================
   SIGNAL INTELLIGENCE CARD
   Displays ML signal performance and accuracy
   ============================================= */

.signal-intelligence-card {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.signal-intelligence-card:hover {
    border-color: var(--primary, #FFB700);
    box-shadow: 0 4px 12px rgba(255, 183, 0, 0.15);
}

.signal-intel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.signal-intel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.signal-intel-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.signal-intel-title-section {
    flex: 1;
}

.signal-intel-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
    margin: 0 0 2px 0;
}

.signal-intel-subtitle {
    font-size: 13px;
    color: var(--text-secondary, #6B6B6B);
}

.signal-intel-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-accuracy {
    font-size: 20px;
    font-weight: 700;
    color: #6366F1;
    line-height: 1;
}

.badge-label {
    font-size: 11px;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Signal Accuracy Grid */
.signal-accuracy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.signal-accuracy-item {
    background: var(--surface, #F7F7F7);
    border-radius: 12px;
    padding: 14px;
}

.signal-accuracy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.signal-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
}

.signal-weight {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    background: var(--background, #FFFFFF);
    padding: 2px 8px;
    border-radius: 10px;
}

.signal-accuracy-bar {
    height: 6px;
    background: var(--border, #E5E5E5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.signal-accuracy-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.signal-accuracy-fill.excellent {
    background: linear-gradient(90deg, #10B981 0%, #34D399 100%);
}

.signal-accuracy-fill.good {
    background: linear-gradient(90deg, #3B82F6 0%, #60A5FA 100%);
}

.signal-accuracy-fill.moderate {
    background: linear-gradient(90deg, #F59E0B 0%, #FBBF24 100%);
}

.signal-accuracy-fill.poor {
    background: linear-gradient(90deg, #EF4444 0%, #F87171 100%);
}

.signal-accuracy-value {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
}

/* Signal Stats Footer */
.signal-intel-footer {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid var(--border, #E5E5E5);
    border-bottom: 1px solid var(--border, #E5E5E5);
    margin-bottom: 12px;
}

.signal-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.signal-stat .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #1F1F1F);
}

.signal-stat .stat-label {
    font-size: 11px;
    color: var(--text-secondary, #6B6B6B);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-intel-explanation {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Learning State */
.signal-intelligence-card.learning .signal-intel-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.signal-intelligence-card.learning .badge-accuracy {
    color: #F59E0B;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .signal-accuracy-grid {
        grid-template-columns: 1fr;
    }

    .signal-intel-header {
        flex-wrap: wrap;
    }

    .signal-intel-badge {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
    }

    .signal-intel-footer {
        flex-wrap: wrap;
        gap: 16px;
    }

    .signal-stat {
        min-width: 80px;
    }
}

/* Dark mode styles */
[data-theme="dark"] .signal-intelligence-card {
    background: var(--surface, #1F1F1F);
    border-color: var(--border, #333);
}

[data-theme="dark"] .signal-intel-title {
    color: var(--text-primary, #FFFFFF);
}

[data-theme="dark"] .signal-accuracy-item {
    background: var(--background, #171717);
}

[data-theme="dark"] .signal-name {
    color: var(--text-primary, #FFFFFF);
}

[data-theme="dark"] .signal-weight {
    background: var(--surface, #1F1F1F);
}

[data-theme="dark"] .signal-accuracy-bar {
    background: var(--border, #333);
}

[data-theme="dark"] .signal-stat .stat-value {
    color: var(--text-primary, #FFFFFF);
}

/* =============================================
   SIGNAL PERFORMANCE WIDGET (Price Insights)
   Compact widget for the Price History section
   ============================================= */

.signal-performance-widget {
    background: var(--background, #FFFFFF);
    border: 1px solid var(--border, #E5E5E5);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

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

.signal-performance-widget .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin: 0;
}

.signal-performance-widget .widget-title svg {
    width: 20px;
    height: 20px;
    stroke: #6366F1;
}

.signal-performance-widget .widget-badge {
    font-size: 13px;
    font-weight: 600;
    color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
}

.performance-signals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.performance-signal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--surface, #F7F7F7);
    border-radius: 10px;
}

.performance-signal-info {
    flex: 1;
    min-width: 0;
}

.performance-signal-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #1F1F1F);
    margin-bottom: 2px;
}

.performance-signal-score {
    font-size: 11px;
    color: var(--text-secondary, #6B6B6B);
}

.performance-signal-accuracy {
    font-size: 14px;
    font-weight: 700;
}

.performance-signal-accuracy.excellent { color: #10B981; }
.performance-signal-accuracy.good { color: #3B82F6; }
.performance-signal-accuracy.moderate { color: #F59E0B; }
.performance-signal-accuracy.poor { color: #EF4444; }

.performance-explanation {
    padding-top: 12px;
    border-top: 1px solid var(--border, #E5E5E5);
}

.performance-explanation p {
    font-size: 12px;
    color: var(--text-secondary, #6B6B6B);
    margin: 0;
    line-height: 1.5;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .performance-signals {
        grid-template-columns: 1fr;
    }

    .signal-performance-widget .widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Dark mode */
[data-theme="dark"] .signal-performance-widget {
    background: var(--surface, #1F1F1F);
    border-color: var(--border, #333);
}

[data-theme="dark"] .signal-performance-widget .widget-title {
    color: var(--text-primary, #FFFFFF);
}

[data-theme="dark"] .performance-signal-item {
    background: var(--background, #171717);
}

[data-theme="dark"] .performance-signal-name {
    color: var(--text-primary, #FFFFFF);
}
