/* =========================================================
   GLOBAL HELPERS
   Applies to:
   - muted helper text
   - intel trend colors
   - verified check icon
   - temporary hidden feature flags
========================================================= */
.fw-muted {
    opacity: 0.75;
    font-size: 0.85rem;
}

.trend-up {
    color: #16a34a;
    font-weight: 800;
}

.trend-down {
    color: #dc2626;
    font-weight: 800;
}

.trend-flat {
    color: #f59e0b;
    font-weight: 800;
}

.trend-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 52px;
}

.trend-arrow .arrow {
    font-size: 0.92rem;
    line-height: 1;
}

.trend-arrow .pct {
    font-size: 0.84rem;
    line-height: 1;
}

.trend-na {
    color: #64748b;
    font-weight: 700;
}

.intel-check {
    color: #16a34a;
    font-weight: 900;
    margin-left: 6px;
}

.fw-hidden-feature {
    display: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
}

/* =========================================================
   HEADER / NAVIGATION
========================================================= */
nav,
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
    background: linear-gradient(180deg, #071222 0%, #0a1630 100%);
    border-bottom: 1px solid rgba(14, 165, 233, 0.14);
}

.site-nav-left {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 auto;
}

.nav-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}

.nav-brand-logo {
    height: 54px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-brand-fallback {
    color: #00d4ff;
    font-weight: 900;
    font-size: 1.65rem;
    letter-spacing: 0.04em;
}

#settings-open-btn,
.my-account-btn,
button[onclick="openSettings()"] {
    margin-left: auto;
    border-radius: 999px;
    border: 1px solid #00d4ff;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    padding: 10px 16px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}


/* =========================================================
   HERO SECTION
========================================================= */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 22px 16px 26px;
    background:
        linear-gradient(rgba(4, 10, 24, 0.70), rgba(4, 10, 24, 0.78)),
        url('/uploaded/brands/fuelwatchers-cars.jpg') center center / cover no-repeat;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-bottom: 4px solid #10d7ff;
}

.hero-overlay {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 20, 40, 0.75);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-title {
    margin: 0;
    color: #f8fbff;
    font-size: clamp(2.6rem, 6.2vw, 5rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-align: center;
}

.hero-subtitle {
    margin: 8px auto 34px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.hero-action-wrap {
    display: flex;
    justify-content: center;
    margin-top: auto;
    margin-bottom: 12px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    margin: 14px auto 10px;
    max-width: 760px;
    color: #00d4ff;
    font-size: clamp(1.05rem, 1.55vw, 1.35rem);
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.snap-btn-main {
    width: 146px;
    height: 146px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(180deg, #20d8ff 0%, #10bde8 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(16, 189, 232, 0.32);
    cursor: pointer;
}

.snap-btn-icon {
    font-size: 2.15rem;
    line-height: 1;
}

.snap-btn-label {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.hero-location-text {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    letter-spacing: 0.10em;
    font-weight: 700;
    text-align: center;
    margin-top: 8px;
}

/* =========================================================
   HOMEPAGE FLOW / WRAPPERS
========================================================= */
.homepage-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 16px 28px;
}

.homepage-main > * + * {
    margin-top: 14px;
}

.section-header {
    margin: 0 0 15px;
}

.fw-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.fw-grid {
    display: grid;
    gap: 14px;
}

.fw-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.fw-field input,
.fw-field select,
.fw-field textarea {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfd8e7;
    background: #fff;
    box-sizing: border-box;
}

.fw-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.fw-btn-light {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    background: #dbe4f0;
    cursor: pointer;
    font-weight: 700;
}

.fw-btn-primary {
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    background: #00d8ff;
    color: #00152b;
    font-weight: 800;
    cursor: pointer;
}

.gamification-strip,
.pilot-gamification,
.fw-gamification-card,
.intel-section {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.intel-bar {
    background: white;
    max-width: 980px;
    margin: 0 auto 14px auto;
    padding: 18px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 10;
    gap: 16px;
    flex-wrap: wrap;
}

.intel-station-action {
  margin-top: 4px;
}

.intel-inline-view-btn {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--fw-blue);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  line-height: 1.2;
}

.intel-inline-view-btn:hover {
  color: var(--fw-blue-deep);
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-item h4 {
    margin: 0;
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
}

.stat-item p {
    margin: 5px 0 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}


/* =========================================================
   INTEL SECTION BACKGROUNDS
========================================================= */
.intel-section {
    border-radius: 18px;
    padding: 14px 14px 10px;
    margin-bottom: 20px;
}

.intel-gasoline {
    background: linear-gradient(180deg, #eff8ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
}

.intel-diesel {
    background: linear-gradient(180deg, #fffbea 0%, #ffffff 100%);
    border: 1px solid #fde68a;
}


/* =========================================================
   BRAND PICKERS / PRODUCT TABLES
========================================================= */
.brand-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.brand-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #cfd8e7;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: 0.2s ease;
}

.brand-option:hover {
    border-color: #10bde8;
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.08);
}

.brand-option.active {
    border-color: #10bde8;
    background: #eefcff;
    box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.12);
}

.brand-picker-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px;
    flex: 0 0 34px;
}

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

.product-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe3ef;
}

.product-table th {
    background: #315ea8;
    color: #fff;
    text-align: left;
    padding: 12px;
    font-size: 0.95rem;
}

.product-table td {
    padding: 10px 12px;
    border-top: 1px solid #e5edf7;
    vertical-align: middle;
}

.product-label-cell {
    font-weight: 700;
    color: #13203a;
}

.product-price-input {
    width: 100%;
    min-width: 90px;
    padding: 10px;
    border: 1px solid #cfd8e7;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
}

.independent-table .product-table th {
    background: #475569;
}


/* =========================================================
   INTEL FILTER BARS
========================================================= */
.intel-filters {
    margin-bottom: 12px;
}

.intel-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.intel-filter-row::-webkit-scrollbar {
    height: 4px;
}

.intel-chip {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
    cursor: pointer;
}

.intel-chip.active {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
}

.intel-filter-search {
    width: 100%;
}

.intel-filter-search input {
    width: 100%;
    max-width: 520px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 13px;
    font-size: 0.95rem;
}

.intel-custom-date-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.intel-custom-date-wrap input {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 0.92rem;
}


/* =========================================================
   INTEL TABLE VIEW
========================================================= */
.table-container {
position: relative;
}

.intel-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
}

.intel-table {
    width: 100%;
    min-width: 580px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: #ffffff;
    border: 1px solid #d9e4f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.intel-table th {
    font-size: 0.70rem;
    letter-spacing: 0.06em;
    color: #64748b;
    padding: 8px 8px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
    vertical-align: middle;
}

.intel-table td {
    padding: 8px 8px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: #0f172a;
    line-height: 1.15;
    font-size: 0.86rem;
}

.intel-table th:nth-child(1),
.intel-table td:nth-child(1) { width: 38%; }

.intel-table th:nth-child(2),
.intel-table td:nth-child(2) { width: 28%; }

.intel-table th:nth-child(3),
.intel-table td:nth-child(3) { width: 14%; }

.intel-table th:nth-child(4),
.intel-table td:nth-child(4) { width: 8%; }

.intel-table th:nth-child(5),
.intel-table td:nth-child(5) { width: 12%; }

.intel-col-station { width: 38%; }
.intel-col-product { width: 28%; }
.intel-col-price   { width: 14%; text-align: right; }
.intel-col-trend   { width: 8%; text-align: center; }
.intel-col-time    { width: 12%; text-align: right; }

.intel-brand-station-wrap {
    gap: 6px;
}

.intel-brand-logo {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.intel-brand-cell {
    font-size: 0.88rem;
    line-height: 1.05;
}

.intel-station-cell {
    font-size: 0.64rem;
    line-height: 1.1;
    margin-top: 1px;
}

.intel-product-cell {
    font-size: 0.84rem;
    line-height: 1.08;
}

.intel-price-cell,
.intel-trend-cell,
.intel-time-cell {
    font-size: 0.82rem;
}
/* Zebra */
.intel-table tbody tr:nth-child(even) td {
    background: #f8fbff;
}

/* Diesel zebra */
#diesel-table tbody tr:nth-child(even) td {
    background: #fffdf5;
}

#diesel-table tbody tr:hover td {
    background: #fff7df;
}

.intel-brand-station-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.intel-brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 2px;
    flex: 0 0 28px;
}

.intel-brand-logo.mobile {
    width: 22px;
    height: 22px;
}

.intel-brand-station-text {
    min-width: 0;
    width: 100%;
}

.intel-brand-cell {
    font-weight: 800;
    font-size: 0.94rem;
    line-height: 1.1;
}

.intel-station-cell {
    color: #475569;
    font-size: 0.80rem;
    margin-top: 2px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

.intel-station-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.intel-station-link:hover {
    text-decoration: underline;
}

.intel-station-link.no-link {
    color: #475569;
    font-weight: 500;
}

.intel-proof-btn,
.intel-station-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
}

.intel-station-btn {
    color: #2563eb;
    text-decoration: underline;
    text-align: left;
}

.intel-station-action {
    margin-top: 4px;
}

.intel-inline-view-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #0ea5e9;
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
    text-decoration: underline;
}

.intel-product-cell {
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.15;
}

.intel-price-cell,
.intel-trend-cell,
.intel-time-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.intel-price-cell {
    text-align: right;
    font-weight: 800;
}

.intel-trend-cell {
    text-align: center;
}

.intel-time-cell {
    text-align: right;
}

.intel-empty {
    padding: 16px;
    color: #64748b;
}


/* =========================================================
   MOBILE INTEL BOARD
========================================================= */
.mobile-intel-board {
    display: none;
    margin-top: 10px;
}

.intel-city-group {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.intel-city-toggle {
    width: 100%;
    border: none;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.intel-city-arrow {
    color: #64748b;
}

.intel-city-body {
    padding: 8px 10px 10px;
}

.intel-city-body.collapsed {
    display: none;
}

.intel-station-group {
    padding: 10px 2px 12px;
    border-bottom: 1px solid #eef2f7;
}

.intel-station-group:last-child {
    border-bottom: none;
}

.intel-station-head {
    margin-bottom: 8px;
}

.intel-station-brand-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.intel-station-brand {
    font-size: 0.93rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.intel-station-name {
    font-size: 0.86rem;
    color: #475569;
    margin-top: 2px;
    line-height: 1.25;
    white-space: normal;
}

.intel-mobile-table {
    margin-top: 6px;
}

.intel-mobile-row {
    display: grid;
    grid-template-columns: minmax(110px, 1.4fr) minmax(72px, 0.9fr) minmax(56px, 0.7fr) minmax(54px, 0.7fr);
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px dashed #e2e8f0;
}

.intel-mobile-row:first-child {
    border-top: none;
}

.intel-mobile-product {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

.intel-mobile-price {
    text-align: right;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.intel-mobile-trend {
    text-align: right;
    font-size: 0.80rem;
    white-space: nowrap;
}

.intel-mobile-time {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
}


/* =========================================================
   INTEL LOAD MORE
========================================================= */
.intel-loadmore-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px 0;
    justify-content: center;
}

.intel-loadmore-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}

.intel-loadmore-btn:hover {
    border-color: #0ea5e9;
    color: #0ea5e9;
}


/* =========================================================
   MODAL SHELL / OVERLAY
========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, 0.62);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 9999;
    overflow-y: auto;
}

.modal-content {
    width: min(900px, 100%);
    max-width: 900px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    box-sizing: border-box;
}


/* =========================================================
   MY ACCOUNT MODAL / FORM LAYOUT
   Applies to:
   - contributor profile fields
   - masked preview box
   - consent row and stamp checkboxes
   - sticky action buttons
========================================================= */
#settings-modal .modal-content {
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    box-sizing: border-box;
    padding-bottom: 20px;
}

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.settings-col-span-2 {
    grid-column: 1 / -1;
}

.settings-field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.settings-field input,
.settings-field select,
.settings-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 0.96rem;
    box-sizing: border-box;
}

.settings-box {
    background: #f6f8fb;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    padding: 14px 16px;
    min-width: 0;
}

.settings-preview-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

#masked-preview-box {
    margin-top: -2px;
}

#preview-username,
#preview-email,
#preview-mobile {
    min-height: 20px;
    margin-bottom: 4px;
}

.settings-check-list,
.same-box-group {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.settings-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.settings-check-row input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.settings-check-row span,
.settings-check-row label,
.monitor-box-subtitle {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-actions {
    position: static;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 14px 0 0 0;
    margin-top: 18px;
    background: transparent;
    border-top: 1px solid #dbe3ee;
}

.settings-actions button {
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
}

.settings-actions .primary {
    background: #10bde8;
    color: #ffffff;
}

.settings-actions .secondary {
    background: #dbe4ee;
    color: #0f172a;
}


/* =========================================================
   VEHICLE FUEL MONITOR FORM
========================================================= */
.monitor-box-title {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 800;
}

.monitor-box-subtitle {
    margin: 0 0 12px 0;
    color: #64748b;
    line-height: 1.4;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.vehicle-grid > * {
    min-width: 0;
}

#vehicle-monitor-wrap {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.vehicle-log-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    table-layout: fixed;
}

.vehicle-log-table th,
.vehicle-log-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.vehicle-log-table th {
    font-size: 0.8rem;
    color: #64748b;
    letter-spacing: 0.08em;
    white-space: normal;
    overflow-wrap: anywhere;
}

.vehicle-log-table input,
.vehicle-log-table select {
    width: 100%;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 10px;
    box-sizing: border-box;
}


/* =========================================================
   VERIFICATION / DATA TRUST SCORE MODAL
========================================================= */
.verification-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.verification-card {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    padding: 16px;
}

.verification-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.verification-thumb {
    width: 100%;
    border-radius: 12px;
    background: #eef2f7;
    max-height: 360px;
    object-fit: contain;
}

#fw-map {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
}

/* =========================================================
   STATION DETAIL PAGE
========================================================= */
.fw-station-page-body {
    background: #f3f6fb;
    color: #0f172a;
    margin: 0;
    padding: 0;
}

.fw-station-page-shell {
    max-width: 980px;
    margin: 0 auto;
    padding: 14px 14px 28px;
}

.fw-station-page-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.fw-station-back-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
}

.fw-station-page-main {
    display: grid;
    gap: 14px;
}

.fw-station-page-header-card {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.fw-station-page-title {
    margin: 0 0 8px 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    font-weight: 900;
    color: #0f172a;
}

.fw-station-page-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.4;
}

.fw-station-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.fw-station-page-panel {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.fw-station-page-image {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    background: #f8fafc;
}

.fw-station-page-map {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.fw-station-page-price-list {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.fw-station-page-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
}

.fw-station-page-price-label {
    font-size: 1rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 700;
}

.fw-station-page-price-value {
    font-size: 1rem;
    font-weight: 900;
    white-space: nowrap;
}

.fw-station-page-report-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fw-station-report-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .fw-station-page-shell {
        padding: 12px 12px 24px;
    }

    .fw-station-page-grid {
        grid-template-columns: 1fr;
    }

    .fw-station-page-map {
        height: 320px;
    }

    .fw-station-page-report-actions {
        grid-template-columns: 1fr;
    }

    .fw-station-page-price-row {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px;
        padding: 12px;
    }

    .fw-station-page-price-label {
        font-size: 1rem;
    }
}

/* =========================================================
   FOOTER
========================================================= */
footer,
.site-footer {
    text-align: center;
    color: #64748b;
    padding: 20px 16px 30px;
}

/* =========================================================
   STATION MODAL / PROOF POPUP
   Job:
   - desktop: image | prices | map, report below
   - mobile: image | prices side by side, map below, report below
   - keeps proof image readable
========================================================= */
.fw-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.fw-modal-content {
    background: #ffffff;
    width: min(1180px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
}

.fw-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.fw-station-modal-content {
    width: min(1180px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 18px 18px 16px;
}

.fw-station-modal-header {
    margin-bottom: 12px;
    padding-right: 32px;
    flex: 0 0 auto;
}

.fw-station-modal-title {
    margin: 0 0 6px 0;
    color: #0f172a;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 800;
}

.fw-station-modal-subtitle {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.35;
}

.fw-station-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.85fr 0.95fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
}

.fw-station-image-panel,
.fw-station-prices-panel,
.fw-station-map-panel,
.fw-station-report-panel {
    min-width: 0;
}

.fw-station-panel {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    padding: 12px;
    min-width: 0;
}

.fw-station-panel-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.fw-station-image-panel {
    display: flex;
    flex-direction: column;
}

.fw-station-image-panel .fw-station-panel-title {
    flex: 0 0 auto;
}

.fw-station-modal-image {
    width: 100%;
    height: 420px;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    background: #ffffff;
}

.fw-station-prices-panel {
    display: flex;
    flex-direction: column;
}

#fw-modal-prices {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.fw-price-list {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.fw-price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.88rem;
}

.fw-price-row:last-child {
    border-bottom: none;
}

.fw-price-label {
    color: #0f172a;
    font-weight: 600;
}

.fw-price-value {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}

.fw-station-modal-map {
    height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.fw-report-list {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.fw-report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
}

.fw-report-label {
    font-size: 0.84rem;
    color: #0f172a;
    font-weight: 600;
}

.fw-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fw-report-actions .fw-btn-light {
    padding: 10px 12px;
    font-size: 0.84rem;
}

/* === MAP PLACEHOLDER (NO GPS) === */
.fw-map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  background: #eef3f7;
  border-radius: 12px;
  color: #6b7280;
  font-size: 13px;
}

.fw-map-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.fw-map-text {
  opacity: 0.8;
}

/* === PRICE ROW REPORT ACTION === */
.fw-price-row-with-report {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.fw-price-report-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #b45309;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
}

.fw-price-report-btn:hover {
    border-color: #f59e0b;
    background: #fff7ed;
}

/* === POPUP OVERFLOW CONTROL === */
.fw-modal {
    align-items: flex-start;
    overflow-y: auto;
}

.fw-modal-content,
.fw-station-modal-content {
    margin: 24px auto;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.fw-station-top-grid {
    align-items: start;
}

.fw-station-modal-image {
    max-height: 340px;
    height: 340px;
}

#fw-modal-prices {
    max-height: 340px;
    overflow-y: auto;
}

.fw-station-modal-map {
    max-height: 340px;
    height: 340px;
}

.fw-station-report-panel {
    max-height: 220px;
    overflow-y: auto;
}

.fw-report-list {
    max-height: 140px;
    overflow-y: auto;
}

@media (max-width: 900px) {
    .fw-modal-content,
    .fw-station-modal-content {
        margin: 12px auto;
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }

    .fw-station-modal-image {
        height: 240px;
        max-height: 240px;
    }

    #fw-modal-prices {
        max-height: 240px;
    }

    .fw-station-modal-map {
        height: 220px;
        max-height: 220px;
    }

    .fw-station-report-panel {
        max-height: none;
        overflow: visible;
    }

    .fw-report-list {
        max-height: none;
        overflow: visible;
    }
}

/* =========================================================
   POPUP RESPONSIVE TUNING
========================================================= */
@media (max-width: 900px) {
    .fw-modal {
        padding: 10px;
        align-items: flex-start;
    }

    .fw-modal-content,
    .fw-station-modal-content {
        width: min(98vw, 760px);
        max-height: 94vh;
        overflow-y: auto;
    }

    .fw-station-top-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "image prices"
            "map map";
        gap: 12px;
    }

    .fw-station-image-panel {
        grid-area: image;
    }

    .fw-station-prices-panel {
        grid-area: prices;
    }

    .fw-station-map-panel {
        grid-area: map;
    }

    .fw-station-modal-image {
        height: 320px;
    }

    #fw-modal-prices {
        max-height: 320px;
        overflow-y: auto;
    }

    .fw-station-modal-map {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .fw-modal-content,
    .fw-station-modal-content {
        width: 95%;
        padding: 15px;
        border-radius: 12px;
    }

    .fw-station-modal-title {
        font-size: 1.05rem;
    }

    .fw-station-modal-subtitle {
        font-size: 0.82rem;
    }

    .fw-station-top-grid {
        grid-template-columns: minmax(120px, 0.9fr) minmax(140px, 1.1fr);
        grid-template-areas:
            "image prices"
            "map map";
        align-items: start;
    }

    .fw-station-modal-image {
        height: 220px;
    }

    #fw-modal-prices {
        max-height: 220px;
        overflow-y: auto;
    }

    .fw-station-modal-map {
        height: 220px;
    }

    .fw-price-row {
        font-size: 0.82rem;
        padding: 8px 10px;
    }

    .fw-report-actions .fw-btn-light {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .fw-station-top-grid {
        grid-template-columns: minmax(110px, 0.85fr) minmax(130px, 1.15fr);
        gap: 10px;
    }

    .fw-station-modal-image {
        height: 190px;
    }

    #fw-modal-prices {
        max-height: 190px;
    }

    .fw-station-modal-map {
        height: 200px;
    }
}

/* =========================================================
   DESKTOP CENTERED INTEL LAYOUT
   Goal:
   - keep full view centered
   - compress desktop table area
   - reserve side space for future ad placements
========================================================= */
@media (min-width: 1200px) {
  .homepage-main {
    max-width: 1360px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .intel-section {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }

  .intel-bar {
    max-width: 1040px;
  }

  .intel-filters,
  .table-container,
  .intel-table-wrap,
  .mobile-intel-board,
  .intel-loadmore-box {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  .intel-filter-search input {
    max-width: 460px;
  }
}

/* =========================================================
   COMPRESSED FULL-VIEW TABLE
========================================================= */
.intel-table {
  width: 100%;
}

.intel-table th {
  font-size: 0.68rem;
  padding: 7px 8px;
}

.intel-table td {
  padding: 7px 8px;
  font-size: 0.84rem;
  line-height: 1.1;
}

.intel-col-station { width: 37%; }
.intel-col-product { width: 29%; }
.intel-col-price   { width: 14%; text-align: right; }
.intel-col-trend   { width: 8%;  text-align: center; }
.intel-col-time    { width: 12%; text-align: right; }

.intel-brand-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.intel-brand-cell {
  font-size: 0.90rem;
  line-height: 1.05;
}

.intel-station-cell {
  font-size: 0.76rem;
  line-height: 1.1;
  margin-top: 2px;
}

.intel-inline-view-btn {
  font-size: 0.70rem;
  line-height: 1.15;
}

.intel-product-cell {
  font-size: 0.82rem;
  line-height: 1.1;
}

.intel-price-cell,
.intel-trend-cell,
.intel-time-cell {
  font-size: 0.80rem;
}

/* =========================================================
   DESKTOP SIDE GUTTERS READY FOR ADS
   This preserves left/right breathing room now.
   Later we can replace these gutters with actual ad rails.
========================================================= */
@media (min-width: 1440px) {
  .homepage-main {
    max-width: 1480px;
  }

  .intel-section {
    max-width: 1080px;
  }

  .intel-filters,
  .table-container,
  .intel-table-wrap,
  .intel-loadmore-box {
    max-width: 1000px;
  }
}

.table-container::after {
  content: "→ swipe";
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-size: 0.65rem;
  color: #94a3b8;
  pointer-events: none;
}

/* =========================================
   MOBILE FULL-WIDTH TABLE OPTIMIZATION
========================================= */
@media (max-width: 768px) {

  .homepage-main {
    padding-left: 6px;
    padding-right: 6px;
  }

  .fw-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .table-container {
    margin-left: -6px;
    margin-right: -6px;
  }

  .intel-table {
    border-radius: 10px;
  }
}

@media (max-width: 768px) {

  .intel-table td,
  .intel-table th {
    padding: 6px 6px;
  }

  .intel-product-cell {
    font-size: 0.80rem;
  }

  .intel-price-cell {
    font-size: 0.82rem;
  }
}