/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"Syne","arguments":[{"subsets":["latin"],"variable":"--font-display","weight":["700","800"]}],"variableName":"displayFont"} ***!
  \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* greek */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/0da54fcd0470ea43-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/680a7121f7a85e3f-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/8a1d8947e5852e30-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* greek */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/0da54fcd0470ea43-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* latin-ext */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/680a7121f7a85e3f-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/_next/static/media/8a1d8947e5852e30-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Syne Fallback';src: local("Arial");ascent-override: 93.93%;descent-override: 27.93%;line-gap-override: 0.00%;size-adjust: 98.47%
}.__className_387f85 {font-family: 'Syne', 'Syne Fallback';font-style: normal
}.__variable_387f85 {--font-display: 'Syne', 'Syne Fallback'
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"DM_Sans","arguments":[{"subsets":["latin"],"variable":"--font-body","weight":["400","500","600"]}],"variableName":"bodyFont"} ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/7ab938503e4547a1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/_next/static/media/13971731025ec697-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'DM Sans Fallback';src: local("Arial");ascent-override: 94.90%;descent-override: 29.66%;line-gap-override: 0.00%;size-adjust: 104.53%
}.__className_d541e6 {font-family: 'DM Sans', 'DM Sans Fallback';font-style: normal
}.__variable_d541e6 {--font-body: 'DM Sans', 'DM Sans Fallback'
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"src/app/layout.tsx","import":"JetBrains_Mono","arguments":[{"subsets":["latin"],"variable":"--font-monospace","weight":["400","700"]}],"variableName":"monospaceFont"} ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/edc640959b0c7826-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/ac0e76ddaeeb7981-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/64d784ea54a4acde-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/ff71da380fbe67dd-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/6d831b18ae5b01dc-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/558ca1a6aa3cb55e-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/edc640959b0c7826-s.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/ac0e76ddaeeb7981-s.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/64d784ea54a4acde-s.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/ff71da380fbe67dd-s.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/6d831b18ae5b01dc-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/558ca1a6aa3cb55e-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'JetBrains Mono Fallback';src: local("Arial");ascent-override: 75.79%;descent-override: 22.29%;line-gap-override: 0.00%;size-adjust: 134.59%
}.__className_747d7b {font-family: 'JetBrains Mono', 'JetBrains Mono Fallback';font-style: normal
}.__variable_747d7b {--font-monospace: 'JetBrains Mono', 'JetBrains Mono Fallback'
}

/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  /* Colors */
  --bg: #f4f7fb;
  --surface: #ffffff;
  --primary: #2563eb;
  --price-low: #16a34a;
  --price-high: #dc2626;
  --freshness-yellow: #d97706;
  --text-primary: #0f172a;
  --text-secondary: #5b6472;
  --line: rgba(15, 23, 42, 0.12);
  --shadow-color: rgba(15, 23, 42, 0.08);

  /* Typography (defined in layout.tsx) */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Geist', sans-serif; /* Fallback to DM Sans, then generic sans-serif */
  --font-monospace: 'JetBrains Mono', monospace;

  /* Other */
  --radius: 10px;
  --topbar-height: 74px;
  --shadow-sm: 0 1px 2px var(--shadow-color);
  --shadow-md: 0 6px 18px var(--shadow-color);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.06), transparent 30%),
    linear-gradient(180deg, #f9fbfe 0%, #f4f7fb 52%, #eef3f8 100%);
  font-family: var(--font-body), sans-serif;
  line-height: 1.5;
}

button,
input,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px var(--shadow-color);
  min-height: var(--topbar-height);
}

.topbar-inner {
  width: min(1280px, calc(100% - 24px));
  min-height: var(--topbar-height);
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, auto) minmax(96px, auto);
  align-items: center;
  grid-gap: 16px;
  gap: 16px;
}

.topbar-brand-block {
  min-width: 0;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-display), sans-serif;
  text-decoration: none;
}

.topbar-brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--primary); /* Use primary accent color */
  box-shadow: none;
  flex: 0 0 auto;
  transition: transform 0.2s ease-in-out; /* For hover animation */
}

.topbar-brand-icon:hover {
  transform: scale(1.1) rotate(5deg); /* More pronounced hover for logo */
}

.topbar-brand-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--text-primary);
}

.topbar-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 160ms ease, background-color 160ms ease;
}

.topbar-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.topbar-tab:hover::after,
.topbar-tab.is-active::after {
  width: 100%;
}

.topbar-tab:hover {
  background: rgba(var(--text-primary-rgb), 0.05);
  color: var(--text-primary);
}

.topbar-tab.is-active {
  background: rgba(var(--text-primary-rgb), 0.08);
  /* Remove border-color from active tab, use only underline */
  border-color: transparent;
  color: var(--text-primary);
}


.topbar-brand-copy {
  min-width: 0;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.topbar-brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.topbar-brand-kicker {
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
}

.topbar-nav-shell {
  position: relative;
  display: flex;
  justify-content: center;
}

.topbar-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.topbar-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.topbar-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

.topbar-tab:hover::after,
.topbar-tab.is-active::after {
  width: 100%;
}

.topbar-tab:hover {
  background: rgba(var(--text-primary-rgb), 0.05); /* Using dynamic RGB from text-primary */
  color: var(--text-primary);
}

.topbar-tab.is-active {
  background: rgba(var(--text-primary-rgb), 0.08);
  border-color: rgba(var(--text-primary-rgb), 0.12);
  color: var(--text-primary);
}

.topbar-dropdown {
  position: relative;
  justify-self: end;
  display: none;
}

.topbar-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(var(--text-primary-rgb), 0.03);
  color: var(--text-primary);
  border: 1px solid rgba(var(--text-primary-rgb), 0.1);
}

.topbar-dropdown-btn:hover {
  background: rgba(var(--text-primary-rgb), 0.06);
  box-shadow: none;
}

.topbar-dropdown-caret {
  transition: transform 140ms ease;
}

.topbar-dropdown-caret.is-open {
  transform: rotate(180deg);
}

.topbar-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  z-index: 50;
}

.topbar-dropdown-item {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 12px;
  border-radius: 10px;
  transition: background-color 140ms ease;
}

.topbar-dropdown-item strong {
  font-size: 0.95rem;
}

.topbar-dropdown-item span {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
}

.topbar-dropdown-item:hover {
  background: rgba(var(--text-primary-rgb), 0.05);
}

.topbar-dropdown-item.is-active {
  background: rgba(var(--primary-rgb), 0.1); /* Active state with primary accent */
  color: var(--primary);
}

.topbar-utility {
  display: flex;
  justify-content: flex-end;
  /* Add specific badge styling */
}

.topbar-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(96, 165, 250, 0.1));
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface); /* Darker background */
}

.site-footer-inner {
  width: 100%;
  padding: 16px 28px 20px;
  display: flex;
  justify-content: center;
}

.site-footer-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer-muted {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-footer-sep {
  color: rgba(var(--text-primary-rgb), 0.35);
  font-size: 0.8rem;
}

.site-footer-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.site-footer-link:hover {
  color: var(--primary); /* Hover color from accent */
}

.container {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 28px;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
}

.home-page {
  gap: 18px;
}

.hero,
.panel,
.results-table-shell,
.skeleton-card,
.error {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
  padding: 18px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.hero:hover,
.panel:hover,
.results-table-shell:hover,
.skeleton-card:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb), 0.5); /* Subtle accent border on hover */
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.inline-filters {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  justify-items: end;
}

.manual {
  margin-top: 18px;
}

.manual-search-wrap {
  position: relative;
}

label {
  font-weight: 600;
  color: var(--text-primary);
}

.inline {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

input {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--font-body), sans-serif;
  font-size: 0.97rem;
  outline: none;
  background: #ffffff;
  color: var(--text-primary);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

.btn,
button {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover,
button:hover {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: none;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
  color: #ffffff;
  padding: 12px 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-cta {
  min-height: 58px;
  padding: 12px 16px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.hero-cta .icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero-cta-copy {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  text-align: left;
}

.hero-cta-copy strong {
  font-size: 0.98rem;
  line-height: 1;
}

.hero-cta-copy span {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.82;
}

.btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
  border-color: rgba(37, 99, 235, 0.72);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.26) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.18);
}

.icon {
  width: 18px;
  height: 18px;
}

.icon-xs {
  width: 14px;
  height: 14px;
}

.pick-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
  margin: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-gap: 0;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.pick-list button {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  background: #ffffff;
  color: var(--text-primary);
  border: none;
  border-bottom: 1px solid rgba(var(--text-primary-rgb), 0.1);
  border-radius: 0;
  box-shadow: none !important;
  transform: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.pick-list button:hover {
  background: rgba(37, 99, 235, 0.04);
  box-shadow: none !important;
}

.pick-list li:last-child button {
  border-bottom: none;
}

.pick-list button.is-active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.pick-list button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.manual-error {
  margin: 8px 0 0;
  color: var(--price-high);
  font-size: 0.92rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  grid-gap: 18px;
  gap: 18px;
  align-items: start;
}

.home-hero-copy,
.home-hero-actions {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.home-hero-copy h1,
.seo-city-intro h1 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.home-hero-copy p,
.home-hero-note,
.seo-city-intro p,
.home-footnote p {
  margin: 0;
  color: var(--text-secondary);
}

.home-hero-actions {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.home-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: -moz-fit-content;
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
}

.home-hero-link:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--text-primary-rgb), 0.05);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-title-accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.hero-search-bar input {
  padding-right: 40px; /* Space for icon */
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-primary);
}

.hero-intro {
  display: none;
}

.hero-location-icon {
  position: absolute;
  right: 12px;
  color: var(--primary);
  width: 24px;
  height: 24px;
  animation: pulse 1.5s infinite ease-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }
}

.home-footnote a,
.seo-city-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.home-footnote a:hover,
.seo-city-footer a:hover {
  text-decoration: underline;
}

.home-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-end;
}

.home-filter-group {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.home-filter-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 999px;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.chip-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.9;
}

.chip:hover {
  background: rgba(var(--text-primary-rgb), 0.05);
  box-shadow: none;
  transform: translateY(-1px);
}

.chip-active {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3); /* Active glow */
}

.muted {
  color: var(--text-secondary);
}

.mobile-geolocation-fab {
  display: none;
}

.results-table-scroll {
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.results-mobile-list {
  display: none;
  gap: 12px;
}

.results-mobile-sort {
  display: none;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.mobile-sort-chip {
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: none !important;
  transform: none !important;
}

.mobile-sort-chip:hover {
  background: rgba(var(--text-primary-rgb), 0.05) !important;
}

.mobile-sort-chip.is-active {
  background: rgba(var(--primary-rgb), 0.1) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.mobile-station-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  animation: row-in 320ms ease both;
  animation-delay: var(--row-delay, 0ms);
}

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

.mobile-station-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.mobile-station-address {
  font-size: 0.94rem;
  color: var(--text-primary);
}

.mobile-fuels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.mobile-fuel-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  background: rgba(var(--text-primary-rgb), 0.05);
  color: var(--text-primary);
  font-weight: 600;
}

.mobile-fuel-label {
  font-size: 0.77rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mobile-fuel-price {
  font-weight: 800;
  font-family: var(--font-monospace);
  font-size: 1.1em; /* Make price larger */
  transition: color 0.3s ease-out; /* For price refresh animation */
}

.mobile-fuel-item.is-missing {
  color: var(--text-secondary);
  background: rgba(var(--text-primary-rgb), 0.02);
}

.mobile-fuel-item.is-selected-fuel {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.mobile-fuel-item.force-low {
  color: var(--price-low);
  background: rgba(var(--price-low-rgb), 0.15);
  border-color: rgba(var(--price-low-rgb), 0.4);
}

.mobile-fuel-item.force-mid {
  color: var(--primary); /* Use primary for mid */
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.4);
}

.mobile-fuel-item.force-high {
  color: var(--price-high);
  background: rgba(var(--price-high-rgb), 0.15);
  border-color: rgba(var(--price-high-rgb), 0.4);
}

.results-load-more {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.results-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.results-table th,
.results-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  vertical-align: top;
}

.results-table thead th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 3;
  color: var(--text-primary);
  text-align: left;
  font-weight: 700;
  background: var(--surface); /* Ensure sticky header matches surface */
  border-bottom: 1px solid var(--line);
}

.col-station {
  min-width: 360px;
  background: var(--surface); /* Match surface */
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  box-shadow: 1px 0 0 var(--line); /* Use line for subtle separation */
}

.results-table tbody .station-cell {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface); /* Match surface */
  box-shadow: 1px 0 0 var(--line);
}

.col-distance {
  min-width: 120px;
  background: var(--surface);
}

.col-fuel {
  min-width: 95px;
  white-space: nowrap;
}

/* Specific fuel header colors - adapt to new palette */
.col-fuel-gazole { background: color-mix(in srgb, var(--surface) 90%, #64748B); }
.col-fuel-sp98 { background: color-mix(in srgb, var(--surface) 90%, #64748B); }
.col-fuel-sp95 { background: color-mix(in srgb, var(--surface) 90%, #64748B); }
.col-fuel-e10 { background: color-mix(in srgb, var(--surface) 90%, #64748B); }
.col-fuel-e85 { background: color-mix(in srgb, var(--surface) 90%, #64748B); }
.col-fuel-gplc { background: color-mix(in srgb, var(--surface) 90%, #64748B); }


.selected-fuel-header {
  box-shadow: inset 0 -3px 0 var(--primary); /* Accent line for selected fuel */
}

.sortable-head {
  padding: 0;
}

.sort-header-btn {
  width: 100%;
  border: none !important;
  background: transparent !important;
  color: var(--text-primary);
  padding: 12px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  box-shadow: none !important;
  transform: none !important;
}

.sort-header-btn:hover,
.sort-header-btn:focus-visible {
  background: rgba(var(--text-primary-rgb), 0.08) !important;
}

.sort-indicator {
  min-width: 10px;
  text-align: right;
  font-weight: 900;
}

.station-cell strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text-primary);
}

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

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* Freshness indicator dot */
.update-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.update-fresh {
  color: var(--price-low);
}
.update-fresh::before {
  background: var(--price-low);
}

.update-aging {
  color: var(--primary); /* Use primary for yellow/aging */
}
.update-aging::before {
  background: var(--primary);
}

.update-stale {
  color: var(--price-high);
}
.update-stale::before {
  background: var(--price-high);
}

.update-unknown {
  color: var(--text-secondary);
}
.update-unknown::before {
  background: var(--text-secondary);
}

.link-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.route-cta {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(var(--text-primary-rgb), 0.05);
  border: 1px solid var(--line);
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.route-cta:hover {
  background: rgba(var(--text-primary-rgb), 0.1);
  border-color: rgba(var(--text-primary-rgb), 0.2);
  box-shadow: none;
}

.route-cta-mobile {
  white-space: nowrap;
}

.distance-cell {
  text-align: right;
  position: relative; /* For progress bar */
}

/* Distance progress bar (desktop) */
.distance-cell .distance-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: rgba(var(--text-primary-rgb), 0.05);
  width: var(--distance-percent, 0%); /* CSS variable for width */
  transition: width 0.3s ease-out;
}

.distance-badge {
  display: inline-block;
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(var(--text-primary-rgb), 0.1);
  color: var(--text-primary);
  font-weight: 700;
  border: 1px solid var(--line);
  position: relative; /* Ensure text is above bar */
  z-index: 1;
}

.fuel-cell {
  color: var(--text-primary);
  font-weight: 500;
  background: var(--surface);
  transition: background-color 180ms ease, color 180ms ease;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-family: var(--font-monospace);
  font-size: 1.1em; /* Make price larger */
}

.fuel-cell.is-missing {
  color: var(--text-secondary);
  background: rgba(var(--text-primary-rgb), 0.02);
  font-weight: 700;
}

.is-selected-fuel {
  font-weight: 800;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.fuel-cell.force-low {
  color: var(--price-low);
  background: rgba(var(--price-low-rgb), 0.15);
  font-weight: 900;
}

.fuel-cell.force-mid {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.15);
  font-weight: 900;
}

.fuel-cell.force-high {
  color: var(--price-high);
  background: rgba(var(--price-high-rgb), 0.15);
  font-weight: 900;
}

.results-table tbody tr {
  transition: background-color 150ms ease;
}

.results-table tbody tr:hover {
  background: rgba(var(--text-primary-rgb), 0.03);
}

.results-table tbody tr:hover .station-cell {
  background: rgba(var(--text-primary-rgb), 0.03);
}

.error {
  border-color: var(--price-high);
  color: var(--price-high);
  background: rgba(var(--price-high-rgb), 0.1);
}

.skeleton-card {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(var(--text-primary-rgb), 0.1) 25%, rgba(var(--text-primary-rgb), 0.2) 37%, rgba(var(--text-primary-rgb), 0.1) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

.w-40 {
  width: 40%;
}

.w-80 {
  width: 80%;
}

.w-90 {
  width: 90%;
}

.w-100 {
  width: 100%;
}

.seo-city-intro {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.page-lead,
.page-note {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.seo-city-intro h1 {
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-lead h1 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-lead-links {
  margin: 0;
}

.page-lead-links a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.page-lead-links a:hover {
  text-decoration: underline;
}

.seo-city-faq h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.seo-city-faq p {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.seo-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.seo-city-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text-primary);
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  box-shadow: none;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.seo-city-link:hover {
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: var(--shadow-md);
  background: rgba(var(--text-primary-rgb), 0.05);
  transform: translateY(-2px);
}

.admin-shell,
.admin-login {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.admin-tabs,
.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tab,
.admin-subtab {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-primary);
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-subtab.is-active {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

.admin-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.admin-stack {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.admin-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 14px;
}

.admin-card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
}

.admin-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-inline-head h3 {
  margin: 0;
  color: var(--text-primary);
}

.kpi {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px;
}

.admin-table-clickable tbody tr {
  cursor: pointer;
}

.admin-table-clickable tbody tr:hover {
  background: rgba(var(--text-primary-rgb), 0.03);
}

.admin-table-clickable tbody tr.is-selected {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.admin-edit-form {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.admin-edit-form h4 {
  margin: 0;
  color: var(--text-primary);
}

.admin-edit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-edit-row input {
  flex: 1 1 320px;
}

.admin-quiet-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-primary);
  font-weight: 700;
}

.admin-quiet-btn:hover {
  background: rgba(var(--text-primary-rgb), 0.05);
  box-shadow: none;
  transform: translateY(-1px);
}

.admin-ghost-btn {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--line);
}

.admin-ghost-btn:hover {
  background: rgba(var(--text-primary-rgb), 0.05);
  box-shadow: none;
  transform: translateY(-1px);
}

.admin-ok {
  margin: 8px 0 0;
  color: var(--price-low);
  font-weight: 700;
}

.admin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.admin-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

.admin-list-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-list-value {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ranking-hero {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.ranking-summary {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.ranking-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.ranking-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ranking-head h2,
.ranking-card h3 {
  margin: 0;
  font-family: var(--font-display), sans-serif;
  color: var(--text-primary);
}

.ranking-fuel-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
  grid-gap: 8px;
  gap: 8px;
}

.ranking-fuel-chip {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-primary);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ranking-fuel-chip:hover,
.ranking-fuel-chip.is-active {
  background: rgba(var(--primary-rgb), 0.1);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.3); /* Active glow */
  transform: translateY(-1px);
}

.ranking-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.ranking-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 12px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.ranking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--primary-rgb), 0.5);
}

.ranking-rank {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--text-primary-rgb), 0.1);
  color: var(--text-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.ranking-main {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}

.ranking-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ranking-price {
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.1rem;
  white-space: nowrap;
  font-family: var(--font-monospace);
}

.ranking-price-cheap {
  color: var(--price-low);
}

.ranking-price-expensive {
  color: var(--price-high);
}

.ranking-meta,
.ranking-coords {
  margin: 0;
  color: var(--text-secondary);
}

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

/* Helper to get RGB values for rgba */
:root {
  --text-primary-rgb: 241, 245, 249;
  --primary-rgb: 249, 115, 22;
  --price-low-rgb: 34, 197, 94;
  --price-high-rgb: 239, 68, 68;
}

@media (max-width: 760px) {
  :root {
    --topbar-height: auto;
  }

  .topbar-inner {
    width: min(100%, calc(100% - 16px));
    padding: 10px 0 12px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand status"
      "nav nav";
    row-gap: 10px;
  }

  .topbar-brand-block {
    grid-area: brand;
  }

  .topbar-brand {
    align-items: flex-start;
  }

  .topbar-brand-copy {
    gap: 1px;
  }

  .topbar-brand-icon {
    width: 38px;
    height: 38px;
  }

  .topbar-brand-name {
    font-size: 1.18rem;
  }

  .topbar-brand-kicker {
    font-size: 0.72rem;
  }

  .topbar-nav-shell {
    grid-area: nav;
    justify-content: stretch;
  }

  .topbar-tabs {
    display: none;
  }

  .topbar-dropdown {
    display: block;
    justify-self: stretch;
  }

  .topbar-dropdown-btn {
    width: 100%;
    padding: 11px 14px;
    justify-content: space-between;
    font-size: 0.9rem;
    background: rgba(var(--text-primary-rgb), 0.1);
  }

  .topbar-dropdown-label {
    letter-spacing: 0.03em;
    text-transform: none;
  }

  .topbar-dropdown-menu {
    width: 100%;
    min-width: 0;
    right: 0;
    left: 0;
  }

  .topbar-utility {
    grid-area: status;
  }

  .topbar-status-pill {
    padding: 6px 9px;
    font-size: 0.78rem;
    box-shadow: none;
  }

  .container {
    width: min(100% - 16px, 100%);
    padding: 16px 0 24px;
    gap: 16px;
  }

  .home-page {
    padding-bottom: 88px;
  }

  .site-footer-inner {
    padding: 12px 16px 18px;
  }

  .hero,
  .panel,
  .results-table-shell {
    padding: 15px;
  }

  .hero {
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 140px;
    background: radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.18), transparent 62%);
    pointer-events: none;
  }

  .hero-intro {
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
  }

  .hero-kicker {
    margin: 0;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .hero-mobile-title {
    margin: 0;
    font-family: var(--font-display), sans-serif;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-size: 1.85rem;
    color: var(--text-primary);
  }

  .hero-mobile-copy {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 34ch;
  }

  .hero-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-signals span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--text-primary-rgb), 0.1);
    background: rgba(var(--text-primary-rgb), 0.05);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .home-hero {
    display: none;
  }

  .home-hero-actions {
    border-left: 0;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .home-hero-link {
    width: 100%;
    justify-content: center;
  }

  .hero-search-bar {
    display: none;
  }

  .hero-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-head .btn {
    min-height: 58px;
    justify-content: flex-start;
    font-size: 0.98rem;
  }

  .hero-head .chip-row {
    margin-top: 2px;
  }

  .home-filter-bar {
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
  }

  .inline-filters {
    justify-items: stretch;
  }

  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chip-row::-webkit-scrollbar {
    display: none;
  }

  .chip {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .inline {
    flex-direction: column;
    align-items: stretch;
  }

  .inline .btn,
  .manual .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .hero .manual {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .hero .manual > label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
  }

  .hero .manual input {
    min-height: 48px;
    font-size: 1rem;
  }

  .pick-list {
    max-height: 240px;
  }

  .pick-list button {
    min-height: 48px;
  }

  .results-table thead th {
    top: 0;
  }

  .station-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .route-cta-mobile {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 0.92rem;
    background: rgba(var(--text-primary-rgb), 0.05);
  }

  .desktop-table {
    display: none;
  }

  .results-mobile-sort {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .results-mobile-sort::-webkit-scrollbar {
    display: none;
  }

  .mobile-sort-chip {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .results-mobile-list {
    display: grid;
  }

  .results-load-more .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-geolocation-fab {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(calc(100% - 24px), 360px);
    min-height: 56px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 55%, #60a5fa 100%);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
  }

  .mobile-geolocation-fab .icon {
    width: 20px;
    height: 20px;
    color: #ffffff;
  }

  .mobile-geolocation-fab:hover {
    transform: translateX(-50%) translateY(-1px);
    border-color: rgba(37, 99, 235, 0.72);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .mobile-geolocation-fab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
  }

  .mobile-station-card {
    padding: 14px;
    gap: 10px;
  }

  .mobile-station-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-fuels-grid {
    grid-template-columns: 1fr;
  }

  .ranking-head,
  .ranking-title-row,
  .ranking-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .ranking-rank {
    width: 34px;
    height: 34px;
  }

  .ranking-price {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 12px, 100%);
    gap: 12px;
  }

  .hero,
  .panel,
  .results-table-shell {
    padding: 14px;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .topbar-inner {
    width: min(100%, calc(100% - 12px));
  }

  .topbar-brand-name {
    font-size: 1.08rem;
  }

  .topbar-brand-kicker {
    display: none;
  }

  .mobile-station-card {
    padding: 12px;
  }

  .mobile-fuel-item {
    padding: 9px 10px;
  }

  .distance-badge,
  .update-badge,
  .link-route,
  .mobile-sort-chip {
    font-size: 0.8rem;
  }
}

