:root {
  --ink: #171a17;
  --muted: #687068;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --line: #dfe3dc;
  --green: #287a50;
  --green-dark: #1e5e3e;
  --lime: #d9ef57;
  --yellow: #f5c84c;
  --red: #c45243;
  --blue: #3979a8;
  --shadow: 0 16px 40px rgba(27, 35, 28, 0.09);
  --bg-app: var(--paper);
  --bg-card: var(--surface);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 68px;
  padding: 0 5vw;
  color: white;
  background: #121412;
  border-bottom: 1px solid #292d29;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border-radius: 7px;
}

.desktop-nav {
  display: flex;
  gap: 4px;
}

.nav-item {
  padding: 10px 14px;
  color: #aeb5ae;
  background: transparent;
  border: 0;
}

.nav-item.active {
  color: white;
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  justify-self: end;
  color: white;
  background: transparent;
  border: 1px solid #3b413b;
  border-radius: 7px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.topbar-actions {
  display: flex;
  justify-self: end;
  gap: 8px;
  align-items: center;
  min-height: 40px;
}

.network-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  color: #b9c1b9;
  border: 1px solid #343a34;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.network-status svg {
  width: 14px;
  height: 14px;
}

.network-status.offline {
  color: #ffe194;
  border-color: #806b32;
  background: rgba(245, 200, 76, 0.08);
}

.account-button {
  display: inline-flex;
  min-height: 40px;
  max-width: 180px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  overflow: hidden;
  color: white;
  background: transparent;
  border: 1px solid #3b413b;
  border-radius: 7px;
}

.account-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.account-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: var(--lime);
  border: 2px solid #121412;
  border-radius: 50%;
}

.intro-band {
  padding: 54px 5vw 46px;
  color: white;
  background: #121412;
}

.intro-content,
.content-section {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.intro-band .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
}

h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: 48px;
  line-height: 1.08;
}

.intro-copy {
  max-width: 670px;
  margin-bottom: 28px;
  color: #b8c0b8;
  font-size: 17px;
  line-height: 1.6;
}

.url-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(800px, 100%);
}

.url-field {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 56px;
  padding: 0 10px 0 17px;
  color: #687068;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: 7px;
}

.url-field:focus-within {
  border-color: var(--lime);
}

.url-field svg {
  width: 19px;
}

.search-category-select {
  border: 0;
  background: rgba(0,0,0,0.05);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 0 8px;
  height: 36px;
  border-radius: 6px;
  outline: 0;
  cursor: pointer;
  border-right: 1px solid var(--line);
  margin-right: 6px;
  transition: all 0.2s;
}

.search-category-select:hover {
  background: rgba(0,0,0,0.08);
}

.url-field input {
  min-width: 0;
  height: 54px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

@keyframes scanLaserAnim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.paste-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  background: #eff1ed;
  border: 0;
  border-radius: 6px;
}

.paste-button svg {
  width: 17px;
}

.primary-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  color: #152115;
  background: var(--lime);
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.primary-button:hover {
  background: #e5f871;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.primary-button svg {
  width: 19px;
}

.supported-stores-container {
  margin-top: 20px;
  display: block;
  text-align: left;
}

.supported-stores-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface, #f9fafb);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted, #4b5563);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

body.dark-theme .supported-stores-toggle {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: #c7ccc7;
}

.supported-stores-toggle:hover {
  background: var(--bg-hover, #f3f4f6);
  border-color: #d1d5db;
  color: var(--ink, #1f2937);
}

body.dark-theme .supported-stores-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.supported-stores-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  color: var(--ink-muted, #4b5563);
}

body.dark-theme .supported-stores-toggle svg {
  color: #c7ccc7;
}

.supported-stores-toggle.active {
  background: var(--bg-hover, #f3f4f6);
  color: var(--ink, #1f2937);
}

body.dark-theme .supported-stores-toggle.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.supported-stores-toggle.active svg {
  transform: rotate(180deg);
}

.supported-stores-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.2s ease-out, padding 0.3s ease-out;
  opacity: 0;
  margin-top: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 0 solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

body.dark-theme .supported-stores-panel {
  background: #181a18;
  border-color: #242624;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.supported-stores-panel.open {
  max-height: 2000px;
  opacity: 1;
  padding: 24px;
  border: 1px solid var(--line, #e2e8f0);
}

body.dark-theme .supported-stores-panel.open {
  border-color: #242624;
}

.supported-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  text-align: left;
}

.supported-stores-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supported-stores-cat h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--green, #059669);
  letter-spacing: 0.05em;
  border-left: 3px solid var(--green, #059669);
  padding-left: 8px;
}

body.dark-theme .supported-stores-cat h4 {
  color: var(--green-dark, #10b981);
  border-left-color: var(--green-dark, #10b981);
}

.supported-stores-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.supported-stores-list span {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  user-select: none;
}

body.dark-theme .supported-stores-list span {
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  border-color: rgba(255, 255, 255, 0.06);
}

.supported-stores-list span:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #10b981;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.1);
}

body.dark-theme .supported-stores-list span:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: #34d399;
}


.content-section {
  padding: 42px 0 20px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 0;
  color: var(--green);
  background: transparent;
  border: 0;
  font-weight: 700;
}

.text-button svg {
  width: 17px;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 280px;
}

.deal-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-image {
  position: relative;
  display: grid;
  height: 180px;
  place-items: center;
  overflow: hidden;
  background: #edf0ea;
}

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

.product-placeholder {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  color: #657165;
  background: #dce2d9;
  border-radius: 50%;
}

.product-placeholder svg {
  width: 32px;
  height: 32px;
}

.score-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.deal-body {
  padding: 16px;
}

.source-name {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  text-transform: capitalize;
}

.deal-body h3 {
  min-height: 44px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.35;
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-size: 21px;
  font-weight: 800;
}

.verdict {
  padding: 5px 8px;
  color: var(--green-dark);
  background: #e4f1e8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.verdict.wait {
  color: #775815;
  background: #fbefcb;
}

.forecast-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 8px;
  color: #174f35;
  background: #e5f1e8;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.forecast-chip.muted {
  color: var(--muted);
  background: #f0f2ee;
}

.tracking-forecast {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
}

.forecast-panel {
  margin: 16px 0;
  padding: 16px;
  background: #eaf4ec;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
}

.forecast-panel.forecast-pending {
  background: #f3f4f0;
  border-color: var(--line);
}

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

.forecast-heading div {
  display: grid;
  gap: 4px;
}

.forecast-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.forecast-recommendation {
  padding: 5px 8px;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.forecast-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.forecast-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #cfe1d3;
}

.forecast-stats span,
.forecast-stats strong {
  display: block;
}

.forecast-stats span {
  color: var(--muted);
  font-size: 11px;
}

.forecast-stats strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 12px;
}

.card-button {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.card-button:hover {
  border-color: var(--green);
}

.loading-state,
.empty-state {
  display: grid;
  grid-column: 1 / -1;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: var(--muted);
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #d9ddd7;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.sponsor-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 24px 26px;
  color: white;
  background: #2d553f;
  border-radius: 8px;
}

.sponsor-strip strong {
  display: block;
  margin: 5px 0;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
}

.sponsor-strip p {
  margin: 0;
  color: #c7d9cc;
  font-size: 14px;
}

.sponsor-label {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.icon-button.light {
  flex: 0 0 auto;
  border-color: #759482;
}

.tracking-list {
  display: grid;
  gap: 10px;
}

.tracking-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tracking-thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #edf0ea;
  border-radius: 6px;
}

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

.tracking-copy {
  min-width: 0;
}

.tracking-copy h3 {
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracking-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.check-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #a3aaa3;
  border-radius: 50%;
}

.status-dot.success {
  background: var(--green);
}

.status-dot.failed {
  background: var(--red);
}

.notification-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.push-settings {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  background: #eef4ef;
  border: 1px solid #dce8de;
  border-radius: 8px;
}

.push-settings div {
  display: grid;
  gap: 4px;
}

.push-settings span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.compact-button {
  min-height: 40px;
  padding: 0 16px;
}

.notification-item {
  padding: 14px;
  background: #f2f5f0;
  border-left: 3px solid var(--green);
  border-radius: 6px;
}

.notification-item strong,
.notification-item span {
  display: block;
}

.notification-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notification-item time {
  display: block;
  margin-top: 8px;
  color: #8a918a;
  font-size: 11px;
}

.tracking-price {
  text-align: right;
}

.tracking-price strong,
.tracking-price span {
  display: block;
}

.tracking-price span {
  margin-top: 3px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.count-badge {
  padding: 7px 10px;
  color: var(--green-dark);
  background: #e4f1e8;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.savings-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.savings-highlight {
  padding: 30px;
  color: white;
  background: #1f5b3d;
  border-radius: 8px;
}

.savings-highlight span {
  color: #bfd5c6;
}

.savings-highlight strong {
  display: block;
  margin: 12px 0;
  font-family: "Manrope", sans-serif;
  font-size: 42px;
}

.savings-highlight p {
  margin: 0;
  color: #bfd5c6;
}

.savings-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.savings-stats div {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  background: white;
}

.savings-stats span {
  color: var(--muted);
  font-size: 12px;
}

.savings-stats strong {
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: 25px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.analytics-card {
  min-width: 0;
  margin-bottom: 0;
}

.analytics-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.analytics-heading span {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.analytics-heading h3 {
  margin: 4px 0 0;
  font-size: 17px;
}

.analytics-heading svg {
  color: var(--green);
}

.analytics-canvas {
  position: relative;
  height: 260px;
}

.hidden {
  display: none;
}

.mobile-nav {
  display: none;
}

.product-dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: white;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(10, 13, 10, 0.65);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  color: var(--ink);
  background: white;
  border-color: var(--line);
}

.dialog-product-image {
  display: grid;
  height: 220px;
  place-items: center;
  overflow: hidden;
  background: #edf0ea;
}

.dialog-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-body {
  padding: 24px;
}

.dialog-body h2 {
  padding-right: 34px;
  font-size: 22px;
}

.manual-fields {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.manual-field {
  display: grid;
  gap: 6px;
}

.manual-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.manual-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
}

.manual-field input:focus {
  border-color: var(--green);
}

.manual-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.profile-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.form-hint {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-error {
  margin: 10px 0;
  padding: 11px 12px;
  color: #8e2f27;
  background: #fce9e6;
  border: 1px solid #efc3bd;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.dialog-error[hidden] {
  display: none;
}

.dialog-success {
  margin: 10px 0;
  padding: 11px 12px;
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
}

.dialog-success[hidden] {
  display: none;
}

.auth-dialog {
  min-height: 360px;
}

.auth-copy {
  color: var(--muted);
  line-height: 1.55;
}

.auth-link-button {
  width: fit-content;
  margin: 2px 0 14px auto;
  padding: 2px 0;
  color: var(--green);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.auth-link-button:hover {
  text-decoration: underline;
}

.auth-submit-button {
  width: 100%;
}

.account-summary {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
  padding: 16px;
  background: #eef4ef;
  border-radius: 8px;
}

.account-summary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.account-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
}

.decision-panel {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  padding: 16px;
  background: #eef4ef;
  border-radius: 8px;
}

.score-ring {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font-size: 21px;
  font-weight: 800;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.secondary-button {
  min-height: 46px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 700;
}

.danger-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9d332a;
  background: white;
  border: 1px solid #e5bdb8;
  border-radius: 7px;
  font-weight: 700;
}

.danger-button:hover {
  background: #fdf1ef;
}

.danger-button svg {
  width: 18px;
  height: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  max-width: min(380px, calc(100% - 32px));
  padding: 13px 16px;
  color: white;
  background: #182019;
  border-radius: 7px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  body {
    padding-bottom: 72px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 0 18px;
  }

  .desktop-nav {
    display: none;
  }

  .account-button {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .network-status span {
    display: none;
  }

  .network-status {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
    border-radius: 7px;
  }

  .account-button span {
    display: none;
  }

  .intro-band {
    padding: 34px 18px 30px;
  }

  h1 {
    font-size: 34px;
  }

  .intro-copy {
    font-size: 15px;
  }

  .url-form {
    grid-template-columns: 1fr;
  }

  .supported-stores-container {
    display: block;
  }


  .content-section {
    padding: 30px 18px 10px;
  }

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

  .deal-image {
    height: 170px;
  }

  .sponsor-strip {
    padding: 20px;
  }

  .tracking-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .tracking-thumb {
    width: 54px;
    height: 54px;
  }

  .tracking-price {
    grid-column: 2;
    text-align: left;
  }

  .savings-layout {
    grid-template-columns: 1fr;
  }

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

  .savings-stats div {
    min-height: 110px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 66px;
    padding-bottom: env(safe-area-inset-bottom);
    background: #121412;
    border-top: 1px solid #343a34;
  }

  .mobile-nav-item {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: #889088;
    background: transparent;
    border: 0;
    font-size: 11px;
  }

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

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .dialog-actions {
    grid-template-columns: 1fr;
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: 10px 0 max(2px, env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
  }

  .product-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    margin: auto;
  }

  .dialog-product-image {
    height: 170px;
  }

  .dialog-body {
    padding: 18px;
  }

  .dialog-body h2 {
    font-size: 20px;
  }

  .toast {
    right: 16px;
    bottom: 82px;
  }
}

/* Mobile search bar layout optimization to prevent text from shifting/overflowing */
@media (max-width: 600px) {
  .url-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    gap: 8px;
    padding: 10px 12px 12px 12px;
    height: auto;
    min-height: auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
  }

  .url-field svg,
  .url-field .lucide {
    grid-row: 2;
    grid-column: 1;
  }

  .search-category-select {
    grid-row: 1;
    grid-column: 1 / -1;
    width: 100%;
    margin-right: 0;
    border-right: 0;
    border: 1px solid var(--line);
    background: var(--bg-app);
    height: 42px;
  }

  .url-field input {
    grid-row: 2;
    grid-column: 2;
    height: 40px;
    padding: 0 8px;
  }

  .mic-button {
    grid-row: 2;
    grid-column: 3;
    height: 38px;
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .paste-button {
    grid-row: 2;
    grid-column: 4;
    height: 38px;
    width: 38px;
    padding: 0;
  }
}

/* Akıllı Asistan ve Sahte İndirim Analizi Stilleri */
.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  color: white;
  background: var(--red);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.assistant-info-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  padding: 14px;
  background: #f4f6f2;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.assistant-info-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}

.assistant-info-content {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.45;
}

.discount-analysis-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.discount-analysis-panel.badge-green {
  background: #eaf6ec;
  border-color: #c7e8cc;
  color: #1e5e3e;
}

.discount-analysis-panel.badge-red {
  background: #fdf2f0;
  border-color: #f8d7d3;
  color: #9d332a;
}

.discount-analysis-panel.badge-yellow {
  background: #fefbeb;
  border-color: #fae7a5;
  color: #775815;
}

.discount-analysis-panel.badge-gray {
  background: #f4f6f2;
  border-color: var(--line);
  color: var(--muted);
}

.discount-analysis-panel.badge-blue {
  background: #eef7fc;
  border-color: #d1ecf8;
  color: #1f5077;
}

.analysis-status-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.analysis-status-badge.bg-green { background: #c7e8cc; color: #1e5e3e; }
.analysis-status-badge.bg-red { background: #f8d7d3; color: #9d332a; }
.analysis-status-badge.bg-yellow { background: #fae7a5; color: #775815; }
.analysis-status-badge.bg-gray { background: var(--line); color: var(--muted); }
.analysis-status-badge.bg-blue { background: #d1ecf8; color: #1f5077; }

.unit-price-row {
  width: fit-content;
  margin-top: 6px;
  padding: 3px 7px;
  color: var(--muted);
  background: #eef1ec;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.unit-price-row.best {
  color: var(--green-dark);
  background: #e4f1e8;
  border: 1px solid #bcd9c5;
}

body.dark-theme .unit-price-row {
  background: #20242a;
}


html.dark-theme,
body.dark-theme {
  --bg: #0d0e10;
  --bg-offset: #131518;
  --paper: #0d0e10;
  --surface: #181b20;
  --bg-app: #0d0e10;
  --bg-card: #181b20;
  --ink: #e2e4e9;
  --muted: #848c96;
  --line: #262930;
  --green-dark: #8ed7aa;
  background-color: var(--bg);
  color: var(--ink);
}

body.dark-theme header.topbar {
  background: rgba(13, 14, 16, 0.85);
  border-bottom-color: var(--line);
}

body.dark-theme .topbar-actions .icon-button,
body.dark-theme .topbar-actions .account-button {
  background: #181b20;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-theme .nav-item {
  color: var(--muted);
}

body.dark-theme .nav-item.active {
  color: var(--lime);
}

body.dark-theme .glassmorphic-card {
  background: rgba(24, 27, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.dark-theme .tracking-item,
body.dark-theme .deal-card,
body.dark-theme .assistant-info-box,
body.dark-theme .quick-add-box,
body.dark-theme .cart-items-list-box,
body.dark-theme .optimizer-box {
  background: rgba(24, 27, 32, 0.8);
  border-color: var(--line);
  color: var(--ink);
}

body.dark-theme .product-dialog,
body.dark-theme .dialog-close,
body.dark-theme .secondary-button,
body.dark-theme .manual-field input,
body.dark-theme .manual-field select,
body.dark-theme .search-result-card,
body.dark-theme .savings-stats div {
  color: var(--ink);
  background: #181b20 !important;
  border-color: var(--line);
}

body.dark-theme .dialog-actions {
  background: #181b20;
}

body.dark-theme .tracking-thumb {
  background: #1e2229;
}

body.dark-theme .paste-button {
  background: var(--bg-app);
  color: var(--ink);
}

body.dark-theme .dialog-product-image,
body.dark-theme .deal-thumb,
body.dark-theme .search-result-thumb {
  background: #1e2229;
}

body.dark-theme .danger-button {
  background: #181b20;
  border-color: #5a1d17;
  color: #f7a399;
}
body.dark-theme .danger-button:hover {
  background: #251210;
}

body.dark-theme input,
body.dark-theme select {
  background: #181b20;
  border-color: var(--line);
  color: var(--ink);
}

body.dark-theme input:focus,
body.dark-theme select:focus {
  border-color: var(--green);
}

/* Glassmorphism General Definition */
.glassmorphic-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

/* Sepet Layout */
.cart-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .cart-split-layout {
    grid-template-columns: 1fr;
  }
}

.quick-add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.quick-add-form input {
  flex: 1;
}

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

.icon-text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-text-button:hover {
  background: rgba(0, 0, 0, 0.03);
}

body.dark-theme .icon-text-button:hover {
  background: rgba(255, 255, 255, 0.03);
}

#barcodeOcrInputArea {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  border: 1px dashed var(--line);
}

.scanner-upload {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 14px;
  color: var(--green-dark);
  background: rgba(40, 122, 80, 0.05);
  border: 1px dashed var(--green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.scanner-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.scanner-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.scanner-divider::before,
.scanner-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

body.dark-theme #barcodeOcrInputArea {
  background: rgba(255, 255, 255, 0.01);
}

#barcodeScannerArea > .scanner-upload,
#barcodeScannerArea > .scanner-divider,
#barcodeSelector,
#runBarcodeScanBtn {
  display: none;
}

.barcode-camera-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080a0c;
}

.barcode-camera-view {
  width: 100%;
  min-height: 260px;
}

.barcode-camera-view video {
  width: 100% !important;
  min-height: 260px;
  object-fit: cover;
}

.barcode-camera-view > div {
  border: 0 !important;
}

.barcode-viewfinder {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(84%, 360px);
  height: 96px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(40, 122, 80, 0.35);
  pointer-events: none;
}

.barcode-viewfinder::after {
  position: absolute;
  right: 10px;
  left: 10px;
  top: 50%;
  height: 2px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.barcode-scan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.barcode-scan-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 10px;
  outline: none;
}

/* Checklist Items */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(0, 0, 0, 0.01);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: opacity 0.2s ease;
}

body.dark-theme .cart-item {
  background: rgba(255, 255, 255, 0.01);
}

.cart-item.checked {
  opacity: 0.6;
}

.cart-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-name {
  font-weight: 500;
}

.cart-item.checked .cart-item-name {
  text-decoration: line-through;
}

.cart-item-remove {
  background: transparent;
  border: 0;
  color: var(--red);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Cart Optimizer */
.optimizer-modes {
  display: flex;
  background: var(--line);
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.mode-tab {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
}

.mode-tab.active {
  background: var(--green);
  color: white;
}

.optimizer-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opt-store-card {
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.dark-theme .opt-store-card {
  background: rgba(255, 255, 255, 0.02);
}

.opt-store-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.opt-store-name {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.opt-store-total {
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--green);
}

.opt-savings-tag {
  display: inline-block;
  padding: 2px 6px;
  background: #eaf6ec;
  color: #1e5e3e;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  margin-top: 4px;
}

body.dark-theme .opt-savings-tag {
  background: rgba(30, 94, 62, 0.2);
  color: #a6f2c0;
}

.opt-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.opt-item-price {
  font-weight: 600;
  color: var(--ink);
}

/* AI Try-on Styles */
.ai-fashion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

#fashionScanLaser {
  animation: laserScan 2.5s ease-in-out infinite;
}

@keyframes laserScan {
  0% { top: 12px; }
  50% { top: calc(100% - 15px); }
  100% { top: 12px; }
}

/* Micro-animations and mic */
.mic-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.mic-button.recording {
  color: var(--red);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

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

.btn-danger {
  color: var(--red) !important;
}

.receipt-analytics-section {
  margin-top: 32px;
}

.compact-heading {
  align-items: end;
}

#receiptMonthFilter {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.receipt-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.receipt-summary-card {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
}

.receipt-summary-card span,
.receipt-summary-card small {
  color: var(--muted);
}

.receipt-summary-card strong {
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}

.receipt-history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.receipt-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
}

.receipt-history-main {
  min-width: 0;
}

.receipt-history-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.receipt-history-item h4,
.receipt-history-item p {
  margin: 0;
}

.receipt-history-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.receipt-history-total {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  white-space: nowrap;
}

.receipt-history-products {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.receipt-history-product {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 13px;
}

.receipt-history-product span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.receipt-history-product strong {
  white-space: nowrap;
}

.receipt-upload-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.45;
}

.receipt-tip-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 7%, transparent);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.receipt-tip-box svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--green-dark);
}

.receipt-tip-box p {
  margin: 0;
}

.receipt-upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.receipt-processing {
  display: flex;
  gap: 12px;
  align-items: center;
}

.receipt-processing strong,
.receipt-processing p {
  margin: 0;
}

.receipt-processing strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.receipt-processing p {
  color: var(--muted);
}

.receipt-upload-status.loading {
  border-color: rgba(57, 121, 168, 0.35);
  background: linear-gradient(135deg, rgba(57, 121, 168, 0.14), rgba(47, 133, 90, 0.10));
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(57, 121, 168, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
}

.receipt-upload-status.success {
  border-color: rgba(40, 122, 80, 0.35);
  background: rgba(40, 122, 80, 0.08);
  color: var(--green-dark);
}

.receipt-upload-status.error {
  border-color: rgba(196, 82, 67, 0.35);
  background: rgba(196, 82, 67, 0.08);
  color: var(--red);
}

.receipt-saved-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(40, 122, 80, 0.3);
  border-radius: 8px;
  background: rgba(40, 122, 80, 0.08);
}

.receipt-saved-card > svg {
  width: 28px;
  height: 28px;
  color: var(--green);
  flex: 0 0 auto;
}

.receipt-saved-card strong,
.receipt-saved-card p {
  display: block;
  margin: 0;
}

.receipt-saved-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.receipt-review-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
}

.receipt-success-card,
.receipt-review-header-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--green) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
}

.receipt-success-card {
  justify-content: center;
  color: var(--green-dark);
  font-weight: 800;
  text-align: center;
}

.receipt-review-header-card span,
.receipt-review-header-card small,
.receipt-review-header-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.receipt-review-header-card strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 16px;
}

.receipt-review-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.receipt-review-panel input,
.receipt-review-panel select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
  padding: 0 9px;
  font: inherit;
}

.receipt-review-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 720px) {
  .receipt-summary-grid {
    grid-template-columns: 1fr;
  }

  .receipt-history-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .receipt-history-heading {
    gap: 8px;
  }

  .receipt-history-product {
    font-size: 12px;
  }

  .receipt-history-item .icon-button {
    grid-column: 2;
  }

  .receipt-review-meta {
    grid-template-columns: 1fr;
  }

  .receipt-review-header-card {
    flex-direction: column;
  }

  .receipt-upload-actions {
    grid-template-columns: 1fr;
  }

}

.optimizer-summary {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  backdrop-filter: blur(14px);
}

.optimizer-summary h4 {
  margin: 4px 0;
  color: var(--green-dark);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.optimizer-summary p {
  margin: 4px 0 0;
  font-size: 13px;
}

.optimizer-unavailable {
  border-color: rgba(196, 82, 67, 0.35);
  background: rgba(196, 82, 67, 0.07);
}

.optimizer-unavailable h4 {
  color: var(--red);
}

.optimizer-source-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.optimizer-kicker {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.optimizer-store-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opt-item-row small {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 11px;
}

.cart-quantity {
  width: 54px;
  min-width: 54px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--ink);
  padding: 5px;
  text-align: center;
}

.glass-ui {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

/* Antigravite & Kuantum Temalı Animasyonlar ve Sınıflar */
@keyframes spin-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes laserSweep {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes neon-glow-pulse-blue {
  0% {
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2), inset 0 0 5px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.7), inset 0 0 8px rgba(0, 240, 255, 0.3);
    border-color: rgba(0, 240, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2), inset 0 0 5px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.3);
  }
}

.neon-glow-active {
  animation: neon-glow-pulse-blue 2s infinite alternate !important;
}

/* Kuantum Veri Düğümleri (Quantum Node Cards) */
.quantum-node-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.dark-theme .quantum-node-card {
  background: rgba(0, 0, 0, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

.quantum-node-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  border-color: rgba(0, 240, 255, 0.5) !important;
  box-shadow: 0 10px 20px rgba(0, 240, 255, 0.15) !important;
}

/* En Ucuz Veri Düğümü Parıltısı */
.cheapest-node-glow {
  border-color: rgba(0, 240, 255, 0.8) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(0, 240, 255, 0.15) !important;
  animation: neon-glow-pulse-blue 1.5s infinite alternate !important;
}

/* Süzülen Kozmetik Kartı */
.floating-product-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.floating-product-card:hover {
  border-color: rgba(255, 117, 140, 0.5) !important;
  box-shadow: 0 8px 20px rgba(255, 117, 140, 0.25) !important;
  transform: scale(1.02);
}

/* Kuantum Hata Kurtarma (Glitch & Recovery) */
@keyframes glitch-anim {
  0% { clip-path: inset(40% 0 61% 0); transform: skew(0.3deg); }
  20% { clip-path: inset(92% 0 1% 0); transform: skew(-0.5deg); }
  40% { clip-path: inset(25% 0 58% 0); transform: skew(0.8deg); }
  60% { clip-path: inset(80% 0 5% 0); transform: skew(-0.2deg); }
  80% { clip-path: inset(11% 0 85% 0); transform: skew(0.5deg); }
  100% { clip-path: inset(40% 0 61% 0); transform: skew(0deg); }
}

.glitch-active {
  animation: glitch-anim 0.25s linear infinite;
  text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
}

/* Recovery Mode Overlay styles */
#quantumScanOverlay.recovery-mode {
  background: rgba(8, 20, 15, 0.92) !important;
}

#quantumScanOverlay.recovery-mode h3 {
  color: #00ff66 !important;
  text-shadow: 0 0 10px rgba(0,255,102,0.5) !important;
}

#quantumScanOverlay.recovery-mode svg circle {
  stroke: #00ff66 !important;
}

#quantumScanOverlay.recovery-mode div[style*="background"] {
  background: radial-gradient(circle, rgba(0,255,102,0.2) 0%, rgba(0,255,102,0) 70%) !important;
  box-shadow: 0 0 30px rgba(0,255,102,0.3) !important;
}

#quantumScanOverlay.recovery-mode div[style*="laserSweep"] {
  background: linear-gradient(90deg, transparent, #00ff66, transparent) !important;
  box-shadow: 0 0 15px #00ff66 !important;
}
